Class LicenseRecord.Builder
- java.lang.Object
-
- com.oracle.bmc.licensemanager.model.LicenseRecord.Builder
-
- Enclosing class:
- LicenseRecord
public static class LicenseRecord.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LicenseRecord
build()
LicenseRecord.Builder
compartmentId(String compartmentId)
The compartment OCID where the license record is created.LicenseRecord.Builder
copy(LicenseRecord model)
LicenseRecord.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.LicenseRecord.Builder
displayName(String displayName)
The license record display name.LicenseRecord.Builder
expirationDate(Date expirationDate)
The license record end date in RFC 3339 date format.LicenseRecord.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type, or scope.LicenseRecord.Builder
id(String id)
The license record OCID.LicenseRecord.Builder
isPerpetual(Boolean isPerpetual)
Specifies if the license record term is perpertual.LicenseRecord.Builder
isUnlimited(Boolean isUnlimited)
Specifies if the license count is unlimited.LicenseRecord.Builder
licenseCount(Integer licenseCount)
The number of license units added by the user for the given license record.LicenseRecord.Builder
licenseUnit(LicenseUnit licenseUnit)
The product license unit.LicenseRecord.Builder
lifecycleState(LifeCycleState lifecycleState)
The current license record state.LicenseRecord.Builder
productId(String productId)
The license record product ID.LicenseRecord.Builder
productLicense(String productLicense)
The product license name with which the license record is associated.LicenseRecord.Builder
productLicenseId(String productLicenseId)
The product license OCID with which the license record is associated.LicenseRecord.Builder
supportEndDate(Date supportEndDate)
The license record support end date in RFC 3339 date format.LicenseRecord.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.LicenseRecord.Builder
timeCreated(Date timeCreated)
The time the license record was created.LicenseRecord.Builder
timeUpdated(Date timeUpdated)
The time the license record was updated.
-
-
-
Method Detail
-
id
public LicenseRecord.Builder id(String id)
The license record OCID.- Parameters:
id
- the value to set- Returns:
- this builder
-
productLicenseId
public LicenseRecord.Builder productLicenseId(String productLicenseId)
The product license OCID with which the license record is associated.- Parameters:
productLicenseId
- the value to set- Returns:
- this builder
-
compartmentId
public LicenseRecord.Builder compartmentId(String compartmentId)
The compartment OCID where the license record is created.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
displayName
public LicenseRecord.Builder displayName(String displayName)
The license record display name.Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
productId
public LicenseRecord.Builder productId(String productId)
The license record product ID.- Parameters:
productId
- the value to set- Returns:
- this builder
-
licenseCount
public LicenseRecord.Builder licenseCount(Integer licenseCount)
The number of license units added by the user for the given license record.Default 1
- Parameters:
licenseCount
- the value to set- Returns:
- this builder
-
expirationDate
public LicenseRecord.Builder expirationDate(Date expirationDate)
The license record end date in RFC 3339 date format.Example: 2018-09-12
- Parameters:
expirationDate
- the value to set- Returns:
- this builder
-
supportEndDate
public LicenseRecord.Builder supportEndDate(Date supportEndDate)
The license record support end date in RFC 3339 date format.Example: 2018-09-12
- Parameters:
supportEndDate
- the value to set- Returns:
- this builder
-
isUnlimited
public LicenseRecord.Builder isUnlimited(Boolean isUnlimited)
Specifies if the license count is unlimited.- Parameters:
isUnlimited
- the value to set- Returns:
- this builder
-
isPerpetual
public LicenseRecord.Builder isPerpetual(Boolean isPerpetual)
Specifies if the license record term is perpertual.- Parameters:
isPerpetual
- the value to set- Returns:
- this builder
-
timeCreated
public LicenseRecord.Builder timeCreated(Date timeCreated)
The time the license record was created.An RFC 3339-formatted datetime string.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public LicenseRecord.Builder timeUpdated(Date timeUpdated)
The time the license record was updated.An RFC 3339-formatted datetime string.
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
lifecycleState
public LicenseRecord.Builder lifecycleState(LifeCycleState lifecycleState)
The current license record state.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
licenseUnit
public LicenseRecord.Builder licenseUnit(LicenseUnit licenseUnit)
The product license unit.- Parameters:
licenseUnit
- the value to set- Returns:
- this builder
-
productLicense
public LicenseRecord.Builder productLicense(String productLicense)
The product license name with which the license record is associated.- Parameters:
productLicense
- the value to set- Returns:
- this builder
-
freeformTags
public LicenseRecord.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”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public LicenseRecord.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”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
systemTags
public LicenseRecord.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public LicenseRecord build()
-
copy
public LicenseRecord.Builder copy(LicenseRecord model)
-
-