com.huaweicloud.sdk.aom.v1.model.Metadata 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 Metadata {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "type")
private String type;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "configuration")
private Map _configuration = null;
public Metadata withType(String type) {
this.type = type;
return this;
}
/**
* 节点类型。
* @return type
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public Metadata withConfiguration(Map _configuration) {
this._configuration = _configuration;
return this;
}
public Metadata putConfigurationItem(String key, Object _configurationItem) {
if (this._configuration == null) {
this._configuration = new HashMap<>();
}
this._configuration.put(key, _configurationItem);
return this;
}
public Metadata withConfiguration(Consumer