#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeregisterGatewayInstanceOutput {
#[doc(hidden)]
pub gateway_instance_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub instance_state: std::option::Option<crate::types::InstanceState>,
_request_id: Option<String>,
}
impl DeregisterGatewayInstanceOutput {
pub fn gateway_instance_arn(&self) -> std::option::Option<&str> {
self.gateway_instance_arn.as_deref()
}
pub fn instance_state(&self) -> std::option::Option<&crate::types::InstanceState> {
self.instance_state.as_ref()
}
}
impl aws_http::request_id::RequestId for DeregisterGatewayInstanceOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DeregisterGatewayInstanceOutput {
pub fn builder() -> crate::operation::deregister_gateway_instance::builders::DeregisterGatewayInstanceOutputBuilder{
crate::operation::deregister_gateway_instance::builders::DeregisterGatewayInstanceOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeregisterGatewayInstanceOutputBuilder {
pub(crate) gateway_instance_arn: std::option::Option<std::string::String>,
pub(crate) instance_state: std::option::Option<crate::types::InstanceState>,
_request_id: Option<String>,
}
impl DeregisterGatewayInstanceOutputBuilder {
pub fn gateway_instance_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.gateway_instance_arn = Some(input.into());
self
}
pub fn set_gateway_instance_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.gateway_instance_arn = input;
self
}
pub fn instance_state(mut self, input: crate::types::InstanceState) -> Self {
self.instance_state = Some(input);
self
}
pub fn set_instance_state(
mut self,
input: std::option::Option<crate::types::InstanceState>,
) -> Self {
self.instance_state = input;
self
}
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::deregister_gateway_instance::DeregisterGatewayInstanceOutput {
crate::operation::deregister_gateway_instance::DeregisterGatewayInstanceOutput {
gateway_instance_arn: self.gateway_instance_arn,
instance_state: self.instance_state,
_request_id: self._request_id,
}
}
}