AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
NumberValidateRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pinpoint/Pinpoint_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Pinpoint {
20namespace Model {
21
29 public:
30 AWS_PINPOINT_API NumberValidateRequest() = default;
33 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetIsoCountryCode() const { return m_isoCountryCode; }
41 inline bool IsoCountryCodeHasBeenSet() const { return m_isoCountryCodeHasBeenSet; }
42 template <typename IsoCountryCodeT = Aws::String>
43 void SetIsoCountryCode(IsoCountryCodeT&& value) {
44 m_isoCountryCodeHasBeenSet = true;
45 m_isoCountryCode = std::forward<IsoCountryCodeT>(value);
46 }
47 template <typename IsoCountryCodeT = Aws::String>
48 NumberValidateRequest& WithIsoCountryCode(IsoCountryCodeT&& value) {
49 SetIsoCountryCode(std::forward<IsoCountryCodeT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetPhoneNumber() const { return m_phoneNumber; }
61 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
62 template <typename PhoneNumberT = Aws::String>
63 void SetPhoneNumber(PhoneNumberT&& value) {
64 m_phoneNumberHasBeenSet = true;
65 m_phoneNumber = std::forward<PhoneNumberT>(value);
66 }
67 template <typename PhoneNumberT = Aws::String>
68 NumberValidateRequest& WithPhoneNumber(PhoneNumberT&& value) {
69 SetPhoneNumber(std::forward<PhoneNumberT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_isoCountryCode;
75
76 Aws::String m_phoneNumber;
77 bool m_isoCountryCodeHasBeenSet = false;
78 bool m_phoneNumberHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Pinpoint
83} // namespace Aws
AWS_PINPOINT_API NumberValidateRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API NumberValidateRequest()=default
AWS_PINPOINT_API NumberValidateRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
NumberValidateRequest & WithIsoCountryCode(IsoCountryCodeT &&value)
NumberValidateRequest & WithPhoneNumber(PhoneNumberT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue