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

com.huaweicloud.sdk.aom.v1.model.Workflow Maven / Gradle / Ivy

There is a newer version: 3.1.112
Show newest version
package com.huaweicloud.sdk.aom.v1.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.function.Consumer;

/**
 * 变更服务工作流工作流元数据。
 */
public class Workflow {

    @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 = "description")

    private String description;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "tags")

    private Map tags = null;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "create_time")

    private Long createTime;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "create_by")

    private String createBy;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "update_time")

    private Long updateTime;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "update_by")

    private String updateBy;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "template_name")

    private String templateName;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "template_id")

    private String templateId;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "input")

    private Map input = null;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "last_execution_id")

    private String lastExecutionId;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "status")

    private String status;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "citation_urns")

    private List citationUrns = null;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "last_execution_end_time")

    private Long lastExecutionEndTime;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "last_execution_start_time")

    private Long lastExecutionStartTime;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "quote")

    private List quote = null;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "job_name")

    private String jobName;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "job_id")

    private String jobId;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "service_scenario")

    private String serviceScenario;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "service_name")

    private String serviceName;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "task_type")

    private String taskType;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "project_id")

    private String projectId;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "workflow_id")

    private String workflowId;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "task_status")

    private String taskStatus;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "nodes")

    private List nodes = null;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "edit_time")

    private Long editTime;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "execution_action_rules")

    private List executionActionRules = null;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "execution_permission")

    private List executionPermission = null;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "global_parameters")

    private List globalParameters = null;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "is_delete")

    private Boolean isDelete;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "steps")

    private List steps = null;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "output")

    private String output;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "trigger_id")

    private String triggerId;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "trigger_status")

    private String triggerStatus;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "approve_id")

    private String approveId;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "template_i18n")

    private WorkFlowModel templateI18n;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "enterprise_project_id")

    private String enterpriseProjectId;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "last_execute_by")

    private String lastExecuteBy;

    public Workflow withId(String id) {
        this.id = id;
        return this;
    }

    /**
     * 工作流id,唯一标识,根据project_id和workflow_name生成。
     * @return id
     */
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Workflow withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * 工作流名称。
     * @return name
     */
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Workflow withType(String type) {
        this.type = type;
        return this;
    }

    /**
     * 工作流类型,可以为cron、manual
     * @return type
     */
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Workflow withDescription(String description) {
        this.description = description;
        return this;
    }

    /**
     * 工作流描述信息。
     * @return description
     */
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Workflow withTags(Map tags) {
        this.tags = tags;
        return this;
    }

    public Workflow putTagsItem(String key, String tagsItem) {
        if (this.tags == null) {
            this.tags = new HashMap<>();
        }
        this.tags.put(key, tagsItem);
        return this;
    }

    public Workflow withTags(Consumer> tagsSetter) {
        if (this.tags == null) {
            this.tags = new HashMap<>();
        }
        tagsSetter.accept(this.tags);
        return this;
    }

    /**
     * 标签键和值列表,标签键值对数量范围是0至20。
     * @return tags
     */
    public Map getTags() {
        return tags;
    }

    public void setTags(Map tags) {
        this.tags = tags;
    }

    public Workflow withCreateTime(Long createTime) {
        this.createTime = createTime;
        return this;
    }

    /**
     * 工作流创建时间,为utc时间毫秒数。
     * minimum: 0
     * maximum: 9999999999999
     * @return createTime
     */
    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Workflow withCreateBy(String createBy) {
        this.createBy = createBy;
        return this;
    }

    /**
     * 工作流创人,从接口调用传入的token中获取。
     * @return createBy
     */
    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Workflow withUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    /**
     * 工作流更新时间,为utc时间毫秒数。
     * minimum: 0
     * maximum: 9999999999999
     * @return updateTime
     */
    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public Workflow withUpdateBy(String updateBy) {
        this.updateBy = updateBy;
        return this;
    }

    /**
     * 工作流更新人,从接口调用传入的token中获取。
     * @return updateBy
     */
    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Workflow withTemplateName(String templateName) {
        this.templateName = templateName;
        return this;
    }

    /**
     * 模板名称。
     * @return templateName
     */
    public String getTemplateName() {
        return templateName;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }

    public Workflow withTemplateId(String templateId) {
        this.templateId = templateId;
        return this;
    }

    /**
     * 模板id
     * @return templateId
     */
    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public Workflow withInput(Map input) {
        this.input = input;
        return this;
    }

    public Workflow putInputItem(String key, Object inputItem) {
        if (this.input == null) {
            this.input = new HashMap<>();
        }
        this.input.put(key, inputItem);
        return this;
    }

    public Workflow withInput(Consumer> inputSetter) {
        if (this.input == null) {
            this.input = new HashMap<>();
        }
        inputSetter.accept(this.input);
        return this;
    }

    /**
     * 任务执行时需要的参数列表。
     * @return input
     */
    public Map getInput() {
        return input;
    }

    public void setInput(Map input) {
        this.input = input;
    }

    public Workflow withLastExecutionId(String lastExecutionId) {
        this.lastExecutionId = lastExecutionId;
        return this;
    }

    /**
     * 最近一次执行id,也是工作流id
     * @return lastExecutionId
     */
    public String getLastExecutionId() {
        return lastExecutionId;
    }

    public void setLastExecutionId(String lastExecutionId) {
        this.lastExecutionId = lastExecutionId;
    }

    public Workflow withStatus(String status) {
        this.status = status;
        return this;
    }

    /**
     * 任务状态,包含success,fail,executing
     * @return status
     */
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Workflow withCitationUrns(List citationUrns) {
        this.citationUrns = citationUrns;
        return this;
    }

    public Workflow addCitationUrnsItem(String citationUrnsItem) {
        if (this.citationUrns == null) {
            this.citationUrns = new ArrayList<>();
        }
        this.citationUrns.add(citationUrnsItem);
        return this;
    }

    public Workflow withCitationUrns(Consumer> citationUrnsSetter) {
        if (this.citationUrns == null) {
            this.citationUrns = new ArrayList<>();
        }
        citationUrnsSetter.accept(this.citationUrns);
        return this;
    }

    /**
     * 工作流的引用。
     * @return citationUrns
     */
    public List getCitationUrns() {
        return citationUrns;
    }

    public void setCitationUrns(List citationUrns) {
        this.citationUrns = citationUrns;
    }

    public Workflow withLastExecutionEndTime(Long lastExecutionEndTime) {
        this.lastExecutionEndTime = lastExecutionEndTime;
        return this;
    }

    /**
     * 最近一次执行结束时间,为utc时间毫秒数
     * minimum: 0
     * maximum: 9999999999999
     * @return lastExecutionEndTime
     */
    public Long getLastExecutionEndTime() {
        return lastExecutionEndTime;
    }

    public void setLastExecutionEndTime(Long lastExecutionEndTime) {
        this.lastExecutionEndTime = lastExecutionEndTime;
    }

    public Workflow withLastExecutionStartTime(Long lastExecutionStartTime) {
        this.lastExecutionStartTime = lastExecutionStartTime;
        return this;
    }

    /**
     * 最近一次执行开始时间,为utc时间毫秒数
     * minimum: 0
     * maximum: 9999999999999
     * @return lastExecutionStartTime
     */
    public Long getLastExecutionStartTime() {
        return lastExecutionStartTime;
    }

    public void setLastExecutionStartTime(Long lastExecutionStartTime) {
        this.lastExecutionStartTime = lastExecutionStartTime;
    }

    public Workflow withQuote(List quote) {
        this.quote = quote;
        return this;
    }

    public Workflow addQuoteItem(String quoteItem) {
        if (this.quote == null) {
            this.quote = new ArrayList<>();
        }
        this.quote.add(quoteItem);
        return this;
    }

    public Workflow withQuote(Consumer> quoteSetter) {
        if (this.quote == null) {
            this.quote = new ArrayList<>();
        }
        quoteSetter.accept(this.quote);
        return this;
    }

    /**
     * 引用,参数引用
     * @return quote
     */
    public List getQuote() {
        return quote;
    }

    public void setQuote(List quote) {
        this.quote = quote;
    }

    public Workflow withJobName(String jobName) {
        this.jobName = jobName;
        return this;
    }

    /**
     * 作业名称
     * @return jobName
     */
    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public Workflow withJobId(String jobId) {
        this.jobId = jobId;
        return this;
    }

    /**
     * 作业id
     * @return jobId
     */
    public String getJobId() {
        return jobId;
    }

    public void setJobId(String jobId) {
        this.jobId = jobId;
    }

    public Workflow withServiceScenario(String serviceScenario) {
        this.serviceScenario = serviceScenario;
        return this;
    }

    /**
     * 服务场景分类
     * @return serviceScenario
     */
    public String getServiceScenario() {
        return serviceScenario;
    }

    public void setServiceScenario(String serviceScenario) {
        this.serviceScenario = serviceScenario;
    }

    public Workflow withServiceName(String serviceName) {
        this.serviceName = serviceName;
        return this;
    }

    /**
     * 服务名称
     * @return serviceName
     */
    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public Workflow withTaskType(String taskType) {
        this.taskType = taskType;
        return this;
    }

    /**
     * 任务类型
     * @return taskType
     */
    public String getTaskType() {
        return taskType;
    }

    public void setTaskType(String taskType) {
        this.taskType = taskType;
    }

    public Workflow withProjectId(String projectId) {
        this.projectId = projectId;
        return this;
    }

    /**
     * functiongraph返回的PROJECT_ID
     * @return projectId
     */
    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public Workflow withWorkflowId(String workflowId) {
        this.workflowId = workflowId;
        return this;
    }

    /**
     * functiongraph返回的WORKFLOW_ID
     * @return workflowId
     */
    public String getWorkflowId() {
        return workflowId;
    }

    public void setWorkflowId(String workflowId) {
        this.workflowId = workflowId;
    }

    public Workflow withTaskStatus(String taskStatus) {
        this.taskStatus = taskStatus;
        return this;
    }

    /**
     * 任务状态
     * @return taskStatus
     */
    public String getTaskStatus() {
        return taskStatus;
    }

    public void setTaskStatus(String taskStatus) {
        this.taskStatus = taskStatus;
    }

    public Workflow withNodes(List nodes) {
        this.nodes = nodes;
        return this;
    }

    public Workflow addNodesItem(Node nodesItem) {
        if (this.nodes == null) {
            this.nodes = new ArrayList<>();
        }
        this.nodes.add(nodesItem);
        return this;
    }

    public Workflow withNodes(Consumer> nodesSetter) {
        if (this.nodes == null) {
            this.nodes = new ArrayList<>();
        }
        nodesSetter.accept(this.nodes);
        return this;
    }

    /**
     * 任务节点
     * @return nodes
     */
    public List getNodes() {
        return nodes;
    }

    public void setNodes(List nodes) {
        this.nodes = nodes;
    }

    public Workflow withEditTime(Long editTime) {
        this.editTime = editTime;
        return this;
    }

    /**
     * 编辑时间
     * minimum: 0
     * maximum: 9999999999999
     * @return editTime
     */
    public Long getEditTime() {
        return editTime;
    }

    public void setEditTime(Long editTime) {
        this.editTime = editTime;
    }

    public Workflow withExecutionActionRules(List executionActionRules) {
        this.executionActionRules = executionActionRules;
        return this;
    }

    public Workflow addExecutionActionRulesItem(String executionActionRulesItem) {
        if (this.executionActionRules == null) {
            this.executionActionRules = new ArrayList<>();
        }
        this.executionActionRules.add(executionActionRulesItem);
        return this;
    }

    public Workflow withExecutionActionRules(Consumer> executionActionRulesSetter) {
        if (this.executionActionRules == null) {
            this.executionActionRules = new ArrayList<>();
        }
        executionActionRulesSetter.accept(this.executionActionRules);
        return this;
    }

    /**
     * 执行动作细粒度权限
     * @return executionActionRules
     */
    public List getExecutionActionRules() {
        return executionActionRules;
    }

    public void setExecutionActionRules(List executionActionRules) {
        this.executionActionRules = executionActionRules;
    }

    public Workflow withExecutionPermission(List executionPermission) {
        this.executionPermission = executionPermission;
        return this;
    }

    public Workflow addExecutionPermissionItem(String executionPermissionItem) {
        if (this.executionPermission == null) {
            this.executionPermission = new ArrayList<>();
        }
        this.executionPermission.add(executionPermissionItem);
        return this;
    }

    public Workflow withExecutionPermission(Consumer> executionPermissionSetter) {
        if (this.executionPermission == null) {
            this.executionPermission = new ArrayList<>();
        }
        executionPermissionSetter.accept(this.executionPermission);
        return this;
    }

    /**
     * 云服务权限
     * @return executionPermission
     */
    public List getExecutionPermission() {
        return executionPermission;
    }

    public void setExecutionPermission(List executionPermission) {
        this.executionPermission = executionPermission;
    }

    public Workflow withGlobalParameters(List globalParameters) {
        this.globalParameters = globalParameters;
        return this;
    }

    public Workflow addGlobalParametersItem(Parameter globalParametersItem) {
        if (this.globalParameters == null) {
            this.globalParameters = new ArrayList<>();
        }
        this.globalParameters.add(globalParametersItem);
        return this;
    }

    public Workflow withGlobalParameters(Consumer> globalParametersSetter) {
        if (this.globalParameters == null) {
            this.globalParameters = new ArrayList<>();
        }
        globalParametersSetter.accept(this.globalParameters);
        return this;
    }

    /**
     * 全局参数
     * @return globalParameters
     */
    public List getGlobalParameters() {
        return globalParameters;
    }

    public void setGlobalParameters(List globalParameters) {
        this.globalParameters = globalParameters;
    }

    public Workflow withIsDelete(Boolean isDelete) {
        this.isDelete = isDelete;
        return this;
    }

    /**
     * 逻辑删除
     * @return isDelete
     */
    public Boolean getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Boolean isDelete) {
        this.isDelete = isDelete;
    }

    public Workflow withSteps(List steps) {
        this.steps = steps;
        return this;
    }

    public Workflow addStepsItem(Step stepsItem) {
        if (this.steps == null) {
            this.steps = new ArrayList<>();
        }
        this.steps.add(stepsItem);
        return this;
    }

    public Workflow withSteps(Consumer> stepsSetter) {
        if (this.steps == null) {
            this.steps = new ArrayList<>();
        }
        stepsSetter.accept(this.steps);
        return this;
    }

    /**
     * 任务步骤
     * @return steps
     */
    public List getSteps() {
        return steps;
    }

    public void setSteps(List steps) {
        this.steps = steps;
    }

    public Workflow withOutput(String output) {
        this.output = output;
        return this;
    }

    /**
     * 任务输出
     * @return output
     */
    public String getOutput() {
        return output;
    }

    public void setOutput(String output) {
        this.output = output;
    }

    public Workflow withTriggerId(String triggerId) {
        this.triggerId = triggerId;
        return this;
    }

    /**
     * 触发器id
     * @return triggerId
     */
    public String getTriggerId() {
        return triggerId;
    }

    public void setTriggerId(String triggerId) {
        this.triggerId = triggerId;
    }

    public Workflow withTriggerStatus(String triggerStatus) {
        this.triggerStatus = triggerStatus;
        return this;
    }

    /**
     * 触发器状态
     * @return triggerStatus
     */
    public String getTriggerStatus() {
        return triggerStatus;
    }

    public void setTriggerStatus(String triggerStatus) {
        this.triggerStatus = triggerStatus;
    }

    public Workflow withApproveId(String approveId) {
        this.approveId = approveId;
        return this;
    }

    /**
     * 审批id
     * @return approveId
     */
    public String getApproveId() {
        return approveId;
    }

    public void setApproveId(String approveId) {
        this.approveId = approveId;
    }

    public Workflow withTemplateI18n(WorkFlowModel templateI18n) {
        this.templateI18n = templateI18n;
        return this;
    }

    public Workflow withTemplateI18n(Consumer templateI18nSetter) {
        if (this.templateI18n == null) {
            this.templateI18n = new WorkFlowModel();
            templateI18nSetter.accept(this.templateI18n);
        }

        return this;
    }

    /**
     * Get templateI18n
     * @return templateI18n
     */
    public WorkFlowModel getTemplateI18n() {
        return templateI18n;
    }

    public void setTemplateI18n(WorkFlowModel templateI18n) {
        this.templateI18n = templateI18n;
    }

    public Workflow withEnterpriseProjectId(String enterpriseProjectId) {
        this.enterpriseProjectId = enterpriseProjectId;
        return this;
    }

    /**
     * 任务所属的企业项目
     * @return enterpriseProjectId
     */
    public String getEnterpriseProjectId() {
        return enterpriseProjectId;
    }

    public void setEnterpriseProjectId(String enterpriseProjectId) {
        this.enterpriseProjectId = enterpriseProjectId;
    }

    public Workflow withLastExecuteBy(String lastExecuteBy) {
        this.lastExecuteBy = lastExecuteBy;
        return this;
    }

    /**
     * 任务最后一次执行人
     * @return lastExecuteBy
     */
    public String getLastExecuteBy() {
        return lastExecuteBy;
    }

    public void setLastExecuteBy(String lastExecuteBy) {
        this.lastExecuteBy = lastExecuteBy;
    }

    @Override
    public boolean equals(java.lang.Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        Workflow that = (Workflow) obj;
        return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name)
            && Objects.equals(this.type, that.type) && Objects.equals(this.description, that.description)
            && Objects.equals(this.tags, that.tags) && Objects.equals(this.createTime, that.createTime)
            && Objects.equals(this.createBy, that.createBy) && Objects.equals(this.updateTime, that.updateTime)
            && Objects.equals(this.updateBy, that.updateBy) && Objects.equals(this.templateName, that.templateName)
            && Objects.equals(this.templateId, that.templateId) && Objects.equals(this.input, that.input)
            && Objects.equals(this.lastExecutionId, that.lastExecutionId) && Objects.equals(this.status, that.status)
            && Objects.equals(this.citationUrns, that.citationUrns)
            && Objects.equals(this.lastExecutionEndTime, that.lastExecutionEndTime)
            && Objects.equals(this.lastExecutionStartTime, that.lastExecutionStartTime)
            && Objects.equals(this.quote, that.quote) && Objects.equals(this.jobName, that.jobName)
            && Objects.equals(this.jobId, that.jobId) && Objects.equals(this.serviceScenario, that.serviceScenario)
            && Objects.equals(this.serviceName, that.serviceName) && Objects.equals(this.taskType, that.taskType)
            && Objects.equals(this.projectId, that.projectId) && Objects.equals(this.workflowId, that.workflowId)
            && Objects.equals(this.taskStatus, that.taskStatus) && Objects.equals(this.nodes, that.nodes)
            && Objects.equals(this.editTime, that.editTime)
            && Objects.equals(this.executionActionRules, that.executionActionRules)
            && Objects.equals(this.executionPermission, that.executionPermission)
            && Objects.equals(this.globalParameters, that.globalParameters)
            && Objects.equals(this.isDelete, that.isDelete) && Objects.equals(this.steps, that.steps)
            && Objects.equals(this.output, that.output) && Objects.equals(this.triggerId, that.triggerId)
            && Objects.equals(this.triggerStatus, that.triggerStatus) && Objects.equals(this.approveId, that.approveId)
            && Objects.equals(this.templateI18n, that.templateI18n)
            && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId)
            && Objects.equals(this.lastExecuteBy, that.lastExecuteBy);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id,
            name,
            type,
            description,
            tags,
            createTime,
            createBy,
            updateTime,
            updateBy,
            templateName,
            templateId,
            input,
            lastExecutionId,
            status,
            citationUrns,
            lastExecutionEndTime,
            lastExecutionStartTime,
            quote,
            jobName,
            jobId,
            serviceScenario,
            serviceName,
            taskType,
            projectId,
            workflowId,
            taskStatus,
            nodes,
            editTime,
            executionActionRules,
            executionPermission,
            globalParameters,
            isDelete,
            steps,
            output,
            triggerId,
            triggerStatus,
            approveId,
            templateI18n,
            enterpriseProjectId,
            lastExecuteBy);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class Workflow {\n");
        sb.append("    id: ").append(toIndentedString(id)).append("\n");
        sb.append("    name: ").append(toIndentedString(name)).append("\n");
        sb.append("    type: ").append(toIndentedString(type)).append("\n");
        sb.append("    description: ").append(toIndentedString(description)).append("\n");
        sb.append("    tags: ").append(toIndentedString(tags)).append("\n");
        sb.append("    createTime: ").append(toIndentedString(createTime)).append("\n");
        sb.append("    createBy: ").append(toIndentedString(createBy)).append("\n");
        sb.append("    updateTime: ").append(toIndentedString(updateTime)).append("\n");
        sb.append("    updateBy: ").append(toIndentedString(updateBy)).append("\n");
        sb.append("    templateName: ").append(toIndentedString(templateName)).append("\n");
        sb.append("    templateId: ").append(toIndentedString(templateId)).append("\n");
        sb.append("    input: ").append(toIndentedString(input)).append("\n");
        sb.append("    lastExecutionId: ").append(toIndentedString(lastExecutionId)).append("\n");
        sb.append("    status: ").append(toIndentedString(status)).append("\n");
        sb.append("    citationUrns: ").append(toIndentedString(citationUrns)).append("\n");
        sb.append("    lastExecutionEndTime: ").append(toIndentedString(lastExecutionEndTime)).append("\n");
        sb.append("    lastExecutionStartTime: ").append(toIndentedString(lastExecutionStartTime)).append("\n");
        sb.append("    quote: ").append(toIndentedString(quote)).append("\n");
        sb.append("    jobName: ").append(toIndentedString(jobName)).append("\n");
        sb.append("    jobId: ").append(toIndentedString(jobId)).append("\n");
        sb.append("    serviceScenario: ").append(toIndentedString(serviceScenario)).append("\n");
        sb.append("    serviceName: ").append(toIndentedString(serviceName)).append("\n");
        sb.append("    taskType: ").append(toIndentedString(taskType)).append("\n");
        sb.append("    projectId: ").append(toIndentedString(projectId)).append("\n");
        sb.append("    workflowId: ").append(toIndentedString(workflowId)).append("\n");
        sb.append("    taskStatus: ").append(toIndentedString(taskStatus)).append("\n");
        sb.append("    nodes: ").append(toIndentedString(nodes)).append("\n");
        sb.append("    editTime: ").append(toIndentedString(editTime)).append("\n");
        sb.append("    executionActionRules: ").append(toIndentedString(executionActionRules)).append("\n");
        sb.append("    executionPermission: ").append(toIndentedString(executionPermission)).append("\n");
        sb.append("    globalParameters: ").append(toIndentedString(globalParameters)).append("\n");
        sb.append("    isDelete: ").append(toIndentedString(isDelete)).append("\n");
        sb.append("    steps: ").append(toIndentedString(steps)).append("\n");
        sb.append("    output: ").append(toIndentedString(output)).append("\n");
        sb.append("    triggerId: ").append(toIndentedString(triggerId)).append("\n");
        sb.append("    triggerStatus: ").append(toIndentedString(triggerStatus)).append("\n");
        sb.append("    approveId: ").append(toIndentedString(approveId)).append("\n");
        sb.append("    templateI18n: ").append(toIndentedString(templateI18n)).append("\n");
        sb.append("    enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n");
        sb.append("    lastExecuteBy: ").append(toIndentedString(lastExecuteBy)).append("\n");
        sb.append("}");
        return sb.toString();
    }

    /**
     * Convert the given object to string with each line indented by 4 spaces
     * (except the first line).
     */
    private String toIndentedString(java.lang.Object o) {
        if (o == null) {
            return "null";
        }
        return o.toString().replace("\n", "\n    ");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy