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.ExplicitlySetBmcModel
Information 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 Summary
Nested Classes Modifier and Type Class Description static class
KmsKey.Builder
static class
KmsKey.KmsKeyState
The current state of the encryption key assigned to this Hosted Environment.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KmsKey.Builder
builder()
Create a new builder.boolean
equals(Object o)
String
getId()
The OCID of the KMS encryption key assigned to this Hosted Environment.KmsKey.KmsKeyState
getKmsKeyState()
The current state of the encryption key assigned to this Hosted Environment.String
getKmsVaultId()
The OCID of the vault containing the encryption key assigned to this Hosted Environment.Date
getTimeCreated()
The timestamp when encryption key was first enabled for this Hosted Environment.Date
getTimeUpdated()
The timestamp of the last update to the encryption key status.int
hashCode()
KmsKey.Builder
toBuilder()
String
toString()
String
toString(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
-
builder
public static KmsKey.Builder builder()
Create a new builder.
-
toBuilder
public KmsKey.Builder toBuilder()
-
getId
public 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
-
getKmsVaultId
public 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
-
getKmsKeyState
public 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
-
getTimeCreated
public Date getTimeCreated()
The timestamp when encryption key was first enabled for this Hosted Environment.RFC3339 formatted.
- Returns:
- the value
-
getTimeUpdated
public Date getTimeUpdated()
The timestamp of the last update to the encryption key status.RFC3339 formatted.
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public 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
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-