com.huaweicloud.sdk.cloudide.v2.model.SourceStorage Maven / Gradle / Ivy
package com.huaweicloud.sdk.cloudide.v2.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;
/**
* SourceStorage
*/
public class SourceStorage {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "location")
private String location;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "parameters")
private Map parameters = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "type")
private String type;
public SourceStorage withLocation(String location) {
this.location = location;
return this;
}
/**
* 位置
* @return location
*/
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
public SourceStorage withParameters(Map parameters) {
this.parameters = parameters;
return this;
}
public SourceStorage putParametersItem(String key, String parametersItem) {
if (this.parameters == null) {
this.parameters = new HashMap<>();
}
this.parameters.put(key, parametersItem);
return this;
}
public SourceStorage withParameters(Consumer