다음을 통해 공유


CloudServiceRoleInner Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.fluent.models.CloudServiceRoleInner

Implements

public final class CloudServiceRoleInner
implements JsonSerializable<CloudServiceRoleInner>

Describes a role of the cloud service.

Constructor Summary

Constructor Description
CloudServiceRoleInner()

Creates an instance of CloudServiceRoleInner class.

Method Summary

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

Reads an instance of CloudServiceRoleInner from the JsonReader.

String id()

Get the id property: Resource id.

String location()

Get the location property: Resource location.

String name()

Get the name property: Resource name.

CloudServiceRoleProperties properties()

Get the properties property: The cloud service role properties.

CloudServiceRoleSku sku()

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

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type.

void validate()

Validates the instance.

CloudServiceRoleInner withProperties(CloudServiceRoleProperties properties)

Set the properties property: The cloud service role properties.

CloudServiceRoleInner withSku(CloudServiceRoleSku sku)

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

Methods inherited from java.lang.Object

Constructor Details

CloudServiceRoleInner

public CloudServiceRoleInner()

Creates an instance of CloudServiceRoleInner class.

Method Details

fromJson

public static CloudServiceRoleInner fromJson(JsonReader jsonReader)

Reads an instance of CloudServiceRoleInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Resource id.

Returns:

the id value.

location

public String location()

Get the location property: Resource location.

Returns:

the location value.

name

public String name()

Get the name property: Resource name.

Returns:

the name value.

properties

public CloudServiceRoleProperties properties()

Get the properties property: The cloud service role properties.

Returns:

the properties 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:

type

public String type()

Get the type property: Resource type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withProperties

public CloudServiceRoleInner withProperties(CloudServiceRoleProperties properties)

Set the properties property: The cloud service role properties.

Parameters:

properties - the properties value to set.

Returns:

the CloudServiceRoleInner object itself.

withSku

public CloudServiceRoleInner withSku(CloudServiceRoleSku sku)

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

Parameters:

sku - the sku value to set.

Returns:

the CloudServiceRoleInner object itself.

Applies to