com.seeq.model.DatasourceCleanUpInputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 64.4.1-v202409112255
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.seeq.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* DatasourceCleanUpInputV1
*/
public class DatasourceCleanUpInputV1 {
@JsonProperty("itemDataIdExcludeRegexFilter")
private String itemDataIdExcludeRegexFilter = null;
@JsonProperty("itemDataIdRegexFilter")
private String itemDataIdRegexFilter = null;
@JsonProperty("itemNameExcludeRegexFilter")
private String itemNameExcludeRegexFilter = null;
@JsonProperty("itemNameRegexFilter")
private String itemNameRegexFilter = null;
@JsonProperty("itemTypeFilter")
private List itemTypeFilter = new ArrayList();
@JsonProperty("syncToken")
private String syncToken = null;
public DatasourceCleanUpInputV1 itemDataIdExcludeRegexFilter(String itemDataIdExcludeRegexFilter) {
this.itemDataIdExcludeRegexFilter = itemDataIdExcludeRegexFilter;
return this;
}
/**
* When set, the items having the DataId matching the RegEx will be excluded from cleanup process.
* @return itemDataIdExcludeRegexFilter
**/
@Schema(description = "When set, the items having the DataId matching the RegEx will be excluded from cleanup process.")
public String getItemDataIdExcludeRegexFilter() {
return itemDataIdExcludeRegexFilter;
}
public void setItemDataIdExcludeRegexFilter(String itemDataIdExcludeRegexFilter) {
this.itemDataIdExcludeRegexFilter = itemDataIdExcludeRegexFilter;
}
public DatasourceCleanUpInputV1 itemDataIdRegexFilter(String itemDataIdRegexFilter) {
this.itemDataIdRegexFilter = itemDataIdRegexFilter;
return this;
}
/**
* When set, only items having the DataId matching the RegEx will be included in cleanup process.
* @return itemDataIdRegexFilter
**/
@Schema(description = "When set, only items having the DataId matching the RegEx will be included in cleanup process.")
public String getItemDataIdRegexFilter() {
return itemDataIdRegexFilter;
}
public void setItemDataIdRegexFilter(String itemDataIdRegexFilter) {
this.itemDataIdRegexFilter = itemDataIdRegexFilter;
}
public DatasourceCleanUpInputV1 itemNameExcludeRegexFilter(String itemNameExcludeRegexFilter) {
this.itemNameExcludeRegexFilter = itemNameExcludeRegexFilter;
return this;
}
/**
* When set, the items having the name matching the RegEx will be excluded from cleanup process.
* @return itemNameExcludeRegexFilter
**/
@Schema(description = "When set, the items having the name matching the RegEx will be excluded from cleanup process.")
public String getItemNameExcludeRegexFilter() {
return itemNameExcludeRegexFilter;
}
public void setItemNameExcludeRegexFilter(String itemNameExcludeRegexFilter) {
this.itemNameExcludeRegexFilter = itemNameExcludeRegexFilter;
}
public DatasourceCleanUpInputV1 itemNameRegexFilter(String itemNameRegexFilter) {
this.itemNameRegexFilter = itemNameRegexFilter;
return this;
}
/**
* When set, only items having the name matching the RegEx will be included in cleanup process.
* @return itemNameRegexFilter
**/
@Schema(description = "When set, only items having the name matching the RegEx will be included in cleanup process.")
public String getItemNameRegexFilter() {
return itemNameRegexFilter;
}
public void setItemNameRegexFilter(String itemNameRegexFilter) {
this.itemNameRegexFilter = itemNameRegexFilter;
}
public DatasourceCleanUpInputV1 itemTypeFilter(List itemTypeFilter) {
this.itemTypeFilter = itemTypeFilter;
return this;
}
public DatasourceCleanUpInputV1 addItemTypeFilterItem(String itemTypeFilterItem) {
if (this.itemTypeFilter == null) {
this.itemTypeFilter = new ArrayList();
}
this.itemTypeFilter.add(itemTypeFilterItem);
return this;
}
/**
* List of item types on which cleanup will be done. When no filter is specified (empty or null list), all types of items will be included in the cleanup process.
* @return itemTypeFilter
**/
@Schema(description = "List of item types on which cleanup will be done. When no filter is specified (empty or null list), all types of items will be included in the cleanup process.")
public List getItemTypeFilter() {
return itemTypeFilter;
}
public void setItemTypeFilter(List itemTypeFilter) {
this.itemTypeFilter = itemTypeFilter;
}
public DatasourceCleanUpInputV1 syncToken(String syncToken) {
this.syncToken = syncToken;
return this;
}
/**
* The sync token to check on each item
* @return syncToken
**/
@Schema(required = true, description = "The sync token to check on each item")
public String getSyncToken() {
return syncToken;
}
public void setSyncToken(String syncToken) {
this.syncToken = syncToken;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DatasourceCleanUpInputV1 datasourceCleanUpInputV1 = (DatasourceCleanUpInputV1) o;
return Objects.equals(this.itemDataIdExcludeRegexFilter, datasourceCleanUpInputV1.itemDataIdExcludeRegexFilter) &&
Objects.equals(this.itemDataIdRegexFilter, datasourceCleanUpInputV1.itemDataIdRegexFilter) &&
Objects.equals(this.itemNameExcludeRegexFilter, datasourceCleanUpInputV1.itemNameExcludeRegexFilter) &&
Objects.equals(this.itemNameRegexFilter, datasourceCleanUpInputV1.itemNameRegexFilter) &&
Objects.equals(this.itemTypeFilter, datasourceCleanUpInputV1.itemTypeFilter) &&
Objects.equals(this.syncToken, datasourceCleanUpInputV1.syncToken);
}
@Override
public int hashCode() {
return Objects.hash(itemDataIdExcludeRegexFilter, itemDataIdRegexFilter, itemNameExcludeRegexFilter, itemNameRegexFilter, itemTypeFilter, syncToken);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DatasourceCleanUpInputV1 {\n");
sb.append(" itemDataIdExcludeRegexFilter: ").append(toIndentedString(itemDataIdExcludeRegexFilter)).append("\n");
sb.append(" itemDataIdRegexFilter: ").append(toIndentedString(itemDataIdRegexFilter)).append("\n");
sb.append(" itemNameExcludeRegexFilter: ").append(toIndentedString(itemNameExcludeRegexFilter)).append("\n");
sb.append(" itemNameRegexFilter: ").append(toIndentedString(itemNameRegexFilter)).append("\n");
sb.append(" itemTypeFilter: ").append(toIndentedString(itemTypeFilter)).append("\n");
sb.append(" syncToken: ").append(toIndentedString(syncToken)).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 ");
}
}