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

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

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 ExternalIdentitiesPolicy extends PolicyBase implements Parsable {
    /**
     * Instantiates a new {@link ExternalIdentitiesPolicy} and sets the default values.
     */
    public ExternalIdentitiesPolicy() {
        super();
        this.setOdataType("#microsoft.graph.externalIdentitiesPolicy");
    }
    /**
     * 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 ExternalIdentitiesPolicy}
     */
    @jakarta.annotation.Nonnull
    public static ExternalIdentitiesPolicy createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
        Objects.requireNonNull(parseNode);
        return new ExternalIdentitiesPolicy();
    }
    /**
     * Gets the allowDeletedIdentitiesDataRemoval property value. Reserved for future use.
     * @return a {@link Boolean}
     */
    @jakarta.annotation.Nullable
    public Boolean getAllowDeletedIdentitiesDataRemoval() {
        return this.backingStore.get("allowDeletedIdentitiesDataRemoval");
    }
    /**
     * Gets the allowExternalIdentitiesToLeave property value. Defines whether external users can leave the guest tenant. If set to false, self-service controls are disabled, and the admin of the guest tenant must manually remove the external user from the guest tenant. When the external user leaves the tenant, their data in the guest tenant is first soft-deleted then permanently deleted in 30 days.
     * @return a {@link Boolean}
     */
    @jakarta.annotation.Nullable
    public Boolean getAllowExternalIdentitiesToLeave() {
        return this.backingStore.get("allowExternalIdentitiesToLeave");
    }
    /**
     * 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("allowDeletedIdentitiesDataRemoval", (n) -> { this.setAllowDeletedIdentitiesDataRemoval(n.getBooleanValue()); });
        deserializerMap.put("allowExternalIdentitiesToLeave", (n) -> { this.setAllowExternalIdentitiesToLeave(n.getBooleanValue()); });
        return deserializerMap;
    }
    /**
     * 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.writeBooleanValue("allowDeletedIdentitiesDataRemoval", this.getAllowDeletedIdentitiesDataRemoval());
        writer.writeBooleanValue("allowExternalIdentitiesToLeave", this.getAllowExternalIdentitiesToLeave());
    }
    /**
     * Sets the allowDeletedIdentitiesDataRemoval property value. Reserved for future use.
     * @param value Value to set for the allowDeletedIdentitiesDataRemoval property.
     */
    public void setAllowDeletedIdentitiesDataRemoval(@jakarta.annotation.Nullable final Boolean value) {
        this.backingStore.set("allowDeletedIdentitiesDataRemoval", value);
    }
    /**
     * Sets the allowExternalIdentitiesToLeave property value. Defines whether external users can leave the guest tenant. If set to false, self-service controls are disabled, and the admin of the guest tenant must manually remove the external user from the guest tenant. When the external user leaves the tenant, their data in the guest tenant is first soft-deleted then permanently deleted in 30 days.
     * @param value Value to set for the allowExternalIdentitiesToLeave property.
     */
    public void setAllowExternalIdentitiesToLeave(@jakarta.annotation.Nullable final Boolean value) {
        this.backingStore.set("allowExternalIdentitiesToLeave", value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy