#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ReserveContactInput {
#[doc(hidden)]
pub mission_profile_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub satellite_arn: std::option::Option<std::string::String>,
#[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 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()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
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 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 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 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 tags(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = 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 build(
self,
) -> Result<
crate::operation::reserve_contact::ReserveContactInput,
aws_smithy_http::operation::error::BuildError,
> {
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,
})
}
}