GatewayResourceRequests Class

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

Implements

public final class GatewayResourceRequests
implements JsonSerializable<GatewayResourceRequests>

Resource request payload of Spring Cloud Gateway.

Constructor Summary

Constructor Description
GatewayResourceRequests()

Creates an instance of GatewayResourceRequests class.

Method Summary

Modifier and Type Method and Description
String cpu()

Get the cpu property: Cpu allocated to each Spring Cloud Gateway instance.

static GatewayResourceRequests fromJson(JsonReader jsonReader)

Reads an instance of GatewayResourceRequests from the JsonReader.

String memory()

Get the memory property: Memory allocated to each Spring Cloud Gateway instance.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GatewayResourceRequests withCpu(String cpu)

Set the cpu property: Cpu allocated to each Spring Cloud Gateway instance.

GatewayResourceRequests 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:

the cpu value.

fromJson

public static GatewayResourceRequests fromJson(JsonReader jsonReader)

Reads an instance of GatewayResourceRequests from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GatewayResourceRequests if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the GatewayResourceRequests.

memory

public String memory()

Get the memory property: Memory allocated to each Spring Cloud Gateway instance.

Returns:

the memory value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

cpu - the cpu value to set.

Returns:

the GatewayResourceRequests object itself.

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.

Applies to