Class RoleInstanceInner
java.lang.Object
com.azure.resourcemanager.compute.fluent.models.RoleInstanceInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RoleInstanceInner>
public final class RoleInstanceInner
extends Object
implements com.azure.json.JsonSerializable<RoleInstanceInner>
Describes the cloud service role instance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RoleInstanceInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RoleInstanceInner from the JsonReader.id()Get the id property: Resource Id.location()Get the location property: Resource Location.name()Get the name property: Resource Name.Get the properties property: Role instance properties.sku()Get the sku property: The role instance SKU.tags()Get the tags property: Resource tags.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Resource Type.voidvalidate()Validates the instance.withProperties(RoleInstancePropertiesInner properties) Set the properties property: Role instance properties.withSku(InstanceSku sku) Set the sku property: The role instance SKU.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
-
RoleInstanceInner
public RoleInstanceInner()Creates an instance of RoleInstanceInner class.
-
-
Method Details
-
id
Get the id property: Resource Id.- Returns:
- the id value.
-
name
Get the name property: Resource Name.- Returns:
- the name value.
-
type
Get the type property: Resource Type.- Returns:
- the type value.
-
location
Get the location property: Resource Location.- Returns:
- the location value.
-
tags
Get the tags property: Resource tags.- Returns:
- the tags value.
-
sku
Get the sku property: The role instance SKU.- Returns:
- the sku value.
-
withSku
Set the sku property: The role instance SKU.- Parameters:
sku- the sku value to set.- Returns:
- the RoleInstanceInner object itself.
-
properties
Get the properties property: Role instance properties.- Returns:
- the properties value.
-
withProperties
Set the properties property: Role instance properties.- Parameters:
properties- the properties value to set.- Returns:
- the RoleInstanceInner 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<RoleInstanceInner>- Throws:
IOException
-
fromJson
Reads an instance of RoleInstanceInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RoleInstanceInner 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 RoleInstanceInner.
-