Class RoleInstancePropertiesInner
java.lang.Object
com.azure.resourcemanager.compute.fluent.models.RoleInstancePropertiesInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RoleInstancePropertiesInner>
public final class RoleInstancePropertiesInner
extends Object
implements com.azure.json.JsonSerializable<RoleInstancePropertiesInner>
Role instance properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RoleInstancePropertiesInner class. -
Method Summary
Modifier and TypeMethodDescriptionstatic RoleInstancePropertiesInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RoleInstancePropertiesInner from the JsonReader.Get the instanceView property: The instance view of the role instance.Get the networkProfile property: Describes the network profile for the role instance.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withInstanceView(RoleInstanceViewInner instanceView) Set the instanceView property: The instance view of the role instance.withNetworkProfile(RoleInstanceNetworkProfile networkProfile) Set the networkProfile property: Describes the network profile for the role instance.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
-
RoleInstancePropertiesInner
public RoleInstancePropertiesInner()Creates an instance of RoleInstancePropertiesInner class.
-
-
Method Details
-
networkProfile
Get the networkProfile property: Describes the network profile for the role instance.- Returns:
- the networkProfile value.
-
withNetworkProfile
Set the networkProfile property: Describes the network profile for the role instance.- Parameters:
networkProfile- the networkProfile value to set.- Returns:
- the RoleInstancePropertiesInner object itself.
-
instanceView
Get the instanceView property: The instance view of the role instance.- Returns:
- the instanceView value.
-
withInstanceView
Set the instanceView property: The instance view of the role instance.- Parameters:
instanceView- the instanceView value to set.- Returns:
- the RoleInstancePropertiesInner 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<RoleInstancePropertiesInner>- Throws:
IOException
-
fromJson
public static RoleInstancePropertiesInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RoleInstancePropertiesInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RoleInstancePropertiesInner 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 RoleInstancePropertiesInner.
-