MicrosoftGraphClaimsMappingPolicy Class

public final class MicrosoftGraphClaimsMappingPolicy
extends MicrosoftGraphStsPolicy

claimsMappingPolicy Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

Constructor Summary

Constructor Description
MicrosoftGraphClaimsMappingPolicy()

Creates an instance of MicrosoftGraphClaimsMappingPolicy class.

Method Summary

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

Get the additionalProperties property: Represents an Azure Active Directory object.

static MicrosoftGraphClaimsMappingPolicy fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphClaimsMappingPolicy from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphClaimsMappingPolicy withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: Represents an Azure Active Directory object.

MicrosoftGraphClaimsMappingPolicy withAppliesTo(List<MicrosoftGraphDirectoryObjectInner> appliesTo)

Set the appliesTo property: The appliesTo property.

MicrosoftGraphClaimsMappingPolicy withDefinition(List<String> definition)

Set the definition property: A string collection containing a JSON string that defines the rules and settings for a policy.

MicrosoftGraphClaimsMappingPolicy withDeletedDateTime(OffsetDateTime deletedDateTime)

Set the deletedDateTime property: The deletedDateTime property.

MicrosoftGraphClaimsMappingPolicy withDescription(String description)

Set the description property: Description for this policy.

MicrosoftGraphClaimsMappingPolicy withDisplayName(String displayName)

Set the displayName property: Display name for this policy.

MicrosoftGraphClaimsMappingPolicy withId(String id)

Set the id property: Read-only.

MicrosoftGraphClaimsMappingPolicy withIsOrganizationDefault(Boolean isOrganizationDefault)

Set the isOrganizationDefault property: If set to true, activates this policy.

Methods inherited from MicrosoftGraphDirectoryObjectInner

Methods inherited from MicrosoftGraphEntity

id

Methods inherited from MicrosoftGraphPolicyBase

Methods inherited from MicrosoftGraphStsPolicy

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphClaimsMappingPolicy

public MicrosoftGraphClaimsMappingPolicy()

Creates an instance of MicrosoftGraphClaimsMappingPolicy class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

Overrides:

MicrosoftGraphClaimsMappingPolicy.additionalProperties()

Returns:

the additionalProperties value.

fromJson

public static MicrosoftGraphClaimsMappingPolicy fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphClaimsMappingPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphClaimsMappingPolicy 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 MicrosoftGraphClaimsMappingPolicy.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphClaimsMappingPolicy.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphClaimsMappingPolicy.validate()

withAdditionalProperties

public MicrosoftGraphClaimsMappingPolicy withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

Overrides:

MicrosoftGraphClaimsMappingPolicy.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphClaimsMappingPolicy object itself.

withAppliesTo

public MicrosoftGraphClaimsMappingPolicy withAppliesTo(List appliesTo)

Set the appliesTo property: The appliesTo property.

Overrides:

MicrosoftGraphClaimsMappingPolicy.withAppliesTo(List<MicrosoftGraphDirectoryObjectInner> appliesTo)

Parameters:

appliesTo

withDefinition

public MicrosoftGraphClaimsMappingPolicy withDefinition(List definition)

Set the definition property: A string collection containing a JSON string that defines the rules and settings for a policy. The syntax for the definition differs for each derived policy type. Required.

Overrides:

MicrosoftGraphClaimsMappingPolicy.withDefinition(List<String> definition)

Parameters:

definition

withDeletedDateTime

public MicrosoftGraphClaimsMappingPolicy withDeletedDateTime(OffsetDateTime deletedDateTime)

Set the deletedDateTime property: The deletedDateTime property.

Overrides:

MicrosoftGraphClaimsMappingPolicy.withDeletedDateTime(OffsetDateTime deletedDateTime)

Parameters:

deletedDateTime

withDescription

public MicrosoftGraphClaimsMappingPolicy withDescription(String description)

Set the description property: Description for this policy.

Overrides:

MicrosoftGraphClaimsMappingPolicy.withDescription(String description)

Parameters:

description

withDisplayName

public MicrosoftGraphClaimsMappingPolicy withDisplayName(String displayName)

Set the displayName property: Display name for this policy.

Overrides:

MicrosoftGraphClaimsMappingPolicy.withDisplayName(String displayName)

Parameters:

displayName

withId

public MicrosoftGraphClaimsMappingPolicy withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphClaimsMappingPolicy.withId(String id)

Parameters:

id

withIsOrganizationDefault

public MicrosoftGraphClaimsMappingPolicy withIsOrganizationDefault(Boolean isOrganizationDefault)

Set the isOrganizationDefault property: If set to true, activates this policy. There can be many policies for the same policy type, but only one can be activated as the organization default. Optional, default value is false.

Overrides:

MicrosoftGraphClaimsMappingPolicy.withIsOrganizationDefault(Boolean isOrganizationDefault)

Parameters:

isOrganizationDefault

Applies to