Package com.microsoft.graph.models
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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a newTemporaryAccessPassAuthenticationMethodand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptioncreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the createdDateTime property value.The deserialization information for the current modelGets the isUsable property value.Gets the isUsableOnce property value.Gets the lifetimeInMinutes property value.Gets the methodUsabilityReason property value.Gets the startDateTime property value.Gets the temporaryAccessPass property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetCreatedDateTime(OffsetDateTime value) Sets the createdDateTime property value.voidsetIsUsable(Boolean value) Sets the isUsable property value.voidsetIsUsableOnce(Boolean value) Sets the isUsableOnce property value.voidsetLifetimeInMinutes(Integer value) Sets the lifetimeInMinutes property value.voidsetMethodUsabilityReason(String value) Sets the methodUsabilityReason property value.voidsetStartDateTime(OffsetDateTime value) Sets the startDateTime property value.voidsetTemporaryAccessPass(String value) Sets the temporaryAccessPass property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
TemporaryAccessPassAuthenticationMethod
public TemporaryAccessPassAuthenticationMethod()Instantiates a newTemporaryAccessPassAuthenticationMethodand sets the default values.
-
-
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
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:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classAuthenticationMethod- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
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
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
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
Gets the methodUsabilityReason property value. Details about the usability state (isUsable). Reasons can include: EnabledByPolicy, DisabledByPolicy, Expired, NotYetValid, OneTimeUsed.- Returns:
- a
String
-
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
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:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classAuthenticationMethod- Parameters:
writer- Serialization writer to use to serialize this model
-
setCreatedDateTime
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
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
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
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
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
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
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.
-