Struct aws_sdk_directconnect::operation::create_direct_connect_gateway_association::builders::CreateDirectConnectGatewayAssociationInputBuilder
source · #[non_exhaustive]pub struct CreateDirectConnectGatewayAssociationInputBuilder { /* private fields */ }Expand description
A builder for CreateDirectConnectGatewayAssociationInput.
Implementations§
source§impl CreateDirectConnectGatewayAssociationInputBuilder
impl CreateDirectConnectGatewayAssociationInputBuilder
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.
This field is required.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 gateway_id(self, input: impl Into<String>) -> Self
pub fn gateway_id(self, input: impl Into<String>) -> Self
The ID of the virtual private gateway or transit gateway.
sourcepub fn set_gateway_id(self, input: Option<String>) -> Self
pub fn set_gateway_id(self, input: Option<String>) -> Self
The ID of the virtual private gateway or transit gateway.
sourcepub fn get_gateway_id(&self) -> &Option<String>
pub fn get_gateway_id(&self) -> &Option<String>
The ID of the virtual private gateway or transit gateway.
sourcepub fn add_allowed_prefixes_to_direct_connect_gateway(
self,
input: RouteFilterPrefix
) -> Self
pub fn add_allowed_prefixes_to_direct_connect_gateway( self, input: RouteFilterPrefix ) -> Self
Appends an item to add_allowed_prefixes_to_direct_connect_gateway.
To override the contents of this collection use set_add_allowed_prefixes_to_direct_connect_gateway.
The Amazon VPC prefixes to advertise to the Direct Connect gateway
This parameter is required when you create an association to a transit gateway.
For information about how to set the prefixes, see Allowed Prefixes in the Direct Connect User Guide.
sourcepub fn set_add_allowed_prefixes_to_direct_connect_gateway(
self,
input: Option<Vec<RouteFilterPrefix>>
) -> Self
pub fn set_add_allowed_prefixes_to_direct_connect_gateway( self, input: Option<Vec<RouteFilterPrefix>> ) -> Self
The Amazon VPC prefixes to advertise to the Direct Connect gateway
This parameter is required when you create an association to a transit gateway.
For information about how to set the prefixes, see Allowed Prefixes in the Direct Connect User Guide.
sourcepub fn get_add_allowed_prefixes_to_direct_connect_gateway(
&self
) -> &Option<Vec<RouteFilterPrefix>>
pub fn get_add_allowed_prefixes_to_direct_connect_gateway( &self ) -> &Option<Vec<RouteFilterPrefix>>
The Amazon VPC prefixes to advertise to the Direct Connect gateway
This parameter is required when you create an association to a transit gateway.
For information about how to set the prefixes, see Allowed Prefixes in the Direct Connect User Guide.
sourcepub fn virtual_gateway_id(self, input: impl Into<String>) -> Self
pub fn virtual_gateway_id(self, input: impl Into<String>) -> Self
The ID of the virtual private gateway.
sourcepub fn set_virtual_gateway_id(self, input: Option<String>) -> Self
pub fn set_virtual_gateway_id(self, input: Option<String>) -> Self
The ID of the virtual private gateway.
sourcepub fn get_virtual_gateway_id(&self) -> &Option<String>
pub fn get_virtual_gateway_id(&self) -> &Option<String>
The ID of the virtual private gateway.
sourcepub fn build(
self
) -> Result<CreateDirectConnectGatewayAssociationInput, BuildError>
pub fn build( self ) -> Result<CreateDirectConnectGatewayAssociationInput, BuildError>
Consumes the builder and constructs a CreateDirectConnectGatewayAssociationInput.
source§impl CreateDirectConnectGatewayAssociationInputBuilder
impl CreateDirectConnectGatewayAssociationInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateDirectConnectGatewayAssociationOutput, SdkError<CreateDirectConnectGatewayAssociationError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateDirectConnectGatewayAssociationOutput, SdkError<CreateDirectConnectGatewayAssociationError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateDirectConnectGatewayAssociationInputBuilder
impl Clone for CreateDirectConnectGatewayAssociationInputBuilder
source§fn clone(&self) -> CreateDirectConnectGatewayAssociationInputBuilder
fn clone(&self) -> CreateDirectConnectGatewayAssociationInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreateDirectConnectGatewayAssociationInputBuilder
impl Default for CreateDirectConnectGatewayAssociationInputBuilder
source§fn default() -> CreateDirectConnectGatewayAssociationInputBuilder
fn default() -> CreateDirectConnectGatewayAssociationInputBuilder
source§impl PartialEq for CreateDirectConnectGatewayAssociationInputBuilder
impl PartialEq for CreateDirectConnectGatewayAssociationInputBuilder
source§fn eq(&self, other: &CreateDirectConnectGatewayAssociationInputBuilder) -> bool
fn eq(&self, other: &CreateDirectConnectGatewayAssociationInputBuilder) -> bool
self and other values to be equal, and is used
by ==.