Class UpdatePrimaryRegionRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.kms.model.KmsRequest
-
- software.amazon.awssdk.services.kms.model.UpdatePrimaryRegionRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<UpdatePrimaryRegionRequest.Builder,UpdatePrimaryRegionRequest>
@Generated("software.amazon.awssdk:codegen") public final class UpdatePrimaryRegionRequest extends KmsRequest implements ToCopyableBuilder<UpdatePrimaryRegionRequest.Builder,UpdatePrimaryRegionRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUpdatePrimaryRegionRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdatePrimaryRegionRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringkeyId()Identifies the current primary key.StringprimaryRegion()The Amazon Web Services Region of the new primary key.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends UpdatePrimaryRegionRequest.Builder>serializableBuilderClass()UpdatePrimaryRegionRequest.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
-
keyId
public final String keyId()
Identifies the current primary key. When the operation completes, this KMS key will be a replica key.
Specify the key ID or key ARN of a multi-Region primary key.
For example:
-
Key ID:
mrk-1234abcd12ab34cd56ef1234567890ab -
Key ARN:
arn:aws:kms:us-east-2:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab
To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.
- Returns:
- Identifies the current primary key. When the operation completes, this KMS key will be a replica key.
Specify the key ID or key ARN of a multi-Region primary key.
For example:
-
Key ID:
mrk-1234abcd12ab34cd56ef1234567890ab -
Key ARN:
arn:aws:kms:us-east-2:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab
To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.
-
-
-
primaryRegion
public final String primaryRegion()
The Amazon Web Services Region of the new primary key. Enter the Region ID, such as
us-east-1orap-southeast-2. There must be an existing replica key in this Region.When the operation completes, the multi-Region key in this Region will be the primary key.
- Returns:
- The Amazon Web Services Region of the new primary key. Enter the Region ID, such as
us-east-1orap-southeast-2. There must be an existing replica key in this Region.When the operation completes, the multi-Region key in this Region will be the primary key.
-
toBuilder
public UpdatePrimaryRegionRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdatePrimaryRegionRequest.Builder,UpdatePrimaryRegionRequest>- Specified by:
toBuilderin classKmsRequest
-
builder
public static UpdatePrimaryRegionRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends UpdatePrimaryRegionRequest.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
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-