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

com.pulumi.alicloud.pvtz.ZoneAttachmentArgs 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.pvtz;

import com.pulumi.alicloud.pvtz.inputs.ZoneAttachmentVpcArgs;
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 ZoneAttachmentArgs extends com.pulumi.resources.ResourceArgs {

    public static final ZoneAttachmentArgs Empty = new ZoneAttachmentArgs();

    /**
     * The language of code.
     * 
     */
    @Import(name="lang")
    private @Nullable Output lang;

    /**
     * @return The language of code.
     * 
     */
    public Optional> lang() {
        return Optional.ofNullable(this.lang);
    }

    /**
     * The user custom IP address.
     * 
     */
    @Import(name="userClientIp")
    private @Nullable Output userClientIp;

    /**
     * @return The user custom IP address.
     * 
     */
    public Optional> userClientIp() {
        return Optional.ofNullable(this.userClientIp);
    }

    /**
     * The id List of the VPC with the same region, for example:["vpc-1","vpc-2"].
     * 
     */
    @Import(name="vpcIds")
    private @Nullable Output> vpcIds;

    /**
     * @return The id List of the VPC with the same region, for example:["vpc-1","vpc-2"].
     * 
     */
    public Optional>> vpcIds() {
        return Optional.ofNullable(this.vpcIds);
    }

    /**
     * See `vpcs` below.Recommend to use `vpcs`.
     * 
     */
    @Import(name="vpcs")
    private @Nullable Output> vpcs;

    /**
     * @return See `vpcs` below.Recommend to use `vpcs`.
     * 
     */
    public Optional>> vpcs() {
        return Optional.ofNullable(this.vpcs);
    }

    /**
     * The name of the Private Zone Record.
     * 
     */
    @Import(name="zoneId", required=true)
    private Output zoneId;

    /**
     * @return The name of the Private Zone Record.
     * 
     */
    public Output zoneId() {
        return this.zoneId;
    }

    private ZoneAttachmentArgs() {}

    private ZoneAttachmentArgs(ZoneAttachmentArgs $) {
        this.lang = $.lang;
        this.userClientIp = $.userClientIp;
        this.vpcIds = $.vpcIds;
        this.vpcs = $.vpcs;
        this.zoneId = $.zoneId;
    }

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

    public static final class Builder {
        private ZoneAttachmentArgs $;

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

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

        /**
         * @param lang The language of code.
         * 
         * @return builder
         * 
         */
        public Builder lang(@Nullable Output lang) {
            $.lang = lang;
            return this;
        }

        /**
         * @param lang The language of code.
         * 
         * @return builder
         * 
         */
        public Builder lang(String lang) {
            return lang(Output.of(lang));
        }

        /**
         * @param userClientIp The user custom IP address.
         * 
         * @return builder
         * 
         */
        public Builder userClientIp(@Nullable Output userClientIp) {
            $.userClientIp = userClientIp;
            return this;
        }

        /**
         * @param userClientIp The user custom IP address.
         * 
         * @return builder
         * 
         */
        public Builder userClientIp(String userClientIp) {
            return userClientIp(Output.of(userClientIp));
        }

        /**
         * @param vpcIds The id List of the VPC with the same region, for example:["vpc-1","vpc-2"].
         * 
         * @return builder
         * 
         */
        public Builder vpcIds(@Nullable Output> vpcIds) {
            $.vpcIds = vpcIds;
            return this;
        }

        /**
         * @param vpcIds The id List of the VPC with the same region, for example:["vpc-1","vpc-2"].
         * 
         * @return builder
         * 
         */
        public Builder vpcIds(List vpcIds) {
            return vpcIds(Output.of(vpcIds));
        }

        /**
         * @param vpcIds The id List of the VPC with the same region, for example:["vpc-1","vpc-2"].
         * 
         * @return builder
         * 
         */
        public Builder vpcIds(String... vpcIds) {
            return vpcIds(List.of(vpcIds));
        }

        /**
         * @param vpcs See `vpcs` below.Recommend to use `vpcs`.
         * 
         * @return builder
         * 
         */
        public Builder vpcs(@Nullable Output> vpcs) {
            $.vpcs = vpcs;
            return this;
        }

        /**
         * @param vpcs See `vpcs` below.Recommend to use `vpcs`.
         * 
         * @return builder
         * 
         */
        public Builder vpcs(List vpcs) {
            return vpcs(Output.of(vpcs));
        }

        /**
         * @param vpcs See `vpcs` below.Recommend to use `vpcs`.
         * 
         * @return builder
         * 
         */
        public Builder vpcs(ZoneAttachmentVpcArgs... vpcs) {
            return vpcs(List.of(vpcs));
        }

        /**
         * @param zoneId The name of the Private Zone Record.
         * 
         * @return builder
         * 
         */
        public Builder zoneId(Output zoneId) {
            $.zoneId = zoneId;
            return this;
        }

        /**
         * @param zoneId The name of the Private Zone Record.
         * 
         * @return builder
         * 
         */
        public Builder zoneId(String zoneId) {
            return zoneId(Output.of(zoneId));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy