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

com.pulumi.aws.appmesh.inputs.VirtualNodeSpecBackendVirtualServiceClientPolicyTlsArgs Maven / Gradle / Ivy

// *** 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.aws.appmesh.inputs;

import com.pulumi.aws.appmesh.inputs.VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateArgs;
import com.pulumi.aws.appmesh.inputs.VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationArgs;
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.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class VirtualNodeSpecBackendVirtualServiceClientPolicyTlsArgs extends com.pulumi.resources.ResourceArgs {

    public static final VirtualNodeSpecBackendVirtualServiceClientPolicyTlsArgs Empty = new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsArgs();

    /**
     * Listener's TLS certificate.
     * 
     */
    @Import(name="certificate")
    private @Nullable Output certificate;

    /**
     * @return Listener's TLS certificate.
     * 
     */
    public Optional> certificate() {
        return Optional.ofNullable(this.certificate);
    }

    /**
     * Whether the policy is enforced. Default is `true`.
     * 
     */
    @Import(name="enforce")
    private @Nullable Output enforce;

    /**
     * @return Whether the policy is enforced. Default is `true`.
     * 
     */
    public Optional> enforce() {
        return Optional.ofNullable(this.enforce);
    }

    /**
     * One or more ports that the policy is enforced for.
     * 
     */
    @Import(name="ports")
    private @Nullable Output> ports;

    /**
     * @return One or more ports that the policy is enforced for.
     * 
     */
    public Optional>> ports() {
        return Optional.ofNullable(this.ports);
    }

    /**
     * Listener's Transport Layer Security (TLS) validation context.
     * 
     */
    @Import(name="validation", required=true)
    private Output validation;

    /**
     * @return Listener's Transport Layer Security (TLS) validation context.
     * 
     */
    public Output validation() {
        return this.validation;
    }

    private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsArgs() {}

    private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsArgs(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsArgs $) {
        this.certificate = $.certificate;
        this.enforce = $.enforce;
        this.ports = $.ports;
        this.validation = $.validation;
    }

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

    public static final class Builder {
        private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsArgs $;

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

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

        /**
         * @param certificate Listener's TLS certificate.
         * 
         * @return builder
         * 
         */
        public Builder certificate(@Nullable Output certificate) {
            $.certificate = certificate;
            return this;
        }

        /**
         * @param certificate Listener's TLS certificate.
         * 
         * @return builder
         * 
         */
        public Builder certificate(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateArgs certificate) {
            return certificate(Output.of(certificate));
        }

        /**
         * @param enforce Whether the policy is enforced. Default is `true`.
         * 
         * @return builder
         * 
         */
        public Builder enforce(@Nullable Output enforce) {
            $.enforce = enforce;
            return this;
        }

        /**
         * @param enforce Whether the policy is enforced. Default is `true`.
         * 
         * @return builder
         * 
         */
        public Builder enforce(Boolean enforce) {
            return enforce(Output.of(enforce));
        }

        /**
         * @param ports One or more ports that the policy is enforced for.
         * 
         * @return builder
         * 
         */
        public Builder ports(@Nullable Output> ports) {
            $.ports = ports;
            return this;
        }

        /**
         * @param ports One or more ports that the policy is enforced for.
         * 
         * @return builder
         * 
         */
        public Builder ports(List ports) {
            return ports(Output.of(ports));
        }

        /**
         * @param ports One or more ports that the policy is enforced for.
         * 
         * @return builder
         * 
         */
        public Builder ports(Integer... ports) {
            return ports(List.of(ports));
        }

        /**
         * @param validation Listener's Transport Layer Security (TLS) validation context.
         * 
         * @return builder
         * 
         */
        public Builder validation(Output validation) {
            $.validation = validation;
            return this;
        }

        /**
         * @param validation Listener's Transport Layer Security (TLS) validation context.
         * 
         * @return builder
         * 
         */
        public Builder validation(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationArgs validation) {
            return validation(Output.of(validation));
        }

        public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsArgs build() {
            if ($.validation == null) {
                throw new MissingRequiredPropertyException("VirtualNodeSpecBackendVirtualServiceClientPolicyTlsArgs", "validation");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy