#[non_exhaustive]pub struct DirectConnectGatewayBuilder { /* private fields */ }Expand description
A builder for DirectConnectGateway.
Implementations§
source§impl DirectConnectGatewayBuilder
impl DirectConnectGatewayBuilder
sourcepub fn direct_connect_gateway_id(self, input: impl Into<String>) -> Self
pub fn direct_connect_gateway_id(self, input: impl Into<String>) -> Self
The ID of the Direct Connect gateway.
sourcepub fn set_direct_connect_gateway_id(self, input: Option<String>) -> Self
pub fn set_direct_connect_gateway_id(self, input: Option<String>) -> Self
The ID of the Direct Connect gateway.
sourcepub fn get_direct_connect_gateway_id(&self) -> &Option<String>
pub fn get_direct_connect_gateway_id(&self) -> &Option<String>
The ID of the Direct Connect gateway.
sourcepub fn direct_connect_gateway_name(self, input: impl Into<String>) -> Self
pub fn direct_connect_gateway_name(self, input: impl Into<String>) -> Self
The name of the Direct Connect gateway.
sourcepub fn set_direct_connect_gateway_name(self, input: Option<String>) -> Self
pub fn set_direct_connect_gateway_name(self, input: Option<String>) -> Self
The name of the Direct Connect gateway.
sourcepub fn get_direct_connect_gateway_name(&self) -> &Option<String>
pub fn get_direct_connect_gateway_name(&self) -> &Option<String>
The name of the Direct Connect gateway.
sourcepub fn amazon_side_asn(self, input: i64) -> Self
pub fn amazon_side_asn(self, input: i64) -> Self
The autonomous system number (ASN) for the Amazon side of the connection.
sourcepub fn set_amazon_side_asn(self, input: Option<i64>) -> Self
pub fn set_amazon_side_asn(self, input: Option<i64>) -> Self
The autonomous system number (ASN) for the Amazon side of the connection.
sourcepub fn get_amazon_side_asn(&self) -> &Option<i64>
pub fn get_amazon_side_asn(&self) -> &Option<i64>
The autonomous system number (ASN) for the Amazon side of the connection.
sourcepub fn owner_account(self, input: impl Into<String>) -> Self
pub fn owner_account(self, input: impl Into<String>) -> Self
The ID of the Amazon Web Services account that owns the Direct Connect gateway.
sourcepub fn set_owner_account(self, input: Option<String>) -> Self
pub fn set_owner_account(self, input: Option<String>) -> Self
The ID of the Amazon Web Services account that owns the Direct Connect gateway.
sourcepub fn get_owner_account(&self) -> &Option<String>
pub fn get_owner_account(&self) -> &Option<String>
The ID of the Amazon Web Services account that owns the Direct Connect gateway.
sourcepub fn direct_connect_gateway_state(
self,
input: DirectConnectGatewayState
) -> Self
pub fn direct_connect_gateway_state( self, input: DirectConnectGatewayState ) -> Self
The state of the Direct Connect gateway. The following are the possible values:
-
pending: The initial state after callingCreateDirectConnectGateway. -
available: The Direct Connect gateway is ready for use. -
deleting: The initial state after callingDeleteDirectConnectGateway. -
deleted: The Direct Connect gateway is deleted and cannot pass traffic.
sourcepub fn set_direct_connect_gateway_state(
self,
input: Option<DirectConnectGatewayState>
) -> Self
pub fn set_direct_connect_gateway_state( self, input: Option<DirectConnectGatewayState> ) -> Self
The state of the Direct Connect gateway. The following are the possible values:
-
pending: The initial state after callingCreateDirectConnectGateway. -
available: The Direct Connect gateway is ready for use. -
deleting: The initial state after callingDeleteDirectConnectGateway. -
deleted: The Direct Connect gateway is deleted and cannot pass traffic.
sourcepub fn get_direct_connect_gateway_state(
&self
) -> &Option<DirectConnectGatewayState>
pub fn get_direct_connect_gateway_state( &self ) -> &Option<DirectConnectGatewayState>
The state of the Direct Connect gateway. The following are the possible values:
-
pending: The initial state after callingCreateDirectConnectGateway. -
available: The Direct Connect gateway is ready for use. -
deleting: The initial state after callingDeleteDirectConnectGateway. -
deleted: The Direct Connect gateway is deleted and cannot pass traffic.
sourcepub fn state_change_error(self, input: impl Into<String>) -> Self
pub fn state_change_error(self, input: impl Into<String>) -> Self
The error message if the state of an object failed to advance.
sourcepub fn set_state_change_error(self, input: Option<String>) -> Self
pub fn set_state_change_error(self, input: Option<String>) -> Self
The error message if the state of an object failed to advance.
sourcepub fn get_state_change_error(&self) -> &Option<String>
pub fn get_state_change_error(&self) -> &Option<String>
The error message if the state of an object failed to advance.
sourcepub fn build(self) -> DirectConnectGateway
pub fn build(self) -> DirectConnectGateway
Consumes the builder and constructs a DirectConnectGateway.
Trait Implementations§
source§impl Clone for DirectConnectGatewayBuilder
impl Clone for DirectConnectGatewayBuilder
source§fn clone(&self) -> DirectConnectGatewayBuilder
fn clone(&self) -> DirectConnectGatewayBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DirectConnectGatewayBuilder
impl Debug for DirectConnectGatewayBuilder
source§impl Default for DirectConnectGatewayBuilder
impl Default for DirectConnectGatewayBuilder
source§fn default() -> DirectConnectGatewayBuilder
fn default() -> DirectConnectGatewayBuilder
source§impl PartialEq for DirectConnectGatewayBuilder
impl PartialEq for DirectConnectGatewayBuilder
source§fn eq(&self, other: &DirectConnectGatewayBuilder) -> bool
fn eq(&self, other: &DirectConnectGatewayBuilder) -> bool
self and other values to be equal, and is used
by ==.