All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ibm.cloud.objectstorage.services.kms.model.KeyMetadata Maven / Gradle / Ivy

Go to download

A single bundled dependency that includes all service and dependent JARs with third-party libraries relocated to different namespaces.

There is a newer version: 2.14.0
Show newest version
/*
 * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.ibm.cloud.objectstorage.services.kms.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.ibm.cloud.objectstorage.protocol.ProtocolMarshaller;
import com.ibm.cloud.objectstorage.protocol.StructuredPojo;

/**
 * 

* Contains metadata about a customer master key (CMK). *

*

* This data type is used as a response element for the CreateKey and DescribeKey operations. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class KeyMetadata implements Serializable, Cloneable, StructuredPojo { /** *

* The twelve-digit account ID of the AWS account that owns the CMK. *

*/ private String aWSAccountId; /** *

* The globally unique identifier for the CMK. *

*/ private String keyId; /** *

* The Amazon Resource Name (ARN) of the CMK. For examples, see AWS Key * Management Service (AWS KMS) in the Example ARNs section of the AWS General Reference. *

*/ private String arn; /** *

* The date and time when the CMK was created. *

*/ private java.util.Date creationDate; /** *

* Specifies whether the CMK is enabled. When KeyState is Enabled this value is true, * otherwise it is false. *

*/ private Boolean enabled; /** *

* The description of the CMK. *

*/ private String description; /** *

* The cryptographic operations for which you can use the CMK. Currently the only allowed value is * ENCRYPT_DECRYPT, which means you can use the CMK for the Encrypt and Decrypt * operations. *

*/ private String keyUsage; /** *

* The state of the CMK. *

*

* For more information about how key state affects the use of a CMK, see How Key State Affects the Use of a * Customer Master Key in the AWS Key Management Service Developer Guide. *

*/ private String keyState; /** *

* The date and time after which AWS KMS deletes the CMK. This value is present only when KeyState is * PendingDeletion, otherwise this value is omitted. *

*/ private java.util.Date deletionDate; /** *

* The time at which the imported key material expires. When the key material expires, AWS KMS deletes the key * material and the CMK becomes unusable. This value is present only for CMKs whose Origin is * EXTERNAL and whose ExpirationModel is KEY_MATERIAL_EXPIRES, otherwise this * value is omitted. *

*/ private java.util.Date validTo; /** *

* The source of the CMK's key material. When this value is AWS_KMS, AWS KMS created the key material. * When this value is EXTERNAL, the key material was imported from your existing key management * infrastructure or the CMK lacks key material. *

*/ private String origin; /** *

* Specifies whether the CMK's key material expires. This value is present only when Origin is * EXTERNAL, otherwise this value is omitted. *

*/ private String expirationModel; /** *

* The twelve-digit account ID of the AWS account that owns the CMK. *

* * @param aWSAccountId * The twelve-digit account ID of the AWS account that owns the CMK. */ public void setAWSAccountId(String aWSAccountId) { this.aWSAccountId = aWSAccountId; } /** *

* The twelve-digit account ID of the AWS account that owns the CMK. *

* * @return The twelve-digit account ID of the AWS account that owns the CMK. */ public String getAWSAccountId() { return this.aWSAccountId; } /** *

* The twelve-digit account ID of the AWS account that owns the CMK. *

* * @param aWSAccountId * The twelve-digit account ID of the AWS account that owns the CMK. * @return Returns a reference to this object so that method calls can be chained together. */ public KeyMetadata withAWSAccountId(String aWSAccountId) { setAWSAccountId(aWSAccountId); return this; } /** *

* The globally unique identifier for the CMK. *

* * @param keyId * The globally unique identifier for the CMK. */ public void setKeyId(String keyId) { this.keyId = keyId; } /** *

* The globally unique identifier for the CMK. *

* * @return The globally unique identifier for the CMK. */ public String getKeyId() { return this.keyId; } /** *

* The globally unique identifier for the CMK. *

* * @param keyId * The globally unique identifier for the CMK. * @return Returns a reference to this object so that method calls can be chained together. */ public KeyMetadata withKeyId(String keyId) { setKeyId(keyId); return this; } /** *

* The Amazon Resource Name (ARN) of the CMK. For examples, see AWS Key * Management Service (AWS KMS) in the Example ARNs section of the AWS General Reference. *

* * @param arn * The Amazon Resource Name (ARN) of the CMK. For examples, see AWS Key * Management Service (AWS KMS) in the Example ARNs section of the AWS General Reference. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon Resource Name (ARN) of the CMK. For examples, see AWS Key * Management Service (AWS KMS) in the Example ARNs section of the AWS General Reference. *

* * @return The Amazon Resource Name (ARN) of the CMK. For examples, see AWS Key * Management Service (AWS KMS) in the Example ARNs section of the AWS General Reference. */ public String getArn() { return this.arn; } /** *

* The Amazon Resource Name (ARN) of the CMK. For examples, see AWS Key * Management Service (AWS KMS) in the Example ARNs section of the AWS General Reference. *

* * @param arn * The Amazon Resource Name (ARN) of the CMK. For examples, see AWS Key * Management Service (AWS KMS) in the Example ARNs section of the AWS General Reference. * @return Returns a reference to this object so that method calls can be chained together. */ public KeyMetadata withArn(String arn) { setArn(arn); return this; } /** *

* The date and time when the CMK was created. *

* * @param creationDate * The date and time when the CMK was created. */ public void setCreationDate(java.util.Date creationDate) { this.creationDate = creationDate; } /** *

* The date and time when the CMK was created. *

* * @return The date and time when the CMK was created. */ public java.util.Date getCreationDate() { return this.creationDate; } /** *

* The date and time when the CMK was created. *

* * @param creationDate * The date and time when the CMK was created. * @return Returns a reference to this object so that method calls can be chained together. */ public KeyMetadata withCreationDate(java.util.Date creationDate) { setCreationDate(creationDate); return this; } /** *

* Specifies whether the CMK is enabled. When KeyState is Enabled this value is true, * otherwise it is false. *

* * @param enabled * Specifies whether the CMK is enabled. When KeyState is Enabled this value is * true, otherwise it is false. */ public void setEnabled(Boolean enabled) { this.enabled = enabled; } /** *

* Specifies whether the CMK is enabled. When KeyState is Enabled this value is true, * otherwise it is false. *

* * @return Specifies whether the CMK is enabled. When KeyState is Enabled this value is * true, otherwise it is false. */ public Boolean getEnabled() { return this.enabled; } /** *

* Specifies whether the CMK is enabled. When KeyState is Enabled this value is true, * otherwise it is false. *

* * @param enabled * Specifies whether the CMK is enabled. When KeyState is Enabled this value is * true, otherwise it is false. * @return Returns a reference to this object so that method calls can be chained together. */ public KeyMetadata withEnabled(Boolean enabled) { setEnabled(enabled); return this; } /** *

* Specifies whether the CMK is enabled. When KeyState is Enabled this value is true, * otherwise it is false. *

* * @return Specifies whether the CMK is enabled. When KeyState is Enabled this value is * true, otherwise it is false. */ public Boolean isEnabled() { return this.enabled; } /** *

* The description of the CMK. *

* * @param description * The description of the CMK. */ public void setDescription(String description) { this.description = description; } /** *

* The description of the CMK. *

* * @return The description of the CMK. */ public String getDescription() { return this.description; } /** *

* The description of the CMK. *

* * @param description * The description of the CMK. * @return Returns a reference to this object so that method calls can be chained together. */ public KeyMetadata withDescription(String description) { setDescription(description); return this; } /** *

* The cryptographic operations for which you can use the CMK. Currently the only allowed value is * ENCRYPT_DECRYPT, which means you can use the CMK for the Encrypt and Decrypt * operations. *

* * @param keyUsage * The cryptographic operations for which you can use the CMK. Currently the only allowed value is * ENCRYPT_DECRYPT, which means you can use the CMK for the Encrypt and Decrypt * operations. * @see KeyUsageType */ public void setKeyUsage(String keyUsage) { this.keyUsage = keyUsage; } /** *

* The cryptographic operations for which you can use the CMK. Currently the only allowed value is * ENCRYPT_DECRYPT, which means you can use the CMK for the Encrypt and Decrypt * operations. *

* * @return The cryptographic operations for which you can use the CMK. Currently the only allowed value is * ENCRYPT_DECRYPT, which means you can use the CMK for the Encrypt and Decrypt * operations. * @see KeyUsageType */ public String getKeyUsage() { return this.keyUsage; } /** *

* The cryptographic operations for which you can use the CMK. Currently the only allowed value is * ENCRYPT_DECRYPT, which means you can use the CMK for the Encrypt and Decrypt * operations. *

* * @param keyUsage * The cryptographic operations for which you can use the CMK. Currently the only allowed value is * ENCRYPT_DECRYPT, which means you can use the CMK for the Encrypt and Decrypt * operations. * @return Returns a reference to this object so that method calls can be chained together. * @see KeyUsageType */ public KeyMetadata withKeyUsage(String keyUsage) { setKeyUsage(keyUsage); return this; } /** *

* The cryptographic operations for which you can use the CMK. Currently the only allowed value is * ENCRYPT_DECRYPT, which means you can use the CMK for the Encrypt and Decrypt * operations. *

* * @param keyUsage * The cryptographic operations for which you can use the CMK. Currently the only allowed value is * ENCRYPT_DECRYPT, which means you can use the CMK for the Encrypt and Decrypt * operations. * @see KeyUsageType */ public void setKeyUsage(KeyUsageType keyUsage) { this.keyUsage = keyUsage.toString(); } /** *

* The cryptographic operations for which you can use the CMK. Currently the only allowed value is * ENCRYPT_DECRYPT, which means you can use the CMK for the Encrypt and Decrypt * operations. *

* * @param keyUsage * The cryptographic operations for which you can use the CMK. Currently the only allowed value is * ENCRYPT_DECRYPT, which means you can use the CMK for the Encrypt and Decrypt * operations. * @return Returns a reference to this object so that method calls can be chained together. * @see KeyUsageType */ public KeyMetadata withKeyUsage(KeyUsageType keyUsage) { setKeyUsage(keyUsage); return this; } /** *

* The state of the CMK. *

*

* For more information about how key state affects the use of a CMK, see How Key State Affects the Use of a * Customer Master Key in the AWS Key Management Service Developer Guide. *

* * @param keyState * The state of the CMK.

*

* For more information about how key state affects the use of a CMK, see How Key State Affects the Use * of a Customer Master Key in the AWS Key Management Service Developer Guide. * @see KeyState */ public void setKeyState(String keyState) { this.keyState = keyState; } /** *

* The state of the CMK. *

*

* For more information about how key state affects the use of a CMK, see How Key State Affects the Use of a * Customer Master Key in the AWS Key Management Service Developer Guide. *

* * @return The state of the CMK.

*

* For more information about how key state affects the use of a CMK, see How Key State Affects the Use * of a Customer Master Key in the AWS Key Management Service Developer Guide. * @see KeyState */ public String getKeyState() { return this.keyState; } /** *

* The state of the CMK. *

*

* For more information about how key state affects the use of a CMK, see How Key State Affects the Use of a * Customer Master Key in the AWS Key Management Service Developer Guide. *

* * @param keyState * The state of the CMK.

*

* For more information about how key state affects the use of a CMK, see How Key State Affects the Use * of a Customer Master Key in the AWS Key Management Service Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see KeyState */ public KeyMetadata withKeyState(String keyState) { setKeyState(keyState); return this; } /** *

* The state of the CMK. *

*

* For more information about how key state affects the use of a CMK, see How Key State Affects the Use of a * Customer Master Key in the AWS Key Management Service Developer Guide. *

* * @param keyState * The state of the CMK.

*

* For more information about how key state affects the use of a CMK, see How Key State Affects the Use * of a Customer Master Key in the AWS Key Management Service Developer Guide. * @see KeyState */ public void setKeyState(KeyState keyState) { this.keyState = keyState.toString(); } /** *

* The state of the CMK. *

*

* For more information about how key state affects the use of a CMK, see How Key State Affects the Use of a * Customer Master Key in the AWS Key Management Service Developer Guide. *

* * @param keyState * The state of the CMK.

*

* For more information about how key state affects the use of a CMK, see How Key State Affects the Use * of a Customer Master Key in the AWS Key Management Service Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see KeyState */ public KeyMetadata withKeyState(KeyState keyState) { setKeyState(keyState); return this; } /** *

* The date and time after which AWS KMS deletes the CMK. This value is present only when KeyState is * PendingDeletion, otherwise this value is omitted. *

* * @param deletionDate * The date and time after which AWS KMS deletes the CMK. This value is present only when * KeyState is PendingDeletion, otherwise this value is omitted. */ public void setDeletionDate(java.util.Date deletionDate) { this.deletionDate = deletionDate; } /** *

* The date and time after which AWS KMS deletes the CMK. This value is present only when KeyState is * PendingDeletion, otherwise this value is omitted. *

* * @return The date and time after which AWS KMS deletes the CMK. This value is present only when * KeyState is PendingDeletion, otherwise this value is omitted. */ public java.util.Date getDeletionDate() { return this.deletionDate; } /** *

* The date and time after which AWS KMS deletes the CMK. This value is present only when KeyState is * PendingDeletion, otherwise this value is omitted. *

* * @param deletionDate * The date and time after which AWS KMS deletes the CMK. This value is present only when * KeyState is PendingDeletion, otherwise this value is omitted. * @return Returns a reference to this object so that method calls can be chained together. */ public KeyMetadata withDeletionDate(java.util.Date deletionDate) { setDeletionDate(deletionDate); return this; } /** *

* The time at which the imported key material expires. When the key material expires, AWS KMS deletes the key * material and the CMK becomes unusable. This value is present only for CMKs whose Origin is * EXTERNAL and whose ExpirationModel is KEY_MATERIAL_EXPIRES, otherwise this * value is omitted. *

* * @param validTo * The time at which the imported key material expires. When the key material expires, AWS KMS deletes the * key material and the CMK becomes unusable. This value is present only for CMKs whose Origin * is EXTERNAL and whose ExpirationModel is KEY_MATERIAL_EXPIRES, * otherwise this value is omitted. */ public void setValidTo(java.util.Date validTo) { this.validTo = validTo; } /** *

* The time at which the imported key material expires. When the key material expires, AWS KMS deletes the key * material and the CMK becomes unusable. This value is present only for CMKs whose Origin is * EXTERNAL and whose ExpirationModel is KEY_MATERIAL_EXPIRES, otherwise this * value is omitted. *

* * @return The time at which the imported key material expires. When the key material expires, AWS KMS deletes the * key material and the CMK becomes unusable. This value is present only for CMKs whose Origin * is EXTERNAL and whose ExpirationModel is KEY_MATERIAL_EXPIRES, * otherwise this value is omitted. */ public java.util.Date getValidTo() { return this.validTo; } /** *

* The time at which the imported key material expires. When the key material expires, AWS KMS deletes the key * material and the CMK becomes unusable. This value is present only for CMKs whose Origin is * EXTERNAL and whose ExpirationModel is KEY_MATERIAL_EXPIRES, otherwise this * value is omitted. *

* * @param validTo * The time at which the imported key material expires. When the key material expires, AWS KMS deletes the * key material and the CMK becomes unusable. This value is present only for CMKs whose Origin * is EXTERNAL and whose ExpirationModel is KEY_MATERIAL_EXPIRES, * otherwise this value is omitted. * @return Returns a reference to this object so that method calls can be chained together. */ public KeyMetadata withValidTo(java.util.Date validTo) { setValidTo(validTo); return this; } /** *

* The source of the CMK's key material. When this value is AWS_KMS, AWS KMS created the key material. * When this value is EXTERNAL, the key material was imported from your existing key management * infrastructure or the CMK lacks key material. *

* * @param origin * The source of the CMK's key material. When this value is AWS_KMS, AWS KMS created the key * material. When this value is EXTERNAL, the key material was imported from your existing key * management infrastructure or the CMK lacks key material. * @see OriginType */ public void setOrigin(String origin) { this.origin = origin; } /** *

* The source of the CMK's key material. When this value is AWS_KMS, AWS KMS created the key material. * When this value is EXTERNAL, the key material was imported from your existing key management * infrastructure or the CMK lacks key material. *

* * @return The source of the CMK's key material. When this value is AWS_KMS, AWS KMS created the key * material. When this value is EXTERNAL, the key material was imported from your existing key * management infrastructure or the CMK lacks key material. * @see OriginType */ public String getOrigin() { return this.origin; } /** *

* The source of the CMK's key material. When this value is AWS_KMS, AWS KMS created the key material. * When this value is EXTERNAL, the key material was imported from your existing key management * infrastructure or the CMK lacks key material. *

* * @param origin * The source of the CMK's key material. When this value is AWS_KMS, AWS KMS created the key * material. When this value is EXTERNAL, the key material was imported from your existing key * management infrastructure or the CMK lacks key material. * @return Returns a reference to this object so that method calls can be chained together. * @see OriginType */ public KeyMetadata withOrigin(String origin) { setOrigin(origin); return this; } /** *

* The source of the CMK's key material. When this value is AWS_KMS, AWS KMS created the key material. * When this value is EXTERNAL, the key material was imported from your existing key management * infrastructure or the CMK lacks key material. *

* * @param origin * The source of the CMK's key material. When this value is AWS_KMS, AWS KMS created the key * material. When this value is EXTERNAL, the key material was imported from your existing key * management infrastructure or the CMK lacks key material. * @see OriginType */ public void setOrigin(OriginType origin) { this.origin = origin.toString(); } /** *

* The source of the CMK's key material. When this value is AWS_KMS, AWS KMS created the key material. * When this value is EXTERNAL, the key material was imported from your existing key management * infrastructure or the CMK lacks key material. *

* * @param origin * The source of the CMK's key material. When this value is AWS_KMS, AWS KMS created the key * material. When this value is EXTERNAL, the key material was imported from your existing key * management infrastructure or the CMK lacks key material. * @return Returns a reference to this object so that method calls can be chained together. * @see OriginType */ public KeyMetadata withOrigin(OriginType origin) { setOrigin(origin); return this; } /** *

* Specifies whether the CMK's key material expires. This value is present only when Origin is * EXTERNAL, otherwise this value is omitted. *

* * @param expirationModel * Specifies whether the CMK's key material expires. This value is present only when Origin is * EXTERNAL, otherwise this value is omitted. * @see ExpirationModelType */ public void setExpirationModel(String expirationModel) { this.expirationModel = expirationModel; } /** *

* Specifies whether the CMK's key material expires. This value is present only when Origin is * EXTERNAL, otherwise this value is omitted. *

* * @return Specifies whether the CMK's key material expires. This value is present only when Origin is * EXTERNAL, otherwise this value is omitted. * @see ExpirationModelType */ public String getExpirationModel() { return this.expirationModel; } /** *

* Specifies whether the CMK's key material expires. This value is present only when Origin is * EXTERNAL, otherwise this value is omitted. *

* * @param expirationModel * Specifies whether the CMK's key material expires. This value is present only when Origin is * EXTERNAL, otherwise this value is omitted. * @return Returns a reference to this object so that method calls can be chained together. * @see ExpirationModelType */ public KeyMetadata withExpirationModel(String expirationModel) { setExpirationModel(expirationModel); return this; } /** *

* Specifies whether the CMK's key material expires. This value is present only when Origin is * EXTERNAL, otherwise this value is omitted. *

* * @param expirationModel * Specifies whether the CMK's key material expires. This value is present only when Origin is * EXTERNAL, otherwise this value is omitted. * @see ExpirationModelType */ public void setExpirationModel(ExpirationModelType expirationModel) { this.expirationModel = expirationModel.toString(); } /** *

* Specifies whether the CMK's key material expires. This value is present only when Origin is * EXTERNAL, otherwise this value is omitted. *

* * @param expirationModel * Specifies whether the CMK's key material expires. This value is present only when Origin is * EXTERNAL, otherwise this value is omitted. * @return Returns a reference to this object so that method calls can be chained together. * @see ExpirationModelType */ public KeyMetadata withExpirationModel(ExpirationModelType expirationModel) { setExpirationModel(expirationModel); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAWSAccountId() != null) sb.append("AWSAccountId: ").append(getAWSAccountId()).append(","); if (getKeyId() != null) sb.append("KeyId: ").append(getKeyId()).append(","); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getCreationDate() != null) sb.append("CreationDate: ").append(getCreationDate()).append(","); if (getEnabled() != null) sb.append("Enabled: ").append(getEnabled()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getKeyUsage() != null) sb.append("KeyUsage: ").append(getKeyUsage()).append(","); if (getKeyState() != null) sb.append("KeyState: ").append(getKeyState()).append(","); if (getDeletionDate() != null) sb.append("DeletionDate: ").append(getDeletionDate()).append(","); if (getValidTo() != null) sb.append("ValidTo: ").append(getValidTo()).append(","); if (getOrigin() != null) sb.append("Origin: ").append(getOrigin()).append(","); if (getExpirationModel() != null) sb.append("ExpirationModel: ").append(getExpirationModel()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof KeyMetadata == false) return false; KeyMetadata other = (KeyMetadata) obj; if (other.getAWSAccountId() == null ^ this.getAWSAccountId() == null) return false; if (other.getAWSAccountId() != null && other.getAWSAccountId().equals(this.getAWSAccountId()) == false) return false; if (other.getKeyId() == null ^ this.getKeyId() == null) return false; if (other.getKeyId() != null && other.getKeyId().equals(this.getKeyId()) == false) return false; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false) return false; if (other.getEnabled() == null ^ this.getEnabled() == null) return false; if (other.getEnabled() != null && other.getEnabled().equals(this.getEnabled()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getKeyUsage() == null ^ this.getKeyUsage() == null) return false; if (other.getKeyUsage() != null && other.getKeyUsage().equals(this.getKeyUsage()) == false) return false; if (other.getKeyState() == null ^ this.getKeyState() == null) return false; if (other.getKeyState() != null && other.getKeyState().equals(this.getKeyState()) == false) return false; if (other.getDeletionDate() == null ^ this.getDeletionDate() == null) return false; if (other.getDeletionDate() != null && other.getDeletionDate().equals(this.getDeletionDate()) == false) return false; if (other.getValidTo() == null ^ this.getValidTo() == null) return false; if (other.getValidTo() != null && other.getValidTo().equals(this.getValidTo()) == false) return false; if (other.getOrigin() == null ^ this.getOrigin() == null) return false; if (other.getOrigin() != null && other.getOrigin().equals(this.getOrigin()) == false) return false; if (other.getExpirationModel() == null ^ this.getExpirationModel() == null) return false; if (other.getExpirationModel() != null && other.getExpirationModel().equals(this.getExpirationModel()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAWSAccountId() == null) ? 0 : getAWSAccountId().hashCode()); hashCode = prime * hashCode + ((getKeyId() == null) ? 0 : getKeyId().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getEnabled() == null) ? 0 : getEnabled().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getKeyUsage() == null) ? 0 : getKeyUsage().hashCode()); hashCode = prime * hashCode + ((getKeyState() == null) ? 0 : getKeyState().hashCode()); hashCode = prime * hashCode + ((getDeletionDate() == null) ? 0 : getDeletionDate().hashCode()); hashCode = prime * hashCode + ((getValidTo() == null) ? 0 : getValidTo().hashCode()); hashCode = prime * hashCode + ((getOrigin() == null) ? 0 : getOrigin().hashCode()); hashCode = prime * hashCode + ((getExpirationModel() == null) ? 0 : getExpirationModel().hashCode()); return hashCode; } @Override public KeyMetadata clone() { try { return (KeyMetadata) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.ibm.cloud.objectstorage.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.ibm.cloud.objectstorage.services.kms.model.transform.KeyMetadataMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy