AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename CountryCodeT = Aws::String>
48 void SetCountryCode(CountryCodeT&& value) { m_countryCodeHasBeenSet = true; m_countryCode = std::forward<CountryCodeT>(value); }
49 template<typename CountryCodeT = Aws::String>
50 Country& WithCountryCode(CountryCodeT&& value) { SetCountryCode(std::forward<CountryCodeT>(value)); return *this;}
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) { m_countryNameHasBeenSet = true; m_countryName = std::forward<CountryNameT>(value); }
61 template<typename CountryNameT = Aws::String>
62 Country& WithCountryName(CountryNameT&& value) { SetCountryName(std::forward<CountryNameT>(value)); return *this;}
64 private:
65
66 Aws::String m_countryCode;
67 bool m_countryCodeHasBeenSet = false;
68
69 Aws::String m_countryName;
70 bool m_countryNameHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace GuardDuty
75} // namespace Aws
Country & WithCountryName(CountryNameT &&value)
Definition Country.h:62
AWS_GUARDDUTY_API Country & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCountryCode(CountryCodeT &&value)
Definition Country.h:48
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:46
const Aws::String & GetCountryCode() const
Definition Country.h:45
void SetCountryName(CountryNameT &&value)
Definition Country.h:60
Country & WithCountryCode(CountryCodeT &&value)
Definition Country.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue