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 Details

    • RoleInstanceInner

      public RoleInstanceInner()
      Creates an instance of RoleInstanceInner class.
  • Method Details

    • id

      public String id()
      Get the id property: Resource Id.
      Returns:
      the id value.
    • name

      public String name()
      Get the name property: Resource Name.
      Returns:
      the name value.
    • type

      public String type()
      Get the type property: Resource Type.
      Returns:
      the type value.
    • location

      public String location()
      Get the location property: Resource Location.
      Returns:
      the location value.
    • tags

      public Map<String,String> tags()
      Get the tags property: Resource tags.
      Returns:
      the tags value.
    • sku

      public InstanceSku sku()
      Get the sku property: The role instance SKU.
      Returns:
      the sku value.
    • withSku

      public RoleInstanceInner withSku(InstanceSku sku)
      Set the sku property: The role instance SKU.
      Parameters:
      sku - the sku value to set.
      Returns:
      the RoleInstanceInner object itself.
    • properties

      public RoleInstancePropertiesInner properties()
      Get the properties property: Role instance properties.
      Returns:
      the properties value.
    • withProperties

      public RoleInstanceInner withProperties(RoleInstancePropertiesInner properties)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<RoleInstanceInner>
      Throws:
      IOException
    • fromJson

      public static RoleInstanceInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.