Class MicrosoftGraphOptionalClaim
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphOptionalClaim
optionalClaim.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphOptionalClaim class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: optionalClaim.Get the additionalPropertiesProperty property: Additional properties of the claim.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.name()Get the name property: The name of the optional claim.source()Get the source property: The source (directory object) of the claim.voidvalidate()Validates the instance.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: optionalClaim.withAdditionalPropertiesProperty(List<String> additionalPropertiesProperty) Set the additionalPropertiesProperty property: Additional properties of the claim.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.Set the name property: The name of the optional claim.withSource(String source) Set the source property: The source (directory object) of the claim.
-
Constructor Details
-
MicrosoftGraphOptionalClaim
public MicrosoftGraphOptionalClaim()Creates an instance of MicrosoftGraphOptionalClaim class.
-
-
Method Details
-
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
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
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
Get the name property: The name of the optional claim.- Returns:
- the name value.
-
withName
Set the name property: The name of the optional claim.- Parameters:
name- the name value to set.- Returns:
- the MicrosoftGraphOptionalClaim object itself.
-
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
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
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.
-