AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Country.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_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 SecurityHub
22{
23namespace Model
24{
25
31 class Country
32 {
33 public:
34 AWS_SECURITYHUB_API Country() = default;
35 AWS_SECURITYHUB_API Country(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SECURITYHUB_API Country& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
45 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
46 template<typename CountryCodeT = Aws::String>
47 void SetCountryCode(CountryCodeT&& value) { m_countryCodeHasBeenSet = true; m_countryCode = std::forward<CountryCodeT>(value); }
48 template<typename CountryCodeT = Aws::String>
49 Country& WithCountryCode(CountryCodeT&& value) { SetCountryCode(std::forward<CountryCodeT>(value)); return *this;}
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) { m_countryNameHasBeenSet = true; m_countryName = std::forward<CountryNameT>(value); }
60 template<typename CountryNameT = Aws::String>
61 Country& WithCountryName(CountryNameT&& value) { SetCountryName(std::forward<CountryNameT>(value)); return *this;}
63 private:
64
65 Aws::String m_countryCode;
66 bool m_countryCodeHasBeenSet = false;
67
68 Aws::String m_countryName;
69 bool m_countryNameHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace SecurityHub
74} // namespace Aws
Country & WithCountryCode(CountryCodeT &&value)
Definition Country.h:49
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:47
AWS_SECURITYHUB_API Country()=default
const Aws::String & GetCountryName() const
Definition Country.h:56
const Aws::String & GetCountryCode() const
Definition Country.h:44
AWS_SECURITYHUB_API Country & operator=(Aws::Utils::Json::JsonView jsonValue)
Country & WithCountryName(CountryNameT &&value)
Definition Country.h:61
bool CountryNameHasBeenSet() const
Definition Country.h:57
bool CountryCodeHasBeenSet() const
Definition Country.h:45
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue