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

com.pulumi.alicloud.cfg.AggregatorArgs 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.cfg;

import com.pulumi.alicloud.cfg.inputs.AggregatorAggregatorAccountArgs;
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 AggregatorArgs extends com.pulumi.resources.ResourceArgs {

    public static final AggregatorArgs Empty = new AggregatorArgs();

    /**
     * The information of account in aggregator. If the aggregator_type is RD, it is optional and means add all members in the resource directory to the account group. See `aggregator_accounts` below.  **NOTE:** the field `aggregator_accounts` is not required from version 1.148.0.
     * 
     */
    @Import(name="aggregatorAccounts")
    private @Nullable Output> aggregatorAccounts;

    /**
     * @return The information of account in aggregator. If the aggregator_type is RD, it is optional and means add all members in the resource directory to the account group. See `aggregator_accounts` below.  **NOTE:** the field `aggregator_accounts` is not required from version 1.148.0.
     * 
     */
    public Optional>> aggregatorAccounts() {
        return Optional.ofNullable(this.aggregatorAccounts);
    }

    /**
     * The name of aggregator.
     * 
     */
    @Import(name="aggregatorName", required=true)
    private Output aggregatorName;

    /**
     * @return The name of aggregator.
     * 
     */
    public Output aggregatorName() {
        return this.aggregatorName;
    }

    /**
     * The type of aggregator. Valid values: `CUSTOM`, `RD`. The Default value: `CUSTOM`.
     * * `CUSTOM` - The custom account group.
     * * `RD` - The global account group.
     * 
     */
    @Import(name="aggregatorType")
    private @Nullable Output aggregatorType;

    /**
     * @return The type of aggregator. Valid values: `CUSTOM`, `RD`. The Default value: `CUSTOM`.
     * * `CUSTOM` - The custom account group.
     * * `RD` - The global account group.
     * 
     */
    public Optional> aggregatorType() {
        return Optional.ofNullable(this.aggregatorType);
    }

    /**
     * The description of aggregator.
     * 
     */
    @Import(name="description", required=true)
    private Output description;

    /**
     * @return The description of aggregator.
     * 
     */
    public Output description() {
        return this.description;
    }

    private AggregatorArgs() {}

    private AggregatorArgs(AggregatorArgs $) {
        this.aggregatorAccounts = $.aggregatorAccounts;
        this.aggregatorName = $.aggregatorName;
        this.aggregatorType = $.aggregatorType;
        this.description = $.description;
    }

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

    public static final class Builder {
        private AggregatorArgs $;

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

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

        /**
         * @param aggregatorAccounts The information of account in aggregator. If the aggregator_type is RD, it is optional and means add all members in the resource directory to the account group. See `aggregator_accounts` below.  **NOTE:** the field `aggregator_accounts` is not required from version 1.148.0.
         * 
         * @return builder
         * 
         */
        public Builder aggregatorAccounts(@Nullable Output> aggregatorAccounts) {
            $.aggregatorAccounts = aggregatorAccounts;
            return this;
        }

        /**
         * @param aggregatorAccounts The information of account in aggregator. If the aggregator_type is RD, it is optional and means add all members in the resource directory to the account group. See `aggregator_accounts` below.  **NOTE:** the field `aggregator_accounts` is not required from version 1.148.0.
         * 
         * @return builder
         * 
         */
        public Builder aggregatorAccounts(List aggregatorAccounts) {
            return aggregatorAccounts(Output.of(aggregatorAccounts));
        }

        /**
         * @param aggregatorAccounts The information of account in aggregator. If the aggregator_type is RD, it is optional and means add all members in the resource directory to the account group. See `aggregator_accounts` below.  **NOTE:** the field `aggregator_accounts` is not required from version 1.148.0.
         * 
         * @return builder
         * 
         */
        public Builder aggregatorAccounts(AggregatorAggregatorAccountArgs... aggregatorAccounts) {
            return aggregatorAccounts(List.of(aggregatorAccounts));
        }

        /**
         * @param aggregatorName The name of aggregator.
         * 
         * @return builder
         * 
         */
        public Builder aggregatorName(Output aggregatorName) {
            $.aggregatorName = aggregatorName;
            return this;
        }

        /**
         * @param aggregatorName The name of aggregator.
         * 
         * @return builder
         * 
         */
        public Builder aggregatorName(String aggregatorName) {
            return aggregatorName(Output.of(aggregatorName));
        }

        /**
         * @param aggregatorType The type of aggregator. Valid values: `CUSTOM`, `RD`. The Default value: `CUSTOM`.
         * * `CUSTOM` - The custom account group.
         * * `RD` - The global account group.
         * 
         * @return builder
         * 
         */
        public Builder aggregatorType(@Nullable Output aggregatorType) {
            $.aggregatorType = aggregatorType;
            return this;
        }

        /**
         * @param aggregatorType The type of aggregator. Valid values: `CUSTOM`, `RD`. The Default value: `CUSTOM`.
         * * `CUSTOM` - The custom account group.
         * * `RD` - The global account group.
         * 
         * @return builder
         * 
         */
        public Builder aggregatorType(String aggregatorType) {
            return aggregatorType(Output.of(aggregatorType));
        }

        /**
         * @param description The description of aggregator.
         * 
         * @return builder
         * 
         */
        public Builder description(Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of aggregator.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        public AggregatorArgs build() {
            if ($.aggregatorName == null) {
                throw new MissingRequiredPropertyException("AggregatorArgs", "aggregatorName");
            }
            if ($.description == null) {
                throw new MissingRequiredPropertyException("AggregatorArgs", "description");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy