com.pulumi.alicloud.ehpc.outputs.GetJobTemplatesTemplate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud resources.
// *** 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.alicloud.ehpc.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetJobTemplatesTemplate {
/**
* @return Queue Jobs, Is of the Form: 1-10:2.
*
*/
private String arrayRequest;
/**
* @return Job Maximum Run Time.
*
*/
private String clockTime;
/**
* @return Job Commands.
*
*/
private String commandLine;
/**
* @return A Single Compute Node Using the GPU Number.Possible Values: 1~20000.
*
*/
private Integer gpu;
/**
* @return The ID of the Job Template.
*
*/
private String id;
/**
* @return The first ID of the resource.
*
*/
private String jobTemplateId;
/**
* @return A Job Template Name.
*
*/
private String jobTemplateName;
/**
* @return A Single Compute Node Maximum Memory.
*
*/
private String mem;
/**
* @return Submit a Task Is Required for Computing the Number of Data Nodes to Be. Possible Values: 1~5000 .
*
*/
private Integer node;
/**
* @return Job Commands the Directory.
*
*/
private String packagePath;
/**
* @return The Job Priority.Possible Values: 0~9.
*
*/
private Integer priority;
/**
* @return The Job Queue.
*
*/
private String queue;
/**
* @return If the Job Is Support for the Re-Run.
*
*/
private Boolean reRunable;
/**
* @return The name of the user who performed the job.
*
*/
private String runasUser;
/**
* @return Error Output Path.
*
*/
private String stderrRedirectPath;
/**
* @return Standard Output Path and.
*
*/
private String stdoutRedirectPath;
/**
* @return A Single Compute Node Required Number of Tasks. Possible Values: 1~20000 .
*
*/
private Integer task;
/**
* @return A Single Task and the Number of Required Threads.Possible Values: 1~20000.
*
*/
private Integer thread;
/**
* @return The Job of the Environment Variable.
*
*/
private String variables;
private GetJobTemplatesTemplate() {}
/**
* @return Queue Jobs, Is of the Form: 1-10:2.
*
*/
public String arrayRequest() {
return this.arrayRequest;
}
/**
* @return Job Maximum Run Time.
*
*/
public String clockTime() {
return this.clockTime;
}
/**
* @return Job Commands.
*
*/
public String commandLine() {
return this.commandLine;
}
/**
* @return A Single Compute Node Using the GPU Number.Possible Values: 1~20000.
*
*/
public Integer gpu() {
return this.gpu;
}
/**
* @return The ID of the Job Template.
*
*/
public String id() {
return this.id;
}
/**
* @return The first ID of the resource.
*
*/
public String jobTemplateId() {
return this.jobTemplateId;
}
/**
* @return A Job Template Name.
*
*/
public String jobTemplateName() {
return this.jobTemplateName;
}
/**
* @return A Single Compute Node Maximum Memory.
*
*/
public String mem() {
return this.mem;
}
/**
* @return Submit a Task Is Required for Computing the Number of Data Nodes to Be. Possible Values: 1~5000 .
*
*/
public Integer node() {
return this.node;
}
/**
* @return Job Commands the Directory.
*
*/
public String packagePath() {
return this.packagePath;
}
/**
* @return The Job Priority.Possible Values: 0~9.
*
*/
public Integer priority() {
return this.priority;
}
/**
* @return The Job Queue.
*
*/
public String queue() {
return this.queue;
}
/**
* @return If the Job Is Support for the Re-Run.
*
*/
public Boolean reRunable() {
return this.reRunable;
}
/**
* @return The name of the user who performed the job.
*
*/
public String runasUser() {
return this.runasUser;
}
/**
* @return Error Output Path.
*
*/
public String stderrRedirectPath() {
return this.stderrRedirectPath;
}
/**
* @return Standard Output Path and.
*
*/
public String stdoutRedirectPath() {
return this.stdoutRedirectPath;
}
/**
* @return A Single Compute Node Required Number of Tasks. Possible Values: 1~20000 .
*
*/
public Integer task() {
return this.task;
}
/**
* @return A Single Task and the Number of Required Threads.Possible Values: 1~20000.
*
*/
public Integer thread() {
return this.thread;
}
/**
* @return The Job of the Environment Variable.
*
*/
public String variables() {
return this.variables;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetJobTemplatesTemplate defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String arrayRequest;
private String clockTime;
private String commandLine;
private Integer gpu;
private String id;
private String jobTemplateId;
private String jobTemplateName;
private String mem;
private Integer node;
private String packagePath;
private Integer priority;
private String queue;
private Boolean reRunable;
private String runasUser;
private String stderrRedirectPath;
private String stdoutRedirectPath;
private Integer task;
private Integer thread;
private String variables;
public Builder() {}
public Builder(GetJobTemplatesTemplate defaults) {
Objects.requireNonNull(defaults);
this.arrayRequest = defaults.arrayRequest;
this.clockTime = defaults.clockTime;
this.commandLine = defaults.commandLine;
this.gpu = defaults.gpu;
this.id = defaults.id;
this.jobTemplateId = defaults.jobTemplateId;
this.jobTemplateName = defaults.jobTemplateName;
this.mem = defaults.mem;
this.node = defaults.node;
this.packagePath = defaults.packagePath;
this.priority = defaults.priority;
this.queue = defaults.queue;
this.reRunable = defaults.reRunable;
this.runasUser = defaults.runasUser;
this.stderrRedirectPath = defaults.stderrRedirectPath;
this.stdoutRedirectPath = defaults.stdoutRedirectPath;
this.task = defaults.task;
this.thread = defaults.thread;
this.variables = defaults.variables;
}
@CustomType.Setter
public Builder arrayRequest(String arrayRequest) {
if (arrayRequest == null) {
throw new MissingRequiredPropertyException("GetJobTemplatesTemplate", "arrayRequest");
}
this.arrayRequest = arrayRequest;
return this;
}
@CustomType.Setter
public Builder clockTime(String clockTime) {
if (clockTime == null) {
throw new MissingRequiredPropertyException("GetJobTemplatesTemplate", "clockTime");
}
this.clockTime = clockTime;
return this;
}
@CustomType.Setter
public Builder commandLine(String commandLine) {
if (commandLine == null) {
throw new MissingRequiredPropertyException("GetJobTemplatesTemplate", "commandLine");
}
this.commandLine = commandLine;
return this;
}
@CustomType.Setter
public Builder gpu(Integer gpu) {
if (gpu == null) {
throw new MissingRequiredPropertyException("GetJobTemplatesTemplate", "gpu");
}
this.gpu = gpu;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetJobTemplatesTemplate", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder jobTemplateId(String jobTemplateId) {
if (jobTemplateId == null) {
throw new MissingRequiredPropertyException("GetJobTemplatesTemplate", "jobTemplateId");
}
this.jobTemplateId = jobTemplateId;
return this;
}
@CustomType.Setter
public Builder jobTemplateName(String jobTemplateName) {
if (jobTemplateName == null) {
throw new MissingRequiredPropertyException("GetJobTemplatesTemplate", "jobTemplateName");
}
this.jobTemplateName = jobTemplateName;
return this;
}
@CustomType.Setter
public Builder mem(String mem) {
if (mem == null) {
throw new MissingRequiredPropertyException("GetJobTemplatesTemplate", "mem");
}
this.mem = mem;
return this;
}
@CustomType.Setter
public Builder node(Integer node) {
if (node == null) {
throw new MissingRequiredPropertyException("GetJobTemplatesTemplate", "node");
}
this.node = node;
return this;
}
@CustomType.Setter
public Builder packagePath(String packagePath) {
if (packagePath == null) {
throw new MissingRequiredPropertyException("GetJobTemplatesTemplate", "packagePath");
}
this.packagePath = packagePath;
return this;
}
@CustomType.Setter
public Builder priority(Integer priority) {
if (priority == null) {
throw new MissingRequiredPropertyException("GetJobTemplatesTemplate", "priority");
}
this.priority = priority;
return this;
}
@CustomType.Setter
public Builder queue(String queue) {
if (queue == null) {
throw new MissingRequiredPropertyException("GetJobTemplatesTemplate", "queue");
}
this.queue = queue;
return this;
}
@CustomType.Setter
public Builder reRunable(Boolean reRunable) {
if (reRunable == null) {
throw new MissingRequiredPropertyException("GetJobTemplatesTemplate", "reRunable");
}
this.reRunable = reRunable;
return this;
}
@CustomType.Setter
public Builder runasUser(String runasUser) {
if (runasUser == null) {
throw new MissingRequiredPropertyException("GetJobTemplatesTemplate", "runasUser");
}
this.runasUser = runasUser;
return this;
}
@CustomType.Setter
public Builder stderrRedirectPath(String stderrRedirectPath) {
if (stderrRedirectPath == null) {
throw new MissingRequiredPropertyException("GetJobTemplatesTemplate", "stderrRedirectPath");
}
this.stderrRedirectPath = stderrRedirectPath;
return this;
}
@CustomType.Setter
public Builder stdoutRedirectPath(String stdoutRedirectPath) {
if (stdoutRedirectPath == null) {
throw new MissingRequiredPropertyException("GetJobTemplatesTemplate", "stdoutRedirectPath");
}
this.stdoutRedirectPath = stdoutRedirectPath;
return this;
}
@CustomType.Setter
public Builder task(Integer task) {
if (task == null) {
throw new MissingRequiredPropertyException("GetJobTemplatesTemplate", "task");
}
this.task = task;
return this;
}
@CustomType.Setter
public Builder thread(Integer thread) {
if (thread == null) {
throw new MissingRequiredPropertyException("GetJobTemplatesTemplate", "thread");
}
this.thread = thread;
return this;
}
@CustomType.Setter
public Builder variables(String variables) {
if (variables == null) {
throw new MissingRequiredPropertyException("GetJobTemplatesTemplate", "variables");
}
this.variables = variables;
return this;
}
public GetJobTemplatesTemplate build() {
final var _resultValue = new GetJobTemplatesTemplate();
_resultValue.arrayRequest = arrayRequest;
_resultValue.clockTime = clockTime;
_resultValue.commandLine = commandLine;
_resultValue.gpu = gpu;
_resultValue.id = id;
_resultValue.jobTemplateId = jobTemplateId;
_resultValue.jobTemplateName = jobTemplateName;
_resultValue.mem = mem;
_resultValue.node = node;
_resultValue.packagePath = packagePath;
_resultValue.priority = priority;
_resultValue.queue = queue;
_resultValue.reRunable = reRunable;
_resultValue.runasUser = runasUser;
_resultValue.stderrRedirectPath = stderrRedirectPath;
_resultValue.stdoutRedirectPath = stdoutRedirectPath;
_resultValue.task = task;
_resultValue.thread = thread;
_resultValue.variables = variables;
return _resultValue;
}
}
}