Class ConditionalAccessPolicy

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.ConditionalAccessPolicy
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class ConditionalAccessPolicy extends Entity implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • ConditionalAccessPolicy

      public ConditionalAccessPolicy()
      Instantiates a new ConditionalAccessPolicy and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static ConditionalAccessPolicy 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 ConditionalAccessPolicy
    • getConditions

      @Nullable public ConditionalAccessConditionSet getConditions()
      Gets the conditions property value. The conditions property
      Returns:
      a ConditionalAccessConditionSet
    • getCreatedDateTime

      @Nullable public OffsetDateTime getCreatedDateTime()
      Gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Readonly.
      Returns:
      a OffsetDateTime
    • getDescription

      @Nullable public String getDescription()
      Gets the description property value. The description property
      Returns:
      a String
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. Specifies a display name for the conditionalAccessPolicy object.
      Returns:
      a 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 Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getGrantControls

      @Nullable public ConditionalAccessGrantControls getGrantControls()
      Gets the grantControls property value. Specifies the grant controls that must be fulfilled to pass the policy.
      Returns:
      a ConditionalAccessGrantControls
    • getModifiedDateTime

      @Nullable public OffsetDateTime getModifiedDateTime()
      Gets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Readonly.
      Returns:
      a OffsetDateTime
    • getSessionControls

      @Nullable public ConditionalAccessSessionControls getSessionControls()
      Gets the sessionControls property value. Specifies the session controls that are enforced after sign-in.
      Returns:
      a ConditionalAccessSessionControls
    • getState

      @Nullable public ConditionalAccessPolicyState getState()
      Gets the state property value. The state property
      Returns:
      a ConditionalAccessPolicyState
    • getTemplateId

      @Nullable public String getTemplateId()
      Gets the templateId property value. The templateId property
      Returns:
      a String
    • 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 Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setConditions

      public void setConditions(@Nullable ConditionalAccessConditionSet value)
      Sets the conditions property value. The conditions property
      Parameters:
      value - Value to set for the conditions property.
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      Sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Readonly.
      Parameters:
      value - Value to set for the createdDateTime property.
    • setDescription

      public void setDescription(@Nullable String value)
      Sets the description property value. The description property
      Parameters:
      value - Value to set for the description property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. Specifies a display name for the conditionalAccessPolicy object.
      Parameters:
      value - Value to set for the displayName property.
    • setGrantControls

      public void setGrantControls(@Nullable ConditionalAccessGrantControls value)
      Sets the grantControls property value. Specifies the grant controls that must be fulfilled to pass the policy.
      Parameters:
      value - Value to set for the grantControls property.
    • setModifiedDateTime

      public void setModifiedDateTime(@Nullable OffsetDateTime value)
      Sets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Readonly.
      Parameters:
      value - Value to set for the modifiedDateTime property.
    • setSessionControls

      public void setSessionControls(@Nullable ConditionalAccessSessionControls value)
      Sets the sessionControls property value. Specifies the session controls that are enforced after sign-in.
      Parameters:
      value - Value to set for the sessionControls property.
    • setState

      public void setState(@Nullable ConditionalAccessPolicyState value)
      Sets the state property value. The state property
      Parameters:
      value - Value to set for the state property.
    • setTemplateId

      public void setTemplateId(@Nullable String value)
      Sets the templateId property value. The templateId property
      Parameters:
      value - Value to set for the templateId property.