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

com.infobip.model.WhatsAppTemplateEditPublicApiRequest 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.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Objects;

/**
 * Represents WhatsAppTemplateEditPublicApiRequest model.
 */
public class WhatsAppTemplateEditPublicApiRequest {
    /**
     * Category of the template. Approved template category cannot be edited.
     */
    public enum CategoryEnum {
        MARKETING("MARKETING"),
        AUTHENTICATION("AUTHENTICATION"),
        UTILITY("UTILITY");

        private String value;

        CategoryEnum(String value) {
            this.value = value;
        }

        @JsonValue
        public String getValue() {
            return value;
        }

        @Override
        public String toString() {
            return String.valueOf(value);
        }

        @JsonCreator
        public static CategoryEnum fromValue(String value) {
            for (CategoryEnum enumElement : CategoryEnum.values()) {
                if (enumElement.value.equals(value)) {
                    return enumElement;
                }
            }
            throw new IllegalArgumentException("Unexpected enum value '" + value + "'.");
        }
    }

    private CategoryEnum category;

    private Object structure;

    private WhatsAppEditValidityPeriod validityPeriod;

    /**
     * Sets category.
     * 

* Field description: * Category of the template. Approved template category cannot be edited. * * @param category * @return This {@link WhatsAppTemplateEditPublicApiRequest instance}. */ public WhatsAppTemplateEditPublicApiRequest category(CategoryEnum category) { this.category = category; return this; } /** * Returns category. *

* Field description: * Category of the template. Approved template category cannot be edited. * * @return category */ @JsonProperty("category") public CategoryEnum getCategory() { return category; } /** * Sets category. *

* Field description: * Category of the template. Approved template category cannot be edited. * * @param category */ @JsonProperty("category") public void setCategory(CategoryEnum category) { this.category = category; } /** * Sets structure. *

* Field description: * Template structure. Format depends on the template category. * * @param structure * @return This {@link WhatsAppTemplateEditPublicApiRequest instance}. */ public WhatsAppTemplateEditPublicApiRequest structure(Object structure) { this.structure = structure; return this; } /** * Returns structure. *

* Field description: * Template structure. Format depends on the template category. * * @return structure */ @JsonProperty("structure") public Object getStructure() { return structure; } /** * Sets structure. *

* Field description: * Template structure. Format depends on the template category. * * @param structure */ @JsonProperty("structure") public void setStructure(Object structure) { this.structure = structure; } /** * Sets validityPeriod. * * @param validityPeriod * @return This {@link WhatsAppTemplateEditPublicApiRequest instance}. */ public WhatsAppTemplateEditPublicApiRequest validityPeriod(WhatsAppEditValidityPeriod validityPeriod) { this.validityPeriod = validityPeriod; return this; } /** * Returns validityPeriod. * * @return validityPeriod */ @JsonProperty("validityPeriod") public WhatsAppEditValidityPeriod getValidityPeriod() { return validityPeriod; } /** * Sets validityPeriod. * * @param validityPeriod */ @JsonProperty("validityPeriod") public void setValidityPeriod(WhatsAppEditValidityPeriod validityPeriod) { this.validityPeriod = validityPeriod; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } WhatsAppTemplateEditPublicApiRequest whatsAppTemplateEditPublicApiRequest = (WhatsAppTemplateEditPublicApiRequest) o; return Objects.equals(this.category, whatsAppTemplateEditPublicApiRequest.category) && Objects.equals(this.structure, whatsAppTemplateEditPublicApiRequest.structure) && Objects.equals(this.validityPeriod, whatsAppTemplateEditPublicApiRequest.validityPeriod); } @Override public int hashCode() { return Objects.hash(category, structure, validityPeriod); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class WhatsAppTemplateEditPublicApiRequest {") .append(newLine) .append(" category: ") .append(toIndentedString(category)) .append(newLine) .append(" structure: ") .append(toIndentedString(structure)) .append(newLine) .append(" validityPeriod: ") .append(toIndentedString(validityPeriod)) .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