Class KmsKey
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.nosql.model.KmsKey
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20190828") public final class KmsKey extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelInformation about the state of the service’s encryption key management.The following properties are read-only and ignored when this object is used in UpdateConfiguration: kmsKeyState, timeCreated, timeUpdated. 
 Note: Objects should always be created or deserialized using theKmsKey.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theKmsKey.Builder, which maintain a set of all explicitly set fields calledKmsKey.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classKmsKey.Builderstatic classKmsKey.KmsKeyStateThe current state of the encryption key assigned to this Hosted Environment.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KmsKey.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetId()The OCID of the KMS encryption key assigned to this Hosted Environment.KmsKey.KmsKeyStategetKmsKeyState()The current state of the encryption key assigned to this Hosted Environment.StringgetKmsVaultId()The OCID of the vault containing the encryption key assigned to this Hosted Environment.DategetTimeCreated()The timestamp when encryption key was first enabled for this Hosted Environment.DategetTimeUpdated()The timestamp of the last update to the encryption key status.inthashCode()KmsKey.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
KmsKey@Deprecated @ConstructorProperties({"id","kmsVaultId","kmsKeyState","timeCreated","timeUpdated"}) public KmsKey(String id, String kmsVaultId, KmsKey.KmsKeyState kmsKeyState, Date timeCreated, Date timeUpdated) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static KmsKey.Builder builder() Create a new builder.
 - 
toBuilderpublic KmsKey.Builder toBuilder() 
 - 
getIdpublic String getId() The OCID of the KMS encryption key assigned to this Hosted Environment.If the Hosted Environment is using an Oracle-managed Key, then the id will be a null string.. - Returns:
- the value
 
 - 
getKmsVaultIdpublic String getKmsVaultId() The OCID of the vault containing the encryption key assigned to this Hosted Environment.If the Hosted Environment is using an Oracle-managed Key, then the kmsVaultId will be a null string. - Returns:
- the value
 
 - 
getKmsKeyStatepublic KmsKey.KmsKeyState getKmsKeyState() The current state of the encryption key assigned to this Hosted Environment.Oracle-managed keys will always report an ACTIVE state. - Returns:
- the value
 
 - 
getTimeCreatedpublic Date getTimeCreated() The timestamp when encryption key was first enabled for this Hosted Environment.RFC3339 formatted. - Returns:
- the value
 
 - 
getTimeUpdatedpublic Date getTimeUpdated() The timestamp of the last update to the encryption key status.RFC3339 formatted. - Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-