Package com.oracle.bmc.core.model
Class InstancePoolInstance.Builder
- java.lang.Object
-
- com.oracle.bmc.core.model.InstancePoolInstance.Builder
-
- Enclosing class:
- InstancePoolInstance
public static class InstancePoolInstance.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstancePoolInstance.Builder
availabilityDomain(String availabilityDomain)
The availability domain the instance is running in.InstancePoolInstance
build()
InstancePoolInstance.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the instance.InstancePoolInstance.Builder
copy(InstancePoolInstance model)
InstancePoolInstance.Builder
displayName(String displayName)
A user-friendly name.InstancePoolInstance.Builder
faultDomain(String faultDomain)
The fault domain the instance is running in.InstancePoolInstance.Builder
id(String id)
The OCID of the instance.InstancePoolInstance.Builder
instanceConfigurationId(String instanceConfigurationId)
The OCID of the instance configuration used to create the instance.InstancePoolInstance.Builder
instancePoolId(String instancePoolId)
The OCID of the instance pool.InstancePoolInstance.Builder
lifecycleState(InstancePoolInstance.LifecycleState lifecycleState)
The attachment state of the instance in relation to the instance pool.InstancePoolInstance.Builder
loadBalancerBackends(List<InstancePoolInstanceLoadBalancerBackend> loadBalancerBackends)
The load balancer backends that are configured for the instance.InstancePoolInstance.Builder
region(String region)
The region that contains the availability domain the instance is running in.InstancePoolInstance.Builder
shape(String shape)
The shape of the instance.InstancePoolInstance.Builder
state(String state)
The lifecycle state of the instance.InstancePoolInstance.Builder
timeCreated(Date timeCreated)
The date and time the instance pool instance was created, in the format defined by RFC3339.
-
-
-
Method Detail
-
id
public InstancePoolInstance.Builder id(String id)
The OCID of the instance.- Parameters:
id
- the value to set- Returns:
- this builder
-
instancePoolId
public InstancePoolInstance.Builder instancePoolId(String instancePoolId)
The OCID of the instance pool.- Parameters:
instancePoolId
- the value to set- Returns:
- this builder
-
availabilityDomain
public InstancePoolInstance.Builder availabilityDomain(String availabilityDomain)
The availability domain the instance is running in.- Parameters:
availabilityDomain
- the value to set- Returns:
- this builder
-
lifecycleState
public InstancePoolInstance.Builder lifecycleState(InstancePoolInstance.LifecycleState lifecycleState)
The attachment state of the instance in relation to the instance pool.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
compartmentId
public InstancePoolInstance.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the instance.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
displayName
public InstancePoolInstance.Builder displayName(String displayName)
A user-friendly name.Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
faultDomain
public InstancePoolInstance.Builder faultDomain(String faultDomain)
The fault domain the instance is running in.- Parameters:
faultDomain
- the value to set- Returns:
- this builder
-
instanceConfigurationId
public InstancePoolInstance.Builder instanceConfigurationId(String instanceConfigurationId)
The OCID of the instance configuration used to create the instance.- Parameters:
instanceConfigurationId
- the value to set- Returns:
- this builder
-
region
public InstancePoolInstance.Builder region(String region)
The region that contains the availability domain the instance is running in.- Parameters:
region
- the value to set- Returns:
- this builder
-
shape
public InstancePoolInstance.Builder shape(String shape)
The shape of the instance.The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance.
- Parameters:
shape
- the value to set- Returns:
- this builder
-
state
public InstancePoolInstance.Builder state(String state)
The lifecycle state of the instance.Refer to lifecycleState in the
Instance
resource.- Parameters:
state
- the value to set- Returns:
- this builder
-
timeCreated
public InstancePoolInstance.Builder timeCreated(Date timeCreated)
The date and time the instance pool instance was created, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
loadBalancerBackends
public InstancePoolInstance.Builder loadBalancerBackends(List<InstancePoolInstanceLoadBalancerBackend> loadBalancerBackends)
The load balancer backends that are configured for the instance.- Parameters:
loadBalancerBackends
- the value to set- Returns:
- this builder
-
build
public InstancePoolInstance build()
-
copy
public InstancePoolInstance.Builder copy(InstancePoolInstance model)
-
-