Class ResourceConfig

java.lang.Object
com.azure.resourcemanager.appservice.models.ResourceConfig

public final class ResourceConfig extends Object
Function app resource requirements.
  • Constructor Details

    • ResourceConfig

      public ResourceConfig()
      Creates an instance of ResourceConfig class.
  • Method Details

    • cpu

      public Double cpu()
      Get the cpu property: Required CPU in cores, e.g. 0.5.
      Returns:
      the cpu value.
    • withCpu

      public ResourceConfig withCpu(Double cpu)
      Set the cpu property: Required CPU in cores, e.g. 0.5.
      Parameters:
      cpu - the cpu value to set.
      Returns:
      the ResourceConfig object itself.
    • memory

      public String memory()
      Get the memory property: Required memory, e.g. "1Gi".
      Returns:
      the memory value.
    • withMemory

      public ResourceConfig withMemory(String memory)
      Set the memory property: Required memory, e.g. "1Gi".
      Parameters:
      memory - the memory value to set.
      Returns:
      the ResourceConfig object itself.
    • validate

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