Compartilhar via


ProviderPermission Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.ProviderPermission

Implements

public final class ProviderPermission
implements JsonSerializable<ProviderPermission>

The provider permission.

Constructor Summary

Constructor Description
ProviderPermission()

Creates an instance of ProviderPermission class.

Method Summary

Modifier and Type Method and Description
String applicationId()

Get the applicationId property: The application id.

static ProviderPermission fromJson(JsonReader jsonReader)

Reads an instance of ProviderPermission from the JsonReader.

RoleDefinition managedByRoleDefinition()

Get the managedByRoleDefinition property: Role definition properties.

ProviderAuthorizationConsentState providerAuthorizationConsentState()

Get the providerAuthorizationConsentState property: The provider authorization consent state.

RoleDefinition roleDefinition()

Get the roleDefinition property: Role definition properties.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ProviderPermission withApplicationId(String applicationId)

Set the applicationId property: The application id.

ProviderPermission withManagedByRoleDefinition(RoleDefinition managedByRoleDefinition)

Set the managedByRoleDefinition property: Role definition properties.

ProviderPermission withProviderAuthorizationConsentState(ProviderAuthorizationConsentState providerAuthorizationConsentState)

Set the providerAuthorizationConsentState property: The provider authorization consent state.

ProviderPermission withRoleDefinition(RoleDefinition roleDefinition)

Set the roleDefinition property: Role definition properties.

Methods inherited from java.lang.Object

Constructor Details

ProviderPermission

public ProviderPermission()

Creates an instance of ProviderPermission class.

Method Details

applicationId

public String applicationId()

Get the applicationId property: The application id.

Returns:

the applicationId value.

fromJson

public static ProviderPermission fromJson(JsonReader jsonReader)

Reads an instance of ProviderPermission from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

managedByRoleDefinition

public RoleDefinition managedByRoleDefinition()

Get the managedByRoleDefinition property: Role definition properties.

Returns:

the managedByRoleDefinition value.

providerAuthorizationConsentState

public ProviderAuthorizationConsentState providerAuthorizationConsentState()

Get the providerAuthorizationConsentState property: The provider authorization consent state.

Returns:

the providerAuthorizationConsentState value.

roleDefinition

public RoleDefinition roleDefinition()

Get the roleDefinition property: Role definition properties.

Returns:

the roleDefinition value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withApplicationId

public ProviderPermission withApplicationId(String applicationId)

Set the applicationId property: The application id.

Parameters:

applicationId - the applicationId value to set.

Returns:

the ProviderPermission object itself.

withManagedByRoleDefinition

public ProviderPermission withManagedByRoleDefinition(RoleDefinition managedByRoleDefinition)

Set the managedByRoleDefinition property: Role definition properties.

Parameters:

managedByRoleDefinition - the managedByRoleDefinition value to set.

Returns:

the ProviderPermission object itself.

withProviderAuthorizationConsentState

public ProviderPermission withProviderAuthorizationConsentState(ProviderAuthorizationConsentState providerAuthorizationConsentState)

Set the providerAuthorizationConsentState property: The provider authorization consent state.

Parameters:

providerAuthorizationConsentState - the providerAuthorizationConsentState value to set.

Returns:

the ProviderPermission object itself.

withRoleDefinition

public ProviderPermission withRoleDefinition(RoleDefinition roleDefinition)

Set the roleDefinition property: Role definition properties.

Parameters:

roleDefinition - the roleDefinition value to set.

Returns:

the ProviderPermission object itself.

Applies to