1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/pinpoint/Pinpoint_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17   class JsonValue;
18   class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Pinpoint
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>Specifies a phone number to validate and retrieve information
28    * about.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/NumberValidateRequest">AWS
30    * API Reference</a></p>
31    */
32   class AWS_PINPOINT_API NumberValidateRequest
33   {
34   public:
35     NumberValidateRequest();
36     NumberValidateRequest(Aws::Utils::Json::JsonView jsonValue);
37     NumberValidateRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The two-character code, in ISO 3166-1 alpha-2 format, for the country or
43      * region where the phone number was originally registered.</p>
44      */
GetIsoCountryCode()45     inline const Aws::String& GetIsoCountryCode() const{ return m_isoCountryCode; }
46 
47     /**
48      * <p>The two-character code, in ISO 3166-1 alpha-2 format, for the country or
49      * region where the phone number was originally registered.</p>
50      */
IsoCountryCodeHasBeenSet()51     inline bool IsoCountryCodeHasBeenSet() const { return m_isoCountryCodeHasBeenSet; }
52 
53     /**
54      * <p>The two-character code, in ISO 3166-1 alpha-2 format, for the country or
55      * region where the phone number was originally registered.</p>
56      */
SetIsoCountryCode(const Aws::String & value)57     inline void SetIsoCountryCode(const Aws::String& value) { m_isoCountryCodeHasBeenSet = true; m_isoCountryCode = value; }
58 
59     /**
60      * <p>The two-character code, in ISO 3166-1 alpha-2 format, for the country or
61      * region where the phone number was originally registered.</p>
62      */
SetIsoCountryCode(Aws::String && value)63     inline void SetIsoCountryCode(Aws::String&& value) { m_isoCountryCodeHasBeenSet = true; m_isoCountryCode = std::move(value); }
64 
65     /**
66      * <p>The two-character code, in ISO 3166-1 alpha-2 format, for the country or
67      * region where the phone number was originally registered.</p>
68      */
SetIsoCountryCode(const char * value)69     inline void SetIsoCountryCode(const char* value) { m_isoCountryCodeHasBeenSet = true; m_isoCountryCode.assign(value); }
70 
71     /**
72      * <p>The two-character code, in ISO 3166-1 alpha-2 format, for the country or
73      * region where the phone number was originally registered.</p>
74      */
WithIsoCountryCode(const Aws::String & value)75     inline NumberValidateRequest& WithIsoCountryCode(const Aws::String& value) { SetIsoCountryCode(value); return *this;}
76 
77     /**
78      * <p>The two-character code, in ISO 3166-1 alpha-2 format, for the country or
79      * region where the phone number was originally registered.</p>
80      */
WithIsoCountryCode(Aws::String && value)81     inline NumberValidateRequest& WithIsoCountryCode(Aws::String&& value) { SetIsoCountryCode(std::move(value)); return *this;}
82 
83     /**
84      * <p>The two-character code, in ISO 3166-1 alpha-2 format, for the country or
85      * region where the phone number was originally registered.</p>
86      */
WithIsoCountryCode(const char * value)87     inline NumberValidateRequest& WithIsoCountryCode(const char* value) { SetIsoCountryCode(value); return *this;}
88 
89 
90     /**
91      * <p>The phone number to retrieve information about. The phone number that you
92      * provide should include a valid numeric country code. Otherwise, the operation
93      * might result in an error.</p>
94      */
GetPhoneNumber()95     inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; }
96 
97     /**
98      * <p>The phone number to retrieve information about. The phone number that you
99      * provide should include a valid numeric country code. Otherwise, the operation
100      * might result in an error.</p>
101      */
PhoneNumberHasBeenSet()102     inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
103 
104     /**
105      * <p>The phone number to retrieve information about. The phone number that you
106      * provide should include a valid numeric country code. Otherwise, the operation
107      * might result in an error.</p>
108      */
SetPhoneNumber(const Aws::String & value)109     inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
110 
111     /**
112      * <p>The phone number to retrieve information about. The phone number that you
113      * provide should include a valid numeric country code. Otherwise, the operation
114      * might result in an error.</p>
115      */
SetPhoneNumber(Aws::String && value)116     inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); }
117 
118     /**
119      * <p>The phone number to retrieve information about. The phone number that you
120      * provide should include a valid numeric country code. Otherwise, the operation
121      * might result in an error.</p>
122      */
SetPhoneNumber(const char * value)123     inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); }
124 
125     /**
126      * <p>The phone number to retrieve information about. The phone number that you
127      * provide should include a valid numeric country code. Otherwise, the operation
128      * might result in an error.</p>
129      */
WithPhoneNumber(const Aws::String & value)130     inline NumberValidateRequest& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;}
131 
132     /**
133      * <p>The phone number to retrieve information about. The phone number that you
134      * provide should include a valid numeric country code. Otherwise, the operation
135      * might result in an error.</p>
136      */
WithPhoneNumber(Aws::String && value)137     inline NumberValidateRequest& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;}
138 
139     /**
140      * <p>The phone number to retrieve information about. The phone number that you
141      * provide should include a valid numeric country code. Otherwise, the operation
142      * might result in an error.</p>
143      */
WithPhoneNumber(const char * value)144     inline NumberValidateRequest& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;}
145 
146   private:
147 
148     Aws::String m_isoCountryCode;
149     bool m_isoCountryCodeHasBeenSet;
150 
151     Aws::String m_phoneNumber;
152     bool m_phoneNumberHasBeenSet;
153   };
154 
155 } // namespace Model
156 } // namespace Pinpoint
157 } // namespace Aws
158