MicrosoftGraphOptionalClaim Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphOptionalClaim
- com.
Implements
public final class MicrosoftGraphOptionalClaim
implements JsonSerializable<MicrosoftGraphOptionalClaim>
optionalClaim.
Constructor Summary
Constructor | Description |
---|---|
MicrosoftGraphOptionalClaim() |
Creates an instance of Microsoft |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
additionalProperties()
Get the additional |
List<String> |
additionalPropertiesProperty()
Get the additional |
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. |
static
Microsoft |
fromJson(JsonReader jsonReader)
Reads an instance of Microsoft |
String |
name()
Get the name property: The name of the optional claim. |
String |
source()
Get the source property: The source (directory object) of the claim. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Microsoft |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Microsoft |
withAdditionalPropertiesProperty(List<String> additionalPropertiesProperty)
Set the additional |
Microsoft |
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. |
Microsoft |
withName(String name)
Set the name property: The name of the optional claim. |
Microsoft |
withSource(String source)
Set the source property: The source (directory object) of the claim. |
Methods inherited from java.lang.Object
Constructor Details
MicrosoftGraphOptionalClaim
public MicrosoftGraphOptionalClaim()
Creates an instance of MicrosoftGraphOptionalClaim class.
Method Details
additionalProperties
public Map
Get the additionalProperties property: optionalClaim.
Returns:
additionalPropertiesProperty
public List
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:
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:
fromJson
public static MicrosoftGraphOptionalClaim fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphOptionalClaim from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the optional claim.
Returns:
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:
toJson
validate
public void validate()
Validates the instance.
withAdditionalProperties
public MicrosoftGraphOptionalClaim withAdditionalProperties(Map
Set the additionalProperties property: optionalClaim.
Parameters:
Returns:
withAdditionalPropertiesProperty
public MicrosoftGraphOptionalClaim withAdditionalPropertiesProperty(List
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:
Returns:
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:
Returns:
withName
public MicrosoftGraphOptionalClaim withName(String name)
Set the name property: The name of the optional claim.
Parameters:
Returns:
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:
Returns:
Applies to
Azure SDK for Java