Class VirtualNodePool.Builder
- java.lang.Object
-
- com.oracle.bmc.containerengine.model.VirtualNodePool.Builder
-
- Enclosing class:
- VirtualNodePool
public static class VirtualNodePool.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VirtualNodePool
build()
VirtualNodePool.Builder
clusterId(String clusterId)
The cluster the virtual node pool is associated with.VirtualNodePool.Builder
compartmentId(String compartmentId)
Compartment of the virtual node pool.VirtualNodePool.Builder
copy(VirtualNodePool model)
VirtualNodePool.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.VirtualNodePool.Builder
displayName(String displayName)
Display name of the virtual node pool.VirtualNodePool.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.VirtualNodePool.Builder
id(String id)
The OCID of the virtual node pool.VirtualNodePool.Builder
initialVirtualNodeLabels(List<InitialVirtualNodeLabel> initialVirtualNodeLabels)
Initial labels that will be added to the Kubernetes Virtual Node object when it registers.VirtualNodePool.Builder
kubernetesVersion(String kubernetesVersion)
The version of Kubernetes running on the nodes in the node pool.VirtualNodePool.Builder
lifecycleDetails(String lifecycleDetails)
Details about the state of the Virtual Node Pool.VirtualNodePool.Builder
lifecycleState(VirtualNodePoolLifecycleState lifecycleState)
The state of the Virtual Node Pool.VirtualNodePool.Builder
nsgIds(List<String> nsgIds)
List of network security group id’s applied to the Virtual Node VNIC.VirtualNodePool.Builder
placementConfigurations(List<PlacementConfiguration> placementConfigurations)
The list of placement configurations which determines where Virtual Nodes will be provisioned across as it relates to the subnet and availability domains.VirtualNodePool.Builder
podConfiguration(PodConfiguration podConfiguration)
The pod configuration for pods run on virtual nodes of this virtual node pool.VirtualNodePool.Builder
size(Integer size)
The number of Virtual Nodes that should be in the Virtual Node Pool.VirtualNodePool.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.VirtualNodePool.Builder
taints(List<Taint> taints)
A taint is a collection of <key, value, effect>.VirtualNodePool.Builder
timeCreated(Date timeCreated)
The time the virtual node pool was created.VirtualNodePool.Builder
timeUpdated(Date timeUpdated)
The time the virtual node pool was updated.VirtualNodePool.Builder
virtualNodeTags(VirtualNodeTags virtualNodeTags)
-
-
-
Method Detail
-
id
public VirtualNodePool.Builder id(String id)
The OCID of the virtual node pool.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public VirtualNodePool.Builder compartmentId(String compartmentId)
Compartment of the virtual node pool.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
clusterId
public VirtualNodePool.Builder clusterId(String clusterId)
The cluster the virtual node pool is associated with.A virtual node pool can only be associated with one cluster.
- Parameters:
clusterId
- the value to set- Returns:
- this builder
-
displayName
public VirtualNodePool.Builder displayName(String displayName)
Display name of the virtual node pool.This is a non-unique value.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
kubernetesVersion
public VirtualNodePool.Builder kubernetesVersion(String kubernetesVersion)
The version of Kubernetes running on the nodes in the node pool.- Parameters:
kubernetesVersion
- the value to set- Returns:
- this builder
-
initialVirtualNodeLabels
public VirtualNodePool.Builder initialVirtualNodeLabels(List<InitialVirtualNodeLabel> initialVirtualNodeLabels)
Initial labels that will be added to the Kubernetes Virtual Node object when it registers.This is the same as virtualNodePool resources.
- Parameters:
initialVirtualNodeLabels
- the value to set- Returns:
- this builder
-
taints
public VirtualNodePool.Builder taints(List<Taint> taints)
A taint is a collection of <key, value, effect>.These taints will be applied to the Virtual Nodes of this Virtual Node Pool for Kubernetes scheduling.
- Parameters:
taints
- the value to set- Returns:
- this builder
-
size
public VirtualNodePool.Builder size(Integer size)
The number of Virtual Nodes that should be in the Virtual Node Pool.The placement configurations determine where these virtual nodes are placed.
- Parameters:
size
- the value to set- Returns:
- this builder
-
placementConfigurations
public VirtualNodePool.Builder placementConfigurations(List<PlacementConfiguration> placementConfigurations)
The list of placement configurations which determines where Virtual Nodes will be provisioned across as it relates to the subnet and availability domains.The size attribute determines how many we evenly spread across these placement configurations
- Parameters:
placementConfigurations
- the value to set- Returns:
- this builder
-
nsgIds
public VirtualNodePool.Builder nsgIds(List<String> nsgIds)
List of network security group id’s applied to the Virtual Node VNIC.- Parameters:
nsgIds
- the value to set- Returns:
- this builder
-
podConfiguration
public VirtualNodePool.Builder podConfiguration(PodConfiguration podConfiguration)
The pod configuration for pods run on virtual nodes of this virtual node pool.- Parameters:
podConfiguration
- the value to set- Returns:
- this builder
-
lifecycleState
public VirtualNodePool.Builder lifecycleState(VirtualNodePoolLifecycleState lifecycleState)
The state of the Virtual Node Pool.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public VirtualNodePool.Builder lifecycleDetails(String lifecycleDetails)
Details about the state of the Virtual Node Pool.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
timeCreated
public VirtualNodePool.Builder timeCreated(Date timeCreated)
The time the virtual node pool was created.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public VirtualNodePool.Builder timeUpdated(Date timeUpdated)
The time the virtual node pool was updated.- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
freeformTags
public VirtualNodePool.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {“Department”: “Finance”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public VirtualNodePool.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
systemTags
public VirtualNodePool.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
-
virtualNodeTags
public VirtualNodePool.Builder virtualNodeTags(VirtualNodeTags virtualNodeTags)
-
build
public VirtualNodePool build()
-
copy
public VirtualNodePool.Builder copy(VirtualNodePool model)
-
-