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

com.pulumi.googlenative.migrationcenter.v1alpha1.ImportJobArgs Maven / Gradle / Ivy

// *** 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.googlenative.migrationcenter.v1alpha1;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.googlenative.migrationcenter.v1alpha1.inputs.GCSPayloadInfoArgs;
import com.pulumi.googlenative.migrationcenter.v1alpha1.inputs.InlinePayloadInfoArgs;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ImportJobArgs extends com.pulumi.resources.ResourceArgs {

    public static final ImportJobArgs Empty = new ImportJobArgs();

    /**
     * Reference to a source.
     * 
     */
    @Import(name="assetSource", required=true)
    private Output assetSource;

    /**
     * @return Reference to a source.
     * 
     */
    public Output assetSource() {
        return this.assetSource;
    }

    /**
     * User-friendly display name. Maximum length is 63 characters.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return User-friendly display name. Maximum length is 63 characters.
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * The payload is in Google Cloud Storage.
     * 
     */
    @Import(name="gcsPayload")
    private @Nullable Output gcsPayload;

    /**
     * @return The payload is in Google Cloud Storage.
     * 
     */
    public Optional> gcsPayload() {
        return Optional.ofNullable(this.gcsPayload);
    }

    /**
     * Required. ID of the import job.
     * 
     */
    @Import(name="importJobId", required=true)
    private Output importJobId;

    /**
     * @return Required. ID of the import job.
     * 
     */
    public Output importJobId() {
        return this.importJobId;
    }

    /**
     * The payload is included in the request, mainly used for small import jobs.
     * 
     */
    @Import(name="inlinePayload")
    private @Nullable Output inlinePayload;

    /**
     * @return The payload is included in the request, mainly used for small import jobs.
     * 
     */
    public Optional> inlinePayload() {
        return Optional.ofNullable(this.inlinePayload);
    }

    /**
     * Labels as key value pairs.
     * 
     */
    @Import(name="labels")
    private @Nullable Output> labels;

    /**
     * @return Labels as key value pairs.
     * 
     */
    public Optional>> labels() {
        return Optional.ofNullable(this.labels);
    }

    @Import(name="location")
    private @Nullable Output location;

    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    @Import(name="project")
    private @Nullable Output project;

    public Optional> project() {
        return Optional.ofNullable(this.project);
    }

    /**
     * Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
     * 
     */
    @Import(name="requestId")
    private @Nullable Output requestId;

    /**
     * @return Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
     * 
     */
    public Optional> requestId() {
        return Optional.ofNullable(this.requestId);
    }

    private ImportJobArgs() {}

    private ImportJobArgs(ImportJobArgs $) {
        this.assetSource = $.assetSource;
        this.displayName = $.displayName;
        this.gcsPayload = $.gcsPayload;
        this.importJobId = $.importJobId;
        this.inlinePayload = $.inlinePayload;
        this.labels = $.labels;
        this.location = $.location;
        this.project = $.project;
        this.requestId = $.requestId;
    }

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

    public static final class Builder {
        private ImportJobArgs $;

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

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

        /**
         * @param assetSource Reference to a source.
         * 
         * @return builder
         * 
         */
        public Builder assetSource(Output assetSource) {
            $.assetSource = assetSource;
            return this;
        }

        /**
         * @param assetSource Reference to a source.
         * 
         * @return builder
         * 
         */
        public Builder assetSource(String assetSource) {
            return assetSource(Output.of(assetSource));
        }

        /**
         * @param displayName User-friendly display name. Maximum length is 63 characters.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName User-friendly display name. Maximum length is 63 characters.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param gcsPayload The payload is in Google Cloud Storage.
         * 
         * @return builder
         * 
         */
        public Builder gcsPayload(@Nullable Output gcsPayload) {
            $.gcsPayload = gcsPayload;
            return this;
        }

        /**
         * @param gcsPayload The payload is in Google Cloud Storage.
         * 
         * @return builder
         * 
         */
        public Builder gcsPayload(GCSPayloadInfoArgs gcsPayload) {
            return gcsPayload(Output.of(gcsPayload));
        }

        /**
         * @param importJobId Required. ID of the import job.
         * 
         * @return builder
         * 
         */
        public Builder importJobId(Output importJobId) {
            $.importJobId = importJobId;
            return this;
        }

        /**
         * @param importJobId Required. ID of the import job.
         * 
         * @return builder
         * 
         */
        public Builder importJobId(String importJobId) {
            return importJobId(Output.of(importJobId));
        }

        /**
         * @param inlinePayload The payload is included in the request, mainly used for small import jobs.
         * 
         * @return builder
         * 
         */
        public Builder inlinePayload(@Nullable Output inlinePayload) {
            $.inlinePayload = inlinePayload;
            return this;
        }

        /**
         * @param inlinePayload The payload is included in the request, mainly used for small import jobs.
         * 
         * @return builder
         * 
         */
        public Builder inlinePayload(InlinePayloadInfoArgs inlinePayload) {
            return inlinePayload(Output.of(inlinePayload));
        }

        /**
         * @param labels Labels as key value pairs.
         * 
         * @return builder
         * 
         */
        public Builder labels(@Nullable Output> labels) {
            $.labels = labels;
            return this;
        }

        /**
         * @param labels Labels as key value pairs.
         * 
         * @return builder
         * 
         */
        public Builder labels(Map labels) {
            return labels(Output.of(labels));
        }

        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        public Builder location(String location) {
            return location(Output.of(location));
        }

        public Builder project(@Nullable Output project) {
            $.project = project;
            return this;
        }

        public Builder project(String project) {
            return project(Output.of(project));
        }

        /**
         * @param requestId Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
         * 
         * @return builder
         * 
         */
        public Builder requestId(@Nullable Output requestId) {
            $.requestId = requestId;
            return this;
        }

        /**
         * @param requestId Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
         * 
         * @return builder
         * 
         */
        public Builder requestId(String requestId) {
            return requestId(Output.of(requestId));
        }

        public ImportJobArgs build() {
            $.assetSource = Objects.requireNonNull($.assetSource, "expected parameter 'assetSource' to be non-null");
            $.importJobId = Objects.requireNonNull($.importJobId, "expected parameter 'importJobId' to be non-null");
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy