Class ApiKeyItem.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeai.model.ApiKeyItem.Builder
-
- Enclosing class:
- ApiKeyItem
public static class ApiKeyItem.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiKeyItembuild()ApiKeyItem.Buildercopy(ApiKeyItem model)ApiKeyItem.Builderkey(String key)The key.ApiKeyItem.BuilderkeyMask(String keyMask)The masked key.ApiKeyItem.BuilderkeyName(String keyName)The key name.ApiKeyItem.Builderstate(ApiKeyItem.State state)The current state of the API key item.ApiKeyItem.BuildertimeActivated(Date timeActivated)The date and time that the key is activated in the format of an RFC3339 datetime string.ApiKeyItem.BuildertimeCreated(Date timeCreated)The date and time that the key was created in the format of an RFC3339 datetime string.ApiKeyItem.BuildertimeDeactivated(Date timeDeactivated)The date and time that the key is deactivated in the format of an RFC3339 datetime string.ApiKeyItem.BuildertimeExpiry(Date timeExpiry)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.ApiKeyItem.BuildertimeLastUsed(Date timeLastUsed)The date and time that the key is last used in the format of an RFC3339 datetime string.ApiKeyItem.BuildertimeRevoked(Date timeRevoked)The date and time that the key is revoked in the format of an RFC3339 datetime string.
-
-
-
Method Detail
-
key
public ApiKeyItem.Builder key(String key)
The key.- Parameters:
key- the value to set- Returns:
- this builder
-
keyName
public ApiKeyItem.Builder keyName(String keyName)
The key name.- Parameters:
keyName- the value to set- Returns:
- this builder
-
keyMask
public ApiKeyItem.Builder keyMask(String keyMask)
The masked key.- Parameters:
keyMask- the value to set- Returns:
- this builder
-
timeCreated
public ApiKeyItem.Builder timeCreated(Date timeCreated)
The date and time that the key was created in the format of an RFC3339 datetime string.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeExpiry
public ApiKeyItem.Builder timeExpiry(Date timeExpiry)
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.- Parameters:
timeExpiry- the value to set- Returns:
- this builder
-
timeActivated
public ApiKeyItem.Builder timeActivated(Date timeActivated)
The date and time that the key is activated in the format of an RFC3339 datetime string.- Parameters:
timeActivated- the value to set- Returns:
- this builder
-
timeDeactivated
public ApiKeyItem.Builder timeDeactivated(Date timeDeactivated)
The date and time that the key is deactivated in the format of an RFC3339 datetime string.- Parameters:
timeDeactivated- the value to set- Returns:
- this builder
-
timeRevoked
public ApiKeyItem.Builder timeRevoked(Date timeRevoked)
The date and time that the key is revoked in the format of an RFC3339 datetime string.- Parameters:
timeRevoked- the value to set- Returns:
- this builder
-
timeLastUsed
public ApiKeyItem.Builder timeLastUsed(Date timeLastUsed)
The date and time that the key is last used in the format of an RFC3339 datetime string.- Parameters:
timeLastUsed- the value to set- Returns:
- this builder
-
state
public ApiKeyItem.Builder state(ApiKeyItem.State state)
The current state of the API key item.- Parameters:
state- the value to set- Returns:
- this builder
-
build
public ApiKeyItem build()
-
copy
public ApiKeyItem.Builder copy(ApiKeyItem model)
-
-