sdk/java/src/main/java/com/pulumi/ovh/Order/outputs/GetCartProductInvokeResult.java
<gh_stars>0// *** 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.ovh.Order.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.ovh.Order.outputs.GetCartProductResult;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetCartProductInvokeResult {
    private String cartId;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private String product;
    /**
     * @return products results
     * 
     */
    private List<GetCartProductResult> results;

    private GetCartProductInvokeResult() {}
    public String cartId() {
        return this.cartId;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public String product() {
        return this.product;
    }
    /**
     * @return products results
     * 
     */
    public List<GetCartProductResult> results() {
        return this.results;
    }

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

    public static Builder builder(GetCartProductInvokeResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String cartId;
        private String id;
        private String product;
        private List<GetCartProductResult> results;
        public Builder() {}
        public Builder(GetCartProductInvokeResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.cartId = defaults.cartId;
    	      this.id = defaults.id;
    	      this.product = defaults.product;
    	      this.results = defaults.results;
        }

        @CustomType.Setter
        public Builder cartId(String cartId) {
            this.cartId = Objects.requireNonNull(cartId);
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            this.id = Objects.requireNonNull(id);
            return this;
        }
        @CustomType.Setter
        public Builder product(String product) {
            this.product = Objects.requireNonNull(product);
            return this;
        }
        @CustomType.Setter
        public Builder results(List<GetCartProductResult> results) {
            this.results = Objects.requireNonNull(results);
            return this;
        }
        public Builder results(GetCartProductResult... results) {
            return results(List.of(results));
        }
        public GetCartProductInvokeResult build() {
            final var o = new GetCartProductInvokeResult();
            o.cartId = cartId;
            o.id = id;
            o.product = product;
            o.results = results;
            return o;
        }
    }
}
