public static final class CreateKeyResponseBody.KeyMetadata.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
public CreateKeyResponseBody.KeyMetadata.Builder arn(String arn)
public CreateKeyResponseBody.KeyMetadata.Builder automaticRotation(String automaticRotation)
If this parameter value is empty, the key material does not expire.
public CreateKeyResponseBody.KeyMetadata.Builder creationDate(String creationDate)
public CreateKeyResponseBody.KeyMetadata.Builder creator(String creator)
public CreateKeyResponseBody.KeyMetadata.Builder DKMSInstanceId(String DKMSInstanceId)
public CreateKeyResponseBody.KeyMetadata.Builder deleteDate(String deleteDate)
For a new CMK, this parameter value is the time when the initial version of the CMK was generated.
public CreateKeyResponseBody.KeyMetadata.Builder description(String description)
> * The primary key version of a symmetric CMK is an active encryption key. KMS uses the primary key version of a specified CMK to encrypt data. > * This parameter is unavailable for asymmetric CMKs.
public CreateKeyResponseBody.KeyMetadata.Builder keyId(String keyId)
public CreateKeyResponseBody.KeyMetadata.Builder keySpec(String keySpec)
public CreateKeyResponseBody.KeyMetadata.Builder keyState(String keyState)
> This value is returned only when the value of the AutomaticRotation parameter is Enabled or Suspended.
public CreateKeyResponseBody.KeyMetadata.Builder keyUsage(String keyUsage)
public CreateKeyResponseBody.KeyMetadata.Builder lastRotationDate(String lastRotationDate)
public CreateKeyResponseBody.KeyMetadata.Builder materialExpireTime(String materialExpireTime)
public CreateKeyResponseBody.KeyMetadata.Builder nextRotationDate(String nextRotationDate)
public CreateKeyResponseBody.KeyMetadata.Builder origin(String origin)
public CreateKeyResponseBody.KeyMetadata.Builder primaryKeyVersion(String primaryKeyVersion)
For more information, see [ScheduleKeyDeletion](~~44196~~). > This value is returned only when the value of the KeyState parameter is PendingDeletion.
public CreateKeyResponseBody.KeyMetadata.Builder protectionLevel(String protectionLevel)
* Enabled: Automatic key rotation is enabled. * Disabled: Automatic key rotation is disabled. * Suspended: Automatic key rotation is suspended. For more information, see [Automatic key rotation](~~134270~~). > Automatic key rotation is available only for symmetric CMKs.
public CreateKeyResponseBody.KeyMetadata.Builder rotationInterval(String rotationInterval)
For more information, see [Impact of CMK status on API operations](~~44211~~).
public CreateKeyResponseBody.KeyMetadata build()
Copyright © 2023. All rights reserved.