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

com.huaweicloud.sdk.aom.v1.model.WorkFlowModel 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.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.function.Consumer;

/**
 * WorkFlowModel
 */
public class WorkFlowModel {

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "en-us")

    private Map enUs = null;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "zh-cn")

    private Map zhCn = null;

    public WorkFlowModel withEnUs(Map enUs) {
        this.enUs = enUs;
        return this;
    }

    public WorkFlowModel putEnUsItem(String key, String enUsItem) {
        if (this.enUs == null) {
            this.enUs = new HashMap<>();
        }
        this.enUs.put(key, enUsItem);
        return this;
    }

    public WorkFlowModel withEnUs(Consumer> enUsSetter) {
        if (this.enUs == null) {
            this.enUs = new HashMap<>();
        }
        enUsSetter.accept(this.enUs);
        return this;
    }

    /**
     * 英文描述
     * @return enUs
     */
    public Map getEnUs() {
        return enUs;
    }

    public void setEnUs(Map enUs) {
        this.enUs = enUs;
    }

    public WorkFlowModel withZhCn(Map zhCn) {
        this.zhCn = zhCn;
        return this;
    }

    public WorkFlowModel putZhCnItem(String key, String zhCnItem) {
        if (this.zhCn == null) {
            this.zhCn = new HashMap<>();
        }
        this.zhCn.put(key, zhCnItem);
        return this;
    }

    public WorkFlowModel withZhCn(Consumer> zhCnSetter) {
        if (this.zhCn == null) {
            this.zhCn = new HashMap<>();
        }
        zhCnSetter.accept(this.zhCn);
        return this;
    }

    /**
     * 中文描述
     * @return zhCn
     */
    public Map getZhCn() {
        return zhCn;
    }

    public void setZhCn(Map zhCn) {
        this.zhCn = zhCn;
    }

    @Override
    public boolean equals(java.lang.Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        WorkFlowModel that = (WorkFlowModel) obj;
        return Objects.equals(this.enUs, that.enUs) && Objects.equals(this.zhCn, that.zhCn);
    }

    @Override
    public int hashCode() {
        return Objects.hash(enUs, zhCn);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class WorkFlowModel {\n");
        sb.append("    enUs: ").append(toIndentedString(enUs)).append("\n");
        sb.append("    zhCn: ").append(toIndentedString(zhCn)).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