Class CloudServiceInstanceViewInner

java.lang.Object
com.azure.resourcemanager.compute.fluent.models.CloudServiceInstanceViewInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<CloudServiceInstanceViewInner>

public final class CloudServiceInstanceViewInner extends Object implements com.azure.json.JsonSerializable<CloudServiceInstanceViewInner>
InstanceView of CloudService as a whole.
  • Constructor Details

    • CloudServiceInstanceViewInner

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

    • roleInstance

      public InstanceViewStatusesSummary roleInstance()
      Get the roleInstance property: Instance view statuses.
      Returns:
      the roleInstance value.
    • withRoleInstance

      public CloudServiceInstanceViewInner withRoleInstance(InstanceViewStatusesSummary roleInstance)
      Set the roleInstance property: Instance view statuses.
      Parameters:
      roleInstance - the roleInstance value to set.
      Returns:
      the CloudServiceInstanceViewInner object itself.
    • sdkVersion

      public String sdkVersion()
      Get the sdkVersion property: The version of the SDK that was used to generate the package for the cloud service.
      Returns:
      the sdkVersion value.
    • privateIds

      public List<String> privateIds()
      Get the privateIds property: Specifies a list of unique identifiers generated internally for the cloud service. <br /><br /> NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details.
      Returns:
      the privateIds value.
    • statuses

      public List<ResourceInstanceViewStatus> statuses()
      Get the statuses property: The statuses property.
      Returns:
      the statuses value.
    • 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<CloudServiceInstanceViewInner>
      Throws:
      IOException
    • fromJson

      public static CloudServiceInstanceViewInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CloudServiceInstanceViewInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CloudServiceInstanceViewInner 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 CloudServiceInstanceViewInner.