OpenShiftManagedClusterAgentPoolProfile Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. OpenShiftManagedClusterAgentPoolProfile
- com.
Implements
public final class OpenShiftManagedClusterAgentPoolProfile
implements JsonSerializable<OpenShiftManagedClusterAgentPoolProfile>
Defines the configuration of the OpenShift cluster VMs.
Constructor Summary
Constructor | Description |
---|---|
OpenShiftManagedClusterAgentPoolProfile() |
Creates an instance of Open |
Method Summary
Modifier and Type | Method and Description |
---|---|
int |
count()
Get the count property: Number of agents (VMs) to host docker containers. |
static
Open |
fromJson(JsonReader jsonReader)
Reads an instance of Open |
String |
name()
Get the name property: Unique name of the pool profile in the context of the subscription and resource group. |
OSType |
osType()
Get the os |
Open |
role()
Get the role property: Define the role of the Agent |
String |
subnetCidr()
Get the subnet |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Open |
vmSize()
Get the vm |
Open |
withCount(int count)
Set the count property: Number of agents (VMs) to host docker containers. |
Open |
withName(String name)
Set the name property: Unique name of the pool profile in the context of the subscription and resource group. |
Open |
withOsType(OSType osType)
Set the os |
Open |
withRole(OpenShiftAgentPoolProfileRole role)
Set the role property: Define the role of the Agent |
Open |
withSubnetCidr(String subnetCidr)
Set the subnet |
Open |
withVmSize(OpenShiftContainerServiceVMSize vmSize)
Set the vm |
Methods inherited from java.lang.Object
Constructor Details
OpenShiftManagedClusterAgentPoolProfile
public OpenShiftManagedClusterAgentPoolProfile()
Creates an instance of OpenShiftManagedClusterAgentPoolProfile class.
Method Details
count
public int count()
Get the count property: Number of agents (VMs) to host docker containers.
Returns:
fromJson
public static OpenShiftManagedClusterAgentPoolProfile fromJson(JsonReader jsonReader)
Reads an instance of OpenShiftManagedClusterAgentPoolProfile from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Unique name of the pool profile in the context of the subscription and resource group.
Returns:
osType
public OSType osType()
Get the osType property: OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux.
Returns:
role
public OpenShiftAgentPoolProfileRole role()
Get the role property: Define the role of the AgentPoolProfile.
Returns:
subnetCidr
public String subnetCidr()
Get the subnetCidr property: Subnet CIDR for the peering.
Returns:
toJson
validate
public void validate()
Validates the instance.
vmSize
public OpenShiftContainerServiceVMSize vmSize()
Get the vmSize property: Size of agent VMs.
Returns:
withCount
public OpenShiftManagedClusterAgentPoolProfile withCount(int count)
Set the count property: Number of agents (VMs) to host docker containers.
Parameters:
Returns:
withName
public OpenShiftManagedClusterAgentPoolProfile withName(String name)
Set the name property: Unique name of the pool profile in the context of the subscription and resource group.
Parameters:
Returns:
withOsType
public OpenShiftManagedClusterAgentPoolProfile withOsType(OSType osType)
Set the osType property: OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux.
Parameters:
Returns:
withRole
public OpenShiftManagedClusterAgentPoolProfile withRole(OpenShiftAgentPoolProfileRole role)
Set the role property: Define the role of the AgentPoolProfile.
Parameters:
Returns:
withSubnetCidr
public OpenShiftManagedClusterAgentPoolProfile withSubnetCidr(String subnetCidr)
Set the subnetCidr property: Subnet CIDR for the peering.
Parameters:
Returns:
withVmSize
public OpenShiftManagedClusterAgentPoolProfile withVmSize(OpenShiftContainerServiceVMSize vmSize)
Set the vmSize property: Size of agent VMs.
Parameters:
Returns:
Applies to
Azure SDK for Java