chengkun
2025-06-05 4080b5997b38ca84b3b203c7101dcadb97b76925
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?php
/*
 * 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.
 */
namespace TencentCloud\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
 
/**
 * 号码信息。
 *
 * @method string getCode() 获取号码信息查询错误码,查询成功返回 "Ok"。
 * @method void setCode(string $Code) 设置号码信息查询错误码,查询成功返回 "Ok"。
 * @method string getMessage() 获取号码信息查询错误码描述。
 * @method void setMessage(string $Message) 设置号码信息查询错误码描述。
 * @method string getNationCode() 获取国家(或地区)码。
 * @method void setNationCode(string $NationCode) 设置国家(或地区)码。
 * @method string getSubscriberNumber() 获取用户号码,去除国家或地区码前缀的普通格式,示例如:18501234444。
 * @method void setSubscriberNumber(string $SubscriberNumber) 设置用户号码,去除国家或地区码前缀的普通格式,示例如:18501234444。
 * @method string getPhoneNumber() 获取解析后的规范的 E.164 号码,与下发短信的号码解析结果一致。解析失败时会原样返回。
 * @method void setPhoneNumber(string $PhoneNumber) 设置解析后的规范的 E.164 号码,与下发短信的号码解析结果一致。解析失败时会原样返回。
 * @method string getIsoCode() 获取国家码或地区码,例如 CN、US 等,对于未识别出国家码或者地区码,默认返回 DEF。
 * @method void setIsoCode(string $IsoCode) 设置国家码或地区码,例如 CN、US 等,对于未识别出国家码或者地区码,默认返回 DEF。
 * @method string getIsoName() 获取国家码或地区名,例如 China,可参考 [国际/港澳台短信价格总览](https://cloud.tencent.com/document/product/382/18051)
 * @method void setIsoName(string $IsoName) 设置国家码或地区名,例如 China,可参考 [国际/港澳台短信价格总览](https://cloud.tencent.com/document/product/382/18051)
 */
class PhoneNumberInfo extends AbstractModel
{
    /**
     * @var string 号码信息查询错误码,查询成功返回 "Ok"。
     */
    public $Code;
 
    /**
     * @var string 号码信息查询错误码描述。
     */
    public $Message;
 
    /**
     * @var string 国家(或地区)码。
     */
    public $NationCode;
 
    /**
     * @var string 用户号码,去除国家或地区码前缀的普通格式,示例如:18501234444。
     */
    public $SubscriberNumber;
 
    /**
     * @var string 解析后的规范的 E.164 号码,与下发短信的号码解析结果一致。解析失败时会原样返回。
     */
    public $PhoneNumber;
 
    /**
     * @var string 国家码或地区码,例如 CN、US 等,对于未识别出国家码或者地区码,默认返回 DEF。
     */
    public $IsoCode;
 
    /**
     * @var string 国家码或地区名,例如 China,可参考 [国际/港澳台短信价格总览](https://cloud.tencent.com/document/product/382/18051)
     */
    public $IsoName;
 
    /**
     * @param string $Code 号码信息查询错误码,查询成功返回 "Ok"。
     * @param string $Message 号码信息查询错误码描述。
     * @param string $NationCode 国家(或地区)码。
     * @param string $SubscriberNumber 用户号码,去除国家或地区码前缀的普通格式,示例如:18501234444。
     * @param string $PhoneNumber 解析后的规范的 E.164 号码,与下发短信的号码解析结果一致。解析失败时会原样返回。
     * @param string $IsoCode 国家码或地区码,例如 CN、US 等,对于未识别出国家码或者地区码,默认返回 DEF。
     * @param string $IsoName 国家码或地区名,例如 China,可参考 [国际/港澳台短信价格总览](https://cloud.tencent.com/document/product/382/18051)
     */
    function __construct()
    {
 
    }
 
    /**
     * For internal only. DO NOT USE IT.
     */
    public function deserialize($param)
    {
        if ($param === null) {
            return;
        }
        if (array_key_exists("Code",$param) and $param["Code"] !== null) {
            $this->Code = $param["Code"];
        }
 
        if (array_key_exists("Message",$param) and $param["Message"] !== null) {
            $this->Message = $param["Message"];
        }
 
        if (array_key_exists("NationCode",$param) and $param["NationCode"] !== null) {
            $this->NationCode = $param["NationCode"];
        }
 
        if (array_key_exists("SubscriberNumber",$param) and $param["SubscriberNumber"] !== null) {
            $this->SubscriberNumber = $param["SubscriberNumber"];
        }
 
        if (array_key_exists("PhoneNumber",$param) and $param["PhoneNumber"] !== null) {
            $this->PhoneNumber = $param["PhoneNumber"];
        }
 
        if (array_key_exists("IsoCode",$param) and $param["IsoCode"] !== null) {
            $this->IsoCode = $param["IsoCode"];
        }
 
        if (array_key_exists("IsoName",$param) and $param["IsoName"] !== null) {
            $this->IsoName = $param["IsoName"];
        }
    }
}