Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package com.microsoft.graph.models;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class AuthenticationMethodsPolicy extends Entity implements Parsable {
/**
* Instantiates a new {@link AuthenticationMethodsPolicy} and sets the default values.
*/
public AuthenticationMethodsPolicy() {
super();
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @return a {@link AuthenticationMethodsPolicy}
*/
@jakarta.annotation.Nonnull
public static AuthenticationMethodsPolicy createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new AuthenticationMethodsPolicy();
}
/**
* Gets the authenticationMethodConfigurations property value. Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getAuthenticationMethodConfigurations() {
return this.backingStore.get("authenticationMethodConfigurations");
}
/**
* Gets the description property value. A description of the policy. Read-only.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDescription() {
return this.backingStore.get("description");
}
/**
* Gets the displayName property value. The name of the policy. Read-only.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDisplayName() {
return this.backingStore.get("displayName");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers());
deserializerMap.put("authenticationMethodConfigurations", (n) -> { this.setAuthenticationMethodConfigurations(n.getCollectionOfObjectValues(AuthenticationMethodConfiguration::createFromDiscriminatorValue)); });
deserializerMap.put("description", (n) -> { this.setDescription(n.getStringValue()); });
deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); });
deserializerMap.put("lastModifiedDateTime", (n) -> { this.setLastModifiedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("policyMigrationState", (n) -> { this.setPolicyMigrationState(n.getEnumValue(AuthenticationMethodsPolicyMigrationState::forValue)); });
deserializerMap.put("policyVersion", (n) -> { this.setPolicyVersion(n.getStringValue()); });
deserializerMap.put("reconfirmationInDays", (n) -> { this.setReconfirmationInDays(n.getIntegerValue()); });
deserializerMap.put("registrationEnforcement", (n) -> { this.setRegistrationEnforcement(n.getObjectValue(RegistrationEnforcement::createFromDiscriminatorValue)); });
return deserializerMap;
}
/**
* Gets the lastModifiedDateTime property value. The date and time of the last update to the policy. Read-only.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getLastModifiedDateTime() {
return this.backingStore.get("lastModifiedDateTime");
}
/**
* Gets the policyMigrationState property value. The state of migration of the authentication methods policy from the legacy multifactor authentication and self-service password reset (SSPR) policies. The possible values are: premigration - means the authentication methods policy is used for authentication only, legacy policies are respected. migrationInProgress - means the authentication methods policy is used for both authentication and SSPR, legacy policies are respected. migrationComplete - means the authentication methods policy is used for authentication and SSPR, legacy policies are ignored. unknownFutureValue - Evolvable enumeration sentinel value. Do not use.
* @return a {@link AuthenticationMethodsPolicyMigrationState}
*/
@jakarta.annotation.Nullable
public AuthenticationMethodsPolicyMigrationState getPolicyMigrationState() {
return this.backingStore.get("policyMigrationState");
}
/**
* Gets the policyVersion property value. The version of the policy in use. Read-only.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getPolicyVersion() {
return this.backingStore.get("policyVersion");
}
/**
* Gets the reconfirmationInDays property value. The reconfirmationInDays property
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getReconfirmationInDays() {
return this.backingStore.get("reconfirmationInDays");
}
/**
* Gets the registrationEnforcement property value. Enforce registration at sign-in time. This property can be used to remind users to set up targeted authentication methods.
* @return a {@link RegistrationEnforcement}
*/
@jakarta.annotation.Nullable
public RegistrationEnforcement getRegistrationEnforcement() {
return this.backingStore.get("registrationEnforcement");
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
Objects.requireNonNull(writer);
super.serialize(writer);
writer.writeCollectionOfObjectValues("authenticationMethodConfigurations", this.getAuthenticationMethodConfigurations());
writer.writeStringValue("description", this.getDescription());
writer.writeStringValue("displayName", this.getDisplayName());
writer.writeOffsetDateTimeValue("lastModifiedDateTime", this.getLastModifiedDateTime());
writer.writeEnumValue("policyMigrationState", this.getPolicyMigrationState());
writer.writeStringValue("policyVersion", this.getPolicyVersion());
writer.writeIntegerValue("reconfirmationInDays", this.getReconfirmationInDays());
writer.writeObjectValue("registrationEnforcement", this.getRegistrationEnforcement());
}
/**
* Sets the authenticationMethodConfigurations property value. Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy.
* @param value Value to set for the authenticationMethodConfigurations property.
*/
public void setAuthenticationMethodConfigurations(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("authenticationMethodConfigurations", value);
}
/**
* Sets the description property value. A description of the policy. Read-only.
* @param value Value to set for the description property.
*/
public void setDescription(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("description", value);
}
/**
* Sets the displayName property value. The name of the policy. Read-only.
* @param value Value to set for the displayName property.
*/
public void setDisplayName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("displayName", value);
}
/**
* Sets the lastModifiedDateTime property value. The date and time of the last update to the policy. Read-only.
* @param value Value to set for the lastModifiedDateTime property.
*/
public void setLastModifiedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("lastModifiedDateTime", value);
}
/**
* Sets the policyMigrationState property value. The state of migration of the authentication methods policy from the legacy multifactor authentication and self-service password reset (SSPR) policies. The possible values are: premigration - means the authentication methods policy is used for authentication only, legacy policies are respected. migrationInProgress - means the authentication methods policy is used for both authentication and SSPR, legacy policies are respected. migrationComplete - means the authentication methods policy is used for authentication and SSPR, legacy policies are ignored. unknownFutureValue - Evolvable enumeration sentinel value. Do not use.
* @param value Value to set for the policyMigrationState property.
*/
public void setPolicyMigrationState(@jakarta.annotation.Nullable final AuthenticationMethodsPolicyMigrationState value) {
this.backingStore.set("policyMigrationState", value);
}
/**
* Sets the policyVersion property value. The version of the policy in use. Read-only.
* @param value Value to set for the policyVersion property.
*/
public void setPolicyVersion(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("policyVersion", value);
}
/**
* Sets the reconfirmationInDays property value. The reconfirmationInDays property
* @param value Value to set for the reconfirmationInDays property.
*/
public void setReconfirmationInDays(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("reconfirmationInDays", value);
}
/**
* Sets the registrationEnforcement property value. Enforce registration at sign-in time. This property can be used to remind users to set up targeted authentication methods.
* @param value Value to set for the registrationEnforcement property.
*/
public void setRegistrationEnforcement(@jakarta.annotation.Nullable final RegistrationEnforcement value) {
this.backingStore.set("registrationEnforcement", value);
}
}