Class ContainerResourceRequirements
java.lang.Object
com.azure.resourcemanager.machinelearning.models.ContainerResourceRequirements
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerResourceRequirements>
public final class ContainerResourceRequirements
extends Object
implements com.azure.json.JsonSerializable<ContainerResourceRequirements>
Resource requirements for each container instance within an online deployment.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ContainerResourceRequirements class. -
Method Summary
Modifier and TypeMethodDescriptionGet the containerResourceLimits property: Container resource limit info:.Get the containerResourceRequests property: Container resource request info:.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerResourceRequirements from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withContainerResourceLimits(ContainerResourceSettings containerResourceLimits) Set the containerResourceLimits property: Container resource limit info:.withContainerResourceRequests(ContainerResourceSettings containerResourceRequests) Set the containerResourceRequests property: Container resource request info:.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ContainerResourceRequirements
public ContainerResourceRequirements()Creates an instance of ContainerResourceRequirements class.
-
-
Method Details
-
containerResourceRequests
Get the containerResourceRequests property: Container resource request info:.- Returns:
- the containerResourceRequests value.
-
withContainerResourceRequests
public ContainerResourceRequirements withContainerResourceRequests(ContainerResourceSettings containerResourceRequests) Set the containerResourceRequests property: Container resource request info:.- Parameters:
containerResourceRequests- the containerResourceRequests value to set.- Returns:
- the ContainerResourceRequirements object itself.
-
containerResourceLimits
Get the containerResourceLimits property: Container resource limit info:.- Returns:
- the containerResourceLimits value.
-
withContainerResourceLimits
public ContainerResourceRequirements withContainerResourceLimits(ContainerResourceSettings containerResourceLimits) Set the containerResourceLimits property: Container resource limit info:.- Parameters:
containerResourceLimits- the containerResourceLimits value to set.- Returns:
- the ContainerResourceRequirements object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ContainerResourceRequirements>- Throws:
IOException
-
fromJson
public static ContainerResourceRequirements fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ContainerResourceRequirements from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ContainerResourceRequirements if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ContainerResourceRequirements.
-