com.huaweicloud.sdk.obs.v1.model.CommonPrefixes Maven / Gradle / Ivy
package com.huaweicloud.sdk.obs.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import java.util.Objects;
/**
* 请求中带delimiter参数时,返回消息带CommonPrefixes分组信息。
*/
@JacksonXmlRootElement(localName = "CommonPrefixes")
public class CommonPrefixes {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "Prefix")
@JacksonXmlProperty(localName = "Prefix")
private String prefix;
public CommonPrefixes withPrefix(String prefix) {
this.prefix = prefix;
return this;
}
/**
* Get prefix
* @return prefix
*/
public String getPrefix() {
return prefix;
}
public void setPrefix(String prefix) {
this.prefix = prefix;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
CommonPrefixes that = (CommonPrefixes) obj;
return Objects.equals(this.prefix, that.prefix);
}
@Override
public int hashCode() {
return Objects.hash(prefix);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CommonPrefixes {\n");
sb.append(" prefix: ").append(toIndentedString(prefix)).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 ");
}
}