au.org.consumerdatastandards.holder.model.telco.TelcoServiceBalanceVoiceRoaming Maven / Gradle / Ivy
The newest version!
package au.org.consumerdatastandards.holder.model.telco;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
import java.math.BigDecimal;
import java.util.Objects;
/**
* Roaming voice calls
*/
@ApiModel(description = "Roaming voice calls")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen",
date = "2022-12-23T11:32:06.900+11:00[Australia/Sydney]")
public class TelcoServiceBalanceVoiceRoaming {
@JsonProperty("description")
private String description;
@JsonProperty("duration")
private String duration;
@JsonProperty("number")
private BigDecimal number;
@JsonProperty("amount")
private String amount;
public TelcoServiceBalanceVoiceRoaming description(String description) {
this.description = description;
return this;
}
/**
* An overview of plan limits. Required unless planType is UNSUPPORTED
*
* @return description
*/
@ApiModelProperty(value = "An overview of plan limits. Required unless planType is UNSUPPORTED")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public TelcoServiceBalanceVoiceRoaming duration(String duration) {
this.duration = duration;
return this;
}
/**
* Total duration (hours, minutes, and seconds) of roaming voice calls available. Not limited to 24hrs. Required unless planType is UNSUPPORTED or UNMETERED
*
* @return duration
*/
@ApiModelProperty(value = "Total duration (hours, minutes, and seconds) of roaming voice calls available. Not limited to 24hrs. Required unless planType is UNSUPPORTED or UNMETERED")
public String getDuration() {
return duration;
}
public void setDuration(String duration) {
this.duration = duration;
}
public TelcoServiceBalanceVoiceRoaming number(BigDecimal number) {
this.number = number;
return this;
}
/**
* Number of roaming voice calls available Required unless planType is UNSUPPORTED or UNMETERED
*
* @return number
*/
@ApiModelProperty(value = "Number of roaming voice calls available Required unless planType is UNSUPPORTED or UNMETERED")
@Valid
public BigDecimal getNumber() {
return number;
}
public void setNumber(BigDecimal number) {
this.number = number;
}
public TelcoServiceBalanceVoiceRoaming amount(String amount) {
this.amount = amount;
return this;
}
/**
* Amount value of roaming calls available. Required unless planType is UNSUPPORTED or UNMETERED
*
* @return amount
*/
@ApiModelProperty(value = "Amount value of roaming calls available. Required unless planType is UNSUPPORTED or UNMETERED")
public String getAmount() {
return amount;
}
public void setAmount(String amount) {
this.amount = amount;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TelcoServiceBalanceVoiceRoaming telcoServiceBalanceVoiceRoaming = (TelcoServiceBalanceVoiceRoaming) o;
return Objects.equals(this.description, telcoServiceBalanceVoiceRoaming.description) &&
Objects.equals(this.duration, telcoServiceBalanceVoiceRoaming.duration) &&
Objects.equals(this.number, telcoServiceBalanceVoiceRoaming.number) &&
Objects.equals(this.amount, telcoServiceBalanceVoiceRoaming.amount);
}
@Override
public int hashCode() {
return Objects.hash(description, duration, number, amount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TelcoServiceBalanceVoiceRoaming {\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" duration: ").append(toIndentedString(duration)).append("\n");
sb.append(" number: ").append(toIndentedString(number)).append("\n");
sb.append(" amount: ").append(toIndentedString(amount)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy