com.tencentcloudapi.npp.v20190823.models.DescribeCallBackStatusResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-npp Show documentation
Show all versions of tencentcloud-sdk-java-npp Show documentation
Tencent Cloud Open API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.npp.v20190823.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DescribeCallBackStatusResponse extends AbstractModel{
/**
* 错误码
*/
@SerializedName("ErrorCode")
@Expose
private String ErrorCode;
/**
* 错误信息
*/
@SerializedName("Msg")
@Expose
private String Msg;
/**
* 业务appid
*/
@SerializedName("AppId")
@Expose
private String AppId;
/**
* 回拨请求响应中返回的 callId
*/
@SerializedName("CallId")
@Expose
private String CallId;
/**
* 主叫号码
*/
@SerializedName("Src")
@Expose
private String Src;
/**
* 被叫号码
*/
@SerializedName("Dst")
@Expose
private String Dst;
/**
* 通话最后状态:0:未知状态 1:主叫响铃中 2:主叫接听 3:被叫响铃中 4:正常通话中 5:通话结束
*/
@SerializedName("CallStatus")
@Expose
private String CallStatus;
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
@SerializedName("RequestId")
@Expose
private String RequestId;
/**
* Get 错误码
* @return ErrorCode 错误码
*/
public String getErrorCode() {
return this.ErrorCode;
}
/**
* Set 错误码
* @param ErrorCode 错误码
*/
public void setErrorCode(String ErrorCode) {
this.ErrorCode = ErrorCode;
}
/**
* Get 错误信息
* @return Msg 错误信息
*/
public String getMsg() {
return this.Msg;
}
/**
* Set 错误信息
* @param Msg 错误信息
*/
public void setMsg(String Msg) {
this.Msg = Msg;
}
/**
* Get 业务appid
* @return AppId 业务appid
*/
public String getAppId() {
return this.AppId;
}
/**
* Set 业务appid
* @param AppId 业务appid
*/
public void setAppId(String AppId) {
this.AppId = AppId;
}
/**
* Get 回拨请求响应中返回的 callId
* @return CallId 回拨请求响应中返回的 callId
*/
public String getCallId() {
return this.CallId;
}
/**
* Set 回拨请求响应中返回的 callId
* @param CallId 回拨请求响应中返回的 callId
*/
public void setCallId(String CallId) {
this.CallId = CallId;
}
/**
* Get 主叫号码
* @return Src 主叫号码
*/
public String getSrc() {
return this.Src;
}
/**
* Set 主叫号码
* @param Src 主叫号码
*/
public void setSrc(String Src) {
this.Src = Src;
}
/**
* Get 被叫号码
* @return Dst 被叫号码
*/
public String getDst() {
return this.Dst;
}
/**
* Set 被叫号码
* @param Dst 被叫号码
*/
public void setDst(String Dst) {
this.Dst = Dst;
}
/**
* Get 通话最后状态:0:未知状态 1:主叫响铃中 2:主叫接听 3:被叫响铃中 4:正常通话中 5:通话结束
* @return CallStatus 通话最后状态:0:未知状态 1:主叫响铃中 2:主叫接听 3:被叫响铃中 4:正常通话中 5:通话结束
*/
public String getCallStatus() {
return this.CallStatus;
}
/**
* Set 通话最后状态:0:未知状态 1:主叫响铃中 2:主叫接听 3:被叫响铃中 4:正常通话中 5:通话结束
* @param CallStatus 通话最后状态:0:未知状态 1:主叫响铃中 2:主叫接听 3:被叫响铃中 4:正常通话中 5:通话结束
*/
public void setCallStatus(String CallStatus) {
this.CallStatus = CallStatus;
}
/**
* Get 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @return RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public String getRequestId() {
return this.RequestId;
}
/**
* Set 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @param RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public void setRequestId(String RequestId) {
this.RequestId = RequestId;
}
public DescribeCallBackStatusResponse() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public DescribeCallBackStatusResponse(DescribeCallBackStatusResponse source) {
if (source.ErrorCode != null) {
this.ErrorCode = new String(source.ErrorCode);
}
if (source.Msg != null) {
this.Msg = new String(source.Msg);
}
if (source.AppId != null) {
this.AppId = new String(source.AppId);
}
if (source.CallId != null) {
this.CallId = new String(source.CallId);
}
if (source.Src != null) {
this.Src = new String(source.Src);
}
if (source.Dst != null) {
this.Dst = new String(source.Dst);
}
if (source.CallStatus != null) {
this.CallStatus = new String(source.CallStatus);
}
if (source.RequestId != null) {
this.RequestId = new String(source.RequestId);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "ErrorCode", this.ErrorCode);
this.setParamSimple(map, prefix + "Msg", this.Msg);
this.setParamSimple(map, prefix + "AppId", this.AppId);
this.setParamSimple(map, prefix + "CallId", this.CallId);
this.setParamSimple(map, prefix + "Src", this.Src);
this.setParamSimple(map, prefix + "Dst", this.Dst);
this.setParamSimple(map, prefix + "CallStatus", this.CallStatus);
this.setParamSimple(map, prefix + "RequestId", this.RequestId);
}
}