#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RemoveBridgeSourceOutput {
pub bridge_arn: ::std::option::Option<::std::string::String>,
pub source_name: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl RemoveBridgeSourceOutput {
pub fn bridge_arn(&self) -> ::std::option::Option<&str> {
self.bridge_arn.as_deref()
}
pub fn source_name(&self) -> ::std::option::Option<&str> {
self.source_name.as_deref()
}
}
impl ::aws_types::request_id::RequestId for RemoveBridgeSourceOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl RemoveBridgeSourceOutput {
pub fn builder() -> crate::operation::remove_bridge_source::builders::RemoveBridgeSourceOutputBuilder {
crate::operation::remove_bridge_source::builders::RemoveBridgeSourceOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RemoveBridgeSourceOutputBuilder {
pub(crate) bridge_arn: ::std::option::Option<::std::string::String>,
pub(crate) source_name: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl RemoveBridgeSourceOutputBuilder {
pub fn bridge_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.bridge_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_bridge_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.bridge_arn = input;
self
}
pub fn get_bridge_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.bridge_arn
}
pub fn source_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.source_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_source_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.source_name = input;
self
}
pub fn get_source_name(&self) -> &::std::option::Option<::std::string::String> {
&self.source_name
}
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::remove_bridge_source::RemoveBridgeSourceOutput {
crate::operation::remove_bridge_source::RemoveBridgeSourceOutput {
bridge_arn: self.bridge_arn,
source_name: self.source_name,
_request_id: self._request_id,
}
}
}