001/*
002 *   Copyright 2020 Vonage
003 *
004 *   Licensed under the Apache License, Version 2.0 (the "License");
005 *   you may not use this file except in compliance with the License.
006 *   You may obtain a copy of the License at
007 *
008 *        http://www.apache.org/licenses/LICENSE-2.0
009 *
010 *   Unless required by applicable law or agreed to in writing, software
011 *   distributed under the License is distributed on an "AS IS" BASIS,
012 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 *   See the License for the specific language governing permissions and
014 *   limitations under the License.
015 */
016package com.vonage.client.sms;
017
018import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
019import com.fasterxml.jackson.annotation.JsonProperty;
020
021import java.util.Date;
022
023@JsonIgnoreProperties(ignoreUnknown = true)
024public class RejectedMessage {
025    private String accountId;
026    private String from;
027    private String to;
028    private Date dateReceived;
029    private Integer errorCode;
030    private String errorCodeLabel;
031
032    @JsonProperty("account-id")
033    public String getAccountId() {
034        return accountId;
035    }
036
037    public String getFrom() {
038        return from;
039    }
040
041    public String getTo() {
042        return to;
043    }
044
045    @JsonProperty("date-received")
046    public Date getDateReceived() {
047        return dateReceived;
048    }
049
050    @JsonProperty("error-code")
051    public Integer getErrorCode() {
052        return errorCode;
053    }
054
055    @JsonProperty("error-code-label")
056    public String getErrorCodeLabel() {
057        return errorCodeLabel;
058    }
059}