Class GatewayResourceRequests
java.lang.Object
com.azure.resourcemanager.appplatform.models.GatewayResourceRequests
Resource request payload of Spring Cloud Gateway.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GatewayResourceRequests class. -
Method Summary
Modifier and TypeMethodDescriptioncpu()Get the cpu property: Cpu allocated to each Spring Cloud Gateway instance.memory()Get the memory property: Memory allocated to each Spring Cloud Gateway instance.voidvalidate()Validates the instance.Set the cpu property: Cpu allocated to each Spring Cloud Gateway instance.withMemory(String memory) Set the memory property: Memory allocated to each Spring Cloud Gateway instance.
-
Constructor Details
-
GatewayResourceRequests
public GatewayResourceRequests()Creates an instance of GatewayResourceRequests class.
-
-
Method Details
-
cpu
Get the cpu property: Cpu allocated to each Spring Cloud Gateway instance.- Returns:
- the cpu value.
-
withCpu
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
Get the memory property: Memory allocated to each Spring Cloud Gateway instance.- Returns:
- the memory value.
-
withMemory
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.
-