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

com.infobip.model.TfaEmailStatus 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;

/**
 * Indicates the [status](https://www.infobip.com/docs/essentials/response-status-and-error-codes#api-status-codes) of the message and how to recover from an error should there be any.
 */
public class TfaEmailStatus {

    private String description;

    private String name;

    /**
     * Sets description.
     * 

* Field description: * Human-readable description of the status. * * @param description * @return This {@link TfaEmailStatus instance}. */ public TfaEmailStatus description(String description) { this.description = description; return this; } /** * Returns description. *

* Field description: * Human-readable description of the status. * * @return description */ @JsonProperty("description") public String getDescription() { return description; } /** * Sets description. *

* Field description: * Human-readable description of the status. * * @param description */ @JsonProperty("description") public void setDescription(String description) { this.description = description; } /** * Sets name. *

* Field description: * [Status name](https://www.infobip.com/docs/essentials/response-status-and-error-codes). * * @param name * @return This {@link TfaEmailStatus instance}. */ public TfaEmailStatus name(String name) { this.name = name; return this; } /** * Returns name. *

* Field description: * [Status name](https://www.infobip.com/docs/essentials/response-status-and-error-codes). * * @return name */ @JsonProperty("name") public String getName() { return name; } /** * Sets name. *

* Field description: * [Status name](https://www.infobip.com/docs/essentials/response-status-and-error-codes). * * @param name */ @JsonProperty("name") public void setName(String name) { this.name = name; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } TfaEmailStatus tfaEmailStatus = (TfaEmailStatus) o; return Objects.equals(this.description, tfaEmailStatus.description) && Objects.equals(this.name, tfaEmailStatus.name); } @Override public int hashCode() { return Objects.hash(description, name); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class TfaEmailStatus {") .append(newLine) .append(" description: ") .append(toIndentedString(description)) .append(newLine) .append(" name: ") .append(toIndentedString(name)) .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