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

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


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

    public static final RuleAttachmentArgs Empty = new RuleAttachmentArgs();

    /**
     * The ID of the rule.
     * 
     */
    @Import(name="ruleId", required=true)
    private Output ruleId;

    /**
     * @return The ID of the rule.
     * 
     */
    public Output ruleId() {
        return this.ruleId;
    }

    /**
     * The List of the VPC. See `vpcs` below.
     * 
     */
    @Import(name="vpcs", required=true)
    private Output> vpcs;

    /**
     * @return The List of the VPC. See `vpcs` below.
     * 
     */
    public Output> vpcs() {
        return this.vpcs;
    }

    private RuleAttachmentArgs() {}

    private RuleAttachmentArgs(RuleAttachmentArgs $) {
        this.ruleId = $.ruleId;
        this.vpcs = $.vpcs;
    }

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

    public static final class Builder {
        private RuleAttachmentArgs $;

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

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

        /**
         * @param ruleId The ID of the rule.
         * 
         * @return builder
         * 
         */
        public Builder ruleId(Output ruleId) {
            $.ruleId = ruleId;
            return this;
        }

        /**
         * @param ruleId The ID of the rule.
         * 
         * @return builder
         * 
         */
        public Builder ruleId(String ruleId) {
            return ruleId(Output.of(ruleId));
        }

        /**
         * @param vpcs The List of the VPC. See `vpcs` below.
         * 
         * @return builder
         * 
         */
        public Builder vpcs(Output> vpcs) {
            $.vpcs = vpcs;
            return this;
        }

        /**
         * @param vpcs The List of the VPC. See `vpcs` below.
         * 
         * @return builder
         * 
         */
        public Builder vpcs(List vpcs) {
            return vpcs(Output.of(vpcs));
        }

        /**
         * @param vpcs The List of the VPC. See `vpcs` below.
         * 
         * @return builder
         * 
         */
        public Builder vpcs(RuleAttachmentVpcArgs... vpcs) {
            return vpcs(List.of(vpcs));
        }

        public RuleAttachmentArgs build() {
            if ($.ruleId == null) {
                throw new MissingRequiredPropertyException("RuleAttachmentArgs", "ruleId");
            }
            if ($.vpcs == null) {
                throw new MissingRequiredPropertyException("RuleAttachmentArgs", "vpcs");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy