Struct aws_sdk_directconnect::operation::associate_mac_sec_key::builders::AssociateMacSecKeyInputBuilder
source · #[non_exhaustive]pub struct AssociateMacSecKeyInputBuilder { /* private fields */ }Expand description
A builder for AssociateMacSecKeyInput.
Implementations§
source§impl AssociateMacSecKeyInputBuilder
impl AssociateMacSecKeyInputBuilder
sourcepub fn connection_id(self, input: impl Into<String>) -> Self
pub fn connection_id(self, input: impl Into<String>) -> Self
The ID of the dedicated connection (dxcon-xxxx), or the ID of the LAG (dxlag-xxxx).
You can use DescribeConnections or DescribeLags to retrieve connection ID.
sourcepub fn set_connection_id(self, input: Option<String>) -> Self
pub fn set_connection_id(self, input: Option<String>) -> Self
The ID of the dedicated connection (dxcon-xxxx), or the ID of the LAG (dxlag-xxxx).
You can use DescribeConnections or DescribeLags to retrieve connection ID.
sourcepub fn get_connection_id(&self) -> &Option<String>
pub fn get_connection_id(&self) -> &Option<String>
The ID of the dedicated connection (dxcon-xxxx), or the ID of the LAG (dxlag-xxxx).
You can use DescribeConnections or DescribeLags to retrieve connection ID.
sourcepub fn secret_arn(self, input: impl Into<String>) -> Self
pub fn secret_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the MAC Security (MACsec) secret key to associate with the dedicated connection.
You can use DescribeConnections or DescribeLags to retrieve the MAC Security (MACsec) secret key.
If you use this request parameter, you do not use the ckn and cak request parameters.
sourcepub fn set_secret_arn(self, input: Option<String>) -> Self
pub fn set_secret_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the MAC Security (MACsec) secret key to associate with the dedicated connection.
You can use DescribeConnections or DescribeLags to retrieve the MAC Security (MACsec) secret key.
If you use this request parameter, you do not use the ckn and cak request parameters.
sourcepub fn get_secret_arn(&self) -> &Option<String>
pub fn get_secret_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the MAC Security (MACsec) secret key to associate with the dedicated connection.
You can use DescribeConnections or DescribeLags to retrieve the MAC Security (MACsec) secret key.
If you use this request parameter, you do not use the ckn and cak request parameters.
sourcepub fn ckn(self, input: impl Into<String>) -> Self
pub fn ckn(self, input: impl Into<String>) -> Self
The MAC Security (MACsec) CKN to associate with the dedicated connection.
You can create the CKN/CAK pair using an industry standard tool.
The valid values are 64 hexadecimal characters (0-9, A-E).
If you use this request parameter, you must use the cak request parameter and not use the secretARN request parameter.
sourcepub fn set_ckn(self, input: Option<String>) -> Self
pub fn set_ckn(self, input: Option<String>) -> Self
The MAC Security (MACsec) CKN to associate with the dedicated connection.
You can create the CKN/CAK pair using an industry standard tool.
The valid values are 64 hexadecimal characters (0-9, A-E).
If you use this request parameter, you must use the cak request parameter and not use the secretARN request parameter.
sourcepub fn get_ckn(&self) -> &Option<String>
pub fn get_ckn(&self) -> &Option<String>
The MAC Security (MACsec) CKN to associate with the dedicated connection.
You can create the CKN/CAK pair using an industry standard tool.
The valid values are 64 hexadecimal characters (0-9, A-E).
If you use this request parameter, you must use the cak request parameter and not use the secretARN request parameter.
sourcepub fn cak(self, input: impl Into<String>) -> Self
pub fn cak(self, input: impl Into<String>) -> Self
The MAC Security (MACsec) CAK to associate with the dedicated connection.
You can create the CKN/CAK pair using an industry standard tool.
The valid values are 64 hexadecimal characters (0-9, A-E).
If you use this request parameter, you must use the ckn request parameter and not use the secretARN request parameter.
sourcepub fn set_cak(self, input: Option<String>) -> Self
pub fn set_cak(self, input: Option<String>) -> Self
The MAC Security (MACsec) CAK to associate with the dedicated connection.
You can create the CKN/CAK pair using an industry standard tool.
The valid values are 64 hexadecimal characters (0-9, A-E).
If you use this request parameter, you must use the ckn request parameter and not use the secretARN request parameter.
sourcepub fn get_cak(&self) -> &Option<String>
pub fn get_cak(&self) -> &Option<String>
The MAC Security (MACsec) CAK to associate with the dedicated connection.
You can create the CKN/CAK pair using an industry standard tool.
The valid values are 64 hexadecimal characters (0-9, A-E).
If you use this request parameter, you must use the ckn request parameter and not use the secretARN request parameter.
sourcepub fn build(self) -> Result<AssociateMacSecKeyInput, BuildError>
pub fn build(self) -> Result<AssociateMacSecKeyInput, BuildError>
Consumes the builder and constructs a AssociateMacSecKeyInput.
source§impl AssociateMacSecKeyInputBuilder
impl AssociateMacSecKeyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<AssociateMacSecKeyOutput, SdkError<AssociateMacSecKeyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<AssociateMacSecKeyOutput, SdkError<AssociateMacSecKeyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for AssociateMacSecKeyInputBuilder
impl Clone for AssociateMacSecKeyInputBuilder
source§fn clone(&self) -> AssociateMacSecKeyInputBuilder
fn clone(&self) -> AssociateMacSecKeyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AssociateMacSecKeyInputBuilder
impl Default for AssociateMacSecKeyInputBuilder
source§fn default() -> AssociateMacSecKeyInputBuilder
fn default() -> AssociateMacSecKeyInputBuilder
source§impl PartialEq for AssociateMacSecKeyInputBuilder
impl PartialEq for AssociateMacSecKeyInputBuilder
source§fn eq(&self, other: &AssociateMacSecKeyInputBuilder) -> bool
fn eq(&self, other: &AssociateMacSecKeyInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AssociateMacSecKeyInputBuilder
Auto Trait Implementations§
impl Freeze for AssociateMacSecKeyInputBuilder
impl RefUnwindSafe for AssociateMacSecKeyInputBuilder
impl Send for AssociateMacSecKeyInputBuilder
impl Sync for AssociateMacSecKeyInputBuilder
impl Unpin for AssociateMacSecKeyInputBuilder
impl UnwindSafe for AssociateMacSecKeyInputBuilder
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