Class MicrosoftGraphAppRole

java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphAppRole

public final class MicrosoftGraphAppRole extends Object
appRole.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of MicrosoftGraphAppRole class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get 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).
    Get the origin property: Specifies if the app role is defined on the application object or on the servicePrincipal entity.
    void
    Validates the instance.
    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.
    Set the isEnabled property: When creating or updating an app role, this must be set to true (which is the default).
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MicrosoftGraphAppRole

      public MicrosoftGraphAppRole()
      Creates an instance of MicrosoftGraphAppRole class.
  • Method Details

    • allowedMemberTypes

      public List<String> 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

      public MicrosoftGraphAppRole 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']). 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

      public String 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

      public MicrosoftGraphAppRole withDescription(String description)
      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

      public String 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

      public MicrosoftGraphAppRole withDisplayName(String displayName)
      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

      public UUID 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

      public MicrosoftGraphAppRole withId(UUID id)
      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

      public Boolean 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

      public MicrosoftGraphAppRole withIsEnabled(Boolean isEnabled)
      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

      public String 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

      public MicrosoftGraphAppRole withOrigin(String origin)
      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

      public String 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

      public MicrosoftGraphAppRole withValue(String value)
      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

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: appRole.
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphAppRole withAdditionalProperties(Map<String,Object> additionalProperties)
      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.