// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.logic.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The Edifact agreement protocol settings. */
@Fluent
public final class EdifactProcessingSettings {
    /*
     * The value indicating whether to mask security information.
     */
    @JsonProperty(value = "maskSecurityInfo", required = true)
    private boolean maskSecurityInfo;

    /*
     * The value indicating whether to preserve interchange.
     */
    @JsonProperty(value = "preserveInterchange", required = true)
    private boolean preserveInterchange;

    /*
     * The value indicating whether to suspend interchange on error.
     */
    @JsonProperty(value = "suspendInterchangeOnError", required = true)
    private boolean suspendInterchangeOnError;

    /*
     * The value indicating whether to create empty xml tags for trailing separators.
     */
    @JsonProperty(value = "createEmptyXmlTagsForTrailingSeparators", required = true)
    private boolean createEmptyXmlTagsForTrailingSeparators;

    /*
     * The value indicating whether to use dot as decimal separator.
     */
    @JsonProperty(value = "useDotAsDecimalSeparator", required = true)
    private boolean useDotAsDecimalSeparator;

    /** Creates an instance of EdifactProcessingSettings class. */
    public EdifactProcessingSettings() {
    }

    /**
     * Get the maskSecurityInfo property: The value indicating whether to mask security information.
     *
     * @return the maskSecurityInfo value.
     */
    public boolean maskSecurityInfo() {
        return this.maskSecurityInfo;
    }

    /**
     * Set the maskSecurityInfo property: The value indicating whether to mask security information.
     *
     * @param maskSecurityInfo the maskSecurityInfo value to set.
     * @return the EdifactProcessingSettings object itself.
     */
    public EdifactProcessingSettings withMaskSecurityInfo(boolean maskSecurityInfo) {
        this.maskSecurityInfo = maskSecurityInfo;
        return this;
    }

    /**
     * Get the preserveInterchange property: The value indicating whether to preserve interchange.
     *
     * @return the preserveInterchange value.
     */
    public boolean preserveInterchange() {
        return this.preserveInterchange;
    }

    /**
     * Set the preserveInterchange property: The value indicating whether to preserve interchange.
     *
     * @param preserveInterchange the preserveInterchange value to set.
     * @return the EdifactProcessingSettings object itself.
     */
    public EdifactProcessingSettings withPreserveInterchange(boolean preserveInterchange) {
        this.preserveInterchange = preserveInterchange;
        return this;
    }

    /**
     * Get the suspendInterchangeOnError property: The value indicating whether to suspend interchange on error.
     *
     * @return the suspendInterchangeOnError value.
     */
    public boolean suspendInterchangeOnError() {
        return this.suspendInterchangeOnError;
    }

    /**
     * Set the suspendInterchangeOnError property: The value indicating whether to suspend interchange on error.
     *
     * @param suspendInterchangeOnError the suspendInterchangeOnError value to set.
     * @return the EdifactProcessingSettings object itself.
     */
    public EdifactProcessingSettings withSuspendInterchangeOnError(boolean suspendInterchangeOnError) {
        this.suspendInterchangeOnError = suspendInterchangeOnError;
        return this;
    }

    /**
     * Get the createEmptyXmlTagsForTrailingSeparators property: The value indicating whether to create empty xml tags
     * for trailing separators.
     *
     * @return the createEmptyXmlTagsForTrailingSeparators value.
     */
    public boolean createEmptyXmlTagsForTrailingSeparators() {
        return this.createEmptyXmlTagsForTrailingSeparators;
    }

    /**
     * Set the createEmptyXmlTagsForTrailingSeparators property: The value indicating whether to create empty xml tags
     * for trailing separators.
     *
     * @param createEmptyXmlTagsForTrailingSeparators the createEmptyXmlTagsForTrailingSeparators value to set.
     * @return the EdifactProcessingSettings object itself.
     */
    public EdifactProcessingSettings withCreateEmptyXmlTagsForTrailingSeparators(
        boolean createEmptyXmlTagsForTrailingSeparators) {
        this.createEmptyXmlTagsForTrailingSeparators = createEmptyXmlTagsForTrailingSeparators;
        return this;
    }

    /**
     * Get the useDotAsDecimalSeparator property: The value indicating whether to use dot as decimal separator.
     *
     * @return the useDotAsDecimalSeparator value.
     */
    public boolean useDotAsDecimalSeparator() {
        return this.useDotAsDecimalSeparator;
    }

    /**
     * Set the useDotAsDecimalSeparator property: The value indicating whether to use dot as decimal separator.
     *
     * @param useDotAsDecimalSeparator the useDotAsDecimalSeparator value to set.
     * @return the EdifactProcessingSettings object itself.
     */
    public EdifactProcessingSettings withUseDotAsDecimalSeparator(boolean useDotAsDecimalSeparator) {
        this.useDotAsDecimalSeparator = useDotAsDecimalSeparator;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
