#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct IsVpcPeeredOutput {
pub is_peered: ::std::option::Option<bool>,
_request_id: Option<String>,
}
impl IsVpcPeeredOutput {
pub fn is_peered(&self) -> ::std::option::Option<bool> {
self.is_peered
}
}
impl ::aws_types::request_id::RequestId for IsVpcPeeredOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl IsVpcPeeredOutput {
pub fn builder() -> crate::operation::is_vpc_peered::builders::IsVpcPeeredOutputBuilder {
crate::operation::is_vpc_peered::builders::IsVpcPeeredOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct IsVpcPeeredOutputBuilder {
pub(crate) is_peered: ::std::option::Option<bool>,
_request_id: Option<String>,
}
impl IsVpcPeeredOutputBuilder {
pub fn is_peered(mut self, input: bool) -> Self {
self.is_peered = ::std::option::Option::Some(input);
self
}
pub fn set_is_peered(mut self, input: ::std::option::Option<bool>) -> Self {
self.is_peered = input;
self
}
pub fn get_is_peered(&self) -> &::std::option::Option<bool> {
&self.is_peered
}
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::is_vpc_peered::IsVpcPeeredOutput {
crate::operation::is_vpc_peered::IsVpcPeeredOutput {
is_peered: self.is_peered,
_request_id: self._request_id,
}
}
}