AWS SDK for C++

AWS SDK for C++ Version 1.11.750

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