#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ReserveContactInput {
pub mission_profile_arn: ::std::option::Option<::std::string::String>,
pub satellite_arn: ::std::option::Option<::std::string::String>,
pub start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub ground_station: ::std::option::Option<::std::string::String>,
pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
}
impl ReserveContactInput {
pub fn mission_profile_arn(&self) -> ::std::option::Option<&str> {
self.mission_profile_arn.as_deref()
}
pub fn satellite_arn(&self) -> ::std::option::Option<&str> {
self.satellite_arn.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 tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.tags.as_ref()
}
}
impl ReserveContactInput {
pub fn builder() -> crate::operation::reserve_contact::builders::ReserveContactInputBuilder {
crate::operation::reserve_contact::builders::ReserveContactInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ReserveContactInputBuilder {
pub(crate) mission_profile_arn: ::std::option::Option<::std::string::String>,
pub(crate) satellite_arn: ::std::option::Option<::std::string::String>,
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) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
}
impl ReserveContactInputBuilder {
pub fn mission_profile_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.mission_profile_arn = ::std::option::Option::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 get_mission_profile_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.mission_profile_arn
}
pub fn satellite_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.satellite_arn = ::std::option::Option::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 get_satellite_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.satellite_arn
}
pub fn start_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.start_time = ::std::option::Option::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 get_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.start_time
}
pub fn end_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.end_time = ::std::option::Option::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 get_end_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.end_time
}
pub fn ground_station(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.ground_station = ::std::option::Option::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 get_ground_station(&self) -> &::std::option::Option<::std::string::String> {
&self.ground_station
}
pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = ::std::option::Option::Some(hash_map);
self
}
pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
self.tags = input;
self
}
pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
&self.tags
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::reserve_contact::ReserveContactInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::reserve_contact::ReserveContactInput {
mission_profile_arn: self.mission_profile_arn,
satellite_arn: self.satellite_arn,
start_time: self.start_time,
end_time: self.end_time,
ground_station: self.ground_station,
tags: self.tags,
})
}
}