#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListContactsInput {
#[doc(hidden)]
pub max_results: std::option::Option<i32>,
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
#[doc(hidden)]
pub status_list: std::option::Option<std::vec::Vec<crate::types::ContactStatus>>,
#[doc(hidden)]
pub start_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub end_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub ground_station: std::option::Option<std::string::String>,
#[doc(hidden)]
pub satellite_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub mission_profile_arn: std::option::Option<std::string::String>,
}
impl ListContactsInput {
pub fn max_results(&self) -> std::option::Option<i32> {
self.max_results
}
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
pub fn status_list(&self) -> std::option::Option<&[crate::types::ContactStatus]> {
self.status_list.as_deref()
}
pub fn start_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.start_time.as_ref()
}
pub fn end_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.end_time.as_ref()
}
pub fn ground_station(&self) -> std::option::Option<&str> {
self.ground_station.as_deref()
}
pub fn satellite_arn(&self) -> std::option::Option<&str> {
self.satellite_arn.as_deref()
}
pub fn mission_profile_arn(&self) -> std::option::Option<&str> {
self.mission_profile_arn.as_deref()
}
}
impl ListContactsInput {
pub fn builder() -> crate::operation::list_contacts::builders::ListContactsInputBuilder {
crate::operation::list_contacts::builders::ListContactsInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct ListContactsInputBuilder {
pub(crate) max_results: std::option::Option<i32>,
pub(crate) next_token: std::option::Option<std::string::String>,
pub(crate) status_list: std::option::Option<std::vec::Vec<crate::types::ContactStatus>>,
pub(crate) start_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) end_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) ground_station: std::option::Option<std::string::String>,
pub(crate) satellite_arn: std::option::Option<std::string::String>,
pub(crate) mission_profile_arn: std::option::Option<std::string::String>,
}
impl ListContactsInputBuilder {
pub fn max_results(mut self, input: i32) -> Self {
self.max_results = Some(input);
self
}
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.max_results = input;
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn status_list(mut self, input: crate::types::ContactStatus) -> Self {
let mut v = self.status_list.unwrap_or_default();
v.push(input);
self.status_list = Some(v);
self
}
pub fn set_status_list(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::ContactStatus>>,
) -> Self {
self.status_list = input;
self
}
pub fn start_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.start_time = Some(input);
self
}
pub fn set_start_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.start_time = input;
self
}
pub fn end_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.end_time = Some(input);
self
}
pub fn set_end_time(mut self, input: std::option::Option<aws_smithy_types::DateTime>) -> Self {
self.end_time = input;
self
}
pub fn ground_station(mut self, input: impl Into<std::string::String>) -> Self {
self.ground_station = Some(input.into());
self
}
pub fn set_ground_station(mut self, input: std::option::Option<std::string::String>) -> Self {
self.ground_station = input;
self
}
pub fn satellite_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.satellite_arn = Some(input.into());
self
}
pub fn set_satellite_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.satellite_arn = input;
self
}
pub fn mission_profile_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.mission_profile_arn = Some(input.into());
self
}
pub fn set_mission_profile_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.mission_profile_arn = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::list_contacts::ListContactsInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::list_contacts::ListContactsInput {
max_results: self.max_results,
next_token: self.next_token,
status_list: self.status_list,
start_time: self.start_time,
end_time: self.end_time,
ground_station: self.ground_station,
satellite_arn: self.satellite_arn,
mission_profile_arn: self.mission_profile_arn,
})
}
}