Package com.microsoft.graph.models
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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a newTemporaryAccessPassAuthenticationMethodConfigurationand 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 defaultLength property value.Gets the defaultLifetimeInMinutes property value.The deserialization information for the current modelGets the includeTargets property value.Gets the isUsableOnce property value.Gets the maximumLifetimeInMinutes property value.Gets the minimumLifetimeInMinutes property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetDefaultLength(Integer value) Sets the defaultLength property value.voidSets the defaultLifetimeInMinutes property value.voidSets the includeTargets property value.voidsetIsUsableOnce(Boolean value) Sets the isUsableOnce property value.voidSets the maximumLifetimeInMinutes property value.voidSets the minimumLifetimeInMinutes property value.Methods inherited from class com.microsoft.graph.models.AuthenticationMethodConfiguration
getExcludeTargets, getState, setExcludeTargets, setStateMethods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
TemporaryAccessPassAuthenticationMethodConfiguration
public TemporaryAccessPassAuthenticationMethodConfiguration()Instantiates a newTemporaryAccessPassAuthenticationMethodConfigurationand sets the default values.
-
-
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
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
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:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classAuthenticationMethodConfiguration- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getIncludeTargets
Gets the includeTargets property value. A collection of groups that are enabled to use the authentication method.- Returns:
- a
List<AuthenticationMethodTarget>
-
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
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
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:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classAuthenticationMethodConfiguration- Parameters:
writer- Serialization writer to use to serialize this model
-
setDefaultLength
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
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
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
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
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
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.
-