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

com.pulumi.alicloud.edas.K8sSlbAttachmentArgs Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.edas;

import com.pulumi.alicloud.edas.inputs.K8sSlbAttachmentSlbConfigArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final K8sSlbAttachmentArgs Empty = new K8sSlbAttachmentArgs();

    /**
     * The ID of the EDAS k8s application to which you want to bind SLB instances.
     * 
     */
    @Import(name="appId", required=true)
    private Output appId;

    /**
     * @return The ID of the EDAS k8s application to which you want to bind SLB instances.
     * 
     */
    public Output appId() {
        return this.appId;
    }

    /**
     * The configurations of SLB attachment, which is supported for multiple configurations. See `slb_configs` below.
     * 
     */
    @Import(name="slbConfigs")
    private @Nullable Output> slbConfigs;

    /**
     * @return The configurations of SLB attachment, which is supported for multiple configurations. See `slb_configs` below.
     * 
     */
    public Optional>> slbConfigs() {
        return Optional.ofNullable(this.slbConfigs);
    }

    private K8sSlbAttachmentArgs() {}

    private K8sSlbAttachmentArgs(K8sSlbAttachmentArgs $) {
        this.appId = $.appId;
        this.slbConfigs = $.slbConfigs;
    }

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

    public static final class Builder {
        private K8sSlbAttachmentArgs $;

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

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

        /**
         * @param appId The ID of the EDAS k8s application to which you want to bind SLB instances.
         * 
         * @return builder
         * 
         */
        public Builder appId(Output appId) {
            $.appId = appId;
            return this;
        }

        /**
         * @param appId The ID of the EDAS k8s application to which you want to bind SLB instances.
         * 
         * @return builder
         * 
         */
        public Builder appId(String appId) {
            return appId(Output.of(appId));
        }

        /**
         * @param slbConfigs The configurations of SLB attachment, which is supported for multiple configurations. See `slb_configs` below.
         * 
         * @return builder
         * 
         */
        public Builder slbConfigs(@Nullable Output> slbConfigs) {
            $.slbConfigs = slbConfigs;
            return this;
        }

        /**
         * @param slbConfigs The configurations of SLB attachment, which is supported for multiple configurations. See `slb_configs` below.
         * 
         * @return builder
         * 
         */
        public Builder slbConfigs(List slbConfigs) {
            return slbConfigs(Output.of(slbConfigs));
        }

        /**
         * @param slbConfigs The configurations of SLB attachment, which is supported for multiple configurations. See `slb_configs` below.
         * 
         * @return builder
         * 
         */
        public Builder slbConfigs(K8sSlbAttachmentSlbConfigArgs... slbConfigs) {
            return slbConfigs(List.of(slbConfigs));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy