aws_sdk_drs/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 source_server: ::std::option::Option<crate::types::SourceServer>,
_request_id: Option<String>,
}
impl StopReplicationOutput {
pub fn source_server(&self) -> ::std::option::Option<&crate::types::SourceServer> {
self.source_server.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) source_server: ::std::option::Option<crate::types::SourceServer>,
_request_id: Option<String>,
}
impl StopReplicationOutputBuilder {
pub fn source_server(mut self, input: crate::types::SourceServer) -> Self {
self.source_server = ::std::option::Option::Some(input);
self
}
pub fn set_source_server(mut self, input: ::std::option::Option<crate::types::SourceServer>) -> Self {
self.source_server = input;
self
}
pub fn get_source_server(&self) -> &::std::option::Option<crate::types::SourceServer> {
&self.source_server
}
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 {
source_server: self.source_server,
_request_id: self._request_id,
}
}
}