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

com.pulumi.azurenative.costmanagement.SettingArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.costmanagement.inputs.SettingsPropertiesCacheArgs;
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 SettingArgs extends com.pulumi.resources.ResourceArgs {

    public static final SettingArgs Empty = new SettingArgs();

    /**
     * Array of scopes with additional details used by Cost Management in the Azure portal.
     * 
     */
    @Import(name="cache")
    private @Nullable Output> cache;

    /**
     * @return Array of scopes with additional details used by Cost Management in the Azure portal.
     * 
     */
    public Optional>> cache() {
        return Optional.ofNullable(this.cache);
    }

    /**
     * Sets the default scope the current user will see when they sign into Azure Cost Management in the Azure portal.
     * 
     */
    @Import(name="scope", required=true)
    private Output scope;

    /**
     * @return Sets the default scope the current user will see when they sign into Azure Cost Management in the Azure portal.
     * 
     */
    public Output scope() {
        return this.scope;
    }

    /**
     * Name of the setting. Allowed values: myscope
     * 
     */
    @Import(name="settingName")
    private @Nullable Output settingName;

    /**
     * @return Name of the setting. Allowed values: myscope
     * 
     */
    public Optional> settingName() {
        return Optional.ofNullable(this.settingName);
    }

    /**
     * Indicates what scope Cost Management in the Azure portal should default to. Allowed values: LastUsed.
     * 
     */
    @Import(name="startOn")
    private @Nullable Output startOn;

    /**
     * @return Indicates what scope Cost Management in the Azure portal should default to. Allowed values: LastUsed.
     * 
     */
    public Optional> startOn() {
        return Optional.ofNullable(this.startOn);
    }

    private SettingArgs() {}

    private SettingArgs(SettingArgs $) {
        this.cache = $.cache;
        this.scope = $.scope;
        this.settingName = $.settingName;
        this.startOn = $.startOn;
    }

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

    public static final class Builder {
        private SettingArgs $;

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

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

        /**
         * @param cache Array of scopes with additional details used by Cost Management in the Azure portal.
         * 
         * @return builder
         * 
         */
        public Builder cache(@Nullable Output> cache) {
            $.cache = cache;
            return this;
        }

        /**
         * @param cache Array of scopes with additional details used by Cost Management in the Azure portal.
         * 
         * @return builder
         * 
         */
        public Builder cache(List cache) {
            return cache(Output.of(cache));
        }

        /**
         * @param cache Array of scopes with additional details used by Cost Management in the Azure portal.
         * 
         * @return builder
         * 
         */
        public Builder cache(SettingsPropertiesCacheArgs... cache) {
            return cache(List.of(cache));
        }

        /**
         * @param scope Sets the default scope the current user will see when they sign into Azure Cost Management in the Azure portal.
         * 
         * @return builder
         * 
         */
        public Builder scope(Output scope) {
            $.scope = scope;
            return this;
        }

        /**
         * @param scope Sets the default scope the current user will see when they sign into Azure Cost Management in the Azure portal.
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            return scope(Output.of(scope));
        }

        /**
         * @param settingName Name of the setting. Allowed values: myscope
         * 
         * @return builder
         * 
         */
        public Builder settingName(@Nullable Output settingName) {
            $.settingName = settingName;
            return this;
        }

        /**
         * @param settingName Name of the setting. Allowed values: myscope
         * 
         * @return builder
         * 
         */
        public Builder settingName(String settingName) {
            return settingName(Output.of(settingName));
        }

        /**
         * @param startOn Indicates what scope Cost Management in the Azure portal should default to. Allowed values: LastUsed.
         * 
         * @return builder
         * 
         */
        public Builder startOn(@Nullable Output startOn) {
            $.startOn = startOn;
            return this;
        }

        /**
         * @param startOn Indicates what scope Cost Management in the Azure portal should default to. Allowed values: LastUsed.
         * 
         * @return builder
         * 
         */
        public Builder startOn(String startOn) {
            return startOn(Output.of(startOn));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy