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

cloud.genesys.webmessaging.sdk.model.TooManyRequestsErrorMessage Maven / Gradle / Ivy

Go to download

A customer-side development kit for creating custom Genesys Cloud Web Messaging experiences

The newest version!
package cloud.genesys.webmessaging.sdk.model;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
import java.util.Objects;
import java.io.IOException;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
/**
 * TooManyRequestsErrorMessage
 */

public class TooManyRequestsErrorMessage  implements Serializable {
  
  private String name = null;
  private String message = null;
  private String stack = null;
  private Integer errorCode = null;
  private String errorMessage = null;
  private Integer retryAfter = null;

  
  /**
   **/
  public TooManyRequestsErrorMessage name(String name) {
    this.name = name;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "")
  @JsonProperty("name")
  public String getName() {
    return name;
  }
  public void setName(String name) {
    this.name = name;
  }


  /**
   **/
  public TooManyRequestsErrorMessage message(String message) {
    this.message = message;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "")
  @JsonProperty("message")
  public String getMessage() {
    return message;
  }
  public void setMessage(String message) {
    this.message = message;
  }


  /**
   **/
  public TooManyRequestsErrorMessage stack(String stack) {
    this.stack = stack;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("stack")
  public String getStack() {
    return stack;
  }
  public void setStack(String stack) {
    this.stack = stack;
  }


  /**
   **/
  public TooManyRequestsErrorMessage errorCode(Integer errorCode) {
    this.errorCode = errorCode;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "")
  @JsonProperty("errorCode")
  public Integer getErrorCode() {
    return errorCode;
  }
  public void setErrorCode(Integer errorCode) {
    this.errorCode = errorCode;
  }


  /**
   **/
  public TooManyRequestsErrorMessage errorMessage(String errorMessage) {
    this.errorMessage = errorMessage;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "")
  @JsonProperty("errorMessage")
  public String getErrorMessage() {
    return errorMessage;
  }
  public void setErrorMessage(String errorMessage) {
    this.errorMessage = errorMessage;
  }


  /**
   **/
  public TooManyRequestsErrorMessage retryAfter(Integer retryAfter) {
    this.retryAfter = retryAfter;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "")
  @JsonProperty("retryAfter")
  public Integer getRetryAfter() {
    return retryAfter;
  }
  public void setRetryAfter(Integer retryAfter) {
    this.retryAfter = retryAfter;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TooManyRequestsErrorMessage tooManyRequestsErrorMessage = (TooManyRequestsErrorMessage) o;
    return Objects.equals(this.name, tooManyRequestsErrorMessage.name) &&
          Objects.equals(this.message, tooManyRequestsErrorMessage.message) &&
          Objects.equals(this.stack, tooManyRequestsErrorMessage.stack) &&
          Objects.equals(this.errorCode, tooManyRequestsErrorMessage.errorCode) &&
          Objects.equals(this.errorMessage, tooManyRequestsErrorMessage.errorMessage) &&
          Objects.equals(this.retryAfter, tooManyRequestsErrorMessage.retryAfter);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, message, stack, errorCode, errorMessage, retryAfter);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class TooManyRequestsErrorMessage {\n");
    
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    message: ").append(toIndentedString(message)).append("\n");
    sb.append("    stack: ").append(toIndentedString(stack)).append("\n");
    sb.append("    errorCode: ").append(toIndentedString(errorCode)).append("\n");
    sb.append("    errorMessage: ").append(toIndentedString(errorMessage)).append("\n");
    sb.append("    retryAfter: ").append(toIndentedString(retryAfter)).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    ");
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy