Class ApiKeyItem


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20231130")
    public final class ApiKeyItem
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    The ApiKey item.
    Note: Objects should always be created or deserialized using the ApiKeyItem.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 the ApiKeyItem.Builder, which maintain a set of all explicitly set fields called ApiKeyItem.Builder.__explicitlySet__. The hashCode() and equals(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).
    • Method Detail

      • getKey

        public String getKey()
        The key.
        Returns:
        the value
      • getKeyName

        public String getKeyName()
        The key name.
        Returns:
        the value
      • getKeyMask

        public String getKeyMask()
        The masked key.
        Returns:
        the value
      • getTimeCreated

        public Date getTimeCreated()
        The date and time that the key was created in the format of an RFC3339 datetime string.
        Returns:
        the value
      • getTimeExpiry

        public Date getTimeExpiry()
        The date and time when the key would be expired, if not provided it would be 90 days, in the format defined by RFC 3339.
        Returns:
        the value
      • getTimeActivated

        public Date getTimeActivated()
        The date and time that the key is activated in the format of an RFC3339 datetime string.
        Returns:
        the value
      • getTimeDeactivated

        public Date getTimeDeactivated()
        The date and time that the key is deactivated in the format of an RFC3339 datetime string.
        Returns:
        the value
      • getTimeRevoked

        public Date getTimeRevoked()
        The date and time that the key is revoked in the format of an RFC3339 datetime string.
        Returns:
        the value
      • getTimeLastUsed

        public Date getTimeLastUsed()
        The date and time that the key is last used in the format of an RFC3339 datetime string.
        Returns:
        the value
      • getState

        public ApiKeyItem.State getState()
        The current state of the API key item.
        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.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 class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel