com.huaweicloud.sdk.geip.v3.model.BatchDeleteV2RequestBody 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.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.function.Consumer;
/**
* BatchDeleteV2RequestBody
*/
public class BatchDeleteV2RequestBody {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "tags")
private List tags = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "sys_tags")
private List sysTags = null;
public BatchDeleteV2RequestBody withTags(List tags) {
this.tags = tags;
return this;
}
public BatchDeleteV2RequestBody addTagsItem(BatchDeleteV2RequestBodyTags tagsItem) {
if (this.tags == null) {
this.tags = new ArrayList<>();
}
this.tags.add(tagsItem);
return this;
}
public BatchDeleteV2RequestBody withTags(Consumer> tagsSetter) {
if (this.tags == null) {
this.tags = new ArrayList<>();
}
tagsSetter.accept(this.tags);
return this;
}
/**
* 全域弹性公网IP标签
* @return tags
*/
public List getTags() {
return tags;
}
public void setTags(List tags) {
this.tags = tags;
}
public BatchDeleteV2RequestBody withSysTags(List sysTags) {
this.sysTags = sysTags;
return this;
}
public BatchDeleteV2RequestBody addSysTagsItem(BatchDeleteV2RequestBodyTags sysTagsItem) {
if (this.sysTags == null) {
this.sysTags = new ArrayList<>();
}
this.sysTags.add(sysTagsItem);
return this;
}
public BatchDeleteV2RequestBody withSysTags(Consumer> sysTagsSetter) {
if (this.sysTags == null) {
this.sysTags = new ArrayList<>();
}
sysTagsSetter.accept(this.sysTags);
return this;
}
/**
* 系统标签
* @return sysTags
*/
public List getSysTags() {
return sysTags;
}
public void setSysTags(List sysTags) {
this.sysTags = sysTags;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
BatchDeleteV2RequestBody that = (BatchDeleteV2RequestBody) obj;
return Objects.equals(this.tags, that.tags) && Objects.equals(this.sysTags, that.sysTags);
}
@Override
public int hashCode() {
return Objects.hash(tags, sysTags);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BatchDeleteV2RequestBody {\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" sysTags: ").append(toIndentedString(sysTags)).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 ");
}
}