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

com.pulumi.alicloud.cloudfirewall.inputs.FirewallVpcFirewallPeerVpcArgs 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.cloudfirewall.inputs;

import com.pulumi.alicloud.cloudfirewall.inputs.FirewallVpcFirewallPeerVpcPeerVpcCidrTableListArgs;
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 FirewallVpcFirewallPeerVpcArgs extends com.pulumi.resources.ResourceArgs {

    public static final FirewallVpcFirewallPeerVpcArgs Empty = new FirewallVpcFirewallPeerVpcArgs();

    /**
     * The ID of the instance of the ENI in the peer VPC.
     * 
     */
    @Import(name="eniId")
    private @Nullable Output eniId;

    /**
     * @return The ID of the instance of the ENI in the peer VPC.
     * 
     */
    public Optional> eniId() {
        return Optional.ofNullable(this.eniId);
    }

    /**
     * The private IP address of the elastic network card in the peer VPC.
     * 
     */
    @Import(name="eniPrivateIpAddress")
    private @Nullable Output eniPrivateIpAddress;

    /**
     * @return The private IP address of the elastic network card in the peer VPC.
     * 
     */
    public Optional> eniPrivateIpAddress() {
        return Optional.ofNullable(this.eniPrivateIpAddress);
    }

    /**
     * The network segment list of the peer VPC. See `peer_vpc_cidr_table_list` below.
     * 
     */
    @Import(name="peerVpcCidrTableLists", required=true)
    private Output> peerVpcCidrTableLists;

    /**
     * @return The network segment list of the peer VPC. See `peer_vpc_cidr_table_list` below.
     * 
     */
    public Output> peerVpcCidrTableLists() {
        return this.peerVpcCidrTableLists;
    }

    /**
     * The region ID of the peer VPC.
     * 
     */
    @Import(name="regionNo", required=true)
    private Output regionNo;

    /**
     * @return The region ID of the peer VPC.
     * 
     */
    public Output regionNo() {
        return this.regionNo;
    }

    /**
     * The ID of the router interface in the peer VPC.
     * 
     */
    @Import(name="routerInterfaceId")
    private @Nullable Output routerInterfaceId;

    /**
     * @return The ID of the router interface in the peer VPC.
     * 
     */
    public Optional> routerInterfaceId() {
        return Optional.ofNullable(this.routerInterfaceId);
    }

    /**
     * The ID of the peer VPC instance.
     * 
     */
    @Import(name="vpcId", required=true)
    private Output vpcId;

    /**
     * @return The ID of the peer VPC instance.
     * 
     */
    public Output vpcId() {
        return this.vpcId;
    }

    /**
     * The instance name of the peer VPC.
     * 
     */
    @Import(name="vpcName")
    private @Nullable Output vpcName;

    /**
     * @return The instance name of the peer VPC.
     * 
     */
    public Optional> vpcName() {
        return Optional.ofNullable(this.vpcName);
    }

    private FirewallVpcFirewallPeerVpcArgs() {}

    private FirewallVpcFirewallPeerVpcArgs(FirewallVpcFirewallPeerVpcArgs $) {
        this.eniId = $.eniId;
        this.eniPrivateIpAddress = $.eniPrivateIpAddress;
        this.peerVpcCidrTableLists = $.peerVpcCidrTableLists;
        this.regionNo = $.regionNo;
        this.routerInterfaceId = $.routerInterfaceId;
        this.vpcId = $.vpcId;
        this.vpcName = $.vpcName;
    }

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

    public static final class Builder {
        private FirewallVpcFirewallPeerVpcArgs $;

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

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

        /**
         * @param eniId The ID of the instance of the ENI in the peer VPC.
         * 
         * @return builder
         * 
         */
        public Builder eniId(@Nullable Output eniId) {
            $.eniId = eniId;
            return this;
        }

        /**
         * @param eniId The ID of the instance of the ENI in the peer VPC.
         * 
         * @return builder
         * 
         */
        public Builder eniId(String eniId) {
            return eniId(Output.of(eniId));
        }

        /**
         * @param eniPrivateIpAddress The private IP address of the elastic network card in the peer VPC.
         * 
         * @return builder
         * 
         */
        public Builder eniPrivateIpAddress(@Nullable Output eniPrivateIpAddress) {
            $.eniPrivateIpAddress = eniPrivateIpAddress;
            return this;
        }

        /**
         * @param eniPrivateIpAddress The private IP address of the elastic network card in the peer VPC.
         * 
         * @return builder
         * 
         */
        public Builder eniPrivateIpAddress(String eniPrivateIpAddress) {
            return eniPrivateIpAddress(Output.of(eniPrivateIpAddress));
        }

        /**
         * @param peerVpcCidrTableLists The network segment list of the peer VPC. See `peer_vpc_cidr_table_list` below.
         * 
         * @return builder
         * 
         */
        public Builder peerVpcCidrTableLists(Output> peerVpcCidrTableLists) {
            $.peerVpcCidrTableLists = peerVpcCidrTableLists;
            return this;
        }

        /**
         * @param peerVpcCidrTableLists The network segment list of the peer VPC. See `peer_vpc_cidr_table_list` below.
         * 
         * @return builder
         * 
         */
        public Builder peerVpcCidrTableLists(List peerVpcCidrTableLists) {
            return peerVpcCidrTableLists(Output.of(peerVpcCidrTableLists));
        }

        /**
         * @param peerVpcCidrTableLists The network segment list of the peer VPC. See `peer_vpc_cidr_table_list` below.
         * 
         * @return builder
         * 
         */
        public Builder peerVpcCidrTableLists(FirewallVpcFirewallPeerVpcPeerVpcCidrTableListArgs... peerVpcCidrTableLists) {
            return peerVpcCidrTableLists(List.of(peerVpcCidrTableLists));
        }

        /**
         * @param regionNo The region ID of the peer VPC.
         * 
         * @return builder
         * 
         */
        public Builder regionNo(Output regionNo) {
            $.regionNo = regionNo;
            return this;
        }

        /**
         * @param regionNo The region ID of the peer VPC.
         * 
         * @return builder
         * 
         */
        public Builder regionNo(String regionNo) {
            return regionNo(Output.of(regionNo));
        }

        /**
         * @param routerInterfaceId The ID of the router interface in the peer VPC.
         * 
         * @return builder
         * 
         */
        public Builder routerInterfaceId(@Nullable Output routerInterfaceId) {
            $.routerInterfaceId = routerInterfaceId;
            return this;
        }

        /**
         * @param routerInterfaceId The ID of the router interface in the peer VPC.
         * 
         * @return builder
         * 
         */
        public Builder routerInterfaceId(String routerInterfaceId) {
            return routerInterfaceId(Output.of(routerInterfaceId));
        }

        /**
         * @param vpcId The ID of the peer VPC instance.
         * 
         * @return builder
         * 
         */
        public Builder vpcId(Output vpcId) {
            $.vpcId = vpcId;
            return this;
        }

        /**
         * @param vpcId The ID of the peer VPC instance.
         * 
         * @return builder
         * 
         */
        public Builder vpcId(String vpcId) {
            return vpcId(Output.of(vpcId));
        }

        /**
         * @param vpcName The instance name of the peer VPC.
         * 
         * @return builder
         * 
         */
        public Builder vpcName(@Nullable Output vpcName) {
            $.vpcName = vpcName;
            return this;
        }

        /**
         * @param vpcName The instance name of the peer VPC.
         * 
         * @return builder
         * 
         */
        public Builder vpcName(String vpcName) {
            return vpcName(Output.of(vpcName));
        }

        public FirewallVpcFirewallPeerVpcArgs build() {
            if ($.peerVpcCidrTableLists == null) {
                throw new MissingRequiredPropertyException("FirewallVpcFirewallPeerVpcArgs", "peerVpcCidrTableLists");
            }
            if ($.regionNo == null) {
                throw new MissingRequiredPropertyException("FirewallVpcFirewallPeerVpcArgs", "regionNo");
            }
            if ($.vpcId == null) {
                throw new MissingRequiredPropertyException("FirewallVpcFirewallPeerVpcArgs", "vpcId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy