com.huaweicloud.sdk.geip.v3.model.UpdateGlobalEipSegmentRequestBodyGlobalEipSegment Maven / Gradle / Ivy
package com.huaweicloud.sdk.geip.v3.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* 更新全域弹性公网IP段请求对象
*/
public class UpdateGlobalEipSegmentRequestBodyGlobalEipSegment {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "name")
private String name;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "description")
private String description;
public UpdateGlobalEipSegmentRequestBodyGlobalEipSegment withName(String name) {
this.name = name;
return this;
}
/**
* - 功能说明:全域弹性公网IP段名称 - 取值范围:1-64,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
* @return name
*/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public UpdateGlobalEipSegmentRequestBodyGlobalEipSegment withDescription(String description) {
this.description = description;
return this;
}
/**
* - 功能说明:用户自定义的资源描述 - 约束: - 值的长度最大512字符,由数字、字母、中文、_(下划线)、-(中划线)、.(点)组成。
* @return description
*/
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
UpdateGlobalEipSegmentRequestBodyGlobalEipSegment that =
(UpdateGlobalEipSegmentRequestBodyGlobalEipSegment) obj;
return Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description);
}
@Override
public int hashCode() {
return Objects.hash(name, description);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UpdateGlobalEipSegmentRequestBodyGlobalEipSegment {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).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 ");
}
}