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

com.pulumi.azurenative.costmanagement.outputs.GetSettingResult 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.costmanagement.outputs;

import com.pulumi.azurenative.costmanagement.outputs.SettingsPropertiesResponseCache;
import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class GetSettingResult {
    /**
     * @return Array of scopes with additional details used by Cost Management in the Azure portal.
     * 
     */
    private @Nullable List cache;
    /**
     * @return Resource Id.
     * 
     */
    private String id;
    /**
     * @return Resource kind.
     * 
     */
    private String kind;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return Sets the default scope the current user will see when they sign into Azure Cost Management in the Azure portal.
     * 
     */
    private String scope;
    /**
     * @return Indicates what scope Cost Management in the Azure portal should default to. Allowed values: LastUsed.
     * 
     */
    private @Nullable String startOn;
    /**
     * @return Resource type.
     * 
     */
    private String type;

    private GetSettingResult() {}
    /**
     * @return Array of scopes with additional details used by Cost Management in the Azure portal.
     * 
     */
    public List cache() {
        return this.cache == null ? List.of() : this.cache;
    }
    /**
     * @return Resource Id.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Resource kind.
     * 
     */
    public String kind() {
        return this.kind;
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Sets the default scope the current user will see when they sign into Azure Cost Management in the Azure portal.
     * 
     */
    public String scope() {
        return this.scope;
    }
    /**
     * @return Indicates what scope Cost Management in the Azure portal should default to. Allowed values: LastUsed.
     * 
     */
    public Optional startOn() {
        return Optional.ofNullable(this.startOn);
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetSettingResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List cache;
        private String id;
        private String kind;
        private String name;
        private String scope;
        private @Nullable String startOn;
        private String type;
        public Builder() {}
        public Builder(GetSettingResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.cache = defaults.cache;
    	      this.id = defaults.id;
    	      this.kind = defaults.kind;
    	      this.name = defaults.name;
    	      this.scope = defaults.scope;
    	      this.startOn = defaults.startOn;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder cache(@Nullable List cache) {

            this.cache = cache;
            return this;
        }
        public Builder cache(SettingsPropertiesResponseCache... cache) {
            return cache(List.of(cache));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetSettingResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder kind(String kind) {
            if (kind == null) {
              throw new MissingRequiredPropertyException("GetSettingResult", "kind");
            }
            this.kind = kind;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetSettingResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder scope(String scope) {
            if (scope == null) {
              throw new MissingRequiredPropertyException("GetSettingResult", "scope");
            }
            this.scope = scope;
            return this;
        }
        @CustomType.Setter
        public Builder startOn(@Nullable String startOn) {

            this.startOn = startOn;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetSettingResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetSettingResult build() {
            final var _resultValue = new GetSettingResult();
            _resultValue.cache = cache;
            _resultValue.id = id;
            _resultValue.kind = kind;
            _resultValue.name = name;
            _resultValue.scope = scope;
            _resultValue.startOn = startOn;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy