// *** 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.aws.pricing.outputs;

import com.pulumi.aws.pricing.outputs.GetProductFilter;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetProductResult {
    private List<GetProductFilter> filters;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return Set to the product returned from the API.
     * 
     */
    private String result;
    private String serviceCode;

    private GetProductResult() {}
    public List<GetProductFilter> filters() {
        return this.filters;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Set to the product returned from the API.
     * 
     */
    public String result() {
        return this.result;
    }
    public String serviceCode() {
        return this.serviceCode;
    }

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

    public static Builder builder(GetProductResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<GetProductFilter> filters;
        private String id;
        private String result;
        private String serviceCode;
        public Builder() {}
        public Builder(GetProductResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.filters = defaults.filters;
    	      this.id = defaults.id;
    	      this.result = defaults.result;
    	      this.serviceCode = defaults.serviceCode;
        }

        @CustomType.Setter
        public Builder filters(List<GetProductFilter> filters) {
            this.filters = Objects.requireNonNull(filters);
            return this;
        }
        public Builder filters(GetProductFilter... filters) {
            return filters(List.of(filters));
        }
        @CustomType.Setter
        public Builder id(String id) {
            this.id = Objects.requireNonNull(id);
            return this;
        }
        @CustomType.Setter
        public Builder result(String result) {
            this.result = Objects.requireNonNull(result);
            return this;
        }
        @CustomType.Setter
        public Builder serviceCode(String serviceCode) {
            this.serviceCode = Objects.requireNonNull(serviceCode);
            return this;
        }
        public GetProductResult build() {
            final var o = new GetProductResult();
            o.filters = filters;
            o.id = id;
            o.result = result;
            o.serviceCode = serviceCode;
            return o;
        }
    }
}
