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