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

com.pulumi.azurenative.logic.inputs.AS2ValidationSettingsArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.logic.inputs;

import com.pulumi.azurenative.logic.enums.EncryptionAlgorithm;
import com.pulumi.azurenative.logic.enums.SigningAlgorithm;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The AS2 agreement validation settings.
 * 
 */
public final class AS2ValidationSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final AS2ValidationSettingsArgs Empty = new AS2ValidationSettingsArgs();

    /**
     * The value indicating whether to check for certificate revocation list on receive.
     * 
     */
    @Import(name="checkCertificateRevocationListOnReceive", required=true)
    private Output checkCertificateRevocationListOnReceive;

    /**
     * @return The value indicating whether to check for certificate revocation list on receive.
     * 
     */
    public Output checkCertificateRevocationListOnReceive() {
        return this.checkCertificateRevocationListOnReceive;
    }

    /**
     * The value indicating whether to check for certificate revocation list on send.
     * 
     */
    @Import(name="checkCertificateRevocationListOnSend", required=true)
    private Output checkCertificateRevocationListOnSend;

    /**
     * @return The value indicating whether to check for certificate revocation list on send.
     * 
     */
    public Output checkCertificateRevocationListOnSend() {
        return this.checkCertificateRevocationListOnSend;
    }

    /**
     * The value indicating whether to check for duplicate message.
     * 
     */
    @Import(name="checkDuplicateMessage", required=true)
    private Output checkDuplicateMessage;

    /**
     * @return The value indicating whether to check for duplicate message.
     * 
     */
    public Output checkDuplicateMessage() {
        return this.checkDuplicateMessage;
    }

    /**
     * The value indicating whether the message has to be compressed.
     * 
     */
    @Import(name="compressMessage", required=true)
    private Output compressMessage;

    /**
     * @return The value indicating whether the message has to be compressed.
     * 
     */
    public Output compressMessage() {
        return this.compressMessage;
    }

    /**
     * The value indicating whether the message has to be encrypted.
     * 
     */
    @Import(name="encryptMessage", required=true)
    private Output encryptMessage;

    /**
     * @return The value indicating whether the message has to be encrypted.
     * 
     */
    public Output encryptMessage() {
        return this.encryptMessage;
    }

    /**
     * The encryption algorithm.
     * 
     */
    @Import(name="encryptionAlgorithm", required=true)
    private Output> encryptionAlgorithm;

    /**
     * @return The encryption algorithm.
     * 
     */
    public Output> encryptionAlgorithm() {
        return this.encryptionAlgorithm;
    }

    /**
     * The number of days to look back for duplicate interchange.
     * 
     */
    @Import(name="interchangeDuplicatesValidityDays", required=true)
    private Output interchangeDuplicatesValidityDays;

    /**
     * @return The number of days to look back for duplicate interchange.
     * 
     */
    public Output interchangeDuplicatesValidityDays() {
        return this.interchangeDuplicatesValidityDays;
    }

    /**
     * The value indicating whether to override incoming message properties with those in agreement.
     * 
     */
    @Import(name="overrideMessageProperties", required=true)
    private Output overrideMessageProperties;

    /**
     * @return The value indicating whether to override incoming message properties with those in agreement.
     * 
     */
    public Output overrideMessageProperties() {
        return this.overrideMessageProperties;
    }

    /**
     * The value indicating whether the message has to be signed.
     * 
     */
    @Import(name="signMessage", required=true)
    private Output signMessage;

    /**
     * @return The value indicating whether the message has to be signed.
     * 
     */
    public Output signMessage() {
        return this.signMessage;
    }

    /**
     * The signing algorithm.
     * 
     */
    @Import(name="signingAlgorithm")
    private @Nullable Output> signingAlgorithm;

    /**
     * @return The signing algorithm.
     * 
     */
    public Optional>> signingAlgorithm() {
        return Optional.ofNullable(this.signingAlgorithm);
    }

    private AS2ValidationSettingsArgs() {}

    private AS2ValidationSettingsArgs(AS2ValidationSettingsArgs $) {
        this.checkCertificateRevocationListOnReceive = $.checkCertificateRevocationListOnReceive;
        this.checkCertificateRevocationListOnSend = $.checkCertificateRevocationListOnSend;
        this.checkDuplicateMessage = $.checkDuplicateMessage;
        this.compressMessage = $.compressMessage;
        this.encryptMessage = $.encryptMessage;
        this.encryptionAlgorithm = $.encryptionAlgorithm;
        this.interchangeDuplicatesValidityDays = $.interchangeDuplicatesValidityDays;
        this.overrideMessageProperties = $.overrideMessageProperties;
        this.signMessage = $.signMessage;
        this.signingAlgorithm = $.signingAlgorithm;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(AS2ValidationSettingsArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private AS2ValidationSettingsArgs $;

        public Builder() {
            $ = new AS2ValidationSettingsArgs();
        }

        public Builder(AS2ValidationSettingsArgs defaults) {
            $ = new AS2ValidationSettingsArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param checkCertificateRevocationListOnReceive The value indicating whether to check for certificate revocation list on receive.
         * 
         * @return builder
         * 
         */
        public Builder checkCertificateRevocationListOnReceive(Output checkCertificateRevocationListOnReceive) {
            $.checkCertificateRevocationListOnReceive = checkCertificateRevocationListOnReceive;
            return this;
        }

        /**
         * @param checkCertificateRevocationListOnReceive The value indicating whether to check for certificate revocation list on receive.
         * 
         * @return builder
         * 
         */
        public Builder checkCertificateRevocationListOnReceive(Boolean checkCertificateRevocationListOnReceive) {
            return checkCertificateRevocationListOnReceive(Output.of(checkCertificateRevocationListOnReceive));
        }

        /**
         * @param checkCertificateRevocationListOnSend The value indicating whether to check for certificate revocation list on send.
         * 
         * @return builder
         * 
         */
        public Builder checkCertificateRevocationListOnSend(Output checkCertificateRevocationListOnSend) {
            $.checkCertificateRevocationListOnSend = checkCertificateRevocationListOnSend;
            return this;
        }

        /**
         * @param checkCertificateRevocationListOnSend The value indicating whether to check for certificate revocation list on send.
         * 
         * @return builder
         * 
         */
        public Builder checkCertificateRevocationListOnSend(Boolean checkCertificateRevocationListOnSend) {
            return checkCertificateRevocationListOnSend(Output.of(checkCertificateRevocationListOnSend));
        }

        /**
         * @param checkDuplicateMessage The value indicating whether to check for duplicate message.
         * 
         * @return builder
         * 
         */
        public Builder checkDuplicateMessage(Output checkDuplicateMessage) {
            $.checkDuplicateMessage = checkDuplicateMessage;
            return this;
        }

        /**
         * @param checkDuplicateMessage The value indicating whether to check for duplicate message.
         * 
         * @return builder
         * 
         */
        public Builder checkDuplicateMessage(Boolean checkDuplicateMessage) {
            return checkDuplicateMessage(Output.of(checkDuplicateMessage));
        }

        /**
         * @param compressMessage The value indicating whether the message has to be compressed.
         * 
         * @return builder
         * 
         */
        public Builder compressMessage(Output compressMessage) {
            $.compressMessage = compressMessage;
            return this;
        }

        /**
         * @param compressMessage The value indicating whether the message has to be compressed.
         * 
         * @return builder
         * 
         */
        public Builder compressMessage(Boolean compressMessage) {
            return compressMessage(Output.of(compressMessage));
        }

        /**
         * @param encryptMessage The value indicating whether the message has to be encrypted.
         * 
         * @return builder
         * 
         */
        public Builder encryptMessage(Output encryptMessage) {
            $.encryptMessage = encryptMessage;
            return this;
        }

        /**
         * @param encryptMessage The value indicating whether the message has to be encrypted.
         * 
         * @return builder
         * 
         */
        public Builder encryptMessage(Boolean encryptMessage) {
            return encryptMessage(Output.of(encryptMessage));
        }

        /**
         * @param encryptionAlgorithm The encryption algorithm.
         * 
         * @return builder
         * 
         */
        public Builder encryptionAlgorithm(Output> encryptionAlgorithm) {
            $.encryptionAlgorithm = encryptionAlgorithm;
            return this;
        }

        /**
         * @param encryptionAlgorithm The encryption algorithm.
         * 
         * @return builder
         * 
         */
        public Builder encryptionAlgorithm(Either encryptionAlgorithm) {
            return encryptionAlgorithm(Output.of(encryptionAlgorithm));
        }

        /**
         * @param encryptionAlgorithm The encryption algorithm.
         * 
         * @return builder
         * 
         */
        public Builder encryptionAlgorithm(String encryptionAlgorithm) {
            return encryptionAlgorithm(Either.ofLeft(encryptionAlgorithm));
        }

        /**
         * @param encryptionAlgorithm The encryption algorithm.
         * 
         * @return builder
         * 
         */
        public Builder encryptionAlgorithm(EncryptionAlgorithm encryptionAlgorithm) {
            return encryptionAlgorithm(Either.ofRight(encryptionAlgorithm));
        }

        /**
         * @param interchangeDuplicatesValidityDays The number of days to look back for duplicate interchange.
         * 
         * @return builder
         * 
         */
        public Builder interchangeDuplicatesValidityDays(Output interchangeDuplicatesValidityDays) {
            $.interchangeDuplicatesValidityDays = interchangeDuplicatesValidityDays;
            return this;
        }

        /**
         * @param interchangeDuplicatesValidityDays The number of days to look back for duplicate interchange.
         * 
         * @return builder
         * 
         */
        public Builder interchangeDuplicatesValidityDays(Integer interchangeDuplicatesValidityDays) {
            return interchangeDuplicatesValidityDays(Output.of(interchangeDuplicatesValidityDays));
        }

        /**
         * @param overrideMessageProperties The value indicating whether to override incoming message properties with those in agreement.
         * 
         * @return builder
         * 
         */
        public Builder overrideMessageProperties(Output overrideMessageProperties) {
            $.overrideMessageProperties = overrideMessageProperties;
            return this;
        }

        /**
         * @param overrideMessageProperties The value indicating whether to override incoming message properties with those in agreement.
         * 
         * @return builder
         * 
         */
        public Builder overrideMessageProperties(Boolean overrideMessageProperties) {
            return overrideMessageProperties(Output.of(overrideMessageProperties));
        }

        /**
         * @param signMessage The value indicating whether the message has to be signed.
         * 
         * @return builder
         * 
         */
        public Builder signMessage(Output signMessage) {
            $.signMessage = signMessage;
            return this;
        }

        /**
         * @param signMessage The value indicating whether the message has to be signed.
         * 
         * @return builder
         * 
         */
        public Builder signMessage(Boolean signMessage) {
            return signMessage(Output.of(signMessage));
        }

        /**
         * @param signingAlgorithm The signing algorithm.
         * 
         * @return builder
         * 
         */
        public Builder signingAlgorithm(@Nullable Output> signingAlgorithm) {
            $.signingAlgorithm = signingAlgorithm;
            return this;
        }

        /**
         * @param signingAlgorithm The signing algorithm.
         * 
         * @return builder
         * 
         */
        public Builder signingAlgorithm(Either signingAlgorithm) {
            return signingAlgorithm(Output.of(signingAlgorithm));
        }

        /**
         * @param signingAlgorithm The signing algorithm.
         * 
         * @return builder
         * 
         */
        public Builder signingAlgorithm(String signingAlgorithm) {
            return signingAlgorithm(Either.ofLeft(signingAlgorithm));
        }

        /**
         * @param signingAlgorithm The signing algorithm.
         * 
         * @return builder
         * 
         */
        public Builder signingAlgorithm(SigningAlgorithm signingAlgorithm) {
            return signingAlgorithm(Either.ofRight(signingAlgorithm));
        }

        public AS2ValidationSettingsArgs build() {
            if ($.checkCertificateRevocationListOnReceive == null) {
                throw new MissingRequiredPropertyException("AS2ValidationSettingsArgs", "checkCertificateRevocationListOnReceive");
            }
            if ($.checkCertificateRevocationListOnSend == null) {
                throw new MissingRequiredPropertyException("AS2ValidationSettingsArgs", "checkCertificateRevocationListOnSend");
            }
            if ($.checkDuplicateMessage == null) {
                throw new MissingRequiredPropertyException("AS2ValidationSettingsArgs", "checkDuplicateMessage");
            }
            if ($.compressMessage == null) {
                throw new MissingRequiredPropertyException("AS2ValidationSettingsArgs", "compressMessage");
            }
            if ($.encryptMessage == null) {
                throw new MissingRequiredPropertyException("AS2ValidationSettingsArgs", "encryptMessage");
            }
            if ($.encryptionAlgorithm == null) {
                throw new MissingRequiredPropertyException("AS2ValidationSettingsArgs", "encryptionAlgorithm");
            }
            if ($.interchangeDuplicatesValidityDays == null) {
                throw new MissingRequiredPropertyException("AS2ValidationSettingsArgs", "interchangeDuplicatesValidityDays");
            }
            if ($.overrideMessageProperties == null) {
                throw new MissingRequiredPropertyException("AS2ValidationSettingsArgs", "overrideMessageProperties");
            }
            if ($.signMessage == null) {
                throw new MissingRequiredPropertyException("AS2ValidationSettingsArgs", "signMessage");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy