com.anaptecs.jeaf.openapi.Campaign Maven / Gradle / Ivy
/*
* Product Base Definitions
* This component represents the Open API interface of the accounting service.
*
* OpenAPI spec version: 0.0.1
* Contact: [email protected]
*
* 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.anaptecs.jeaf.openapi;
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;
/**
* Campaign
*/
public class Campaign {
@JsonProperty("theLinkID")
private Long theLinkID = null;
@JsonProperty("moreLinkIDs")
private List moreLinkIDs = new ArrayList<>();
@JsonProperty("discountOfferIDs")
private List discountOfferIDs = null;
public Campaign theLinkID(Long theLinkID) {
this.theLinkID = theLinkID;
return this;
}
/**
* Get theLinkID
* @return theLinkID
**/
@Schema(description = "")
public Long getTheLinkID() {
return theLinkID;
}
public void setTheLinkID(Long theLinkID) {
this.theLinkID = theLinkID;
}
public Campaign moreLinkIDs(List moreLinkIDs) {
this.moreLinkIDs = moreLinkIDs;
return this;
}
public Campaign addMoreLinkIDsItem(Long moreLinkIDsItem) {
this.moreLinkIDs.add(moreLinkIDsItem);
return this;
}
/**
* <br><br> Deprecated: No good any more (since: 1.2, removed with: 3.0)
* @return moreLinkIDs
**/
@Schema(required = true, description = "
Deprecated: No good any more (since: 1.2, removed with: 3.0) ")
public List getMoreLinkIDs() {
return moreLinkIDs;
}
public void setMoreLinkIDs(List moreLinkIDs) {
this.moreLinkIDs = moreLinkIDs;
}
public Campaign discountOfferIDs(List discountOfferIDs) {
this.discountOfferIDs = discountOfferIDs;
return this;
}
public Campaign addDiscountOfferIDsItem(String discountOfferIDsItem) {
if (this.discountOfferIDs == null) {
this.discountOfferIDs = new ArrayList<>();
}
this.discountOfferIDs.add(discountOfferIDsItem);
return this;
}
/**
* Get discountOfferIDs
* @return discountOfferIDs
**/
@Schema(description = "")
public List getDiscountOfferIDs() {
return discountOfferIDs;
}
public void setDiscountOfferIDs(List discountOfferIDs) {
this.discountOfferIDs = discountOfferIDs;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Campaign campaign = (Campaign) o;
return Objects.equals(this.theLinkID, campaign.theLinkID) &&
Objects.equals(this.moreLinkIDs, campaign.moreLinkIDs) &&
Objects.equals(this.discountOfferIDs, campaign.discountOfferIDs);
}
@Override
public int hashCode() {
return Objects.hash(theLinkID, moreLinkIDs, discountOfferIDs);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Campaign {\n");
sb.append(" theLinkID: ").append(toIndentedString(theLinkID)).append("\n");
sb.append(" moreLinkIDs: ").append(toIndentedString(moreLinkIDs)).append("\n");
sb.append(" discountOfferIDs: ").append(toIndentedString(discountOfferIDs)).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 ");
}
}