Struct aws_sdk_directconnect::operation::create_direct_connect_gateway::builders::CreateDirectConnectGatewayInputBuilder
source · #[non_exhaustive]pub struct CreateDirectConnectGatewayInputBuilder { /* private fields */ }Expand description
A builder for CreateDirectConnectGatewayInput.
Implementations§
source§impl CreateDirectConnectGatewayInputBuilder
impl CreateDirectConnectGatewayInputBuilder
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.
This field is required.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 Border Gateway Protocol (BGP) to be configured on the Amazon side of the connection. The ASN must be in the private range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294. The default is 64512.
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 Border Gateway Protocol (BGP) to be configured on the Amazon side of the connection. The ASN must be in the private range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294. The default is 64512.
sourcepub fn get_amazon_side_asn(&self) -> &Option<i64>
pub fn get_amazon_side_asn(&self) -> &Option<i64>
The autonomous system number (ASN) for Border Gateway Protocol (BGP) to be configured on the Amazon side of the connection. The ASN must be in the private range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294. The default is 64512.
sourcepub fn build(self) -> Result<CreateDirectConnectGatewayInput, BuildError>
pub fn build(self) -> Result<CreateDirectConnectGatewayInput, BuildError>
Consumes the builder and constructs a CreateDirectConnectGatewayInput.
source§impl CreateDirectConnectGatewayInputBuilder
impl CreateDirectConnectGatewayInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateDirectConnectGatewayOutput, SdkError<CreateDirectConnectGatewayError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateDirectConnectGatewayOutput, SdkError<CreateDirectConnectGatewayError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateDirectConnectGatewayInputBuilder
impl Clone for CreateDirectConnectGatewayInputBuilder
source§fn clone(&self) -> CreateDirectConnectGatewayInputBuilder
fn clone(&self) -> CreateDirectConnectGatewayInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreateDirectConnectGatewayInputBuilder
impl Default for CreateDirectConnectGatewayInputBuilder
source§fn default() -> CreateDirectConnectGatewayInputBuilder
fn default() -> CreateDirectConnectGatewayInputBuilder
source§impl PartialEq for CreateDirectConnectGatewayInputBuilder
impl PartialEq for CreateDirectConnectGatewayInputBuilder
source§fn eq(&self, other: &CreateDirectConnectGatewayInputBuilder) -> bool
fn eq(&self, other: &CreateDirectConnectGatewayInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateDirectConnectGatewayInputBuilder
Auto Trait Implementations§
impl Freeze for CreateDirectConnectGatewayInputBuilder
impl RefUnwindSafe for CreateDirectConnectGatewayInputBuilder
impl Send for CreateDirectConnectGatewayInputBuilder
impl Sync for CreateDirectConnectGatewayInputBuilder
impl Unpin for CreateDirectConnectGatewayInputBuilder
impl UnwindSafe for CreateDirectConnectGatewayInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more