Class AssociateDatasetKmsKeyRequest

All Implemented Interfaces:
SdkPojo, ToCopyableBuilder<AssociateDatasetKmsKeyRequest.Builder,AssociateDatasetKmsKeyRequest>

@Generated("software.amazon.awssdk:codegen") public final class AssociateDatasetKmsKeyRequest extends CloudWatchRequest implements ToCopyableBuilder<AssociateDatasetKmsKeyRequest.Builder,AssociateDatasetKmsKeyRequest>
  • Method Details

    • datasetIdentifier

      public final String datasetIdentifier()

      Specifies the identifier of the dataset that you want to associate the KMS key with. For the default dataset, you can specify either default or the full dataset Amazon Resource Name (ARN) in the format arn:aws:cloudwatch:Region:account-id:dataset/default.

      Returns:
      Specifies the identifier of the dataset that you want to associate the KMS key with. For the default dataset, you can specify either default or the full dataset Amazon Resource Name (ARN) in the format arn:aws:cloudwatch:Region:account-id:dataset/default.
    • kmsKeyArn

      public final String kmsKeyArn()

      Specifies the Amazon Resource Name (ARN) of the customer managed KMS key to associate with the dataset. The key must be a symmetric encryption KMS key (SYMMETRIC_DEFAULT) in the same Amazon Web Services Region as the dataset.

      The ARN must be in the format arn:aws:kms:Region:account-id:key/key-id . Key IDs, aliases, and alias ARNs are not accepted.

      For more information about KMS key ARNs, see Key ARN in the Amazon Web Services Key Management Service Developer Guide.

      Returns:
      Specifies the Amazon Resource Name (ARN) of the customer managed KMS key to associate with the dataset. The key must be a symmetric encryption KMS key (SYMMETRIC_DEFAULT) in the same Amazon Web Services Region as the dataset.

      The ARN must be in the format arn:aws:kms:Region:account-id:key/key-id . Key IDs, aliases, and alias ARNs are not accepted.

      For more information about KMS key ARNs, see Key ARN in the Amazon Web Services Key Management Service Developer Guide.

    • toBuilder

      Specified by:
      toBuilder in interface ToCopyableBuilder<AssociateDatasetKmsKeyRequest.Builder,AssociateDatasetKmsKeyRequest>
      Specified by:
      toBuilder in class CloudWatchRequest
    • builder

      public static AssociateDatasetKmsKeyRequest.Builder builder()
    • serializableBuilderClass

      public static Class<? extends AssociateDatasetKmsKeyRequest.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class AwsRequest
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class AwsRequest
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
      Overrides:
      getValueForField in class SdkRequest
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo