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 Summary
ConstructorsConstructorDescriptionCreates an instance of CloudServiceInstanceViewInner class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CloudServiceInstanceViewInner from the JsonReader.Get the privateIds property: Specifies a list of unique identifiers generated internally for the cloud service.Get the roleInstance property: Instance view statuses.Get the sdkVersion property: The version of the SDK that was used to generate the package for the cloud service.statuses()Get the statuses property: The statuses property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withRoleInstance(InstanceViewStatusesSummary roleInstance) Set the roleInstance property: Instance view statuses.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
-
CloudServiceInstanceViewInner
public CloudServiceInstanceViewInner()Creates an instance of CloudServiceInstanceViewInner class.
-
-
Method Details
-
roleInstance
Get the roleInstance property: Instance view statuses.- Returns:
- the roleInstance value.
-
withRoleInstance
Set the roleInstance property: Instance view statuses.- Parameters:
roleInstance- the roleInstance value to set.- Returns:
- the CloudServiceInstanceViewInner object itself.
-
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
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
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
- Specified by:
toJsonin interfacecom.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.
-