Class TemporaryAccessPassAuthenticationMethod

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

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

  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static TemporaryAccessPassAuthenticationMethod 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 TemporaryAccessPassAuthenticationMethod
    • getCreatedDateTime

      @Nullable public OffsetDateTime getCreatedDateTime()
      Gets the createdDateTime property value. The date and time when the Temporary Access Pass was created.
      Returns:
      a OffsetDateTime
    • 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 AuthenticationMethod
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getIsUsable

      @Nullable public Boolean getIsUsable()
      Gets the isUsable property value. The state of the authentication method that indicates whether it's currently usable by the user.
      Returns:
      a Boolean
    • getIsUsableOnce

      @Nullable public Boolean getIsUsableOnce()
      Gets the isUsableOnce property value. Determines whether the pass is limited to a one-time use. If true, the pass can be used once; if false, the pass can be used multiple times within the Temporary Access Pass lifetime.
      Returns:
      a Boolean
    • getLifetimeInMinutes

      @Nullable public Integer getLifetimeInMinutes()
      Gets the lifetimeInMinutes property value. The lifetime of the Temporary Access Pass in minutes starting at startDateTime. Must be between 10 and 43200 inclusive (equivalent to 30 days).
      Returns:
      a Integer
    • getMethodUsabilityReason

      @Nullable public String getMethodUsabilityReason()
      Gets the methodUsabilityReason property value. Details about the usability state (isUsable). Reasons can include: EnabledByPolicy, DisabledByPolicy, Expired, NotYetValid, OneTimeUsed.
      Returns:
      a String
    • getStartDateTime

      @Nullable public OffsetDateTime getStartDateTime()
      Gets the startDateTime property value. The date and time when the Temporary Access Pass becomes available to use and when isUsable is true is enforced.
      Returns:
      a OffsetDateTime
    • getTemporaryAccessPass

      @Nullable public String getTemporaryAccessPass()
      Gets the temporaryAccessPass property value. The Temporary Access Pass used to authenticate. Returned only on creation of a new temporaryAccessPassAuthenticationMethod object; Hidden in subsequent read operations and returned as null with GET.
      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 AuthenticationMethod
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      Sets the createdDateTime property value. The date and time when the Temporary Access Pass was created.
      Parameters:
      value - Value to set for the createdDateTime property.
    • setIsUsable

      public void setIsUsable(@Nullable Boolean value)
      Sets the isUsable property value. The state of the authentication method that indicates whether it's currently usable by the user.
      Parameters:
      value - Value to set for the isUsable property.
    • setIsUsableOnce

      public void setIsUsableOnce(@Nullable Boolean value)
      Sets the isUsableOnce property value. Determines whether the pass is limited to a one-time use. If true, the pass can be used once; if false, the pass can be used multiple times within the Temporary Access Pass lifetime.
      Parameters:
      value - Value to set for the isUsableOnce property.
    • setLifetimeInMinutes

      public void setLifetimeInMinutes(@Nullable Integer value)
      Sets the lifetimeInMinutes property value. The lifetime of the Temporary Access Pass in minutes starting at startDateTime. Must be between 10 and 43200 inclusive (equivalent to 30 days).
      Parameters:
      value - Value to set for the lifetimeInMinutes property.
    • setMethodUsabilityReason

      public void setMethodUsabilityReason(@Nullable String value)
      Sets the methodUsabilityReason property value. Details about the usability state (isUsable). Reasons can include: EnabledByPolicy, DisabledByPolicy, Expired, NotYetValid, OneTimeUsed.
      Parameters:
      value - Value to set for the methodUsabilityReason property.
    • setStartDateTime

      public void setStartDateTime(@Nullable OffsetDateTime value)
      Sets the startDateTime property value. The date and time when the Temporary Access Pass becomes available to use and when isUsable is true is enforced.
      Parameters:
      value - Value to set for the startDateTime property.
    • setTemporaryAccessPass

      public void setTemporaryAccessPass(@Nullable String value)
      Sets the temporaryAccessPass property value. The Temporary Access Pass used to authenticate. Returned only on creation of a new temporaryAccessPassAuthenticationMethod object; Hidden in subsequent read operations and returned as null with GET.
      Parameters:
      value - Value to set for the temporaryAccessPass property.