com.huaweicloud.sdk.kms.v2.model.KeystoreInfo Maven / Gradle / Ivy
The newest version!
package com.huaweicloud.sdk.kms.v2.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* KeystoreInfo
*/
public class KeystoreInfo {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "keystore_id")
private String keystoreId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "domain_id")
private String domainId;
public KeystoreInfo withKeystoreId(String keystoreId) {
this.keystoreId = keystoreId;
return this;
}
/**
* 密钥库ID
* @return keystoreId
*/
public String getKeystoreId() {
return keystoreId;
}
public void setKeystoreId(String keystoreId) {
this.keystoreId = keystoreId;
}
public KeystoreInfo withDomainId(String domainId) {
this.domainId = domainId;
return this;
}
/**
* 用户域ID
* @return domainId
*/
public String getDomainId() {
return domainId;
}
public void setDomainId(String domainId) {
this.domainId = domainId;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
KeystoreInfo that = (KeystoreInfo) obj;
return Objects.equals(this.keystoreId, that.keystoreId) && Objects.equals(this.domainId, that.domainId);
}
@Override
public int hashCode() {
return Objects.hash(keystoreId, domainId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class KeystoreInfo {\n");
sb.append(" keystoreId: ").append(toIndentedString(keystoreId)).append("\n");
sb.append(" domainId: ").append(toIndentedString(domainId)).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 ");
}
}