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

com.pulumi.azurenative.storagemover.JobDefinitionArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.azurenative.storagemover;

import com.pulumi.azurenative.storagemover.enums.CopyMode;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final JobDefinitionArgs Empty = new JobDefinitionArgs();

    /**
     * Name of the Agent to assign for new Job Runs of this Job Definition.
     * 
     */
    @Import(name="agentName")
    private @Nullable Output agentName;

    /**
     * @return Name of the Agent to assign for new Job Runs of this Job Definition.
     * 
     */
    public Optional> agentName() {
        return Optional.ofNullable(this.agentName);
    }

    /**
     * Strategy to use for copy.
     * 
     */
    @Import(name="copyMode", required=true)
    private Output> copyMode;

    /**
     * @return Strategy to use for copy.
     * 
     */
    public Output> copyMode() {
        return this.copyMode;
    }

    /**
     * A description for the Job Definition.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return A description for the Job Definition.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The name of the Job Definition resource.
     * 
     */
    @Import(name="jobDefinitionName")
    private @Nullable Output jobDefinitionName;

    /**
     * @return The name of the Job Definition resource.
     * 
     */
    public Optional> jobDefinitionName() {
        return Optional.ofNullable(this.jobDefinitionName);
    }

    /**
     * The name of the Project resource.
     * 
     */
    @Import(name="projectName", required=true)
    private Output projectName;

    /**
     * @return The name of the Project resource.
     * 
     */
    public Output projectName() {
        return this.projectName;
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The name of the source Endpoint.
     * 
     */
    @Import(name="sourceName", required=true)
    private Output sourceName;

    /**
     * @return The name of the source Endpoint.
     * 
     */
    public Output sourceName() {
        return this.sourceName;
    }

    /**
     * The subpath to use when reading from the source Endpoint.
     * 
     */
    @Import(name="sourceSubpath")
    private @Nullable Output sourceSubpath;

    /**
     * @return The subpath to use when reading from the source Endpoint.
     * 
     */
    public Optional> sourceSubpath() {
        return Optional.ofNullable(this.sourceSubpath);
    }

    /**
     * The name of the Storage Mover resource.
     * 
     */
    @Import(name="storageMoverName", required=true)
    private Output storageMoverName;

    /**
     * @return The name of the Storage Mover resource.
     * 
     */
    public Output storageMoverName() {
        return this.storageMoverName;
    }

    /**
     * The name of the target Endpoint.
     * 
     */
    @Import(name="targetName", required=true)
    private Output targetName;

    /**
     * @return The name of the target Endpoint.
     * 
     */
    public Output targetName() {
        return this.targetName;
    }

    /**
     * The subpath to use when writing to the target Endpoint.
     * 
     */
    @Import(name="targetSubpath")
    private @Nullable Output targetSubpath;

    /**
     * @return The subpath to use when writing to the target Endpoint.
     * 
     */
    public Optional> targetSubpath() {
        return Optional.ofNullable(this.targetSubpath);
    }

    private JobDefinitionArgs() {}

    private JobDefinitionArgs(JobDefinitionArgs $) {
        this.agentName = $.agentName;
        this.copyMode = $.copyMode;
        this.description = $.description;
        this.jobDefinitionName = $.jobDefinitionName;
        this.projectName = $.projectName;
        this.resourceGroupName = $.resourceGroupName;
        this.sourceName = $.sourceName;
        this.sourceSubpath = $.sourceSubpath;
        this.storageMoverName = $.storageMoverName;
        this.targetName = $.targetName;
        this.targetSubpath = $.targetSubpath;
    }

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

    public static final class Builder {
        private JobDefinitionArgs $;

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

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

        /**
         * @param agentName Name of the Agent to assign for new Job Runs of this Job Definition.
         * 
         * @return builder
         * 
         */
        public Builder agentName(@Nullable Output agentName) {
            $.agentName = agentName;
            return this;
        }

        /**
         * @param agentName Name of the Agent to assign for new Job Runs of this Job Definition.
         * 
         * @return builder
         * 
         */
        public Builder agentName(String agentName) {
            return agentName(Output.of(agentName));
        }

        /**
         * @param copyMode Strategy to use for copy.
         * 
         * @return builder
         * 
         */
        public Builder copyMode(Output> copyMode) {
            $.copyMode = copyMode;
            return this;
        }

        /**
         * @param copyMode Strategy to use for copy.
         * 
         * @return builder
         * 
         */
        public Builder copyMode(Either copyMode) {
            return copyMode(Output.of(copyMode));
        }

        /**
         * @param copyMode Strategy to use for copy.
         * 
         * @return builder
         * 
         */
        public Builder copyMode(String copyMode) {
            return copyMode(Either.ofLeft(copyMode));
        }

        /**
         * @param copyMode Strategy to use for copy.
         * 
         * @return builder
         * 
         */
        public Builder copyMode(CopyMode copyMode) {
            return copyMode(Either.ofRight(copyMode));
        }

        /**
         * @param description A description for the Job Definition.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description A description for the Job Definition.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param jobDefinitionName The name of the Job Definition resource.
         * 
         * @return builder
         * 
         */
        public Builder jobDefinitionName(@Nullable Output jobDefinitionName) {
            $.jobDefinitionName = jobDefinitionName;
            return this;
        }

        /**
         * @param jobDefinitionName The name of the Job Definition resource.
         * 
         * @return builder
         * 
         */
        public Builder jobDefinitionName(String jobDefinitionName) {
            return jobDefinitionName(Output.of(jobDefinitionName));
        }

        /**
         * @param projectName The name of the Project resource.
         * 
         * @return builder
         * 
         */
        public Builder projectName(Output projectName) {
            $.projectName = projectName;
            return this;
        }

        /**
         * @param projectName The name of the Project resource.
         * 
         * @return builder
         * 
         */
        public Builder projectName(String projectName) {
            return projectName(Output.of(projectName));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param sourceName The name of the source Endpoint.
         * 
         * @return builder
         * 
         */
        public Builder sourceName(Output sourceName) {
            $.sourceName = sourceName;
            return this;
        }

        /**
         * @param sourceName The name of the source Endpoint.
         * 
         * @return builder
         * 
         */
        public Builder sourceName(String sourceName) {
            return sourceName(Output.of(sourceName));
        }

        /**
         * @param sourceSubpath The subpath to use when reading from the source Endpoint.
         * 
         * @return builder
         * 
         */
        public Builder sourceSubpath(@Nullable Output sourceSubpath) {
            $.sourceSubpath = sourceSubpath;
            return this;
        }

        /**
         * @param sourceSubpath The subpath to use when reading from the source Endpoint.
         * 
         * @return builder
         * 
         */
        public Builder sourceSubpath(String sourceSubpath) {
            return sourceSubpath(Output.of(sourceSubpath));
        }

        /**
         * @param storageMoverName The name of the Storage Mover resource.
         * 
         * @return builder
         * 
         */
        public Builder storageMoverName(Output storageMoverName) {
            $.storageMoverName = storageMoverName;
            return this;
        }

        /**
         * @param storageMoverName The name of the Storage Mover resource.
         * 
         * @return builder
         * 
         */
        public Builder storageMoverName(String storageMoverName) {
            return storageMoverName(Output.of(storageMoverName));
        }

        /**
         * @param targetName The name of the target Endpoint.
         * 
         * @return builder
         * 
         */
        public Builder targetName(Output targetName) {
            $.targetName = targetName;
            return this;
        }

        /**
         * @param targetName The name of the target Endpoint.
         * 
         * @return builder
         * 
         */
        public Builder targetName(String targetName) {
            return targetName(Output.of(targetName));
        }

        /**
         * @param targetSubpath The subpath to use when writing to the target Endpoint.
         * 
         * @return builder
         * 
         */
        public Builder targetSubpath(@Nullable Output targetSubpath) {
            $.targetSubpath = targetSubpath;
            return this;
        }

        /**
         * @param targetSubpath The subpath to use when writing to the target Endpoint.
         * 
         * @return builder
         * 
         */
        public Builder targetSubpath(String targetSubpath) {
            return targetSubpath(Output.of(targetSubpath));
        }

        public JobDefinitionArgs build() {
            if ($.copyMode == null) {
                throw new MissingRequiredPropertyException("JobDefinitionArgs", "copyMode");
            }
            if ($.projectName == null) {
                throw new MissingRequiredPropertyException("JobDefinitionArgs", "projectName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("JobDefinitionArgs", "resourceGroupName");
            }
            if ($.sourceName == null) {
                throw new MissingRequiredPropertyException("JobDefinitionArgs", "sourceName");
            }
            if ($.storageMoverName == null) {
                throw new MissingRequiredPropertyException("JobDefinitionArgs", "storageMoverName");
            }
            if ($.targetName == null) {
                throw new MissingRequiredPropertyException("JobDefinitionArgs", "targetName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy