Class MicrosoftGraphOptionalClaim


  • public final class MicrosoftGraphOptionalClaim
    extends Object
    optionalClaim.
    • Constructor Detail

      • MicrosoftGraphOptionalClaim

        public MicrosoftGraphOptionalClaim()
    • Method Detail

      • additionalPropertiesProperty

        public List<String> additionalPropertiesProperty()
        Get the additionalPropertiesProperty property: Additional properties of the claim. If a property exists in this collection, it modifies the behavior of the optional claim specified in the name property.
        Returns:
        the additionalPropertiesProperty value.
      • withAdditionalPropertiesProperty

        public MicrosoftGraphOptionalClaim withAdditionalPropertiesProperty​(List<String> additionalPropertiesProperty)
        Set the additionalPropertiesProperty property: Additional properties of the claim. If a property exists in this collection, it modifies the behavior of the optional claim specified in the name property.
        Parameters:
        additionalPropertiesProperty - the additionalPropertiesProperty value to set.
        Returns:
        the MicrosoftGraphOptionalClaim object itself.
      • essential

        public Boolean essential()
        Get the essential property: If the value is true, the claim specified by the client is necessary to ensure a smooth authorization experience for the specific task requested by the end user. The default value is false.
        Returns:
        the essential value.
      • withEssential

        public MicrosoftGraphOptionalClaim withEssential​(Boolean essential)
        Set the essential property: If the value is true, the claim specified by the client is necessary to ensure a smooth authorization experience for the specific task requested by the end user. The default value is false.
        Parameters:
        essential - the essential value to set.
        Returns:
        the MicrosoftGraphOptionalClaim object itself.
      • name

        public String name()
        Get the name property: The name of the optional claim.
        Returns:
        the name value.
      • withName

        public MicrosoftGraphOptionalClaim withName​(String name)
        Set the name property: The name of the optional claim.
        Parameters:
        name - the name value to set.
        Returns:
        the MicrosoftGraphOptionalClaim object itself.
      • source

        public String source()
        Get the source property: The source (directory object) of the claim. There are predefined claims and user-defined claims from extension properties. If the source value is null, the claim is a predefined optional claim. If the source value is user, the value in the name property is the extension property from the user object.
        Returns:
        the source value.
      • withSource

        public MicrosoftGraphOptionalClaim withSource​(String source)
        Set the source property: The source (directory object) of the claim. There are predefined claims and user-defined claims from extension properties. If the source value is null, the claim is a predefined optional claim. If the source value is user, the value in the name property is the extension property from the user object.
        Parameters:
        source - the source value to set.
        Returns:
        the MicrosoftGraphOptionalClaim object itself.
      • additionalProperties

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

        public MicrosoftGraphOptionalClaim withAdditionalProperties​(Map<String,​Object> additionalProperties)
        Set the additionalProperties property: optionalClaim.
        Parameters:
        additionalProperties - the additionalProperties value to set.
        Returns:
        the MicrosoftGraphOptionalClaim object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.