Class OccCapacityRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.Builder
-
- Enclosing class:
- OccCapacityRequest
public static class OccCapacityRequest.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OccCapacityRequest.BuilderavailabilityDomain(String availabilityDomain)The availability domain (AD) for which the capacity request was made.OccCapacityRequestbuild()OccCapacityRequest.BuildercompartmentId(String compartmentId)The OCID of the tenancy from which the request was made.OccCapacityRequest.Buildercopy(OccCapacityRequest model)OccCapacityRequest.BuilderdateExpectedCapacityHandover(Date dateExpectedCapacityHandover)The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.OccCapacityRequest.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.OccCapacityRequest.Builderdescription(String description)Meaningful text about the capacity request.OccCapacityRequest.Builderdetails(List<OccCapacityRequestBaseDetails> details)A list of resources requested as part of this requestOccCapacityRequest.BuilderdisplayName(String displayName)The display name of the capacity request.OccCapacityRequest.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.OccCapacityRequest.Builderid(String id)The OCID of the capacity request.OccCapacityRequest.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current state in more detail.OccCapacityRequest.BuilderlifecycleState(OccCapacityRequest.LifecycleState lifecycleState)The current lifecycle state of the resource.OccCapacityRequest.Buildernamespace(Namespace namespace)The name of the OCI service in consideration.OccCapacityRequest.BuilderoccAvailabilityCatalogId(String occAvailabilityCatalogId)The OCID of the availability catalog against which the capacity request was placed.OccCapacityRequest.BuilderoccCustomerGroupId(String occCustomerGroupId)The OCID of the customer group to which this customer belongs to.OccCapacityRequest.Builderregion(String region)The name of the region for which the capacity request was made.OccCapacityRequest.BuilderrequestState(OccCapacityRequest.RequestState requestState)The different states the capacity request goes through.OccCapacityRequest.BuilderrequestType(OccCapacityRequest.RequestType requestType)Type of Capacity Request(New or Transfer)OccCapacityRequest.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.OccCapacityRequest.BuildertimeCreated(Date timeCreated)The time when the capacity request was created.OccCapacityRequest.BuildertimeUpdated(Date timeUpdated)The time when the capacity request was updated.
-
-
-
Method Detail
-
id
public OccCapacityRequest.Builder id(String id)
The OCID of the capacity request.- Parameters:
id- the value to set- Returns:
- this builder
-
compartmentId
public OccCapacityRequest.Builder compartmentId(String compartmentId)
The OCID of the tenancy from which the request was made.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
occAvailabilityCatalogId
public OccCapacityRequest.Builder occAvailabilityCatalogId(String occAvailabilityCatalogId)
The OCID of the availability catalog against which the capacity request was placed.- Parameters:
occAvailabilityCatalogId- the value to set- Returns:
- this builder
-
displayName
public OccCapacityRequest.Builder displayName(String displayName)
The display name of the capacity request.- Parameters:
displayName- the value to set- Returns:
- this builder
-
description
public OccCapacityRequest.Builder description(String description)
Meaningful text about the capacity request.- Parameters:
description- the value to set- Returns:
- this builder
-
namespace
public OccCapacityRequest.Builder namespace(Namespace namespace)
The name of the OCI service in consideration.For example, Compute, Exadata, and so on.
- Parameters:
namespace- the value to set- Returns:
- this builder
-
occCustomerGroupId
public OccCapacityRequest.Builder occCustomerGroupId(String occCustomerGroupId)
The OCID of the customer group to which this customer belongs to.- Parameters:
occCustomerGroupId- the value to set- Returns:
- this builder
-
requestType
public OccCapacityRequest.Builder requestType(OccCapacityRequest.RequestType requestType)
Type of Capacity Request(New or Transfer)- Parameters:
requestType- the value to set- Returns:
- this builder
-
region
public OccCapacityRequest.Builder region(String region)
The name of the region for which the capacity request was made.- Parameters:
region- the value to set- Returns:
- this builder
-
availabilityDomain
public OccCapacityRequest.Builder availabilityDomain(String availabilityDomain)
The availability domain (AD) for which the capacity request was made.- Parameters:
availabilityDomain- the value to set- Returns:
- this builder
-
dateExpectedCapacityHandover
public OccCapacityRequest.Builder dateExpectedCapacityHandover(Date dateExpectedCapacityHandover)
The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.- Parameters:
dateExpectedCapacityHandover- the value to set- Returns:
- this builder
-
requestState
public OccCapacityRequest.Builder requestState(OccCapacityRequest.RequestState requestState)
The different states the capacity request goes through.- Parameters:
requestState- the value to set- Returns:
- this builder
-
timeCreated
public OccCapacityRequest.Builder timeCreated(Date timeCreated)
The time when the capacity request was created.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public OccCapacityRequest.Builder timeUpdated(Date timeUpdated)
The time when the capacity request was updated.- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
lifecycleState
public OccCapacityRequest.Builder lifecycleState(OccCapacityRequest.LifecycleState lifecycleState)
The current lifecycle state of the resource.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public OccCapacityRequest.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.For example, can be used to provide actionable information for a resource in a Failed State.
- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
freeformTags
public OccCapacityRequest.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 OccCapacityRequest.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 OccCapacityRequest.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
details
public OccCapacityRequest.Builder details(List<OccCapacityRequestBaseDetails> details)
A list of resources requested as part of this request- Parameters:
details- the value to set- Returns:
- this builder
-
build
public OccCapacityRequest build()
-
copy
public OccCapacityRequest.Builder copy(OccCapacityRequest model)
-
-