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

com.aliyun.sdk.service.dysmsapi20180501.models.QueryMessageResponseBody Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.dysmsapi20180501.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * 
 * {@link QueryMessageResponseBody} extends {@link TeaModel}
 *
 * 

QueryMessageResponseBody

*/ public class QueryMessageResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("ErrorCode") private String errorCode; @com.aliyun.core.annotation.NameInMap("ErrorDescription") private String errorDescription; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("MessageId") private String messageId; @com.aliyun.core.annotation.NameInMap("NumberDetail") private NumberDetail numberDetail; @com.aliyun.core.annotation.NameInMap("ReceiveDate") private String receiveDate; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("ResponseCode") private String responseCode; @com.aliyun.core.annotation.NameInMap("ResponseDescription") private String responseDescription; @com.aliyun.core.annotation.NameInMap("SendDate") private String sendDate; @com.aliyun.core.annotation.NameInMap("Status") private String status; @com.aliyun.core.annotation.NameInMap("To") private String to; private QueryMessageResponseBody(Builder builder) { this.errorCode = builder.errorCode; this.errorDescription = builder.errorDescription; this.message = builder.message; this.messageId = builder.messageId; this.numberDetail = builder.numberDetail; this.receiveDate = builder.receiveDate; this.requestId = builder.requestId; this.responseCode = builder.responseCode; this.responseDescription = builder.responseDescription; this.sendDate = builder.sendDate; this.status = builder.status; this.to = builder.to; } public static Builder builder() { return new Builder(); } public static QueryMessageResponseBody create() { return builder().build(); } /** * @return errorCode */ public String getErrorCode() { return this.errorCode; } /** * @return errorDescription */ public String getErrorDescription() { return this.errorDescription; } /** * @return message */ public String getMessage() { return this.message; } /** * @return messageId */ public String getMessageId() { return this.messageId; } /** * @return numberDetail */ public NumberDetail getNumberDetail() { return this.numberDetail; } /** * @return receiveDate */ public String getReceiveDate() { return this.receiveDate; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return responseCode */ public String getResponseCode() { return this.responseCode; } /** * @return responseDescription */ public String getResponseDescription() { return this.responseDescription; } /** * @return sendDate */ public String getSendDate() { return this.sendDate; } /** * @return status */ public String getStatus() { return this.status; } /** * @return to */ public String getTo() { return this.to; } public static final class Builder { private String errorCode; private String errorDescription; private String message; private String messageId; private NumberDetail numberDetail; private String receiveDate; private String requestId; private String responseCode; private String responseDescription; private String sendDate; private String status; private String to; /** *

The status code of the message.

* * example: *

DELIVERED

*/ public Builder errorCode(String errorCode) { this.errorCode = errorCode; return this; } /** *

The description of the status code.

* * example: *

success

*/ public Builder errorDescription(String errorDescription) { this.errorDescription = errorDescription; return this; } /** *

The content of the message.

* * example: *

Hello!

*/ public Builder message(String message) { this.message = message; return this; } /** *

The ID of the message.

* * example: *

1008030xxx3003

*/ public Builder messageId(String messageId) { this.messageId = messageId; return this; } /** *

The details about the mobile phone number.

*/ public Builder numberDetail(NumberDetail numberDetail) { this.numberDetail = numberDetail; return this; } /** *

The time when the delivery receipt was received from the carrier.

* * example: *

Mon, 24 Dec 2018 16:58:22 +0800

*/ public Builder receiveDate(String receiveDate) { this.receiveDate = receiveDate; return this; } /** *

The ID of the request.

* * example: *

F655A8D5-B967-440B-8683-DAD6FF8D28D0

*/ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** *

The status code of the delivery request.

* * example: *

OK

*/ public Builder responseCode(String responseCode) { this.responseCode = responseCode; return this; } /** *

The description of the delivery request status.

* * example: *

The SMS Send Request was accepted

*/ public Builder responseDescription(String responseDescription) { this.responseDescription = responseDescription; return this; } /** *

The time when the message was sent to the carrier.

* * example: *

Mon, 24 Dec 2018 16:58:22 +0800

*/ public Builder sendDate(String sendDate) { this.sendDate = sendDate; return this; } /** *

The delivery status of the message.

*
    *
  • 1: The message was sent.
  • *
  • 2: The message failed to be sent.
  • *
  • 3: The message is being sent.
  • *
* * example: *

1

*/ public Builder status(String status) { this.status = status; return this; } /** *

The mobile phone number to which the message was sent.

* * example: *

6581xxx810

*/ public Builder to(String to) { this.to = to; return this; } public QueryMessageResponseBody build() { return new QueryMessageResponseBody(this); } } /** * * {@link QueryMessageResponseBody} extends {@link TeaModel} * *

QueryMessageResponseBody

*/ public static class NumberDetail extends TeaModel { @com.aliyun.core.annotation.NameInMap("Carrier") private String carrier; @com.aliyun.core.annotation.NameInMap("Country") private String country; @com.aliyun.core.annotation.NameInMap("Region") private String region; private NumberDetail(Builder builder) { this.carrier = builder.carrier; this.country = builder.country; this.region = builder.region; } public static Builder builder() { return new Builder(); } public static NumberDetail create() { return builder().build(); } /** * @return carrier */ public String getCarrier() { return this.carrier; } /** * @return country */ public String getCountry() { return this.country; } /** * @return region */ public String getRegion() { return this.region; } public static final class Builder { private String carrier; private String country; private String region; /** *

The carrier that owns the mobile phone number.

* * example: *

CMI

*/ public Builder carrier(String carrier) { this.carrier = carrier; return this; } /** *

The country to which the mobile phone number belongs.

* * example: *

China

*/ public Builder country(String country) { this.country = country; return this; } /** *

The region to which the mobile phone number belongs.

* * example: *

HongKong

*/ public Builder region(String region) { this.region = region; return this; } public NumberDetail build() { return new NumberDetail(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy