com.pulumi.kubernetes.apiextensions.v1.outputs.CustomResourceDefinitionStatusPatch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kubernetes Show documentation
Show all versions of kubernetes Show documentation
A Pulumi package for creating and managing Kubernetes resources.
// *** 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.kubernetes.apiextensions.v1.outputs.CustomResourceDefinitionConditionPatch;
import com.pulumi.kubernetes.apiextensions.v1.outputs.CustomResourceDefinitionNamesPatch;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class CustomResourceDefinitionStatusPatch {
/**
* @return acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec.
*
*/
private @Nullable CustomResourceDefinitionNamesPatch 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 @Nullable List storedVersions;
private CustomResourceDefinitionStatusPatch() {}
/**
* @return acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec.
*
*/
public Optional acceptedNames() {
return Optional.ofNullable(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 == null ? List.of() : this.storedVersions;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CustomResourceDefinitionStatusPatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable CustomResourceDefinitionNamesPatch acceptedNames;
private @Nullable List conditions;
private @Nullable List storedVersions;
public Builder() {}
public Builder(CustomResourceDefinitionStatusPatch defaults) {
Objects.requireNonNull(defaults);
this.acceptedNames = defaults.acceptedNames;
this.conditions = defaults.conditions;
this.storedVersions = defaults.storedVersions;
}
@CustomType.Setter
public Builder acceptedNames(@Nullable CustomResourceDefinitionNamesPatch acceptedNames) {
this.acceptedNames = acceptedNames;
return this;
}
@CustomType.Setter
public Builder conditions(@Nullable List conditions) {
this.conditions = conditions;
return this;
}
public Builder conditions(CustomResourceDefinitionConditionPatch... conditions) {
return conditions(List.of(conditions));
}
@CustomType.Setter
public Builder storedVersions(@Nullable List storedVersions) {
this.storedVersions = storedVersions;
return this;
}
public Builder storedVersions(String... storedVersions) {
return storedVersions(List.of(storedVersions));
}
public CustomResourceDefinitionStatusPatch build() {
final var _resultValue = new CustomResourceDefinitionStatusPatch();
_resultValue.acceptedNames = acceptedNames;
_resultValue.conditions = conditions;
_resultValue.storedVersions = storedVersions;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy