sdk/java/src/main/java/com/pulumi/ovh/CloudProject/outputs/ContainerRegistryPlan.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.CloudProject.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.ovh.CloudProject.outputs.ContainerRegistryPlanFeature;
import com.pulumi.ovh.CloudProject.outputs.ContainerRegistryPlanRegistryLimit;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ContainerRegistryPlan {
    /**
     * @return Plan code from the catalog
     * 
     */
    private @Nullable String code;
    /**
     * @return Plan creation date
     * 
     */
    private @Nullable String createdAt;
    /**
     * @return Features of the plan
     * 
     */
    private @Nullable List<ContainerRegistryPlanFeature> features;
    /**
     * @return Plan ID
     * 
     */
    private @Nullable String id;
    /**
     * @return Registry name
     * 
     */
    private @Nullable String name;
    /**
     * @return Container registry limits
     * 
     */
    private @Nullable List<ContainerRegistryPlanRegistryLimit> registryLimits;
    /**
     * @return Registry last update date
     * 
     */
    private @Nullable String updatedAt;

    private ContainerRegistryPlan() {}
    /**
     * @return Plan code from the catalog
     * 
     */
    public Optional<String> code() {
        return Optional.ofNullable(this.code);
    }
    /**
     * @return Plan creation date
     * 
     */
    public Optional<String> createdAt() {
        return Optional.ofNullable(this.createdAt);
    }
    /**
     * @return Features of the plan
     * 
     */
    public List<ContainerRegistryPlanFeature> features() {
        return this.features == null ? List.of() : this.features;
    }
    /**
     * @return Plan ID
     * 
     */
    public Optional<String> id() {
        return Optional.ofNullable(this.id);
    }
    /**
     * @return Registry name
     * 
     */
    public Optional<String> name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return Container registry limits
     * 
     */
    public List<ContainerRegistryPlanRegistryLimit> registryLimits() {
        return this.registryLimits == null ? List.of() : this.registryLimits;
    }
    /**
     * @return Registry last update date
     * 
     */
    public Optional<String> updatedAt() {
        return Optional.ofNullable(this.updatedAt);
    }

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

    public static Builder builder(ContainerRegistryPlan defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String code;
        private @Nullable String createdAt;
        private @Nullable List<ContainerRegistryPlanFeature> features;
        private @Nullable String id;
        private @Nullable String name;
        private @Nullable List<ContainerRegistryPlanRegistryLimit> registryLimits;
        private @Nullable String updatedAt;
        public Builder() {}
        public Builder(ContainerRegistryPlan defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.code = defaults.code;
    	      this.createdAt = defaults.createdAt;
    	      this.features = defaults.features;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.registryLimits = defaults.registryLimits;
    	      this.updatedAt = defaults.updatedAt;
        }

        @CustomType.Setter
        public Builder code(@Nullable String code) {
            this.code = code;
            return this;
        }
        @CustomType.Setter
        public Builder createdAt(@Nullable String createdAt) {
            this.createdAt = createdAt;
            return this;
        }
        @CustomType.Setter
        public Builder features(@Nullable List<ContainerRegistryPlanFeature> features) {
            this.features = features;
            return this;
        }
        public Builder features(ContainerRegistryPlanFeature... features) {
            return features(List.of(features));
        }
        @CustomType.Setter
        public Builder id(@Nullable String id) {
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(@Nullable String name) {
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder registryLimits(@Nullable List<ContainerRegistryPlanRegistryLimit> registryLimits) {
            this.registryLimits = registryLimits;
            return this;
        }
        public Builder registryLimits(ContainerRegistryPlanRegistryLimit... registryLimits) {
            return registryLimits(List.of(registryLimits));
        }
        @CustomType.Setter
        public Builder updatedAt(@Nullable String updatedAt) {
            this.updatedAt = updatedAt;
            return this;
        }
        public ContainerRegistryPlan build() {
            final var o = new ContainerRegistryPlan();
            o.code = code;
            o.createdAt = createdAt;
            o.features = features;
            o.id = id;
            o.name = name;
            o.registryLimits = registryLimits;
            o.updatedAt = updatedAt;
            return o;
        }
    }
}
