AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
Country.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
27class Country {
28 public:
29 AWS_SECURITYHUB_API Country() = default;
30 AWS_SECURITYHUB_API Country(Aws::Utils::Json::JsonView jsonValue);
31 AWS_SECURITYHUB_API Country& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
39 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
40 template <typename CountryCodeT = Aws::String>
41 void SetCountryCode(CountryCodeT&& value) {
42 m_countryCodeHasBeenSet = true;
43 m_countryCode = std::forward<CountryCodeT>(value);
44 }
45 template <typename CountryCodeT = Aws::String>
46 Country& WithCountryCode(CountryCodeT&& value) {
47 SetCountryCode(std::forward<CountryCodeT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetCountryName() const { return m_countryName; }
57 inline bool CountryNameHasBeenSet() const { return m_countryNameHasBeenSet; }
58 template <typename CountryNameT = Aws::String>
59 void SetCountryName(CountryNameT&& value) {
60 m_countryNameHasBeenSet = true;
61 m_countryName = std::forward<CountryNameT>(value);
62 }
63 template <typename CountryNameT = Aws::String>
64 Country& WithCountryName(CountryNameT&& value) {
65 SetCountryName(std::forward<CountryNameT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_countryCode;
71
72 Aws::String m_countryName;
73 bool m_countryCodeHasBeenSet = false;
74 bool m_countryNameHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace SecurityHub
79} // namespace Aws
Country & WithCountryCode(CountryCodeT &&value)
Definition Country.h:46
AWS_SECURITYHUB_API Country(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCountryName(CountryNameT &&value)
Definition Country.h:59
void SetCountryCode(CountryCodeT &&value)
Definition Country.h:41
AWS_SECURITYHUB_API Country()=default
const Aws::String & GetCountryName() const
Definition Country.h:56
const Aws::String & GetCountryCode() const
Definition Country.h:38
AWS_SECURITYHUB_API Country & operator=(Aws::Utils::Json::JsonView jsonValue)
Country & WithCountryName(CountryNameT &&value)
Definition Country.h:64
bool CountryNameHasBeenSet() const
Definition Country.h:57
bool CountryCodeHasBeenSet() const
Definition Country.h:39
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue