BillingRoleDefinitionProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.billing.models.BillingRoleDefinitionProperties

Implements

public final class BillingRoleDefinitionProperties
implements JsonSerializable<BillingRoleDefinitionProperties>

The properties of a role definition.

Constructor Summary

Constructor Description
BillingRoleDefinitionProperties()

Creates an instance of BillingRoleDefinitionProperties class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: The role description.

static BillingRoleDefinitionProperties fromJson(JsonReader jsonReader)

Reads an instance of BillingRoleDefinitionProperties from the JsonReader.

List<BillingPermissionInner> permissions()

Get the permissions property: The billingPermissions the role has.

String roleName()

Get the roleName property: The name of the role.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

BillingRoleDefinitionProperties withRoleName(String roleName)

Set the roleName property: The name of the role.

Methods inherited from java.lang.Object

Constructor Details

BillingRoleDefinitionProperties

public BillingRoleDefinitionProperties()

Creates an instance of BillingRoleDefinitionProperties class.

Method Details

description

public String description()

Get the description property: The role description.

Returns:

the description value.

fromJson

public static BillingRoleDefinitionProperties fromJson(JsonReader jsonReader)

Reads an instance of BillingRoleDefinitionProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BillingRoleDefinitionProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

permissions

public List<BillingPermissionInner> permissions()

Get the permissions property: The billingPermissions the role has.

Returns:

the permissions value.

roleName

public String roleName()

Get the roleName property: The name of the role.

Returns:

the roleName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withRoleName

public BillingRoleDefinitionProperties withRoleName(String roleName)

Set the roleName property: The name of the role.

Parameters:

roleName - the roleName value to set.

Returns:

the BillingRoleDefinitionProperties object itself.

Applies to