All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.graph.models.TemporaryAccessPassAuthenticationMethod Maven / Gradle / Ivy

// Template Source: BaseEntity.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the MIT License.  See License in the project root for license information.
// ------------------------------------------------------------------------------

package com.microsoft.graph.models;
import com.microsoft.graph.serializer.ISerializer;
import com.microsoft.graph.serializer.IJsonBackedObject;
import com.microsoft.graph.serializer.AdditionalDataManager;
import java.util.EnumSet;
import com.microsoft.graph.models.AuthenticationMethod;


import com.google.gson.JsonObject;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import javax.annotation.Nullable;
import javax.annotation.Nonnull;

// **NOTE** This file was generated by a tool and any changes will be overwritten.

/**
 * The class for the Temporary Access Pass Authentication Method.
 */
public class TemporaryAccessPassAuthenticationMethod extends AuthenticationMethod implements IJsonBackedObject {


    /**
     * The Created Date Time.
     * The date and time when the Temporary Access Pass was created.
     */
    @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"})
    @Expose
	@Nullable
    public java.time.OffsetDateTime createdDateTime;

    /**
     * The Is Usable.
     * The state of the authentication method that indicates whether it's currently usable by the user.
     */
    @SerializedName(value = "isUsable", alternate = {"IsUsable"})
    @Expose
	@Nullable
    public Boolean isUsable;

    /**
     * The Is Usable Once.
     * 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.
     */
    @SerializedName(value = "isUsableOnce", alternate = {"IsUsableOnce"})
    @Expose
	@Nullable
    public Boolean isUsableOnce;

    /**
     * The Lifetime In Minutes.
     * The lifetime of the Temporary Access Pass in minutes starting at startDateTime. Must be between 10 and 43200 inclusive (equivalent to 30 days).
     */
    @SerializedName(value = "lifetimeInMinutes", alternate = {"LifetimeInMinutes"})
    @Expose
	@Nullable
    public Integer lifetimeInMinutes;

    /**
     * The Method Usability Reason.
     * Details about the usability state (isUsable). Reasons can include: EnabledByPolicy, DisabledByPolicy, Expired, NotYetValid, OneTimeUsed.
     */
    @SerializedName(value = "methodUsabilityReason", alternate = {"MethodUsabilityReason"})
    @Expose
	@Nullable
    public String methodUsabilityReason;

    /**
     * The Start Date Time.
     * The date and time when the Temporary Access Pass becomes available to use and when isUsable is true is enforced.
     */
    @SerializedName(value = "startDateTime", alternate = {"StartDateTime"})
    @Expose
	@Nullable
    public java.time.OffsetDateTime startDateTime;

    /**
     * The Temporary Access Pass.
     * 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.
     */
    @SerializedName(value = "temporaryAccessPass", alternate = {"TemporaryAccessPass"})
    @Expose
	@Nullable
    public String temporaryAccessPass;


    /**
     * Sets the raw JSON object
     *
     * @param serializer the serializer
     * @param json the JSON object to set this object to
     */
    public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy