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

com.textmagic.sdk.model.UpdateBalanceNotificationSettingsInputObject Maven / Gradle / Ivy

There is a newer version: 2.0.2456
Show newest version
/*
 * TextMagic API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 2
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.textmagic.sdk.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * UpdateBalanceNotificationSettingsInputObject
 */

public class UpdateBalanceNotificationSettingsInputObject {
  @SerializedName("lowBalanceNotification")
  private Boolean lowBalanceNotification = null;

  @SerializedName("alertBalance")
  private String alertBalance = null;

  @SerializedName("alertPhone")
  private String alertPhone = null;

  @SerializedName("alertEmail1")
  private String alertEmail1 = null;

  @SerializedName("alertEmail2")
  private String alertEmail2 = null;

  @SerializedName("alertEmail3")
  private String alertEmail3 = null;

  public UpdateBalanceNotificationSettingsInputObject lowBalanceNotification(Boolean lowBalanceNotification) {
    this.lowBalanceNotification = lowBalanceNotification;
    return this;
  }

   /**
   * Should user receive low balance notification.
   * @return lowBalanceNotification
  **/
  @ApiModelProperty(example = "true", value = "Should user receive low balance notification.")
  public Boolean isLowBalanceNotification() {
    return lowBalanceNotification;
  }

  public void setLowBalanceNotification(Boolean lowBalanceNotification) {
    this.lowBalanceNotification = lowBalanceNotification;
  }

  public UpdateBalanceNotificationSettingsInputObject alertBalance(String alertBalance) {
    this.alertBalance = alertBalance;
    return this;
  }

   /**
   * If balance is below this value, user receive low balance notification.
   * @return alertBalance
  **/
  @ApiModelProperty(example = "50", value = "If balance is below this value, user receive low balance notification.")
  public String getAlertBalance() {
    return alertBalance;
  }

  public void setAlertBalance(String alertBalance) {
    this.alertBalance = alertBalance;
  }

  public UpdateBalanceNotificationSettingsInputObject alertPhone(String alertPhone) {
    this.alertPhone = alertPhone;
    return this;
  }

   /**
   * Low balance notification phone number.
   * @return alertPhone
  **/
  @ApiModelProperty(example = "15417543010", value = "Low balance notification phone number.")
  public String getAlertPhone() {
    return alertPhone;
  }

  public void setAlertPhone(String alertPhone) {
    this.alertPhone = alertPhone;
  }

  public UpdateBalanceNotificationSettingsInputObject alertEmail1(String alertEmail1) {
    this.alertEmail1 = alertEmail1;
    return this;
  }

   /**
   * Low balance notification email 1.
   * @return alertEmail1
  **/
  @ApiModelProperty(example = "[email protected]", value = "Low balance notification email 1.")
  public String getAlertEmail1() {
    return alertEmail1;
  }

  public void setAlertEmail1(String alertEmail1) {
    this.alertEmail1 = alertEmail1;
  }

  public UpdateBalanceNotificationSettingsInputObject alertEmail2(String alertEmail2) {
    this.alertEmail2 = alertEmail2;
    return this;
  }

   /**
   * Low balance notification email 2.
   * @return alertEmail2
  **/
  @ApiModelProperty(example = "[email protected]", value = "Low balance notification email 2.")
  public String getAlertEmail2() {
    return alertEmail2;
  }

  public void setAlertEmail2(String alertEmail2) {
    this.alertEmail2 = alertEmail2;
  }

  public UpdateBalanceNotificationSettingsInputObject alertEmail3(String alertEmail3) {
    this.alertEmail3 = alertEmail3;
    return this;
  }

   /**
   * Low balance notification email 3.
   * @return alertEmail3
  **/
  @ApiModelProperty(example = "[email protected]", value = "Low balance notification email 3.")
  public String getAlertEmail3() {
    return alertEmail3;
  }

  public void setAlertEmail3(String alertEmail3) {
    this.alertEmail3 = alertEmail3;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UpdateBalanceNotificationSettingsInputObject updateBalanceNotificationSettingsInputObject = (UpdateBalanceNotificationSettingsInputObject) o;
    return Objects.equals(this.lowBalanceNotification, updateBalanceNotificationSettingsInputObject.lowBalanceNotification) &&
        Objects.equals(this.alertBalance, updateBalanceNotificationSettingsInputObject.alertBalance) &&
        Objects.equals(this.alertPhone, updateBalanceNotificationSettingsInputObject.alertPhone) &&
        Objects.equals(this.alertEmail1, updateBalanceNotificationSettingsInputObject.alertEmail1) &&
        Objects.equals(this.alertEmail2, updateBalanceNotificationSettingsInputObject.alertEmail2) &&
        Objects.equals(this.alertEmail3, updateBalanceNotificationSettingsInputObject.alertEmail3);
  }

  @Override
  public int hashCode() {
    return Objects.hash(lowBalanceNotification, alertBalance, alertPhone, alertEmail1, alertEmail2, alertEmail3);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UpdateBalanceNotificationSettingsInputObject {\n");
    
    sb.append("    lowBalanceNotification: ").append(toIndentedString(lowBalanceNotification)).append("\n");
    sb.append("    alertBalance: ").append(toIndentedString(alertBalance)).append("\n");
    sb.append("    alertPhone: ").append(toIndentedString(alertPhone)).append("\n");
    sb.append("    alertEmail1: ").append(toIndentedString(alertEmail1)).append("\n");
    sb.append("    alertEmail2: ").append(toIndentedString(alertEmail2)).append("\n");
    sb.append("    alertEmail3: ").append(toIndentedString(alertEmail3)).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