com.huaweicloud.sdk.apm.v1.model.CreateAkSkResponse Maven / Gradle / Ivy
package com.huaweicloud.sdk.apm.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.huaweicloud.sdk.core.SdkResponse;
import java.util.Objects;
/**
* Response Object
*/
public class CreateAkSkResponse extends SdkResponse {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "ak")
private String ak;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "sk")
private String sk;
public CreateAkSkResponse withAk(String ak) {
this.ak = ak;
return this;
}
/**
* 创建/删除的ak信息。
* @return ak
*/
public String getAk() {
return ak;
}
public void setAk(String ak) {
this.ak = ak;
}
public CreateAkSkResponse withSk(String sk) {
this.sk = sk;
return this;
}
/**
* 创建/删除的sk信息。
* @return sk
*/
public String getSk() {
return sk;
}
public void setSk(String sk) {
this.sk = sk;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
CreateAkSkResponse that = (CreateAkSkResponse) obj;
return Objects.equals(this.ak, that.ak) && Objects.equals(this.sk, that.sk);
}
@Override
public int hashCode() {
return Objects.hash(ak, sk);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateAkSkResponse {\n");
sb.append(" ak: ").append(toIndentedString(ak)).append("\n");
sb.append(" sk: ").append(toIndentedString(sk)).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 ");
}
}