通过


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CloudServiceRoleProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.CloudServiceRoleProperties

Implements

public final class CloudServiceRoleProperties
implements JsonSerializable<CloudServiceRoleProperties>

The cloud service role properties.

Constructor Summary

Constructor Description
CloudServiceRoleProperties()

Creates an instance of CloudServiceRoleProperties class.

Method Summary

Modifier and Type Method and Description
static CloudServiceRoleProperties fromJson(JsonReader jsonReader)

Reads an instance of CloudServiceRoleProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String uniqueId()

Get the uniqueId property: Specifies the ID which uniquely identifies a cloud service role.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

CloudServiceRoleProperties

public CloudServiceRoleProperties()

Creates an instance of CloudServiceRoleProperties class.

Method Details

fromJson

public static CloudServiceRoleProperties fromJson(JsonReader jsonReader)

Reads an instance of CloudServiceRoleProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CloudServiceRoleProperties 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 CloudServiceRoleProperties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

uniqueId

public String uniqueId()

Get the uniqueId property: Specifies the ID which uniquely identifies a cloud service role.

Returns:

the uniqueId value.

validate

public void validate()

Validates the instance.

Applies to