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

au.org.consumerdatastandards.holder.model.telco.TelcoUsageMessagingSms 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 javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Objects;

/**
 * Summary of SMS usage
 */
@ApiModel(description = "Summary of SMS usage")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen",
        date = "2022-12-23T11:32:06.900+11:00[Australia/Sydney]")
public class TelcoUsageMessagingSms {
    @JsonProperty("national")
    private BigDecimal national;

    @JsonProperty("international")
    private BigDecimal international;

    @JsonProperty("roaming")
    private BigDecimal roaming;

    @JsonProperty("amount")
    private String amount;

    public TelcoUsageMessagingSms national(BigDecimal national) {
        this.national = national;
        return this;
    }

    /**
     * Number of national SMS messages sent. Including premium SMS services
     *
     * @return national
     */
    @ApiModelProperty(required = true,
            value = "Number of national SMS messages sent. Including premium SMS services")
    @NotNull

    @Valid

    public BigDecimal getNational() {
        return national;
    }

    public void setNational(BigDecimal national) {
        this.national = national;
    }

    public TelcoUsageMessagingSms international(BigDecimal international) {
        this.international = international;
        return this;
    }

    /**
     * Number of international SMS messages sent. Including premium SMS services
     *
     * @return international
     */
    @ApiModelProperty(value = "Number of international SMS messages sent. Including premium SMS services")

    @Valid

    public BigDecimal getInternational() {
        return international;
    }

    public void setInternational(BigDecimal international) {
        this.international = international;
    }

    public TelcoUsageMessagingSms roaming(BigDecimal roaming) {
        this.roaming = roaming;
        return this;
    }

    /**
     * Number of roaming SMS messages sent. Including premium SMS services
     *
     * @return roaming
     */
    @ApiModelProperty(value = "Number of roaming SMS messages sent. Including premium SMS services")

    @Valid

    public BigDecimal getRoaming() {
        return roaming;
    }

    public void setRoaming(BigDecimal roaming) {
        this.roaming = roaming;
    }

    public TelcoUsageMessagingSms amount(String amount) {
        this.amount = amount;
        return this;
    }

    /**
     * Cost amount of SMS messages. Including premium SMS services
     *
     * @return amount
     */
    @ApiModelProperty(required = true,
            value = "Cost amount of SMS messages. Including premium SMS services")
    @NotNull


    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;
        }
        TelcoUsageMessagingSms telcoUsageMessagingSms = (TelcoUsageMessagingSms) o;
        return Objects.equals(this.national, telcoUsageMessagingSms.national) &&
                Objects.equals(this.international, telcoUsageMessagingSms.international) &&
                Objects.equals(this.roaming, telcoUsageMessagingSms.roaming) &&
                Objects.equals(this.amount, telcoUsageMessagingSms.amount);
    }

    @Override
    public int hashCode() {
        return Objects.hash(national, international, roaming, amount);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class TelcoUsageMessagingSms {\n");

        sb.append("    national: ").append(toIndentedString(national)).append("\n");
        sb.append("    international: ").append(toIndentedString(international)).append("\n");
        sb.append("    roaming: ").append(toIndentedString(roaming)).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