com.datadog.api.client.v2.model.DataDeletionResponseMeta Maven / Gradle / Ivy
/*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2019-Present Datadog, Inc.
*/
package com.datadog.api.client.v2.model;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/** The metadata of the data deletion response. */
@JsonPropertyOrder({
DataDeletionResponseMeta.JSON_PROPERTY_COUNT_PRODUCT,
DataDeletionResponseMeta.JSON_PROPERTY_COUNT_STATUS,
DataDeletionResponseMeta.JSON_PROPERTY_NEXT_PAGE,
DataDeletionResponseMeta.JSON_PROPERTY_PRODUCT,
DataDeletionResponseMeta.JSON_PROPERTY_REQUEST_STATUS
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class DataDeletionResponseMeta {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_COUNT_PRODUCT = "count_product";
private Map countProduct = null;
public static final String JSON_PROPERTY_COUNT_STATUS = "count_status";
private Map countStatus = null;
public static final String JSON_PROPERTY_NEXT_PAGE = "next_page";
private String nextPage;
public static final String JSON_PROPERTY_PRODUCT = "product";
private String product;
public static final String JSON_PROPERTY_REQUEST_STATUS = "request_status";
private String requestStatus;
public DataDeletionResponseMeta countProduct(Map countProduct) {
this.countProduct = countProduct;
return this;
}
public DataDeletionResponseMeta putCountProductItem(String key, Long countProductItem) {
if (this.countProduct == null) {
this.countProduct = new HashMap<>();
}
this.countProduct.put(key, countProductItem);
return this;
}
/**
* The total deletion requests created by product.
*
* @return countProduct
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_COUNT_PRODUCT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map getCountProduct() {
return countProduct;
}
public void setCountProduct(Map countProduct) {
this.countProduct = countProduct;
}
public DataDeletionResponseMeta countStatus(Map countStatus) {
this.countStatus = countStatus;
return this;
}
public DataDeletionResponseMeta putCountStatusItem(String key, Long countStatusItem) {
if (this.countStatus == null) {
this.countStatus = new HashMap<>();
}
this.countStatus.put(key, countStatusItem);
return this;
}
/**
* The total deletion requests created by status.
*
* @return countStatus
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_COUNT_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map getCountStatus() {
return countStatus;
}
public void setCountStatus(Map countStatus) {
this.countStatus = countStatus;
}
public DataDeletionResponseMeta nextPage(String nextPage) {
this.nextPage = nextPage;
return this;
}
/**
* The next page when searching deletion requests created in the current organization.
*
* @return nextPage
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_NEXT_PAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getNextPage() {
return nextPage;
}
public void setNextPage(String nextPage) {
this.nextPage = nextPage;
}
public DataDeletionResponseMeta product(String product) {
this.product = product;
return this;
}
/**
* The product of the deletion request.
*
* @return product
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PRODUCT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getProduct() {
return product;
}
public void setProduct(String product) {
this.product = product;
}
public DataDeletionResponseMeta requestStatus(String requestStatus) {
this.requestStatus = requestStatus;
return this;
}
/**
* The status of the executed request.
*
* @return requestStatus
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_REQUEST_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRequestStatus() {
return requestStatus;
}
public void setRequestStatus(String requestStatus) {
this.requestStatus = requestStatus;
}
/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
*/
private Map additionalProperties;
/**
* Set the additional (undeclared) property with the specified name and value. If the property
* does not already exist, create it otherwise replace it.
*
* @param key The arbitrary key to set
* @param value The associated value
* @return DataDeletionResponseMeta
*/
@JsonAnySetter
public DataDeletionResponseMeta putAdditionalProperty(String key, Object value) {
if (this.additionalProperties == null) {
this.additionalProperties = new HashMap();
}
this.additionalProperties.put(key, value);
return this;
}
/**
* Return the additional (undeclared) property.
*
* @return The additional properties
*/
@JsonAnyGetter
public Map getAdditionalProperties() {
return additionalProperties;
}
/**
* Return the additional (undeclared) property with the specified name.
*
* @param key The arbitrary key to get
* @return The specific additional property for the given key
*/
public Object getAdditionalProperty(String key) {
if (this.additionalProperties == null) {
return null;
}
return this.additionalProperties.get(key);
}
/** Return true if this DataDeletionResponseMeta object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DataDeletionResponseMeta dataDeletionResponseMeta = (DataDeletionResponseMeta) o;
return Objects.equals(this.countProduct, dataDeletionResponseMeta.countProduct)
&& Objects.equals(this.countStatus, dataDeletionResponseMeta.countStatus)
&& Objects.equals(this.nextPage, dataDeletionResponseMeta.nextPage)
&& Objects.equals(this.product, dataDeletionResponseMeta.product)
&& Objects.equals(this.requestStatus, dataDeletionResponseMeta.requestStatus)
&& Objects.equals(this.additionalProperties, dataDeletionResponseMeta.additionalProperties);
}
@Override
public int hashCode() {
return Objects.hash(
countProduct, countStatus, nextPage, product, requestStatus, additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DataDeletionResponseMeta {\n");
sb.append(" countProduct: ").append(toIndentedString(countProduct)).append("\n");
sb.append(" countStatus: ").append(toIndentedString(countStatus)).append("\n");
sb.append(" nextPage: ").append(toIndentedString(nextPage)).append("\n");
sb.append(" product: ").append(toIndentedString(product)).append("\n");
sb.append(" requestStatus: ").append(toIndentedString(requestStatus)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy