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

com.pulumi.kubernetes.storagemigration.v1alpha1.inputs.StorageVersionMigrationStatusArgs 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.storagemigration.v1alpha1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.kubernetes.storagemigration.v1alpha1.inputs.MigrationConditionArgs;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Status of the storage version migration.
 * 
 */
public final class StorageVersionMigrationStatusArgs extends com.pulumi.resources.ResourceArgs {

    public static final StorageVersionMigrationStatusArgs Empty = new StorageVersionMigrationStatusArgs();

    /**
     * The latest available observations of the migration's current state.
     * 
     */
    @Import(name="conditions")
    private @Nullable Output> conditions;

    /**
     * @return The latest available observations of the migration's current state.
     * 
     */
    public Optional>> conditions() {
        return Optional.ofNullable(this.conditions);
    }

    /**
     * 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.
     * 
     */
    @Import(name="resourceVersion")
    private @Nullable Output resourceVersion;

    /**
     * @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);
    }

    private StorageVersionMigrationStatusArgs() {}

    private StorageVersionMigrationStatusArgs(StorageVersionMigrationStatusArgs $) {
        this.conditions = $.conditions;
        this.resourceVersion = $.resourceVersion;
    }

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

    public static final class Builder {
        private StorageVersionMigrationStatusArgs $;

        public Builder() {
            $ = new StorageVersionMigrationStatusArgs();
        }

        public Builder(StorageVersionMigrationStatusArgs defaults) {
            $ = new StorageVersionMigrationStatusArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param conditions The latest available observations of the migration's current state.
         * 
         * @return builder
         * 
         */
        public Builder conditions(@Nullable Output> conditions) {
            $.conditions = conditions;
            return this;
        }

        /**
         * @param conditions The latest available observations of the migration's current state.
         * 
         * @return builder
         * 
         */
        public Builder conditions(List conditions) {
            return conditions(Output.of(conditions));
        }

        /**
         * @param conditions The latest available observations of the migration's current state.
         * 
         * @return builder
         * 
         */
        public Builder conditions(MigrationConditionArgs... conditions) {
            return conditions(List.of(conditions));
        }

        /**
         * @param resourceVersion 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.
         * 
         * @return builder
         * 
         */
        public Builder resourceVersion(@Nullable Output resourceVersion) {
            $.resourceVersion = resourceVersion;
            return this;
        }

        /**
         * @param resourceVersion 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.
         * 
         * @return builder
         * 
         */
        public Builder resourceVersion(String resourceVersion) {
            return resourceVersion(Output.of(resourceVersion));
        }

        public StorageVersionMigrationStatusArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy