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

com.pulumi.kubernetes.storagemigration.v1alpha1.outputs.StorageVersionMigrationSpec 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.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.kubernetes.storagemigration.v1alpha1.outputs.GroupVersionResource;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class StorageVersionMigrationSpec {
    /**
     * @return The token used in the list options to get the next chunk of objects to migrate. When the .status.conditions indicates the migration is "Running", users can use this token to check the progress of the migration.
     * 
     */
    private @Nullable String continueToken;
    /**
     * @return The resource that is being migrated. The migrator sends requests to the endpoint serving the resource. Immutable.
     * 
     */
    private GroupVersionResource resource;

    private StorageVersionMigrationSpec() {}
    /**
     * @return The token used in the list options to get the next chunk of objects to migrate. When the .status.conditions indicates the migration is "Running", users can use this token to check the progress of the migration.
     * 
     */
    public Optional continueToken() {
        return Optional.ofNullable(this.continueToken);
    }
    /**
     * @return The resource that is being migrated. The migrator sends requests to the endpoint serving the resource. Immutable.
     * 
     */
    public GroupVersionResource resource() {
        return this.resource;
    }

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

    public static Builder builder(StorageVersionMigrationSpec defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String continueToken;
        private GroupVersionResource resource;
        public Builder() {}
        public Builder(StorageVersionMigrationSpec defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.continueToken = defaults.continueToken;
    	      this.resource = defaults.resource;
        }

        @CustomType.Setter
        public Builder continueToken(@Nullable String continueToken) {

            this.continueToken = continueToken;
            return this;
        }
        @CustomType.Setter
        public Builder resource(GroupVersionResource resource) {
            if (resource == null) {
              throw new MissingRequiredPropertyException("StorageVersionMigrationSpec", "resource");
            }
            this.resource = resource;
            return this;
        }
        public StorageVersionMigrationSpec build() {
            final var _resultValue = new StorageVersionMigrationSpec();
            _resultValue.continueToken = continueToken;
            _resultValue.resource = resource;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy