Class AssociateMacSecKeyRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.directconnect.model.DirectConnectRequest
-
- software.amazon.awssdk.services.directconnect.model.AssociateMacSecKeyRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<AssociateMacSecKeyRequest.Builder,AssociateMacSecKeyRequest>
@Generated("software.amazon.awssdk:codegen") public final class AssociateMacSecKeyRequest extends DirectConnectRequest implements ToCopyableBuilder<AssociateMacSecKeyRequest.Builder,AssociateMacSecKeyRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAssociateMacSecKeyRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AssociateMacSecKeyRequest.Builderbuilder()Stringcak()The MAC Security (MACsec) CAK to associate with the dedicated connection.Stringckn()The MAC Security (MACsec) CKN to associate with the dedicated connection.StringconnectionId()The ID of the dedicated connection (dxcon-xxxx), or the ID of the LAG (dxlag-xxxx).booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()StringsecretARN()The Amazon Resource Name (ARN) of the MAC Security (MACsec) secret key to associate with the dedicated connection.static Class<? extends AssociateMacSecKeyRequest.Builder>serializableBuilderClass()AssociateMacSecKeyRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
connectionId
public final String connectionId()
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.
- Returns:
- 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.
-
secretARN
public final String secretARN()
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
cknandcakrequest parameters.- Returns:
- 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
cknandcakrequest parameters.
-
ckn
public final String ckn()
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
cakrequest parameter and not use thesecretARNrequest parameter.- Returns:
- 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
cakrequest parameter and not use thesecretARNrequest parameter.
-
cak
public final String cak()
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
cknrequest parameter and not use thesecretARNrequest parameter.- Returns:
- 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
cknrequest parameter and not use thesecretARNrequest parameter.
-
toBuilder
public AssociateMacSecKeyRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AssociateMacSecKeyRequest.Builder,AssociateMacSecKeyRequest>- Specified by:
toBuilderin classDirectConnectRequest
-
builder
public static AssociateMacSecKeyRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends AssociateMacSecKeyRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-