你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
MicrosoftGraphTokenLifetimePolicy Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphEntity - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphDirectoryObjectInner - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphPolicyBase - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphStsPolicy - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphTokenLifetimePolicy
- com.
- com.
- com.
- com.
- com.
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 Microsoft |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
additionalProperties()
Get the additional |
static
Microsoft |
fromJson(JsonReader jsonReader)
Reads an instance of Microsoft |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Microsoft |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Microsoft |
withAppliesTo(List<MicrosoftGraphDirectoryObjectInner> appliesTo)
Set the applies |
Microsoft |
withDefinition(List<String> definition)
Set the definition property: A string collection containing a JSON string that defines the rules and settings for a policy. |
Microsoft |
withDeletedDateTime(OffsetDateTime deletedDateTime)
Set the deleted |
Microsoft |
withDescription(String description)
Set the description property: Description for this policy. |
Microsoft |
withDisplayName(String displayName)
Set the display |
Microsoft |
withId(String id)
Set the id property: Read-only. |
Microsoft |
withIsOrganizationDefault(Boolean isOrganizationDefault)
Set the is |
Methods inherited from MicrosoftGraphDirectoryObjectInner
Methods inherited from MicrosoftGraphEntity
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
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:
fromJson
public static MicrosoftGraphTokenLifetimePolicy fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphTokenLifetimePolicy from the JsonReader.
Parameters:
Returns:
Throws:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MicrosoftGraphTokenLifetimePolicy.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
MicrosoftGraphTokenLifetimePolicy.validate()withAdditionalProperties
public MicrosoftGraphTokenLifetimePolicy withAdditionalProperties(Map
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:
Returns:
withAppliesTo
public MicrosoftGraphTokenLifetimePolicy withAppliesTo(List
Set the appliesTo property: The appliesTo property.
Overrides:
MicrosoftGraphTokenLifetimePolicy.withAppliesTo(List<MicrosoftGraphDirectoryObjectInner> appliesTo)Parameters:
withDefinition
public MicrosoftGraphTokenLifetimePolicy withDefinition(List
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:
withDeletedDateTime
public MicrosoftGraphTokenLifetimePolicy withDeletedDateTime(OffsetDateTime deletedDateTime)
Set the deletedDateTime property: The deletedDateTime property.
Overrides:
MicrosoftGraphTokenLifetimePolicy.withDeletedDateTime(OffsetDateTime deletedDateTime)Parameters:
withDescription
public MicrosoftGraphTokenLifetimePolicy withDescription(String description)
Set the description property: Description for this policy.
Overrides:
MicrosoftGraphTokenLifetimePolicy.withDescription(String description)Parameters:
withDisplayName
public MicrosoftGraphTokenLifetimePolicy withDisplayName(String displayName)
Set the displayName property: Display name for this policy.
Overrides:
MicrosoftGraphTokenLifetimePolicy.withDisplayName(String displayName)Parameters:
withId
public MicrosoftGraphTokenLifetimePolicy withId(String id)
Set the id property: Read-only.
Overrides:
MicrosoftGraphTokenLifetimePolicy.withId(String id)Parameters:
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: