Class MicrosoftGraphAppRole
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphAppRole
appRole.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: appRole.Get the allowedMemberTypes property: Specifies whether this app role can be assigned to users and groups (by setting to ['User']), to other application's (by setting to ['Application'], or both (by setting to ['User', 'Application']).Get the description property: The description for the app role.Get the displayName property: Display name for the permission that appears in the app role assignment and consent experiences.id()Get the id property: Unique role identifier inside the appRoles collection.Get the isEnabled property: When creating or updating an app role, this must be set to true (which is the default).origin()Get the origin property: Specifies if the app role is defined on the application object or on the servicePrincipal entity.voidvalidate()Validates the instance.value()Get the value property: Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: appRole.withAllowedMemberTypes(List<String> allowedMemberTypes) Set the allowedMemberTypes property: Specifies whether this app role can be assigned to users and groups (by setting to ['User']), to other application's (by setting to ['Application'], or both (by setting to ['User', 'Application']).withDescription(String description) Set the description property: The description for the app role.withDisplayName(String displayName) Set the displayName property: Display name for the permission that appears in the app role assignment and consent experiences.Set the id property: Unique role identifier inside the appRoles collection.withIsEnabled(Boolean isEnabled) Set the isEnabled property: When creating or updating an app role, this must be set to true (which is the default).withOrigin(String origin) Set the origin property: Specifies if the app role is defined on the application object or on the servicePrincipal entity.Set the value property: Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal.
-
Constructor Details
-
MicrosoftGraphAppRole
public MicrosoftGraphAppRole()Creates an instance of MicrosoftGraphAppRole class.
-
-
Method Details
-
allowedMemberTypes
Get the allowedMemberTypes property: Specifies whether this app role can be assigned to users and groups (by setting to ['User']), to other application's (by setting to ['Application'], or both (by setting to ['User', 'Application']). App roles supporting assignment to other applications' service principals are also known as application permissions. The 'Application' value is only supported for app roles defined on application entities.- Returns:
- the allowedMemberTypes value.
-
withAllowedMemberTypes
Set the allowedMemberTypes property: Specifies whether this app role can be assigned to users and groups (by setting to ['User']), to other application's (by setting to ['Application'], or both (by setting to ['User', 'Application']). App roles supporting assignment to other applications' service principals are also known as application permissions. The 'Application' value is only supported for app roles defined on application entities.- Parameters:
allowedMemberTypes- the allowedMemberTypes value to set.- Returns:
- the MicrosoftGraphAppRole object itself.
-
description
Get the description property: The description for the app role. This is displayed when the app role is being assigned and, if the app role functions as an application permission, during consent experiences.- Returns:
- the description value.
-
withDescription
Set the description property: The description for the app role. This is displayed when the app role is being assigned and, if the app role functions as an application permission, during consent experiences.- Parameters:
description- the description value to set.- Returns:
- the MicrosoftGraphAppRole object itself.
-
displayName
Get the displayName property: Display name for the permission that appears in the app role assignment and consent experiences.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Display name for the permission that appears in the app role assignment and consent experiences.- Parameters:
displayName- the displayName value to set.- Returns:
- the MicrosoftGraphAppRole object itself.
-
id
Get the id property: Unique role identifier inside the appRoles collection. When creating a new app role, a new Guid identifier must be provided.- Returns:
- the id value.
-
withId
Set the id property: Unique role identifier inside the appRoles collection. When creating a new app role, a new Guid identifier must be provided.- Parameters:
id- the id value to set.- Returns:
- the MicrosoftGraphAppRole object itself.
-
isEnabled
Get the isEnabled property: When creating or updating an app role, this must be set to true (which is the default). To delete a role, this must first be set to false. At that point, in a subsequent call, this role may be removed.- Returns:
- the isEnabled value.
-
withIsEnabled
Set the isEnabled property: When creating or updating an app role, this must be set to true (which is the default). To delete a role, this must first be set to false. At that point, in a subsequent call, this role may be removed.- Parameters:
isEnabled- the isEnabled value to set.- Returns:
- the MicrosoftGraphAppRole object itself.
-
origin
Get the origin property: Specifies if the app role is defined on the application object or on the servicePrincipal entity. Must not be included in any POST or PATCH requests. Read-only.- Returns:
- the origin value.
-
withOrigin
Set the origin property: Specifies if the app role is defined on the application object or on the servicePrincipal entity. Must not be included in any POST or PATCH requests. Read-only.- Parameters:
origin- the origin value to set.- Returns:
- the MicrosoftGraphAppRole object itself.
-
value
Get the value property: Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , - . / : ; = ? @ [ ] ^ + _ { } ~, as well as characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, are not allowed.- Returns:
- the value value.
-
withValue
Set the value property: Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , - . / : ; = ? @ [ ] ^ + _ { } ~, as well as characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, are not allowed.- Parameters:
value- the value value to set.- Returns:
- the MicrosoftGraphAppRole object itself.
-
additionalProperties
Get the additionalProperties property: appRole.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
Set the additionalProperties property: appRole.- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphAppRole object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-