CloudServiceRoleProfile Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. CloudServiceRoleProfile
- com.
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 Cloud |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Cloud |
fromJson(JsonReader jsonReader)
Reads an instance of Cloud |
List<Cloud |
roles()
Get the roles property: List of roles for the cloud service. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Cloud |
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:
Returns:
Throws:
roles
public List
Get the roles property: List of roles for the cloud service.
Returns:
toJson
validate
public void validate()
Validates the instance.
withRoles
public CloudServiceRoleProfile withRoles(List
Set the roles property: List of roles for the cloud service.
Parameters:
Returns:
Applies to
Azure SDK for Java