Class BuildServiceAgentPoolSizeProperties
java.lang.Object
com.azure.resourcemanager.appplatform.models.BuildServiceAgentPoolSizeProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BuildServiceAgentPoolSizeProperties>
public final class BuildServiceAgentPoolSizeProperties
extends Object
implements com.azure.json.JsonSerializable<BuildServiceAgentPoolSizeProperties>
Build service agent pool size properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BuildServiceAgentPoolSizeProperties class. -
Method Summary
Modifier and TypeMethodDescriptioncpu()Get the cpu property: The cpu property of build service agent pool size.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BuildServiceAgentPoolSizeProperties from the JsonReader.memory()Get the memory property: The memory property of build service agent pool size.name()Get the name property: The name of build service agent pool size.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the name property: The name of build service agent pool size.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BuildServiceAgentPoolSizeProperties
public BuildServiceAgentPoolSizeProperties()Creates an instance of BuildServiceAgentPoolSizeProperties class.
-
-
Method Details
-
name
Get the name property: The name of build service agent pool size.- Returns:
- the name value.
-
withName
Set the name property: The name of build service agent pool size.- Parameters:
name- the name value to set.- Returns:
- the BuildServiceAgentPoolSizeProperties object itself.
-
cpu
Get the cpu property: The cpu property of build service agent pool size.- Returns:
- the cpu value.
-
memory
Get the memory property: The memory property of build service agent pool size.- Returns:
- the memory value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BuildServiceAgentPoolSizeProperties>- Throws:
IOException
-
fromJson
public static BuildServiceAgentPoolSizeProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BuildServiceAgentPoolSizeProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BuildServiceAgentPoolSizeProperties 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 BuildServiceAgentPoolSizeProperties.
-