GatewayResourceRequests Class
- java.
lang. Object - com.
azure. resourcemanager. appplatform. models. GatewayResourceRequests
- com.
Implements
public final class GatewayResourceRequests
implements JsonSerializable<GatewayResourceRequests>
Resource request payload of Spring Cloud Gateway.
Constructor Summary
Constructor | Description |
---|---|
GatewayResourceRequests() |
Creates an instance of Gateway |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
cpu()
Get the cpu property: Cpu allocated to each Spring Cloud Gateway instance. |
static
Gateway |
fromJson(JsonReader jsonReader)
Reads an instance of Gateway |
String |
memory()
Get the memory property: Memory allocated to each Spring Cloud Gateway instance. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Gateway |
withCpu(String cpu)
Set the cpu property: Cpu allocated to each Spring Cloud Gateway instance. |
Gateway |
withMemory(String memory)
Set the memory property: Memory allocated to each Spring Cloud Gateway instance. |
Methods inherited from java.lang.Object
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:
fromJson
public static GatewayResourceRequests fromJson(JsonReader jsonReader)
Reads an instance of GatewayResourceRequests from the JsonReader.
Parameters:
Returns:
Throws:
memory
public String memory()
Get the memory property: Memory allocated to each Spring Cloud Gateway instance.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCpu
public GatewayResourceRequests withCpu(String cpu)
Set the cpu property: Cpu allocated to each Spring Cloud Gateway instance.
Parameters:
Returns:
withMemory
public GatewayResourceRequests withMemory(String memory)
Set the memory property: Memory allocated to each Spring Cloud Gateway instance.
Parameters:
Returns:
Applies to
Azure SDK for Java