com.huaweicloud.sdk.cloudtest.v1.model.CheckPermissionResponse Maven / Gradle / Ivy
package com.huaweicloud.sdk.cloudtest.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.huaweicloud.sdk.core.SdkResponse;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.function.Consumer;
/**
* Response Object
*/
public class CheckPermissionResponse extends SdkResponse {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "code")
private String code;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "data")
private Map data = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "message")
private String message;
public CheckPermissionResponse withCode(String code) {
this.code = code;
return this;
}
/**
* 接口调用失败错误码
* @return code
*/
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public CheckPermissionResponse withData(Map data) {
this.data = data;
return this;
}
public CheckPermissionResponse putDataItem(String key, Boolean dataItem) {
if (this.data == null) {
this.data = new HashMap<>();
}
this.data.put(key, dataItem);
return this;
}
public CheckPermissionResponse withData(Consumer