sdk/java/src/main/java/com/pulumi/ovh/Order/outputs/GetCartProductPlanResult.java
<reponame>lbrlabs/pulumi-ovh// *** 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.GetCartProductPlanPrice;
import com.pulumi.ovh.Order.outputs.GetCartProductPlanSelectedPrice;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetCartProductPlanResult {
    private String cartId;
    private @Nullable String catalogName;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return Product offer identifier
     * 
     */
    private String planCode;
    private String priceCapacity;
    /**
     * @return Prices of the product offer
     * 
     */
    private List<GetCartProductPlanPrice> prices;
    private String product;
    /**
     * @return Name of the product
     * 
     */
    private String productName;
    /**
     * @return Product type
     * 
     */
    private String productType;
    /**
     * @return Selected Price according to capacity
     * 
     */
    private List<GetCartProductPlanSelectedPrice> selectedPrices;

    private GetCartProductPlanResult() {}
    public String cartId() {
        return this.cartId;
    }
    public Optional<String> catalogName() {
        return Optional.ofNullable(this.catalogName);
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Product offer identifier
     * 
     */
    public String planCode() {
        return this.planCode;
    }
    public String priceCapacity() {
        return this.priceCapacity;
    }
    /**
     * @return Prices of the product offer
     * 
     */
    public List<GetCartProductPlanPrice> prices() {
        return this.prices;
    }
    public String product() {
        return this.product;
    }
    /**
     * @return Name of the product
     * 
     */
    public String productName() {
        return this.productName;
    }
    /**
     * @return Product type
     * 
     */
    public String productType() {
        return this.productType;
    }
    /**
     * @return Selected Price according to capacity
     * 
     */
    public List<GetCartProductPlanSelectedPrice> selectedPrices() {
        return this.selectedPrices;
    }

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

    public static Builder builder(GetCartProductPlanResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String cartId;
        private @Nullable String catalogName;
        private String id;
        private String planCode;
        private String priceCapacity;
        private List<GetCartProductPlanPrice> prices;
        private String product;
        private String productName;
        private String productType;
        private List<GetCartProductPlanSelectedPrice> selectedPrices;
        public Builder() {}
        public Builder(GetCartProductPlanResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.cartId = defaults.cartId;
    	      this.catalogName = defaults.catalogName;
    	      this.id = defaults.id;
    	      this.planCode = defaults.planCode;
    	      this.priceCapacity = defaults.priceCapacity;
    	      this.prices = defaults.prices;
    	      this.product = defaults.product;
    	      this.productName = defaults.productName;
    	      this.productType = defaults.productType;
    	      this.selectedPrices = defaults.selectedPrices;
        }

        @CustomType.Setter
        public Builder cartId(String cartId) {
            this.cartId = Objects.requireNonNull(cartId);
            return this;
        }
        @CustomType.Setter
        public Builder catalogName(@Nullable String catalogName) {
            this.catalogName = catalogName;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            this.id = Objects.requireNonNull(id);
            return this;
        }
        @CustomType.Setter
        public Builder planCode(String planCode) {
            this.planCode = Objects.requireNonNull(planCode);
            return this;
        }
        @CustomType.Setter
        public Builder priceCapacity(String priceCapacity) {
            this.priceCapacity = Objects.requireNonNull(priceCapacity);
            return this;
        }
        @CustomType.Setter
        public Builder prices(List<GetCartProductPlanPrice> prices) {
            this.prices = Objects.requireNonNull(prices);
            return this;
        }
        public Builder prices(GetCartProductPlanPrice... prices) {
            return prices(List.of(prices));
        }
        @CustomType.Setter
        public Builder product(String product) {
            this.product = Objects.requireNonNull(product);
            return this;
        }
        @CustomType.Setter
        public Builder productName(String productName) {
            this.productName = Objects.requireNonNull(productName);
            return this;
        }
        @CustomType.Setter
        public Builder productType(String productType) {
            this.productType = Objects.requireNonNull(productType);
            return this;
        }
        @CustomType.Setter
        public Builder selectedPrices(List<GetCartProductPlanSelectedPrice> selectedPrices) {
            this.selectedPrices = Objects.requireNonNull(selectedPrices);
            return this;
        }
        public Builder selectedPrices(GetCartProductPlanSelectedPrice... selectedPrices) {
            return selectedPrices(List.of(selectedPrices));
        }
        public GetCartProductPlanResult build() {
            final var o = new GetCartProductPlanResult();
            o.cartId = cartId;
            o.catalogName = catalogName;
            o.id = id;
            o.planCode = planCode;
            o.priceCapacity = priceCapacity;
            o.prices = prices;
            o.product = product;
            o.productName = productName;
            o.productType = productType;
            o.selectedPrices = selectedPrices;
            return o;
        }
    }
}
