Class ResourceRequirements
java.lang.Object
com.azure.resourcemanager.containerinstance.models.ResourceRequirements
The resource requirements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlimits()Get the limits property: The resource limits of this container instance.requests()Get the requests property: The resource requests of this container instance.voidvalidate()Validates the instance.withLimits(ResourceLimits limits) Set the limits property: The resource limits of this container instance.withRequests(ResourceRequests requests) Set the requests property: The resource requests of this container instance.
-
Constructor Details
-
ResourceRequirements
public ResourceRequirements()Creates an instance of ResourceRequirements class.
-
-
Method Details
-
requests
Get the requests property: The resource requests of this container instance.- Returns:
- the requests value.
-
withRequests
Set the requests property: The resource requests of this container instance.- Parameters:
requests- the requests value to set.- Returns:
- the ResourceRequirements object itself.
-
limits
Get the limits property: The resource limits of this container instance.- Returns:
- the limits value.
-
withLimits
Set the limits property: The resource limits of this container instance.- Parameters:
limits- the limits value to set.- Returns:
- the ResourceRequirements object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-