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

com.pulumi.azure.advisor.outputs.GetRecommendationsResult Maven / Gradle / Ivy

// *** 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.azure.advisor.outputs;

import com.pulumi.azure.advisor.outputs.GetRecommendationsRecommendation;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class GetRecommendationsResult {
    private @Nullable List filterByCategories;
    private @Nullable List filterByResourceGroups;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return One or more `recommendations` blocks as defined below.
     * 
     */
    private List recommendations;

    private GetRecommendationsResult() {}
    public List filterByCategories() {
        return this.filterByCategories == null ? List.of() : this.filterByCategories;
    }
    public List filterByResourceGroups() {
        return this.filterByResourceGroups == null ? List.of() : this.filterByResourceGroups;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return One or more `recommendations` blocks as defined below.
     * 
     */
    public List recommendations() {
        return this.recommendations;
    }

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

    public static Builder builder(GetRecommendationsResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List filterByCategories;
        private @Nullable List filterByResourceGroups;
        private String id;
        private List recommendations;
        public Builder() {}
        public Builder(GetRecommendationsResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.filterByCategories = defaults.filterByCategories;
    	      this.filterByResourceGroups = defaults.filterByResourceGroups;
    	      this.id = defaults.id;
    	      this.recommendations = defaults.recommendations;
        }

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

            this.filterByCategories = filterByCategories;
            return this;
        }
        public Builder filterByCategories(String... filterByCategories) {
            return filterByCategories(List.of(filterByCategories));
        }
        @CustomType.Setter
        public Builder filterByResourceGroups(@Nullable List filterByResourceGroups) {

            this.filterByResourceGroups = filterByResourceGroups;
            return this;
        }
        public Builder filterByResourceGroups(String... filterByResourceGroups) {
            return filterByResourceGroups(List.of(filterByResourceGroups));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetRecommendationsResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder recommendations(List recommendations) {
            if (recommendations == null) {
              throw new MissingRequiredPropertyException("GetRecommendationsResult", "recommendations");
            }
            this.recommendations = recommendations;
            return this;
        }
        public Builder recommendations(GetRecommendationsRecommendation... recommendations) {
            return recommendations(List.of(recommendations));
        }
        public GetRecommendationsResult build() {
            final var _resultValue = new GetRecommendationsResult();
            _resultValue.filterByCategories = filterByCategories;
            _resultValue.filterByResourceGroups = filterByResourceGroups;
            _resultValue.id = id;
            _resultValue.recommendations = recommendations;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy