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

com.microsoft.graph.beta.generated.models.B2cIdentityUserFlow Maven / Gradle / Ivy

There is a newer version: 6.28.0
Show newest version
package com.microsoft.graph.beta.models;

import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class B2cIdentityUserFlow extends IdentityUserFlow implements Parsable {
    /**
     * Instantiates a new {@link B2cIdentityUserFlow} and sets the default values.
     */
    public B2cIdentityUserFlow() {
        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 B2cIdentityUserFlow}
     */
    @jakarta.annotation.Nonnull
    public static B2cIdentityUserFlow createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
        Objects.requireNonNull(parseNode);
        return new B2cIdentityUserFlow();
    }
    /**
     * Gets the apiConnectorConfiguration property value. Configuration for enabling an API connector for use as part of the user flow. You can only obtain the value of this object using Get userFlowApiConnectorConfiguration.
     * @return a {@link UserFlowApiConnectorConfiguration}
     */
    @jakarta.annotation.Nullable
    public UserFlowApiConnectorConfiguration getApiConnectorConfiguration() {
        return this.backingStore.get("apiConnectorConfiguration");
    }
    /**
     * Gets the defaultLanguageTag property value. Indicates the default language of the b2cIdentityUserFlow that is used when no ui_locale tag is specified in the request. This field is RFC 5646 compliant.
     * @return a {@link String}
     */
    @jakarta.annotation.Nullable
    public String getDefaultLanguageTag() {
        return this.backingStore.get("defaultLanguageTag");
    }
    /**
     * 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("apiConnectorConfiguration", (n) -> { this.setApiConnectorConfiguration(n.getObjectValue(UserFlowApiConnectorConfiguration::createFromDiscriminatorValue)); });
        deserializerMap.put("defaultLanguageTag", (n) -> { this.setDefaultLanguageTag(n.getStringValue()); });
        deserializerMap.put("identityProviders", (n) -> { this.setIdentityProviders(n.getCollectionOfObjectValues(IdentityProvider::createFromDiscriminatorValue)); });
        deserializerMap.put("isLanguageCustomizationEnabled", (n) -> { this.setIsLanguageCustomizationEnabled(n.getBooleanValue()); });
        deserializerMap.put("languages", (n) -> { this.setLanguages(n.getCollectionOfObjectValues(UserFlowLanguageConfiguration::createFromDiscriminatorValue)); });
        deserializerMap.put("userAttributeAssignments", (n) -> { this.setUserAttributeAssignments(n.getCollectionOfObjectValues(IdentityUserFlowAttributeAssignment::createFromDiscriminatorValue)); });
        deserializerMap.put("userFlowIdentityProviders", (n) -> { this.setUserFlowIdentityProviders(n.getCollectionOfObjectValues(IdentityProviderBase::createFromDiscriminatorValue)); });
        return deserializerMap;
    }
    /**
     * Gets the identityProviders property value. The identity providers included in the user flow.
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getIdentityProviders() {
        return this.backingStore.get("identityProviders");
    }
    /**
     * Gets the isLanguageCustomizationEnabled property value. The property that determines whether language customization is enabled within the B2C user flow. Language customization is not enabled by default for B2C user flows.
     * @return a {@link Boolean}
     */
    @jakarta.annotation.Nullable
    public Boolean getIsLanguageCustomizationEnabled() {
        return this.backingStore.get("isLanguageCustomizationEnabled");
    }
    /**
     * Gets the languages property value. The languages supported for customization within the user flow. Language customization is not enabled by default in B2C user flows.
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getLanguages() {
        return this.backingStore.get("languages");
    }
    /**
     * Gets the userAttributeAssignments property value. The user attribute assignments included in the user flow.
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getUserAttributeAssignments() {
        return this.backingStore.get("userAttributeAssignments");
    }
    /**
     * Gets the userFlowIdentityProviders property value. The identity providers included in the user flow.
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getUserFlowIdentityProviders() {
        return this.backingStore.get("userFlowIdentityProviders");
    }
    /**
     * 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.writeObjectValue("apiConnectorConfiguration", this.getApiConnectorConfiguration());
        writer.writeStringValue("defaultLanguageTag", this.getDefaultLanguageTag());
        writer.writeCollectionOfObjectValues("identityProviders", this.getIdentityProviders());
        writer.writeBooleanValue("isLanguageCustomizationEnabled", this.getIsLanguageCustomizationEnabled());
        writer.writeCollectionOfObjectValues("languages", this.getLanguages());
        writer.writeCollectionOfObjectValues("userAttributeAssignments", this.getUserAttributeAssignments());
        writer.writeCollectionOfObjectValues("userFlowIdentityProviders", this.getUserFlowIdentityProviders());
    }
    /**
     * Sets the apiConnectorConfiguration property value. Configuration for enabling an API connector for use as part of the user flow. You can only obtain the value of this object using Get userFlowApiConnectorConfiguration.
     * @param value Value to set for the apiConnectorConfiguration property.
     */
    public void setApiConnectorConfiguration(@jakarta.annotation.Nullable final UserFlowApiConnectorConfiguration value) {
        this.backingStore.set("apiConnectorConfiguration", value);
    }
    /**
     * Sets the defaultLanguageTag property value. Indicates the default language of the b2cIdentityUserFlow that is used when no ui_locale tag is specified in the request. This field is RFC 5646 compliant.
     * @param value Value to set for the defaultLanguageTag property.
     */
    public void setDefaultLanguageTag(@jakarta.annotation.Nullable final String value) {
        this.backingStore.set("defaultLanguageTag", value);
    }
    /**
     * Sets the identityProviders property value. The identity providers included in the user flow.
     * @param value Value to set for the identityProviders property.
     */
    public void setIdentityProviders(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("identityProviders", value);
    }
    /**
     * Sets the isLanguageCustomizationEnabled property value. The property that determines whether language customization is enabled within the B2C user flow. Language customization is not enabled by default for B2C user flows.
     * @param value Value to set for the isLanguageCustomizationEnabled property.
     */
    public void setIsLanguageCustomizationEnabled(@jakarta.annotation.Nullable final Boolean value) {
        this.backingStore.set("isLanguageCustomizationEnabled", value);
    }
    /**
     * Sets the languages property value. The languages supported for customization within the user flow. Language customization is not enabled by default in B2C user flows.
     * @param value Value to set for the languages property.
     */
    public void setLanguages(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("languages", value);
    }
    /**
     * Sets the userAttributeAssignments property value. The user attribute assignments included in the user flow.
     * @param value Value to set for the userAttributeAssignments property.
     */
    public void setUserAttributeAssignments(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("userAttributeAssignments", value);
    }
    /**
     * Sets the userFlowIdentityProviders property value. The identity providers included in the user flow.
     * @param value Value to set for the userFlowIdentityProviders property.
     */
    public void setUserFlowIdentityProviders(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("userFlowIdentityProviders", value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy