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

com.pulumi.kubernetes.apiextensions.v1.outputs.CustomResourceDefinitionStatus Maven / Gradle / Ivy

There is a newer version: 4.19.0-alpha.1730750641
Show newest version
// *** 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.kubernetes.apiextensions.v1.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.kubernetes.apiextensions.v1.outputs.CustomResourceDefinitionCondition;
import com.pulumi.kubernetes.apiextensions.v1.outputs.CustomResourceDefinitionNames;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class CustomResourceDefinitionStatus {
    /**
     * @return acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec.
     * 
     */
    private CustomResourceDefinitionNames acceptedNames;
    /**
     * @return conditions indicate state for particular aspects of a CustomResourceDefinition
     * 
     */
    private @Nullable List conditions;
    /**
     * @return storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list.
     * 
     */
    private List storedVersions;

    private CustomResourceDefinitionStatus() {}
    /**
     * @return acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec.
     * 
     */
    public CustomResourceDefinitionNames acceptedNames() {
        return this.acceptedNames;
    }
    /**
     * @return conditions indicate state for particular aspects of a CustomResourceDefinition
     * 
     */
    public List conditions() {
        return this.conditions == null ? List.of() : this.conditions;
    }
    /**
     * @return storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list.
     * 
     */
    public List storedVersions() {
        return this.storedVersions;
    }

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

    public static Builder builder(CustomResourceDefinitionStatus defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private CustomResourceDefinitionNames acceptedNames;
        private @Nullable List conditions;
        private List storedVersions;
        public Builder() {}
        public Builder(CustomResourceDefinitionStatus defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.acceptedNames = defaults.acceptedNames;
    	      this.conditions = defaults.conditions;
    	      this.storedVersions = defaults.storedVersions;
        }

        @CustomType.Setter
        public Builder acceptedNames(CustomResourceDefinitionNames acceptedNames) {
            if (acceptedNames == null) {
              throw new MissingRequiredPropertyException("CustomResourceDefinitionStatus", "acceptedNames");
            }
            this.acceptedNames = acceptedNames;
            return this;
        }
        @CustomType.Setter
        public Builder conditions(@Nullable List conditions) {

            this.conditions = conditions;
            return this;
        }
        public Builder conditions(CustomResourceDefinitionCondition... conditions) {
            return conditions(List.of(conditions));
        }
        @CustomType.Setter
        public Builder storedVersions(List storedVersions) {
            if (storedVersions == null) {
              throw new MissingRequiredPropertyException("CustomResourceDefinitionStatus", "storedVersions");
            }
            this.storedVersions = storedVersions;
            return this;
        }
        public Builder storedVersions(String... storedVersions) {
            return storedVersions(List.of(storedVersions));
        }
        public CustomResourceDefinitionStatus build() {
            final var _resultValue = new CustomResourceDefinitionStatus();
            _resultValue.acceptedNames = acceptedNames;
            _resultValue.conditions = conditions;
            _resultValue.storedVersions = storedVersions;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy