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

com.pulumi.azurenative.quota.inputs.GroupingIdArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
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.azurenative.quota.inputs;

import com.pulumi.azurenative.quota.enums.GroupingIdType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The grouping Id for the group quota. It can be Billing Id or ServiceTreeId if applicable.
 * 
 */
public final class GroupingIdArgs extends com.pulumi.resources.ResourceArgs {

    public static final GroupingIdArgs Empty = new GroupingIdArgs();

    /**
     * GroupingId type. It is a required property. More types of groupIds can be supported in future.
     * 
     */
    @Import(name="groupingIdType")
    private @Nullable Output> groupingIdType;

    /**
     * @return GroupingId type. It is a required property. More types of groupIds can be supported in future.
     * 
     */
    public Optional>> groupingIdType() {
        return Optional.ofNullable(this.groupingIdType);
    }

    /**
     * GroupId value based on the groupingType selected - Billing Id or ServiceTreeId.
     * 
     */
    @Import(name="value")
    private @Nullable Output value;

    /**
     * @return GroupId value based on the groupingType selected - Billing Id or ServiceTreeId.
     * 
     */
    public Optional> value() {
        return Optional.ofNullable(this.value);
    }

    private GroupingIdArgs() {}

    private GroupingIdArgs(GroupingIdArgs $) {
        this.groupingIdType = $.groupingIdType;
        this.value = $.value;
    }

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

    public static final class Builder {
        private GroupingIdArgs $;

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

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

        /**
         * @param groupingIdType GroupingId type. It is a required property. More types of groupIds can be supported in future.
         * 
         * @return builder
         * 
         */
        public Builder groupingIdType(@Nullable Output> groupingIdType) {
            $.groupingIdType = groupingIdType;
            return this;
        }

        /**
         * @param groupingIdType GroupingId type. It is a required property. More types of groupIds can be supported in future.
         * 
         * @return builder
         * 
         */
        public Builder groupingIdType(Either groupingIdType) {
            return groupingIdType(Output.of(groupingIdType));
        }

        /**
         * @param groupingIdType GroupingId type. It is a required property. More types of groupIds can be supported in future.
         * 
         * @return builder
         * 
         */
        public Builder groupingIdType(String groupingIdType) {
            return groupingIdType(Either.ofLeft(groupingIdType));
        }

        /**
         * @param groupingIdType GroupingId type. It is a required property. More types of groupIds can be supported in future.
         * 
         * @return builder
         * 
         */
        public Builder groupingIdType(GroupingIdType groupingIdType) {
            return groupingIdType(Either.ofRight(groupingIdType));
        }

        /**
         * @param value GroupId value based on the groupingType selected - Billing Id or ServiceTreeId.
         * 
         * @return builder
         * 
         */
        public Builder value(@Nullable Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value GroupId value based on the groupingType selected - Billing Id or ServiceTreeId.
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        public GroupingIdArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy