Class JavaDownloadToken.Builder
- java.lang.Object
-
- com.oracle.bmc.jmsjavadownloads.model.JavaDownloadToken.Builder
-
- Enclosing class:
- JavaDownloadToken
public static class JavaDownloadToken.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JavaDownloadToken
build()
JavaDownloadToken.Builder
compartmentId(String compartmentId)
The OCID of the tenancy scoped to the JavaDownloadToken.JavaDownloadToken.Builder
copy(JavaDownloadToken model)
JavaDownloadToken.Builder
createdBy(Principal createdBy)
JavaDownloadToken.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.JavaDownloadToken.Builder
description(String description)
User provided description of the JavaDownloadToken.JavaDownloadToken.Builder
displayName(String displayName)
User provided display name of the JavaDownloadToken.JavaDownloadToken.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type, or scope.JavaDownloadToken.Builder
id(String id)
The OCID of the JavaDownloadToken.JavaDownloadToken.Builder
isDefault(Boolean isDefault)
A flag to indicate if the token is default.JavaDownloadToken.Builder
javaVersion(String javaVersion)
The associated Java version of the JavaDownloadToken.JavaDownloadToken.Builder
lastUpdatedBy(Principal lastUpdatedBy)
JavaDownloadToken.Builder
licenseType(List<LicenseType> licenseType)
The license type(s) associated with the JavaDownloadToken.JavaDownloadToken.Builder
lifecycleDetails(TokenLifecycleDetails lifecycleDetails)
Possible lifecycle substates.JavaDownloadToken.Builder
lifecycleState(LifecycleState lifecycleState)
The current state of the JavaDownloadToken.JavaDownloadToken.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.JavaDownloadToken.Builder
timeCreated(Date timeCreated)
The time the JavaDownloadToken was created, displayed as an RFC3339 formatted datetime string.JavaDownloadToken.Builder
timeExpires(Date timeExpires)
The expiry time of the JavaDownloadToken, displayed as an RFC3339 formatted datetime string.JavaDownloadToken.Builder
timeLastUsed(Date timeLastUsed)
The time the JavaDownloadToken was last used for download, displayed as an RFC3339 formatted datetime string.JavaDownloadToken.Builder
timeUpdated(Date timeUpdated)
The time the JavaDownloadToken was updated, displayed as an RFC3339 formatted datetime string.JavaDownloadToken.Builder
value(String value)
Uniquely generated value for the JavaDownloadToken.
-
-
-
Method Detail
-
id
public JavaDownloadToken.Builder id(String id)
The OCID of the JavaDownloadToken.- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public JavaDownloadToken.Builder displayName(String displayName)
User provided display name of the JavaDownloadToken.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
compartmentId
public JavaDownloadToken.Builder compartmentId(String compartmentId)
The OCID of the tenancy scoped to the JavaDownloadToken.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
createdBy
public JavaDownloadToken.Builder createdBy(Principal createdBy)
-
lastUpdatedBy
public JavaDownloadToken.Builder lastUpdatedBy(Principal lastUpdatedBy)
-
description
public JavaDownloadToken.Builder description(String description)
User provided description of the JavaDownloadToken.- Parameters:
description
- the value to set- Returns:
- this builder
-
value
public JavaDownloadToken.Builder value(String value)
Uniquely generated value for the JavaDownloadToken.- Parameters:
value
- the value to set- Returns:
- this builder
-
timeCreated
public JavaDownloadToken.Builder timeCreated(Date timeCreated)
The time the JavaDownloadToken was created, displayed as an RFC3339 formatted datetime string.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public JavaDownloadToken.Builder timeUpdated(Date timeUpdated)
The time the JavaDownloadToken was updated, displayed as an RFC3339 formatted datetime string.- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
timeLastUsed
public JavaDownloadToken.Builder timeLastUsed(Date timeLastUsed)
The time the JavaDownloadToken was last used for download, displayed as an RFC3339 formatted datetime string.- Parameters:
timeLastUsed
- the value to set- Returns:
- this builder
-
timeExpires
public JavaDownloadToken.Builder timeExpires(Date timeExpires)
The expiry time of the JavaDownloadToken, displayed as an RFC3339 formatted datetime string.- Parameters:
timeExpires
- the value to set- Returns:
- this builder
-
javaVersion
public JavaDownloadToken.Builder javaVersion(String javaVersion)
The associated Java version of the JavaDownloadToken.- Parameters:
javaVersion
- the value to set- Returns:
- this builder
-
licenseType
public JavaDownloadToken.Builder licenseType(List<LicenseType> licenseType)
The license type(s) associated with the JavaDownloadToken.- Parameters:
licenseType
- the value to set- Returns:
- this builder
-
isDefault
public JavaDownloadToken.Builder isDefault(Boolean isDefault)
A flag to indicate if the token is default.- Parameters:
isDefault
- the value to set- Returns:
- this builder
-
lifecycleState
public JavaDownloadToken.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the JavaDownloadToken.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public JavaDownloadToken.Builder lifecycleDetails(TokenLifecycleDetails lifecycleDetails)
Possible lifecycle substates.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
freeformTags
public JavaDownloadToken.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type, or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}. (See Managing Tags and Tag Namespaces.)
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public JavaDownloadToken.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}. (See Understanding Free-form Tags).
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
systemTags
public JavaDownloadToken.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system.
Example: {"orcl-cloud": {"free-tier-retained": "true"}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public JavaDownloadToken build()
-
copy
public JavaDownloadToken.Builder copy(JavaDownloadToken model)
-
-