Class TemporaryAccessPassAuthenticationMethodConfiguration

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

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

  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static TemporaryAccessPassAuthenticationMethodConfiguration 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 TemporaryAccessPassAuthenticationMethodConfiguration
    • getDefaultLength

      @Nullable public Integer getDefaultLength()
      Gets the defaultLength property value. Default length in characters of a Temporary Access Pass object. Must be between 8 and 48 characters.
      Returns:
      a Integer
    • getDefaultLifetimeInMinutes

      @Nullable public Integer getDefaultLifetimeInMinutes()
      Gets the defaultLifetimeInMinutes property value. Default lifetime in minutes for a Temporary Access Pass. Value can be any integer between the minimumLifetimeInMinutes and maximumLifetimeInMinutes.
      Returns:
      a Integer
    • 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 AuthenticationMethodConfiguration
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getIncludeTargets

      @Nullable public List<AuthenticationMethodTarget> getIncludeTargets()
      Gets the includeTargets property value. A collection of groups that are enabled to use the authentication method.
      Returns:
      a List<AuthenticationMethodTarget>
    • getIsUsableOnce

      @Nullable public Boolean getIsUsableOnce()
      Gets the isUsableOnce property value. If true, all the passes in the tenant will be restricted to one-time use. If false, passes in the tenant can be created to be either one-time use or reusable.
      Returns:
      a Boolean
    • getMaximumLifetimeInMinutes

      @Nullable public Integer getMaximumLifetimeInMinutes()
      Gets the maximumLifetimeInMinutes property value. Maximum lifetime in minutes for any Temporary Access Pass created in the tenant. Value can be between 10 and 43200 minutes (equivalent to 30 days).
      Returns:
      a Integer
    • getMinimumLifetimeInMinutes

      @Nullable public Integer getMinimumLifetimeInMinutes()
      Gets the minimumLifetimeInMinutes property value. Minimum lifetime in minutes for any Temporary Access Pass created in the tenant. Value can be between 10 and 43200 minutes (equivalent to 30 days).
      Returns:
      a Integer
    • 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 AuthenticationMethodConfiguration
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setDefaultLength

      public void setDefaultLength(@Nullable Integer value)
      Sets the defaultLength property value. Default length in characters of a Temporary Access Pass object. Must be between 8 and 48 characters.
      Parameters:
      value - Value to set for the defaultLength property.
    • setDefaultLifetimeInMinutes

      public void setDefaultLifetimeInMinutes(@Nullable Integer value)
      Sets the defaultLifetimeInMinutes property value. Default lifetime in minutes for a Temporary Access Pass. Value can be any integer between the minimumLifetimeInMinutes and maximumLifetimeInMinutes.
      Parameters:
      value - Value to set for the defaultLifetimeInMinutes property.
    • setIncludeTargets

      public void setIncludeTargets(@Nullable List<AuthenticationMethodTarget> value)
      Sets the includeTargets property value. A collection of groups that are enabled to use the authentication method.
      Parameters:
      value - Value to set for the includeTargets property.
    • setIsUsableOnce

      public void setIsUsableOnce(@Nullable Boolean value)
      Sets the isUsableOnce property value. If true, all the passes in the tenant will be restricted to one-time use. If false, passes in the tenant can be created to be either one-time use or reusable.
      Parameters:
      value - Value to set for the isUsableOnce property.
    • setMaximumLifetimeInMinutes

      public void setMaximumLifetimeInMinutes(@Nullable Integer value)
      Sets the maximumLifetimeInMinutes property value. Maximum lifetime in minutes for any Temporary Access Pass created in the tenant. Value can be between 10 and 43200 minutes (equivalent to 30 days).
      Parameters:
      value - Value to set for the maximumLifetimeInMinutes property.
    • setMinimumLifetimeInMinutes

      public void setMinimumLifetimeInMinutes(@Nullable Integer value)
      Sets the minimumLifetimeInMinutes property value. Minimum lifetime in minutes for any Temporary Access Pass created in the tenant. Value can be between 10 and 43200 minutes (equivalent to 30 days).
      Parameters:
      value - Value to set for the minimumLifetimeInMinutes property.