Partilhar via


CloudServiceRoleProfileProperties Class

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

Implements

public final class CloudServiceRoleProfileProperties
implements JsonSerializable<CloudServiceRoleProfileProperties>

Describes the role properties.

Constructor Summary

Constructor Description
CloudServiceRoleProfileProperties()

Creates an instance of CloudServiceRoleProfileProperties class.

Method Summary

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

Reads an instance of CloudServiceRoleProfileProperties from the JsonReader.

String name()

Get the name property: Resource name.

CloudServiceRoleSku sku()

Get the sku property: Describes the cloud service role sku.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CloudServiceRoleProfileProperties withName(String name)

Set the name property: Resource name.

CloudServiceRoleProfileProperties withSku(CloudServiceRoleSku sku)

Set the sku property: Describes the cloud service role sku.

Methods inherited from java.lang.Object

Constructor Details

CloudServiceRoleProfileProperties

public CloudServiceRoleProfileProperties()

Creates an instance of CloudServiceRoleProfileProperties class.

Method Details

fromJson

public static CloudServiceRoleProfileProperties fromJson(JsonReader jsonReader)

Reads an instance of CloudServiceRoleProfileProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Resource name.

Returns:

the name value.

sku

public CloudServiceRoleSku sku()

Get the sku property: Describes the cloud service role sku.

Returns:

the sku value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public CloudServiceRoleProfileProperties withName(String name)

Set the name property: Resource name.

Parameters:

name - the name value to set.

Returns:

the CloudServiceRoleProfileProperties object itself.

withSku

public CloudServiceRoleProfileProperties withSku(CloudServiceRoleSku sku)

Set the sku property: Describes the cloud service role sku.

Parameters:

sku - the sku value to set.

Returns:

the CloudServiceRoleProfileProperties object itself.

Applies to