AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PhoneNumberCountry.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/chime/model/PhoneNumberType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Chime {
22namespace Model {
23
30 public:
31 AWS_CHIME_API PhoneNumberCountry() = default;
34 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
41 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
42 template <typename CountryCodeT = Aws::String>
43 void SetCountryCode(CountryCodeT&& value) {
44 m_countryCodeHasBeenSet = true;
45 m_countryCode = std::forward<CountryCodeT>(value);
46 }
47 template <typename CountryCodeT = Aws::String>
48 PhoneNumberCountry& WithCountryCode(CountryCodeT&& value) {
49 SetCountryCode(std::forward<CountryCodeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<PhoneNumberType>& GetSupportedPhoneNumberTypes() const { return m_supportedPhoneNumberTypes; }
59 inline bool SupportedPhoneNumberTypesHasBeenSet() const { return m_supportedPhoneNumberTypesHasBeenSet; }
60 template <typename SupportedPhoneNumberTypesT = Aws::Vector<PhoneNumberType>>
61 void SetSupportedPhoneNumberTypes(SupportedPhoneNumberTypesT&& value) {
62 m_supportedPhoneNumberTypesHasBeenSet = true;
63 m_supportedPhoneNumberTypes = std::forward<SupportedPhoneNumberTypesT>(value);
64 }
65 template <typename SupportedPhoneNumberTypesT = Aws::Vector<PhoneNumberType>>
66 PhoneNumberCountry& WithSupportedPhoneNumberTypes(SupportedPhoneNumberTypesT&& value) {
67 SetSupportedPhoneNumberTypes(std::forward<SupportedPhoneNumberTypesT>(value));
68 return *this;
69 }
71 m_supportedPhoneNumberTypesHasBeenSet = true;
72 m_supportedPhoneNumberTypes.push_back(value);
73 return *this;
74 }
76 private:
77 Aws::String m_countryCode;
78
79 Aws::Vector<PhoneNumberType> m_supportedPhoneNumberTypes;
80 bool m_countryCodeHasBeenSet = false;
81 bool m_supportedPhoneNumberTypesHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace Chime
86} // namespace Aws
PhoneNumberCountry & WithSupportedPhoneNumberTypes(SupportedPhoneNumberTypesT &&value)
AWS_CHIME_API PhoneNumberCountry(Aws::Utils::Json::JsonView jsonValue)
AWS_CHIME_API PhoneNumberCountry()=default
PhoneNumberCountry & AddSupportedPhoneNumberTypes(PhoneNumberType value)
const Aws::String & GetCountryCode() const
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CHIME_API PhoneNumberCountry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCountryCode(CountryCodeT &&value)
void SetSupportedPhoneNumberTypes(SupportedPhoneNumberTypesT &&value)
const Aws::Vector< PhoneNumberType > & GetSupportedPhoneNumberTypes() const
PhoneNumberCountry & WithCountryCode(CountryCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue