Class QrPin

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

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

    • QrPin

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

    • createFromDiscriminatorValue

      @Nonnull public static QrPin 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 QrPin
    • getCode

      @Nullable public String getCode()
      Gets the code property value. The PIN code value. This property is only returned at the time of creating or resetting the PIN. For GET operations, this property returns null. The PIN must be between 8-20 digits.
      Returns:
      a String
    • getCreatedDateTime

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

      @Nullable public Boolean getForceChangePinNextSignIn()
      Gets the forceChangePinNextSignIn property value. Indicates whether the user must change the PIN on their next sign-in. This is true when an admin creates or resets the PIN, and false after the user changes it.
      Returns:
      a Boolean
    • getUpdatedDateTime

      @Nullable public OffsetDateTime getUpdatedDateTime()
      Gets the updatedDateTime property value. The date and time when the PIN was last updated. Read-only.
      Returns:
      a OffsetDateTime
    • 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
    • setCode

      public void setCode(@Nullable String value)
      Sets the code property value. The PIN code value. This property is only returned at the time of creating or resetting the PIN. For GET operations, this property returns null. The PIN must be between 8-20 digits.
      Parameters:
      value - Value to set for the code property.
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      Sets the createdDateTime property value. The date and time when the PIN was created. Read-only.
      Parameters:
      value - Value to set for the createdDateTime property.
    • setForceChangePinNextSignIn

      public void setForceChangePinNextSignIn(@Nullable Boolean value)
      Sets the forceChangePinNextSignIn property value. Indicates whether the user must change the PIN on their next sign-in. This is true when an admin creates or resets the PIN, and false after the user changes it.
      Parameters:
      value - Value to set for the forceChangePinNextSignIn property.
    • setUpdatedDateTime

      public void setUpdatedDateTime(@Nullable OffsetDateTime value)
      Sets the updatedDateTime property value. The date and time when the PIN was last updated. Read-only.
      Parameters:
      value - Value to set for the updatedDateTime property.