ResourceConfig Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. ResourceConfig
- com.
Implements
public final class ResourceConfig
implements JsonSerializable<ResourceConfig>
Function app resource requirements.
Constructor Summary
Constructor | Description |
---|---|
ResourceConfig() |
Creates an instance of Resource |
Method Summary
Modifier and Type | Method and Description |
---|---|
Double |
cpu()
Get the cpu property: Required CPU in cores, e. |
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
String |
memory()
Get the memory property: Required memory, e. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Resource |
withCpu(Double cpu)
Set the cpu property: Required CPU in cores, e. |
Resource |
withMemory(String memory)
Set the memory property: Required memory, e. |
Methods inherited from java.lang.Object
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:
fromJson
public static ResourceConfig fromJson(JsonReader jsonReader)
Reads an instance of ResourceConfig from the JsonReader.
Parameters:
Returns:
Throws:
memory
public String memory()
Get the memory property: Required memory, e.g. "1Gi".
Returns:
toJson
validate
public void validate()
Validates the instance.
withCpu
public ResourceConfig withCpu(Double cpu)
Set the cpu property: Required CPU in cores, e.g. 0.5.
Parameters:
Returns:
withMemory
public ResourceConfig withMemory(String memory)
Set the memory property: Required memory, e.g. "1Gi".
Parameters:
Returns:
Applies to
Azure SDK for Java