Class InstanceTypeSchema
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.InstanceTypeSchema
-
public final class InstanceTypeSchema extends Object
Instance type schema.
-
-
Constructor Summary
Constructors Constructor Description InstanceTypeSchema()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
nodeSelector()
Get the nodeSelector property: Node Selector.InstanceTypeSchemaResources
resources()
Get the resources property: Resource requests/limits for this instance type.void
validate()
Validates the instance.InstanceTypeSchema
withNodeSelector(Map<String,String> nodeSelector)
Set the nodeSelector property: Node Selector.InstanceTypeSchema
withResources(InstanceTypeSchemaResources resources)
Set the resources property: Resource requests/limits for this instance type.
-
-
-
Method Detail
-
nodeSelector
public Map<String,String> nodeSelector()
Get the nodeSelector property: Node Selector.- Returns:
- the nodeSelector value.
-
withNodeSelector
public InstanceTypeSchema withNodeSelector(Map<String,String> nodeSelector)
Set the nodeSelector property: Node Selector.- Parameters:
nodeSelector
- the nodeSelector value to set.- Returns:
- the InstanceTypeSchema object itself.
-
resources
public InstanceTypeSchemaResources resources()
Get the resources property: Resource requests/limits for this instance type.- Returns:
- the resources value.
-
withResources
public InstanceTypeSchema withResources(InstanceTypeSchemaResources resources)
Set the resources property: Resource requests/limits for this instance type.- Parameters:
resources
- the resources value to set.- Returns:
- the InstanceTypeSchema object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-