BuildResourceRequests Class
- java.
lang. Object - com.
azure. resourcemanager. appplatform. models. BuildResourceRequests
- com.
Implements
public final class BuildResourceRequests
implements JsonSerializable<BuildResourceRequests>
Resource request payload of Build Resource.
Constructor Summary
Constructor | Description |
---|---|
BuildResourceRequests() |
Creates an instance of Build |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
cpu()
Get the cpu property: Optional Cpu allocated to the build resource. |
static
Build |
fromJson(JsonReader jsonReader)
Reads an instance of Build |
String |
memory()
Get the memory property: Optional Memory allocated to the build resource. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Build |
withCpu(String cpu)
Set the cpu property: Optional Cpu allocated to the build resource. |
Build |
withMemory(String memory)
Set the memory property: Optional Memory allocated to the build resource. |
Methods inherited from java.lang.Object
Constructor Details
BuildResourceRequests
public BuildResourceRequests()
Creates an instance of BuildResourceRequests class.
Method Details
cpu
public String cpu()
Get the cpu property: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or 1000m. The default value is 1, this should not exceed build service agent pool cpu size.
Returns:
fromJson
public static BuildResourceRequests fromJson(JsonReader jsonReader)
Reads an instance of BuildResourceRequests from the JsonReader.
Parameters:
Returns:
Throws:
memory
public String memory()
Get the memory property: Optional Memory allocated to the build resource. 1 GB can be represented by 1Gi or 1024Mi. The default value is 2Gi, this should not exceed build service agent pool memory size.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCpu
public BuildResourceRequests withCpu(String cpu)
Set the cpu property: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or 1000m. The default value is 1, this should not exceed build service agent pool cpu size.
Parameters:
Returns:
withMemory
public BuildResourceRequests withMemory(String memory)
Set the memory property: Optional Memory allocated to the build resource. 1 GB can be represented by 1Gi or 1024Mi. The default value is 2Gi, this should not exceed build service agent pool memory size.
Parameters:
Returns:
Applies to
Azure SDK for Java