Class ApiKeyItem
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.generativeai.model.ApiKeyItem
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20231130") public final class ApiKeyItem extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe ApiKey item.
Note: Objects should always be created or deserialized using theApiKeyItem.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 theApiKeyItem.Builder, which maintain a set of all explicitly set fields calledApiKeyItem.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 classApiKeyItem.Builderstatic classApiKeyItem.StateThe current state of the API key item.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ApiKeyItem.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetKey()The key.StringgetKeyMask()The masked key.StringgetKeyName()The key name.ApiKeyItem.StategetState()The current state of the API key item.DategetTimeActivated()The date and time that the key is activated in the format of an RFC3339 datetime string.DategetTimeCreated()The date and time that the key was created in the format of an RFC3339 datetime string.DategetTimeDeactivated()The date and time that the key is deactivated in the format of an RFC3339 datetime string.DategetTimeExpiry()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.DategetTimeLastUsed()The date and time that the key is last used in the format of an RFC3339 datetime string.DategetTimeRevoked()The date and time that the key is revoked in the format of an RFC3339 datetime string.inthashCode()ApiKeyItem.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
ApiKeyItem
@Deprecated @ConstructorProperties({"key","keyName","keyMask","timeCreated","timeExpiry","timeActivated","timeDeactivated","timeRevoked","timeLastUsed","state"}) public ApiKeyItem(String key, String keyName, String keyMask, Date timeCreated, Date timeExpiry, Date timeActivated, Date timeDeactivated, Date timeRevoked, Date timeLastUsed, ApiKeyItem.State state)
Deprecated.
-
-
Method Detail
-
builder
public static ApiKeyItem.Builder builder()
Create a new builder.
-
toBuilder
public ApiKeyItem.Builder toBuilder()
-
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:
toStringin 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:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-