Class MicrosoftGraphAppRole


  • public final class MicrosoftGraphAppRole
    extends Object
    appRole.
    • Constructor Detail

      • MicrosoftGraphAppRole

        public MicrosoftGraphAppRole()
    • Method Detail

      • 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.