All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.infobip.model.WhatsAppDefaultUtilityTemplatePublicApiRequest 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 WhatsAppDefaultUtilityTemplatePublicApiRequest model.
 */
public class WhatsAppDefaultUtilityTemplatePublicApiRequest extends WhatsAppTemplatePublicApiRequest {

    private WhatsAppDefaultTemplateStructureApiData structure;

    /**
     * Constructs a new {@link WhatsAppDefaultUtilityTemplatePublicApiRequest} instance.
     */
    public WhatsAppDefaultUtilityTemplatePublicApiRequest() {
        super("UTILITY");
    }

    /**
     * Sets structure.
     * 

* The field is required. * * @param structure * @return This {@link WhatsAppDefaultUtilityTemplatePublicApiRequest instance}. */ public WhatsAppDefaultUtilityTemplatePublicApiRequest structure(WhatsAppDefaultTemplateStructureApiData structure) { this.structure = structure; return this; } /** * Returns structure. *

* The field is required. * * @return structure */ @JsonProperty("structure") public WhatsAppDefaultTemplateStructureApiData getStructure() { return structure; } /** * Sets structure. *

* The field is required. * * @param structure */ @JsonProperty("structure") public void setStructure(WhatsAppDefaultTemplateStructureApiData structure) { this.structure = structure; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } WhatsAppDefaultUtilityTemplatePublicApiRequest whatsAppDefaultUtilityTemplatePublicApiRequest = (WhatsAppDefaultUtilityTemplatePublicApiRequest) o; return Objects.equals(this.structure, whatsAppDefaultUtilityTemplatePublicApiRequest.structure) && super.equals(o); } @Override public int hashCode() { return Objects.hash(structure, super.hashCode()); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class WhatsAppDefaultUtilityTemplatePublicApiRequest {") .append(newLine) .append(" ") .append(toIndentedString(super.toString())) .append(newLine) .append(" structure: ") .append(toIndentedString(structure)) .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); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy