AWS SDK for C++  1.9.108
AWS SDK for C++
Country.h
Go to the documentation of this file.
1 
6 #pragma once
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 SecurityHub
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetCountryCode() const{ return m_countryCode; }
44 
48  inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
49 
53  inline void SetCountryCode(const Aws::String& value) { m_countryCodeHasBeenSet = true; m_countryCode = value; }
54 
58  inline void SetCountryCode(Aws::String&& value) { m_countryCodeHasBeenSet = true; m_countryCode = std::move(value); }
59 
63  inline void SetCountryCode(const char* value) { m_countryCodeHasBeenSet = true; m_countryCode.assign(value); }
64 
68  inline Country& WithCountryCode(const Aws::String& value) { SetCountryCode(value); return *this;}
69 
73  inline Country& WithCountryCode(Aws::String&& value) { SetCountryCode(std::move(value)); return *this;}
74 
78  inline Country& WithCountryCode(const char* value) { SetCountryCode(value); return *this;}
79 
80 
84  inline const Aws::String& GetCountryName() const{ return m_countryName; }
85 
89  inline bool CountryNameHasBeenSet() const { return m_countryNameHasBeenSet; }
90 
94  inline void SetCountryName(const Aws::String& value) { m_countryNameHasBeenSet = true; m_countryName = value; }
95 
99  inline void SetCountryName(Aws::String&& value) { m_countryNameHasBeenSet = true; m_countryName = std::move(value); }
100 
104  inline void SetCountryName(const char* value) { m_countryNameHasBeenSet = true; m_countryName.assign(value); }
105 
109  inline Country& WithCountryName(const Aws::String& value) { SetCountryName(value); return *this;}
110 
114  inline Country& WithCountryName(Aws::String&& value) { SetCountryName(std::move(value)); return *this;}
115 
119  inline Country& WithCountryName(const char* value) { SetCountryName(value); return *this;}
120 
121  private:
122 
123  Aws::String m_countryCode;
124  bool m_countryCodeHasBeenSet;
125 
126  Aws::String m_countryName;
127  bool m_countryNameHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace SecurityHub
132 } // namespace Aws
Aws::SecurityHub::Model::Country::WithCountryName
Country & WithCountryName(Aws::String &&value)
Definition: Country.h:114
Aws::SecurityHub::Model::Country::SetCountryName
void SetCountryName(const Aws::String &value)
Definition: Country.h:94
Aws::SecurityHub::Model::Country::WithCountryName
Country & WithCountryName(const char *value)
Definition: Country.h:119
Aws::SecurityHub::Model::Country::SetCountryCode
void SetCountryCode(Aws::String &&value)
Definition: Country.h:58
Aws::SecurityHub::Model::Country::GetCountryName
const Aws::String & GetCountryName() const
Definition: Country.h:84
Aws::SecurityHub::Model::Country::GetCountryCode
const Aws::String & GetCountryCode() const
Definition: Country.h:43
Aws::SecurityHub::Model::Country::SetCountryCode
void SetCountryCode(const char *value)
Definition: Country.h:63
Aws::SecurityHub::Model::Country::Country
Country()
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::Model::Country::CountryCodeHasBeenSet
bool CountryCodeHasBeenSet() const
Definition: Country.h:48
Aws::SecurityHub::Model::Country::Country
Country(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SecurityHub::Model::Country::SetCountryName
void SetCountryName(Aws::String &&value)
Definition: Country.h:99
Aws::SecurityHub::Model::Country::WithCountryCode
Country & WithCountryCode(const Aws::String &value)
Definition: Country.h:68
Aws::SecurityHub::Model::Country::WithCountryName
Country & WithCountryName(const Aws::String &value)
Definition: Country.h:109
Aws::SecurityHub::Model::Country::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SecurityHub::Model::Country::SetCountryCode
void SetCountryCode(const Aws::String &value)
Definition: Country.h:53
Aws::SecurityHub::Model::Country::operator=
Country & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::SecurityHub::Model::Country::WithCountryCode
Country & WithCountryCode(Aws::String &&value)
Definition: Country.h:73
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SecurityHub_EXPORTS.h
Aws::SecurityHub::Model::Country
Definition: Country.h:32
Aws::SecurityHub::Model::Country::SetCountryName
void SetCountryName(const char *value)
Definition: Country.h:104
Aws::SecurityHub::Model::Country::WithCountryCode
Country & WithCountryCode(const char *value)
Definition: Country.h:78
Aws::SecurityHub::Model::Country::CountryNameHasBeenSet
bool CountryNameHasBeenSet() const
Definition: Country.h:89