Partilhar via


CloudServiceRoleProfile Class

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

Implements

public final class CloudServiceRoleProfile
implements JsonSerializable<CloudServiceRoleProfile>

Describes the role profile for the cloud service.

Constructor Summary

Constructor Description
CloudServiceRoleProfile()

Creates an instance of CloudServiceRoleProfile class.

Method Summary

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

Reads an instance of CloudServiceRoleProfile from the JsonReader.

List<CloudServiceRoleProfileProperties> roles()

Get the roles property: List of roles for the cloud service.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CloudServiceRoleProfile withRoles(List<CloudServiceRoleProfileProperties> roles)

Set the roles property: List of roles for the cloud service.

Methods inherited from java.lang.Object

Constructor Details

CloudServiceRoleProfile

public CloudServiceRoleProfile()

Creates an instance of CloudServiceRoleProfile class.

Method Details

fromJson

public static CloudServiceRoleProfile fromJson(JsonReader jsonReader)

Reads an instance of CloudServiceRoleProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

roles

public List roles()

Get the roles property: List of roles for the cloud service.

Returns:

the roles value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withRoles

public CloudServiceRoleProfile withRoles(List roles)

Set the roles property: List of roles for the cloud service.

Parameters:

roles - the roles value to set.

Returns:

the CloudServiceRoleProfile object itself.

Applies to