aws_sdk_databasemigration/operation/start_replication/
_start_replication_output.rs#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StartReplicationOutput {
pub replication: ::std::option::Option<crate::types::Replication>,
_request_id: Option<String>,
}
impl StartReplicationOutput {
pub fn replication(&self) -> ::std::option::Option<&crate::types::Replication> {
self.replication.as_ref()
}
}
impl ::aws_types::request_id::RequestId for StartReplicationOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl StartReplicationOutput {
pub fn builder() -> crate::operation::start_replication::builders::StartReplicationOutputBuilder {
crate::operation::start_replication::builders::StartReplicationOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StartReplicationOutputBuilder {
pub(crate) replication: ::std::option::Option<crate::types::Replication>,
_request_id: Option<String>,
}
impl StartReplicationOutputBuilder {
pub fn replication(mut self, input: crate::types::Replication) -> Self {
self.replication = ::std::option::Option::Some(input);
self
}
pub fn set_replication(mut self, input: ::std::option::Option<crate::types::Replication>) -> Self {
self.replication = input;
self
}
pub fn get_replication(&self) -> &::std::option::Option<crate::types::Replication> {
&self.replication
}
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::start_replication::StartReplicationOutput {
crate::operation::start_replication::StartReplicationOutput {
replication: self.replication,
_request_id: self._request_id,
}
}
}