com.huaweicloud.sdk.aom.v1.model.Step Maven / Gradle / Ivy
package com.huaweicloud.sdk.aom.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.function.Consumer;
/**
* 创建作业时的步骤参数
*/
public class Step {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "id")
private String id;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "name")
private String name;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "type")
private String type;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "input")
private Map input = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "ignore_error")
private Boolean ignoreError;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "description")
private String description;
public Step withId(String id) {
this.id = id;
return this;
}
/**
* 步骤id。
* @return id
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Step withName(String name) {
this.name = name;
return this;
}
/**
* 步骤名称。
* @return name
*/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Step withType(String type) {
this.type = type;
return this;
}
/**
* 步骤类型。
* @return type
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public Step withInput(Map input) {
this.input = input;
return this;
}
public Step putInputItem(String key, String inputItem) {
if (this.input == null) {
this.input = new HashMap<>();
}
this.input.put(key, inputItem);
return this;
}
public Step withInput(Consumer