Package com.microsoft.graph.models
Class StsPolicy
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.DirectoryObject
com.microsoft.graph.models.PolicyBase
com.microsoft.graph.models.StsPolicy
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
- Direct Known Subclasses:
ActivityBasedTimeoutPolicy,ClaimsMappingPolicy,HomeRealmDiscoveryPolicy,TokenIssuancePolicy,TokenLifetimePolicy
@Generated("com.microsoft.kiota")
public class StsPolicy
extends PolicyBase
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StsPolicycreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the appliesTo property value.Gets the definition property value.The deserialization information for the current modelGets the isOrganizationDefault property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAppliesTo(List<DirectoryObject> value) Sets the appliesTo property value.voidsetDefinition(List<String> value) Sets the definition property value.voidsetIsOrganizationDefault(Boolean value) Sets the isOrganizationDefault property value.Methods inherited from class com.microsoft.graph.models.PolicyBase
getDescription, getDisplayName, setDescription, setDisplayNameMethods inherited from class com.microsoft.graph.models.DirectoryObject
getDeletedDateTime, setDeletedDateTimeMethods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
StsPolicy
public StsPolicy()Instantiates a newStsPolicyand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static StsPolicy createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode- The parse node to use to read the discriminator value and create the object- Returns:
- a
StsPolicy
-
getAppliesTo
Gets the appliesTo property value. The appliesTo property- Returns:
- a
List<DirectoryObject>
-
getDefinition
Gets the definition property value. 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. -
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classPolicyBase- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getIsOrganizationDefault
Gets the isOrganizationDefault property value. 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:
- a
Boolean
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object- Specified by:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classPolicyBase- Parameters:
writer- Serialization writer to use to serialize this model
-
setAppliesTo
Sets the appliesTo property value. The appliesTo property- Parameters:
value- Value to set for the appliesTo property.
-
setDefinition
Sets the definition property value. 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:
value- Value to set for the definition property.
-
setIsOrganizationDefault
Sets the isOrganizationDefault property value. 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:
value- Value to set for the isOrganizationDefault property.
-