AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PhoneNumberCountry.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/chime/model/PhoneNumberType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Chime
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CHIME_API PhoneNumberCountry() = default;
39 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
47 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
48 template<typename CountryCodeT = Aws::String>
49 void SetCountryCode(CountryCodeT&& value) { m_countryCodeHasBeenSet = true; m_countryCode = std::forward<CountryCodeT>(value); }
50 template<typename CountryCodeT = Aws::String>
51 PhoneNumberCountry& WithCountryCode(CountryCodeT&& value) { SetCountryCode(std::forward<CountryCodeT>(value)); return *this;}
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) { m_supportedPhoneNumberTypesHasBeenSet = true; m_supportedPhoneNumberTypes = std::forward<SupportedPhoneNumberTypesT>(value); }
62 template<typename SupportedPhoneNumberTypesT = Aws::Vector<PhoneNumberType>>
63 PhoneNumberCountry& WithSupportedPhoneNumberTypes(SupportedPhoneNumberTypesT&& value) { SetSupportedPhoneNumberTypes(std::forward<SupportedPhoneNumberTypesT>(value)); return *this;}
64 inline PhoneNumberCountry& AddSupportedPhoneNumberTypes(PhoneNumberType value) { m_supportedPhoneNumberTypesHasBeenSet = true; m_supportedPhoneNumberTypes.push_back(value); return *this; }
66 private:
67
68 Aws::String m_countryCode;
69 bool m_countryCodeHasBeenSet = false;
70
71 Aws::Vector<PhoneNumberType> m_supportedPhoneNumberTypes;
72 bool m_supportedPhoneNumberTypesHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace Chime
77} // 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