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

com.pulumi.azurenative.storagemover.outputs.GetJobDefinitionResult Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.outputs;

import com.pulumi.azurenative.storagemover.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetJobDefinitionResult {
    /**
     * @return Name of the Agent to assign for new Job Runs of this Job Definition.
     * 
     */
    private @Nullable String agentName;
    /**
     * @return Fully qualified resource id of the Agent to assign for new Job Runs of this Job Definition.
     * 
     */
    private String agentResourceId;
    /**
     * @return Strategy to use for copy.
     * 
     */
    private String copyMode;
    /**
     * @return A description for the Job Definition.
     * 
     */
    private @Nullable String description;
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return The name of the Job Run in a non-terminal state, if exists.
     * 
     */
    private String latestJobRunName;
    /**
     * @return The fully qualified resource ID of the Job Run in a non-terminal state, if exists.
     * 
     */
    private String latestJobRunResourceId;
    /**
     * @return The current status of the Job Run in a non-terminal state, if exists.
     * 
     */
    private String latestJobRunStatus;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return The provisioning state of this resource.
     * 
     */
    private String provisioningState;
    /**
     * @return The name of the source Endpoint.
     * 
     */
    private String sourceName;
    /**
     * @return Fully qualified resource ID of the source Endpoint.
     * 
     */
    private String sourceResourceId;
    /**
     * @return The subpath to use when reading from the source Endpoint.
     * 
     */
    private @Nullable String sourceSubpath;
    /**
     * @return Resource system metadata.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return The name of the target Endpoint.
     * 
     */
    private String targetName;
    /**
     * @return Fully qualified resource ID of the target Endpoint.
     * 
     */
    private String targetResourceId;
    /**
     * @return The subpath to use when writing to the target Endpoint.
     * 
     */
    private @Nullable String targetSubpath;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;

    private GetJobDefinitionResult() {}
    /**
     * @return Name of the Agent to assign for new Job Runs of this Job Definition.
     * 
     */
    public Optional agentName() {
        return Optional.ofNullable(this.agentName);
    }
    /**
     * @return Fully qualified resource id of the Agent to assign for new Job Runs of this Job Definition.
     * 
     */
    public String agentResourceId() {
        return this.agentResourceId;
    }
    /**
     * @return Strategy to use for copy.
     * 
     */
    public String copyMode() {
        return this.copyMode;
    }
    /**
     * @return A description for the Job Definition.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The name of the Job Run in a non-terminal state, if exists.
     * 
     */
    public String latestJobRunName() {
        return this.latestJobRunName;
    }
    /**
     * @return The fully qualified resource ID of the Job Run in a non-terminal state, if exists.
     * 
     */
    public String latestJobRunResourceId() {
        return this.latestJobRunResourceId;
    }
    /**
     * @return The current status of the Job Run in a non-terminal state, if exists.
     * 
     */
    public String latestJobRunStatus() {
        return this.latestJobRunStatus;
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The provisioning state of this resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The name of the source Endpoint.
     * 
     */
    public String sourceName() {
        return this.sourceName;
    }
    /**
     * @return Fully qualified resource ID of the source Endpoint.
     * 
     */
    public String sourceResourceId() {
        return this.sourceResourceId;
    }
    /**
     * @return The subpath to use when reading from the source Endpoint.
     * 
     */
    public Optional sourceSubpath() {
        return Optional.ofNullable(this.sourceSubpath);
    }
    /**
     * @return Resource system metadata.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return The name of the target Endpoint.
     * 
     */
    public String targetName() {
        return this.targetName;
    }
    /**
     * @return Fully qualified resource ID of the target Endpoint.
     * 
     */
    public String targetResourceId() {
        return this.targetResourceId;
    }
    /**
     * @return The subpath to use when writing to the target Endpoint.
     * 
     */
    public Optional targetSubpath() {
        return Optional.ofNullable(this.targetSubpath);
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetJobDefinitionResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String agentName;
        private String agentResourceId;
        private String copyMode;
        private @Nullable String description;
        private String id;
        private String latestJobRunName;
        private String latestJobRunResourceId;
        private String latestJobRunStatus;
        private String name;
        private String provisioningState;
        private String sourceName;
        private String sourceResourceId;
        private @Nullable String sourceSubpath;
        private SystemDataResponse systemData;
        private String targetName;
        private String targetResourceId;
        private @Nullable String targetSubpath;
        private String type;
        public Builder() {}
        public Builder(GetJobDefinitionResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.agentName = defaults.agentName;
    	      this.agentResourceId = defaults.agentResourceId;
    	      this.copyMode = defaults.copyMode;
    	      this.description = defaults.description;
    	      this.id = defaults.id;
    	      this.latestJobRunName = defaults.latestJobRunName;
    	      this.latestJobRunResourceId = defaults.latestJobRunResourceId;
    	      this.latestJobRunStatus = defaults.latestJobRunStatus;
    	      this.name = defaults.name;
    	      this.provisioningState = defaults.provisioningState;
    	      this.sourceName = defaults.sourceName;
    	      this.sourceResourceId = defaults.sourceResourceId;
    	      this.sourceSubpath = defaults.sourceSubpath;
    	      this.systemData = defaults.systemData;
    	      this.targetName = defaults.targetName;
    	      this.targetResourceId = defaults.targetResourceId;
    	      this.targetSubpath = defaults.targetSubpath;
    	      this.type = defaults.type;
        }

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

            this.agentName = agentName;
            return this;
        }
        @CustomType.Setter
        public Builder agentResourceId(String agentResourceId) {
            if (agentResourceId == null) {
              throw new MissingRequiredPropertyException("GetJobDefinitionResult", "agentResourceId");
            }
            this.agentResourceId = agentResourceId;
            return this;
        }
        @CustomType.Setter
        public Builder copyMode(String copyMode) {
            if (copyMode == null) {
              throw new MissingRequiredPropertyException("GetJobDefinitionResult", "copyMode");
            }
            this.copyMode = copyMode;
            return this;
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetJobDefinitionResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder latestJobRunName(String latestJobRunName) {
            if (latestJobRunName == null) {
              throw new MissingRequiredPropertyException("GetJobDefinitionResult", "latestJobRunName");
            }
            this.latestJobRunName = latestJobRunName;
            return this;
        }
        @CustomType.Setter
        public Builder latestJobRunResourceId(String latestJobRunResourceId) {
            if (latestJobRunResourceId == null) {
              throw new MissingRequiredPropertyException("GetJobDefinitionResult", "latestJobRunResourceId");
            }
            this.latestJobRunResourceId = latestJobRunResourceId;
            return this;
        }
        @CustomType.Setter
        public Builder latestJobRunStatus(String latestJobRunStatus) {
            if (latestJobRunStatus == null) {
              throw new MissingRequiredPropertyException("GetJobDefinitionResult", "latestJobRunStatus");
            }
            this.latestJobRunStatus = latestJobRunStatus;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetJobDefinitionResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetJobDefinitionResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder sourceName(String sourceName) {
            if (sourceName == null) {
              throw new MissingRequiredPropertyException("GetJobDefinitionResult", "sourceName");
            }
            this.sourceName = sourceName;
            return this;
        }
        @CustomType.Setter
        public Builder sourceResourceId(String sourceResourceId) {
            if (sourceResourceId == null) {
              throw new MissingRequiredPropertyException("GetJobDefinitionResult", "sourceResourceId");
            }
            this.sourceResourceId = sourceResourceId;
            return this;
        }
        @CustomType.Setter
        public Builder sourceSubpath(@Nullable String sourceSubpath) {

            this.sourceSubpath = sourceSubpath;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetJobDefinitionResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder targetName(String targetName) {
            if (targetName == null) {
              throw new MissingRequiredPropertyException("GetJobDefinitionResult", "targetName");
            }
            this.targetName = targetName;
            return this;
        }
        @CustomType.Setter
        public Builder targetResourceId(String targetResourceId) {
            if (targetResourceId == null) {
              throw new MissingRequiredPropertyException("GetJobDefinitionResult", "targetResourceId");
            }
            this.targetResourceId = targetResourceId;
            return this;
        }
        @CustomType.Setter
        public Builder targetSubpath(@Nullable String targetSubpath) {

            this.targetSubpath = targetSubpath;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetJobDefinitionResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetJobDefinitionResult build() {
            final var _resultValue = new GetJobDefinitionResult();
            _resultValue.agentName = agentName;
            _resultValue.agentResourceId = agentResourceId;
            _resultValue.copyMode = copyMode;
            _resultValue.description = description;
            _resultValue.id = id;
            _resultValue.latestJobRunName = latestJobRunName;
            _resultValue.latestJobRunResourceId = latestJobRunResourceId;
            _resultValue.latestJobRunStatus = latestJobRunStatus;
            _resultValue.name = name;
            _resultValue.provisioningState = provisioningState;
            _resultValue.sourceName = sourceName;
            _resultValue.sourceResourceId = sourceResourceId;
            _resultValue.sourceSubpath = sourceSubpath;
            _resultValue.systemData = systemData;
            _resultValue.targetName = targetName;
            _resultValue.targetResourceId = targetResourceId;
            _resultValue.targetSubpath = targetSubpath;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy