Class MicrosoftGraphStsPolicy
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
- Direct Known Subclasses:
MicrosoftGraphClaimsMappingPolicy,MicrosoftGraphHomeRealmDiscoveryPolicyInner,MicrosoftGraphTokenIssuancePolicy,MicrosoftGraphTokenLifetimePolicy
stsPolicy
Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphStsPolicy class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: Represents an Azure Active Directory object.Get the appliesTo property: The appliesTo property.Get the definition property: A string collection containing a JSON string that defines the rules and settings for a policy.Get the isOrganizationDefault property: If set to true, activates this policy.voidvalidate()Validates the instance.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: Represents an Azure Active Directory object.withAppliesTo(List<MicrosoftGraphDirectoryObjectInner> appliesTo) Set the appliesTo property: The appliesTo property.withDefinition(List<String> definition) Set the definition property: A string collection containing a JSON string that defines the rules and settings for a policy.withDeletedDateTime(OffsetDateTime deletedDateTime) Set the deletedDateTime property: The deletedDateTime property.withDescription(String description) Set the description property: Description for this policy.withDisplayName(String displayName) Set the displayName property: Display name for this policy.Set the id property: Read-only.withIsOrganizationDefault(Boolean isOrganizationDefault) Set the isOrganizationDefault property: If set to true, activates this policy.Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphPolicyBase
description, displayNameMethods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphDirectoryObjectInner
deletedDateTimeMethods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
Constructor Details
-
MicrosoftGraphStsPolicy
public MicrosoftGraphStsPolicy()Creates an instance of MicrosoftGraphStsPolicy class.
-
-
Method Details
-
definition
Get 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.- Returns:
- the definition value.
-
withDefinition
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.- Parameters:
definition- the definition value to set.- Returns:
- the MicrosoftGraphStsPolicy object itself.
-
isOrganizationDefault
Get 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.- Returns:
- the isOrganizationDefault value.
-
withIsOrganizationDefault
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.- Parameters:
isOrganizationDefault- the isOrganizationDefault value to set.- Returns:
- the MicrosoftGraphStsPolicy object itself.
-
appliesTo
Get the appliesTo property: The appliesTo property.- Returns:
- the appliesTo value.
-
withAppliesTo
Set the appliesTo property: The appliesTo property.- Parameters:
appliesTo- the appliesTo value to set.- Returns:
- the MicrosoftGraphStsPolicy object itself.
-
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:
additionalPropertiesin classMicrosoftGraphPolicyBase- Returns:
- the additionalProperties value.
-
withAdditionalProperties
Set the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.- Overrides:
withAdditionalPropertiesin classMicrosoftGraphPolicyBase- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphStsPolicy object itself.
-
withDescription
Set the description property: Description for this policy.- Overrides:
withDescriptionin classMicrosoftGraphPolicyBase- Parameters:
description- the description value to set.- Returns:
- the MicrosoftGraphPolicyBase object itself.
-
withDisplayName
Set the displayName property: Display name for this policy.- Overrides:
withDisplayNamein classMicrosoftGraphPolicyBase- Parameters:
displayName- the displayName value to set.- Returns:
- the MicrosoftGraphPolicyBase object itself.
-
withDeletedDateTime
Set the deletedDateTime property: The deletedDateTime property.- Overrides:
withDeletedDateTimein classMicrosoftGraphPolicyBase- Parameters:
deletedDateTime- the deletedDateTime value to set.- Returns:
- the MicrosoftGraphDirectoryObjectInner object itself.
-
withId
Set the id property: Read-only.- Overrides:
withIdin classMicrosoftGraphPolicyBase- Parameters:
id- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classMicrosoftGraphPolicyBase- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-