Share via


MicrosoftGraphOptionalClaim Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphOptionalClaim

Implements

public final class MicrosoftGraphOptionalClaim
implements JsonSerializable<MicrosoftGraphOptionalClaim>

optionalClaim.

Constructor Summary

Constructor Description
MicrosoftGraphOptionalClaim()

Creates an instance of MicrosoftGraphOptionalClaim class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: optionalClaim.

List<String> additionalPropertiesProperty()

Get the additionalPropertiesProperty property: Additional properties of the claim.

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 MicrosoftGraphOptionalClaim fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphOptionalClaim from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphOptionalClaim withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: optionalClaim.

MicrosoftGraphOptionalClaim withAdditionalPropertiesProperty(List<String> additionalPropertiesProperty)

Set the additionalPropertiesProperty property: Additional properties of the claim.

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.

MicrosoftGraphOptionalClaim withName(String name)

Set the name property: The name of the optional claim.

MicrosoftGraphOptionalClaim 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<String,Object> additionalProperties()

Get the additionalProperties property: optionalClaim.

Returns:

the additionalProperties value.

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.

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.

fromJson

public static MicrosoftGraphOptionalClaim fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphOptionalClaim from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphOptionalClaim if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphOptionalClaim.

name

public String name()

Get the name property: The name of the optional claim.

Returns:

the name value.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

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.

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.

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.

Applies to