public static class InstanceSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
InstanceSummary.Builder |
availabilityDomain(String availabilityDomain)
The availability domain the instance is running in.
|
InstanceSummary |
build() |
InstanceSummary.Builder |
compartmentId(String compartmentId)
The OCID of the compartment that contains the instance.
|
InstanceSummary.Builder |
copy(InstanceSummary model) |
InstanceSummary.Builder |
displayName(String displayName)
A user-friendly name.
|
InstanceSummary.Builder |
faultDomain(String faultDomain)
The fault domain the instance is running in.
|
InstanceSummary.Builder |
id(String id)
The OCID of the instance.
|
InstanceSummary.Builder |
instanceConfigurationId(String instanceConfigurationId)
The OCID of the instance confgiuration used to create the instance.
|
InstanceSummary.Builder |
loadBalancerBackends(List<InstancePoolInstanceLoadBalancerBackend> loadBalancerBackends)
The load balancer backends that are configured for the instance pool instance.
|
InstanceSummary.Builder |
region(String region)
The region that contains the availability domain the instance is running in.
|
InstanceSummary.Builder |
shape(String shape)
The shape of an instance.
|
InstanceSummary.Builder |
state(String state)
The current state of the instance pool instance.
|
InstanceSummary.Builder |
timeCreated(Date timeCreated)
The date and time the instance pool instance was created, in the format defined by
RFC3339.
|
public InstanceSummary.Builder id(String id)
The OCID of the instance.
id
- the value to setpublic InstanceSummary.Builder availabilityDomain(String availabilityDomain)
The availability domain the instance is running in.
availabilityDomain
- the value to setpublic InstanceSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the instance.
compartmentId
- the value to setpublic InstanceSummary.Builder displayName(String displayName)
A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
displayName
- the value to setpublic InstanceSummary.Builder faultDomain(String faultDomain)
The fault domain the instance is running in.
faultDomain
- the value to setpublic InstanceSummary.Builder instanceConfigurationId(String instanceConfigurationId)
The OCID of the instance confgiuration used to create the instance.
instanceConfigurationId
- the value to setpublic InstanceSummary.Builder region(String region)
The region that contains the availability domain the instance is running in.
region
- the value to setpublic InstanceSummary.Builder shape(String shape)
The shape of an instance. The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance.
You can enumerate all available shapes by calling listShapes
.
shape
- the value to setpublic InstanceSummary.Builder state(String state)
The current state of the instance pool instance.
state
- the value to setpublic InstanceSummary.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
timeCreated
- the value to setpublic InstanceSummary.Builder loadBalancerBackends(List<InstancePoolInstanceLoadBalancerBackend> loadBalancerBackends)
The load balancer backends that are configured for the instance pool instance.
loadBalancerBackends
- the value to setpublic InstanceSummary build()
public InstanceSummary.Builder copy(InstanceSummary model)
Copyright © 2016–2024. All rights reserved.