#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateReplicationConfigurationOutput {
#[doc(hidden)]
pub source_file_system_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub source_file_system_region: std::option::Option<std::string::String>,
#[doc(hidden)]
pub source_file_system_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub original_source_file_system_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub creation_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub destinations: std::option::Option<std::vec::Vec<crate::types::Destination>>,
_request_id: Option<String>,
}
impl CreateReplicationConfigurationOutput {
pub fn source_file_system_id(&self) -> std::option::Option<&str> {
self.source_file_system_id.as_deref()
}
pub fn source_file_system_region(&self) -> std::option::Option<&str> {
self.source_file_system_region.as_deref()
}
pub fn source_file_system_arn(&self) -> std::option::Option<&str> {
self.source_file_system_arn.as_deref()
}
pub fn original_source_file_system_arn(&self) -> std::option::Option<&str> {
self.original_source_file_system_arn.as_deref()
}
pub fn creation_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.creation_time.as_ref()
}
pub fn destinations(&self) -> std::option::Option<&[crate::types::Destination]> {
self.destinations.as_deref()
}
}
impl aws_http::request_id::RequestId for CreateReplicationConfigurationOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreateReplicationConfigurationOutput {
pub fn builder() -> crate::operation::create_replication_configuration::builders::CreateReplicationConfigurationOutputBuilder{
crate::operation::create_replication_configuration::builders::CreateReplicationConfigurationOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct CreateReplicationConfigurationOutputBuilder {
pub(crate) source_file_system_id: std::option::Option<std::string::String>,
pub(crate) source_file_system_region: std::option::Option<std::string::String>,
pub(crate) source_file_system_arn: std::option::Option<std::string::String>,
pub(crate) original_source_file_system_arn: std::option::Option<std::string::String>,
pub(crate) creation_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) destinations: std::option::Option<std::vec::Vec<crate::types::Destination>>,
_request_id: Option<String>,
}
impl CreateReplicationConfigurationOutputBuilder {
pub fn source_file_system_id(mut self, input: impl Into<std::string::String>) -> Self {
self.source_file_system_id = Some(input.into());
self
}
pub fn set_source_file_system_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.source_file_system_id = input;
self
}
pub fn source_file_system_region(mut self, input: impl Into<std::string::String>) -> Self {
self.source_file_system_region = Some(input.into());
self
}
pub fn set_source_file_system_region(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.source_file_system_region = input;
self
}
pub fn source_file_system_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.source_file_system_arn = Some(input.into());
self
}
pub fn set_source_file_system_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.source_file_system_arn = input;
self
}
pub fn original_source_file_system_arn(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.original_source_file_system_arn = Some(input.into());
self
}
pub fn set_original_source_file_system_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.original_source_file_system_arn = input;
self
}
pub fn creation_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.creation_time = Some(input);
self
}
pub fn set_creation_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.creation_time = input;
self
}
pub fn destinations(mut self, input: crate::types::Destination) -> Self {
let mut v = self.destinations.unwrap_or_default();
v.push(input);
self.destinations = Some(v);
self
}
pub fn set_destinations(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::Destination>>,
) -> Self {
self.destinations = input;
self
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(
self,
) -> crate::operation::create_replication_configuration::CreateReplicationConfigurationOutput
{
crate::operation::create_replication_configuration::CreateReplicationConfigurationOutput {
source_file_system_id: self.source_file_system_id,
source_file_system_region: self.source_file_system_region,
source_file_system_arn: self.source_file_system_arn,
original_source_file_system_arn: self.original_source_file_system_arn,
creation_time: self.creation_time,
destinations: self.destinations,
_request_id: self._request_id,
}
}
}