com.huaweicloud.sdk.gaussdbforopengauss.v3.model.CreateConfigurationTemplateRequestBody Maven / Gradle / Ivy
package com.huaweicloud.sdk.gaussdbforopengauss.v3.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.huaweicloud.sdk.gaussdbforopengauss.v3.model.DatastoreOption;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Consumer;
import java.util.Objects;
/**
* CreateConfigurationTemplateRequestBody
*/
public class CreateConfigurationTemplateRequestBody {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="name")
private String name;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="description")
private String description;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="parameter_values")
private Map parameterValues = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="datastore")
private DatastoreOption datastore;
public CreateConfigurationTemplateRequestBody withName(String name) {
this.name = name;
return this;
}
/**
* 参数模板名称。 取值范围:长度1到64位之间,区分大小写字母,可包含字母、数字、中划线、下划线或句点,不能包含其他特殊字符。
* @return name
*/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public CreateConfigurationTemplateRequestBody withDescription(String description) {
this.description = description;
return this;
}
/**
* 参数模板描述,默认为空。 取值范围:长度不超过256,不能包含回车<>!&等特殊字符。
* @return description
*/
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public CreateConfigurationTemplateRequestBody withParameterValues(Map parameterValues) {
this.parameterValues = parameterValues;
return this;
}
public CreateConfigurationTemplateRequestBody putParameterValuesItem(String key, String parameterValuesItem) {
if(this.parameterValues == null) {
this.parameterValues = new HashMap<>();
}
this.parameterValues.put(key, parameterValuesItem);
return this;
}
public CreateConfigurationTemplateRequestBody withParameterValues(Consumer