Class BuildResourceRequests
java.lang.Object
com.azure.resourcemanager.appplatform.models.BuildResourceRequests
Resource request payload of Build Resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncpu()Get the cpu property: Optional Cpu allocated to the build resource.memory()Get the memory property: Optional Memory allocated to the build resource.voidvalidate()Validates the instance.Set the cpu property: Optional Cpu allocated to the build resource.withMemory(String memory) Set the memory property: Optional Memory allocated to the build resource.
-
Constructor Details
-
BuildResourceRequests
public BuildResourceRequests()
-
-
Method Details
-
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:
- the cpu value.
-
withCpu
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:
cpu- the cpu value to set.- Returns:
- the BuildResourceRequests object itself.
-
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:
- the memory value.
-
withMemory
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:
memory- the memory value to set.- Returns:
- the BuildResourceRequests object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-