ResourceRequirements Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. ResourceRequirements
- com.
Implements
public final class ResourceRequirements
implements JsonSerializable<ResourceRequirements>
The resource requirements.
Constructor Summary
Constructor | Description |
---|---|
ResourceRequirements() |
Creates an instance of Resource |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
Resource |
limits()
Get the limits property: The resource limits of this container instance. |
Resource |
requests()
Get the requests property: The resource requests of this container instance. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Resource |
withLimits(ResourceLimits limits)
Set the limits property: The resource limits of this container instance. |
Resource |
withRequests(ResourceRequests requests)
Set the requests property: The resource requests of this container instance. |
Methods inherited from java.lang.Object
Constructor Details
ResourceRequirements
public ResourceRequirements()
Creates an instance of ResourceRequirements class.
Method Details
fromJson
public static ResourceRequirements fromJson(JsonReader jsonReader)
Reads an instance of ResourceRequirements from the JsonReader.
Parameters:
Returns:
Throws:
limits
public ResourceLimits limits()
Get the limits property: The resource limits of this container instance.
Returns:
requests
public ResourceRequests requests()
Get the requests property: The resource requests of this container instance.
Returns:
toJson
validate
public void validate()
Validates the instance.
withLimits
public ResourceRequirements withLimits(ResourceLimits limits)
Set the limits property: The resource limits of this container instance.
Parameters:
Returns:
withRequests
public ResourceRequirements withRequests(ResourceRequests requests)
Set the requests property: The resource requests of this container instance.
Parameters:
Returns:
Applies to
Azure SDK for Java