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

com.pulumi.azurenative.containerinstance.NGroupArgs 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.containerinstance;

import com.pulumi.azurenative.containerinstance.inputs.ContainerGroupProfileStubArgs;
import com.pulumi.azurenative.containerinstance.inputs.ElasticProfileArgs;
import com.pulumi.azurenative.containerinstance.inputs.NGroupIdentityArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final NGroupArgs Empty = new NGroupArgs();

    /**
     * The Container Group Profiles that could be used in a nGroup.
     * 
     */
    @Import(name="containerGroupProfiles")
    private @Nullable Output> containerGroupProfiles;

    /**
     * @return The Container Group Profiles that could be used in a nGroup.
     * 
     */
    public Optional>> containerGroupProfiles() {
        return Optional.ofNullable(this.containerGroupProfiles);
    }

    /**
     * The elastic profile.
     * 
     */
    @Import(name="elasticProfile")
    private @Nullable Output elasticProfile;

    /**
     * @return The elastic profile.
     * 
     */
    public Optional> elasticProfile() {
        return Optional.ofNullable(this.elasticProfile);
    }

    /**
     * The identity of the nGroup, if configured.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return The identity of the nGroup, if configured.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * The resource location.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The resource location.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The N Groups name.
     * 
     */
    @Import(name="ngroupsName")
    private @Nullable Output ngroupsName;

    /**
     * @return The N Groups name.
     * 
     */
    public Optional> ngroupsName() {
        return Optional.ofNullable(this.ngroupsName);
    }

    /**
     * The name of the resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return The resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The zones for the container group.
     * 
     */
    @Import(name="zones")
    private @Nullable Output> zones;

    /**
     * @return The zones for the container group.
     * 
     */
    public Optional>> zones() {
        return Optional.ofNullable(this.zones);
    }

    private NGroupArgs() {}

    private NGroupArgs(NGroupArgs $) {
        this.containerGroupProfiles = $.containerGroupProfiles;
        this.elasticProfile = $.elasticProfile;
        this.identity = $.identity;
        this.location = $.location;
        this.ngroupsName = $.ngroupsName;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.zones = $.zones;
    }

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

    public static final class Builder {
        private NGroupArgs $;

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

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

        /**
         * @param containerGroupProfiles The Container Group Profiles that could be used in a nGroup.
         * 
         * @return builder
         * 
         */
        public Builder containerGroupProfiles(@Nullable Output> containerGroupProfiles) {
            $.containerGroupProfiles = containerGroupProfiles;
            return this;
        }

        /**
         * @param containerGroupProfiles The Container Group Profiles that could be used in a nGroup.
         * 
         * @return builder
         * 
         */
        public Builder containerGroupProfiles(List containerGroupProfiles) {
            return containerGroupProfiles(Output.of(containerGroupProfiles));
        }

        /**
         * @param containerGroupProfiles The Container Group Profiles that could be used in a nGroup.
         * 
         * @return builder
         * 
         */
        public Builder containerGroupProfiles(ContainerGroupProfileStubArgs... containerGroupProfiles) {
            return containerGroupProfiles(List.of(containerGroupProfiles));
        }

        /**
         * @param elasticProfile The elastic profile.
         * 
         * @return builder
         * 
         */
        public Builder elasticProfile(@Nullable Output elasticProfile) {
            $.elasticProfile = elasticProfile;
            return this;
        }

        /**
         * @param elasticProfile The elastic profile.
         * 
         * @return builder
         * 
         */
        public Builder elasticProfile(ElasticProfileArgs elasticProfile) {
            return elasticProfile(Output.of(elasticProfile));
        }

        /**
         * @param identity The identity of the nGroup, if configured.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity The identity of the nGroup, if configured.
         * 
         * @return builder
         * 
         */
        public Builder identity(NGroupIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param location The resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

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

        /**
         * @param ngroupsName The N Groups name.
         * 
         * @return builder
         * 
         */
        public Builder ngroupsName(@Nullable Output ngroupsName) {
            $.ngroupsName = ngroupsName;
            return this;
        }

        /**
         * @param ngroupsName The N Groups name.
         * 
         * @return builder
         * 
         */
        public Builder ngroupsName(String ngroupsName) {
            return ngroupsName(Output.of(ngroupsName));
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tags The resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags The resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param zones The zones for the container group.
         * 
         * @return builder
         * 
         */
        public Builder zones(@Nullable Output> zones) {
            $.zones = zones;
            return this;
        }

        /**
         * @param zones The zones for the container group.
         * 
         * @return builder
         * 
         */
        public Builder zones(List zones) {
            return zones(Output.of(zones));
        }

        /**
         * @param zones The zones for the container group.
         * 
         * @return builder
         * 
         */
        public Builder zones(String... zones) {
            return zones(List.of(zones));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy