Class ResourceRequests

java.lang.Object
com.azure.resourcemanager.appplatform.models.ResourceRequests

public final class ResourceRequests extends Object
Deployment resource request payload.
  • Constructor Details

    • ResourceRequests

      public ResourceRequests()
  • Method Details

    • cpu

      public String cpu()
      Get the cpu property: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for Basic tier, and {500m, 1, 2, 3, 4} for Standard tier.
      Returns:
      the cpu value.
    • withCpu

      public ResourceRequests withCpu(String cpu)
      Set the cpu property: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for Basic tier, and {500m, 1, 2, 3, 4} for Standard tier.
      Parameters:
      cpu - the cpu value to set.
      Returns:
      the ResourceRequests object itself.
    • memory

      public String memory()
      Get the memory property: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier.
      Returns:
      the memory value.
    • withMemory

      public ResourceRequests withMemory(String memory)
      Set the memory property: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier.
      Parameters:
      memory - the memory value to set.
      Returns:
      the ResourceRequests object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.