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

com.pulumi.azurenative.logz.SubAccountArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.logz;

import com.pulumi.azurenative.logz.inputs.IdentityPropertiesArgs;
import com.pulumi.azurenative.logz.inputs.MonitorPropertiesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SubAccountArgs Empty = new SubAccountArgs();

    @Import(name="identity")
    private @Nullable Output identity;

    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    @Import(name="location")
    private @Nullable Output location;

    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Monitor resource name
     * 
     */
    @Import(name="monitorName", required=true)
    private Output monitorName;

    /**
     * @return Monitor resource name
     * 
     */
    public Output monitorName() {
        return this.monitorName;
    }

    /**
     * Properties specific to the monitor resource.
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

    /**
     * @return Properties specific to the monitor resource.
     * 
     */
    public Optional> properties() {
        return Optional.ofNullable(this.properties);
    }

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

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

    /**
     * Sub Account resource name
     * 
     */
    @Import(name="subAccountName")
    private @Nullable Output subAccountName;

    /**
     * @return Sub Account resource name
     * 
     */
    public Optional> subAccountName() {
        return Optional.ofNullable(this.subAccountName);
    }

    @Import(name="tags")
    private @Nullable Output> tags;

    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private SubAccountArgs() {}

    private SubAccountArgs(SubAccountArgs $) {
        this.identity = $.identity;
        this.location = $.location;
        this.monitorName = $.monitorName;
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
        this.subAccountName = $.subAccountName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private SubAccountArgs $;

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

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

        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        public Builder identity(IdentityPropertiesArgs identity) {
            return identity(Output.of(identity));
        }

        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param monitorName Monitor resource name
         * 
         * @return builder
         * 
         */
        public Builder monitorName(Output monitorName) {
            $.monitorName = monitorName;
            return this;
        }

        /**
         * @param monitorName Monitor resource name
         * 
         * @return builder
         * 
         */
        public Builder monitorName(String monitorName) {
            return monitorName(Output.of(monitorName));
        }

        /**
         * @param properties Properties specific to the monitor resource.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties Properties specific to the monitor resource.
         * 
         * @return builder
         * 
         */
        public Builder properties(MonitorPropertiesArgs properties) {
            return properties(Output.of(properties));
        }

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

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

        /**
         * @param subAccountName Sub Account resource name
         * 
         * @return builder
         * 
         */
        public Builder subAccountName(@Nullable Output subAccountName) {
            $.subAccountName = subAccountName;
            return this;
        }

        /**
         * @param subAccountName Sub Account resource name
         * 
         * @return builder
         * 
         */
        public Builder subAccountName(String subAccountName) {
            return subAccountName(Output.of(subAccountName));
        }

        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy