com.tencentcloudapi.cr.v20180321.models.DescribeCreditResultResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-cr Show documentation
Show all versions of tencentcloud-sdk-java-cr 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.cr.v20180321.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DescribeCreditResultResponse extends AbstractModel{
/**
* 呼叫结果,取值范围:
- NON:接通
- DBU:号码忙
- DRF:不在服务区
- ANA:欠费未接听
- REJ:拒接
- SHU:关机
- NAN:空号
- HAL:停机
- DAD:未接听
- EXE:其他异常
*/
@SerializedName("ResultCode")
@Expose
private String ResultCode;
/**
* 客户标识代码,多个标识码以英文逗号分隔,ResultCode为NON时才有。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("ClientCode")
@Expose
private String ClientCode;
/**
* 开始振铃时间,ResultCode为NON或DAD时才有此字段。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("RingStartTime")
@Expose
private String RingStartTime;
/**
* 振铃时长
*/
@SerializedName("RingDuration")
@Expose
private Long RingDuration;
/**
* 接通时长
*/
@SerializedName("AnswerDuration")
@Expose
private Long AnswerDuration;
/**
* JSON格式的扩展信息字段,ResultCode为NON时才有。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("ContextValue")
@Expose
private String ContextValue;
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
@SerializedName("RequestId")
@Expose
private String RequestId;
/**
* Get 呼叫结果,取值范围:
- NON:接通
- DBU:号码忙
- DRF:不在服务区
- ANA:欠费未接听
- REJ:拒接
- SHU:关机
- NAN:空号
- HAL:停机
- DAD:未接听
- EXE:其他异常
* @return ResultCode 呼叫结果,取值范围:
- NON:接通
- DBU:号码忙
- DRF:不在服务区
- ANA:欠费未接听
- REJ:拒接
- SHU:关机
- NAN:空号
- HAL:停机
- DAD:未接听
- EXE:其他异常
*/
public String getResultCode() {
return this.ResultCode;
}
/**
* Set 呼叫结果,取值范围:
- NON:接通
- DBU:号码忙
- DRF:不在服务区
- ANA:欠费未接听
- REJ:拒接
- SHU:关机
- NAN:空号
- HAL:停机
- DAD:未接听
- EXE:其他异常
* @param ResultCode 呼叫结果,取值范围:
- NON:接通
- DBU:号码忙
- DRF:不在服务区
- ANA:欠费未接听
- REJ:拒接
- SHU:关机
- NAN:空号
- HAL:停机
- DAD:未接听
- EXE:其他异常
*/
public void setResultCode(String ResultCode) {
this.ResultCode = ResultCode;
}
/**
* Get 客户标识代码,多个标识码以英文逗号分隔,ResultCode为NON时才有。
注意:此字段可能返回 null,表示取不到有效值。
* @return ClientCode 客户标识代码,多个标识码以英文逗号分隔,ResultCode为NON时才有。
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getClientCode() {
return this.ClientCode;
}
/**
* Set 客户标识代码,多个标识码以英文逗号分隔,ResultCode为NON时才有。
注意:此字段可能返回 null,表示取不到有效值。
* @param ClientCode 客户标识代码,多个标识码以英文逗号分隔,ResultCode为NON时才有。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setClientCode(String ClientCode) {
this.ClientCode = ClientCode;
}
/**
* Get 开始振铃时间,ResultCode为NON或DAD时才有此字段。
注意:此字段可能返回 null,表示取不到有效值。
* @return RingStartTime 开始振铃时间,ResultCode为NON或DAD时才有此字段。
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getRingStartTime() {
return this.RingStartTime;
}
/**
* Set 开始振铃时间,ResultCode为NON或DAD时才有此字段。
注意:此字段可能返回 null,表示取不到有效值。
* @param RingStartTime 开始振铃时间,ResultCode为NON或DAD时才有此字段。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setRingStartTime(String RingStartTime) {
this.RingStartTime = RingStartTime;
}
/**
* Get 振铃时长
* @return RingDuration 振铃时长
*/
public Long getRingDuration() {
return this.RingDuration;
}
/**
* Set 振铃时长
* @param RingDuration 振铃时长
*/
public void setRingDuration(Long RingDuration) {
this.RingDuration = RingDuration;
}
/**
* Get 接通时长
* @return AnswerDuration 接通时长
*/
public Long getAnswerDuration() {
return this.AnswerDuration;
}
/**
* Set 接通时长
* @param AnswerDuration 接通时长
*/
public void setAnswerDuration(Long AnswerDuration) {
this.AnswerDuration = AnswerDuration;
}
/**
* Get JSON格式的扩展信息字段,ResultCode为NON时才有。
注意:此字段可能返回 null,表示取不到有效值。
* @return ContextValue JSON格式的扩展信息字段,ResultCode为NON时才有。
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getContextValue() {
return this.ContextValue;
}
/**
* Set JSON格式的扩展信息字段,ResultCode为NON时才有。
注意:此字段可能返回 null,表示取不到有效值。
* @param ContextValue JSON格式的扩展信息字段,ResultCode为NON时才有。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setContextValue(String ContextValue) {
this.ContextValue = ContextValue;
}
/**
* 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 DescribeCreditResultResponse() {
}
/**
* 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 DescribeCreditResultResponse(DescribeCreditResultResponse source) {
if (source.ResultCode != null) {
this.ResultCode = new String(source.ResultCode);
}
if (source.ClientCode != null) {
this.ClientCode = new String(source.ClientCode);
}
if (source.RingStartTime != null) {
this.RingStartTime = new String(source.RingStartTime);
}
if (source.RingDuration != null) {
this.RingDuration = new Long(source.RingDuration);
}
if (source.AnswerDuration != null) {
this.AnswerDuration = new Long(source.AnswerDuration);
}
if (source.ContextValue != null) {
this.ContextValue = new String(source.ContextValue);
}
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 + "ResultCode", this.ResultCode);
this.setParamSimple(map, prefix + "ClientCode", this.ClientCode);
this.setParamSimple(map, prefix + "RingStartTime", this.RingStartTime);
this.setParamSimple(map, prefix + "RingDuration", this.RingDuration);
this.setParamSimple(map, prefix + "AnswerDuration", this.AnswerDuration);
this.setParamSimple(map, prefix + "ContextValue", this.ContextValue);
this.setParamSimple(map, prefix + "RequestId", this.RequestId);
}
}