Partager via


MicrosoftGraphTokenLifetimePolicy Class

public final class MicrosoftGraphTokenLifetimePolicy
extends MicrosoftGraphStsPolicy

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

Constructor Summary

Constructor Description
MicrosoftGraphTokenLifetimePolicy()

Creates an instance of MicrosoftGraphTokenLifetimePolicy class.

Method Summary

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

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

static MicrosoftGraphTokenLifetimePolicy fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphTokenLifetimePolicy from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphTokenLifetimePolicy withAdditionalProperties(Map<String,Object> additionalProperties)

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

MicrosoftGraphTokenLifetimePolicy withAppliesTo(List<MicrosoftGraphDirectoryObjectInner> appliesTo)

Set the appliesTo property: The appliesTo property.

MicrosoftGraphTokenLifetimePolicy withDefinition(List<String> definition)

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

MicrosoftGraphTokenLifetimePolicy withDeletedDateTime(OffsetDateTime deletedDateTime)

Set the deletedDateTime property: The deletedDateTime property.

MicrosoftGraphTokenLifetimePolicy withDescription(String description)

Set the description property: Description for this policy.

MicrosoftGraphTokenLifetimePolicy withDisplayName(String displayName)

Set the displayName property: Display name for this policy.

MicrosoftGraphTokenLifetimePolicy withId(String id)

Set the id property: Read-only.

MicrosoftGraphTokenLifetimePolicy 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

MicrosoftGraphTokenLifetimePolicy

public MicrosoftGraphTokenLifetimePolicy()

Creates an instance of MicrosoftGraphTokenLifetimePolicy 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:

MicrosoftGraphTokenLifetimePolicy.additionalProperties()

Returns:

the additionalProperties value.

fromJson

public static MicrosoftGraphTokenLifetimePolicy fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphTokenLifetimePolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphTokenLifetimePolicy.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphTokenLifetimePolicy.validate()

withAdditionalProperties

public MicrosoftGraphTokenLifetimePolicy 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:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphTokenLifetimePolicy object itself.

withAppliesTo

public MicrosoftGraphTokenLifetimePolicy withAppliesTo(List appliesTo)

Set the appliesTo property: The appliesTo property.

Overrides:

MicrosoftGraphTokenLifetimePolicy.withAppliesTo(List<MicrosoftGraphDirectoryObjectInner> appliesTo)

Parameters:

appliesTo

withDefinition

public MicrosoftGraphTokenLifetimePolicy 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:

MicrosoftGraphTokenLifetimePolicy.withDefinition(List<String> definition)

Parameters:

definition

withDeletedDateTime

public MicrosoftGraphTokenLifetimePolicy withDeletedDateTime(OffsetDateTime deletedDateTime)

Set the deletedDateTime property: The deletedDateTime property.

Overrides:

MicrosoftGraphTokenLifetimePolicy.withDeletedDateTime(OffsetDateTime deletedDateTime)

Parameters:

deletedDateTime

withDescription

public MicrosoftGraphTokenLifetimePolicy withDescription(String description)

Set the description property: Description for this policy.

Overrides:

MicrosoftGraphTokenLifetimePolicy.withDescription(String description)

Parameters:

description

withDisplayName

public MicrosoftGraphTokenLifetimePolicy withDisplayName(String displayName)

Set the displayName property: Display name for this policy.

Overrides:

MicrosoftGraphTokenLifetimePolicy.withDisplayName(String displayName)

Parameters:

displayName

withId

public MicrosoftGraphTokenLifetimePolicy withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphTokenLifetimePolicy.withId(String id)

Parameters:

id

withIsOrganizationDefault

public MicrosoftGraphTokenLifetimePolicy 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:

MicrosoftGraphTokenLifetimePolicy.withIsOrganizationDefault(Boolean isOrganizationDefault)

Parameters:

isOrganizationDefault

Applies to