com.pulumi.kubernetes.storagemigration.v1alpha1.outputs.StorageVersionMigrationStatusPatch 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.storagemigration.v1alpha1.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.kubernetes.storagemigration.v1alpha1.outputs.MigrationConditionPatch;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class StorageVersionMigrationStatusPatch {
/**
* @return The latest available observations of the migration's current state.
*
*/
private @Nullable List conditions;
/**
* @return ResourceVersion to compare with the GC cache for performing the migration. This is the current resource version of given group, version and resource when kube-controller-manager first observes this StorageVersionMigration resource.
*
*/
private @Nullable String resourceVersion;
private StorageVersionMigrationStatusPatch() {}
/**
* @return The latest available observations of the migration's current state.
*
*/
public List conditions() {
return this.conditions == null ? List.of() : this.conditions;
}
/**
* @return ResourceVersion to compare with the GC cache for performing the migration. This is the current resource version of given group, version and resource when kube-controller-manager first observes this StorageVersionMigration resource.
*
*/
public Optional resourceVersion() {
return Optional.ofNullable(this.resourceVersion);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(StorageVersionMigrationStatusPatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List conditions;
private @Nullable String resourceVersion;
public Builder() {}
public Builder(StorageVersionMigrationStatusPatch defaults) {
Objects.requireNonNull(defaults);
this.conditions = defaults.conditions;
this.resourceVersion = defaults.resourceVersion;
}
@CustomType.Setter
public Builder conditions(@Nullable List conditions) {
this.conditions = conditions;
return this;
}
public Builder conditions(MigrationConditionPatch... conditions) {
return conditions(List.of(conditions));
}
@CustomType.Setter
public Builder resourceVersion(@Nullable String resourceVersion) {
this.resourceVersion = resourceVersion;
return this;
}
public StorageVersionMigrationStatusPatch build() {
final var _resultValue = new StorageVersionMigrationStatusPatch();
_resultValue.conditions = conditions;
_resultValue.resourceVersion = resourceVersion;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy