Class GatewayResourceRequests

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

public final class GatewayResourceRequests extends Object
Resource request payload of Spring Cloud Gateway.
  • Constructor Details

    • GatewayResourceRequests

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

    • cpu

      public String cpu()
      Get the cpu property: Cpu allocated to each Spring Cloud Gateway instance.
      Returns:
      the cpu value.
    • withCpu

      public GatewayResourceRequests withCpu(String cpu)
      Set the cpu property: Cpu allocated to each Spring Cloud Gateway instance.
      Parameters:
      cpu - the cpu value to set.
      Returns:
      the GatewayResourceRequests object itself.
    • memory

      public String memory()
      Get the memory property: Memory allocated to each Spring Cloud Gateway instance.
      Returns:
      the memory value.
    • withMemory

      public GatewayResourceRequests withMemory(String memory)
      Set the memory property: Memory allocated to each Spring Cloud Gateway instance.
      Parameters:
      memory - the memory value to set.
      Returns:
      the GatewayResourceRequests object itself.
    • validate

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