AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCountryCode(const Aws::String& value) { m_countryCodeHasBeenSet = true; m_countryCode = value; }
49 inline void SetCountryCode(Aws::String&& value) { m_countryCodeHasBeenSet = true; m_countryCode = std::move(value); }
50 inline void SetCountryCode(const char* value) { m_countryCodeHasBeenSet = true; m_countryCode.assign(value); }
51 inline PhoneNumberCountry& WithCountryCode(const Aws::String& value) { SetCountryCode(value); return *this;}
52 inline PhoneNumberCountry& WithCountryCode(Aws::String&& value) { SetCountryCode(std::move(value)); return *this;}
53 inline PhoneNumberCountry& WithCountryCode(const char* value) { SetCountryCode(value); return *this;}
55
57
60 inline const Aws::Vector<PhoneNumberType>& GetSupportedPhoneNumberTypes() const{ return m_supportedPhoneNumberTypes; }
61 inline bool SupportedPhoneNumberTypesHasBeenSet() const { return m_supportedPhoneNumberTypesHasBeenSet; }
62 inline void SetSupportedPhoneNumberTypes(const Aws::Vector<PhoneNumberType>& value) { m_supportedPhoneNumberTypesHasBeenSet = true; m_supportedPhoneNumberTypes = value; }
63 inline void SetSupportedPhoneNumberTypes(Aws::Vector<PhoneNumberType>&& value) { m_supportedPhoneNumberTypesHasBeenSet = true; m_supportedPhoneNumberTypes = std::move(value); }
66 inline PhoneNumberCountry& AddSupportedPhoneNumberTypes(const PhoneNumberType& value) { m_supportedPhoneNumberTypesHasBeenSet = true; m_supportedPhoneNumberTypes.push_back(value); return *this; }
67 inline PhoneNumberCountry& AddSupportedPhoneNumberTypes(PhoneNumberType&& value) { m_supportedPhoneNumberTypesHasBeenSet = true; m_supportedPhoneNumberTypes.push_back(std::move(value)); return *this; }
69 private:
70
71 Aws::String m_countryCode;
72 bool m_countryCodeHasBeenSet = false;
73
74 Aws::Vector<PhoneNumberType> m_supportedPhoneNumberTypes;
75 bool m_supportedPhoneNumberTypesHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Chime
80} // namespace Aws
PhoneNumberCountry & WithSupportedPhoneNumberTypes(Aws::Vector< PhoneNumberType > &&value)
PhoneNumberCountry & WithSupportedPhoneNumberTypes(const Aws::Vector< PhoneNumberType > &value)
AWS_CHIME_API PhoneNumberCountry(Aws::Utils::Json::JsonView jsonValue)
PhoneNumberCountry & WithCountryCode(Aws::String &&value)
PhoneNumberCountry & AddSupportedPhoneNumberTypes(const PhoneNumberType &value)
PhoneNumberCountry & WithCountryCode(const char *value)
const Aws::String & GetCountryCode() const
void SetCountryCode(const Aws::String &value)
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CHIME_API PhoneNumberCountry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSupportedPhoneNumberTypes(Aws::Vector< PhoneNumberType > &&value)
void SetCountryCode(Aws::String &&value)
PhoneNumberCountry & WithCountryCode(const Aws::String &value)
const Aws::Vector< PhoneNumberType > & GetSupportedPhoneNumberTypes() const
PhoneNumberCountry & AddSupportedPhoneNumberTypes(PhoneNumberType &&value)
void SetSupportedPhoneNumberTypes(const Aws::Vector< PhoneNumberType > &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