
com.infobip.model.WhatsAppDocumentHeaderApiData Maven / Gradle / Ivy
/*
* This class is auto generated from the Infobip OpenAPI specification
* through the OpenAPI Specification Client API libraries (Re)Generator (OSCAR),
* powered by the OpenAPI Generator (https://openapi-generator.tech).
*
* Do not edit manually. To learn how to raise an issue, see the CONTRIBUTING guide
* or contact us @ [email protected].
*/
package com.infobip.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* Represents WhatsAppDocumentHeaderApiData model.
*/
public class WhatsAppDocumentHeaderApiData extends WhatsAppHeaderApiData {
private String example;
/**
* Constructs a new {@link WhatsAppDocumentHeaderApiData} instance.
*/
public WhatsAppDocumentHeaderApiData() {
super("DOCUMENT");
}
/**
* Sets example.
*
* Field description:
* An example of a template header document a user could create. Should be a valid URL that starts with `http` or `https`. Supported document type is `PDF`. Maximum document size is 16MB. Cannot contain placeholders.
*
* @param example
* @return This {@link WhatsAppDocumentHeaderApiData instance}.
*/
public WhatsAppDocumentHeaderApiData example(String example) {
this.example = example;
return this;
}
/**
* Returns example.
*
* Field description:
* An example of a template header document a user could create. Should be a valid URL that starts with `http` or `https`. Supported document type is `PDF`. Maximum document size is 16MB. Cannot contain placeholders.
*
* @return example
*/
@JsonProperty("example")
public String getExample() {
return example;
}
/**
* Sets example.
*
* Field description:
* An example of a template header document a user could create. Should be a valid URL that starts with `http` or `https`. Supported document type is `PDF`. Maximum document size is 16MB. Cannot contain placeholders.
*
* @param example
*/
@JsonProperty("example")
public void setExample(String example) {
this.example = example;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
WhatsAppDocumentHeaderApiData whatsAppDocumentHeaderApiData = (WhatsAppDocumentHeaderApiData) o;
return Objects.equals(this.example, whatsAppDocumentHeaderApiData.example) && super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(example, super.hashCode());
}
@Override
public String toString() {
String newLine = System.lineSeparator();
return new StringBuilder()
.append("class WhatsAppDocumentHeaderApiData {")
.append(newLine)
.append(" ")
.append(toIndentedString(super.toString()))
.append(newLine)
.append(" example: ")
.append(toIndentedString(example))
.append(newLine)
.append("}")
.toString();
}
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
String lineSeparator = System.lineSeparator();
String lineSeparatorFollowedByIndentation = lineSeparator + " ";
return o.toString().replace(lineSeparator, lineSeparatorFollowedByIndentation);
}
}