Class OccCustomerGroup.Builder
- java.lang.Object
-
- com.oracle.bmc.capacitymanagement.model.OccCustomerGroup.Builder
-
- Enclosing class:
- OccCustomerGroup
public static class OccCustomerGroup.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OccCustomerGroup
build()
OccCustomerGroup.Builder
compartmentId(String compartmentId)
The OCID of the tenancy containing the customer group.OccCustomerGroup.Builder
copy(OccCustomerGroup model)
OccCustomerGroup.Builder
customersList(List<OccCustomer> customersList)
A list containing all the customers that belong to this customer groupOccCustomerGroup.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.OccCustomerGroup.Builder
description(String description)
The description about the customer group.OccCustomerGroup.Builder
displayName(String displayName)
The display name of the customer group.OccCustomerGroup.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.OccCustomerGroup.Builder
id(String id)
The OCID of the customer group.OccCustomerGroup.Builder
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.OccCustomerGroup.Builder
lifecycleState(OccCustomerGroup.LifecycleState lifecycleState)
The current lifecycle state of the resource.OccCustomerGroup.Builder
status(OccCustomerGroup.Status status)
To determine whether the customer group is enabled/disabled.OccCustomerGroup.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.OccCustomerGroup.Builder
timeCreated(Date timeCreated)
The time when the customer group was created.OccCustomerGroup.Builder
timeUpdated(Date timeUpdated)
The time when the customer group was last updated.
-
-
-
Method Detail
-
id
public OccCustomerGroup.Builder id(String id)
The OCID of the customer group.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public OccCustomerGroup.Builder compartmentId(String compartmentId)
The OCID of the tenancy containing the customer group.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
displayName
public OccCustomerGroup.Builder displayName(String displayName)
The display name of the customer group.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public OccCustomerGroup.Builder description(String description)
The description about the customer group.- Parameters:
description
- the value to set- Returns:
- this builder
-
timeCreated
public OccCustomerGroup.Builder timeCreated(Date timeCreated)
The time when the customer group was created.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public OccCustomerGroup.Builder timeUpdated(Date timeUpdated)
The time when the customer group was last updated.- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
status
public OccCustomerGroup.Builder status(OccCustomerGroup.Status status)
To determine whether the customer group is enabled/disabled.- Parameters:
status
- the value to set- Returns:
- this builder
-
lifecycleState
public OccCustomerGroup.Builder lifecycleState(OccCustomerGroup.LifecycleState lifecycleState)
The current lifecycle state of the resource.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public OccCustomerGroup.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 OccCustomerGroup.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 OccCustomerGroup.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 OccCustomerGroup.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
-
customersList
public OccCustomerGroup.Builder customersList(List<OccCustomer> customersList)
A list containing all the customers that belong to this customer group- Parameters:
customersList
- the value to set- Returns:
- this builder
-
build
public OccCustomerGroup build()
-
copy
public OccCustomerGroup.Builder copy(OccCustomerGroup model)
-
-