AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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