Class NodeProfile
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.NodeProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NodeProfile>
public final class NodeProfile
extends Object
implements com.azure.json.JsonSerializable<NodeProfile>
The node profile.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcount()Get the count property: The number of virtual machines.static NodeProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NodeProfile from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The node type.voidvalidate()Validates the instance.vmSize()Get the vmSize property: The virtual machine SKU.withCount(int count) Set the count property: The number of virtual machines.Set the type property: The node type.withVmSize(String vmSize) Set the vmSize property: The virtual machine SKU.Methods inherited from class 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
-
NodeProfile
public NodeProfile()Creates an instance of NodeProfile class.
-
-
Method Details
-
type
-
withType
Set the type property: The node type.- Parameters:
type- the type value to set.- Returns:
- the NodeProfile object itself.
-
vmSize
-
withVmSize
Set the vmSize property: The virtual machine SKU.- Parameters:
vmSize- the vmSize value to set.- Returns:
- the NodeProfile object itself.
-
count
public int count()Get the count property: The number of virtual machines.- Returns:
- the count value.
-
withCount
Set the count property: The number of virtual machines.- Parameters:
count- the count value to set.- Returns:
- the NodeProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<NodeProfile>- Throws:
IOException
-
fromJson
Reads an instance of NodeProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NodeProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the NodeProfile.
-