aws_sdk_databasemigration/operation/stop_replication/
_stop_replication_output.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StopReplicationOutput {
pub replication: ::std::option::Option<crate::types::Replication>,
_request_id: Option<String>,
}
impl StopReplicationOutput {
pub fn replication(&self) -> ::std::option::Option<&crate::types::Replication> {
self.replication.as_ref()
}
}
impl ::aws_types::request_id::RequestId for StopReplicationOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl StopReplicationOutput {
pub fn builder() -> crate::operation::stop_replication::builders::StopReplicationOutputBuilder {
crate::operation::stop_replication::builders::StopReplicationOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StopReplicationOutputBuilder {
pub(crate) replication: ::std::option::Option<crate::types::Replication>,
_request_id: Option<String>,
}
impl StopReplicationOutputBuilder {
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::stop_replication::StopReplicationOutput {
crate::operation::stop_replication::StopReplicationOutput {
replication: self.replication,
_request_id: self._request_id,
}
}
}