Class 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
  • Constructor Details

    • StsPolicy

      public StsPolicy()
      Instantiates a new StsPolicy and 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

      @Nullable public List<DirectoryObject> getAppliesTo()
      Gets the appliesTo property value. The appliesTo property
      Returns:
      a List<DirectoryObject>
    • getDefinition

      @Nullable public List<String> 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.
      Returns:
      a List<String>
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class PolicyBase
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getIsOrganizationDefault

      @Nullable public Boolean 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:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class PolicyBase
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAppliesTo

      public void setAppliesTo(@Nullable List<DirectoryObject> value)
      Sets the appliesTo property value. The appliesTo property
      Parameters:
      value - Value to set for the appliesTo property.
    • setDefinition

      public void setDefinition(@Nullable List<String> value)
      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

      public void setIsOrganizationDefault(@Nullable Boolean value)
      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.