com.criteo.marketing.model.ServiceStatusCheckResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of marketing.java-client Show documentation
Show all versions of marketing.java-client Show documentation
Criteo Marketing SDK for Java
/*
* Marketing API v.1.0
* IMPORTANT: This swagger links to Criteo production environment. Any test applied here will thus impact real campaigns.
*
* The version of the OpenAPI document: v.1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.criteo.marketing.model;
import java.util.Objects;
import java.util.Arrays;
import com.criteo.marketing.model.CheckResult;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* ServiceStatusCheckResult
*/
public class ServiceStatusCheckResult {
public static final String SERIALIZED_NAME_CHECK_RESULTS = "checkResults";
@SerializedName(SERIALIZED_NAME_CHECK_RESULTS)
private List checkResults = null;
public static final String SERIALIZED_NAME_SUCCESSFUL = "successful";
@SerializedName(SERIALIZED_NAME_SUCCESSFUL)
private Boolean successful;
public ServiceStatusCheckResult checkResults(List checkResults) {
this.checkResults = checkResults;
return this;
}
public ServiceStatusCheckResult addCheckResultsItem(CheckResult checkResultsItem) {
if (this.checkResults == null) {
this.checkResults = new ArrayList<>();
}
this.checkResults.add(checkResultsItem);
return this;
}
/**
* Get checkResults
* @return checkResults
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List getCheckResults() {
return checkResults;
}
public void setCheckResults(List checkResults) {
this.checkResults = checkResults;
}
public ServiceStatusCheckResult successful(Boolean successful) {
this.successful = successful;
return this;
}
/**
* Get successful
* @return successful
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Boolean getSuccessful() {
return successful;
}
public void setSuccessful(Boolean successful) {
this.successful = successful;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ServiceStatusCheckResult serviceStatusCheckResult = (ServiceStatusCheckResult) o;
return Objects.equals(this.checkResults, serviceStatusCheckResult.checkResults) &&
Objects.equals(this.successful, serviceStatusCheckResult.successful);
}
@Override
public int hashCode() {
return Objects.hash(checkResults, successful);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ServiceStatusCheckResult {\n");
sb.append(" checkResults: ").append(toIndentedString(checkResults)).append("\n");
sb.append(" successful: ").append(toIndentedString(successful)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy