AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
IpCountry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/macie2/Macie2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Macie2 {
20namespace Model {
21
28class IpCountry {
29 public:
30 AWS_MACIE2_API IpCountry() = default;
31 AWS_MACIE2_API IpCountry(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetCode() const { return m_code; }
41 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
42 template <typename CodeT = Aws::String>
43 void SetCode(CodeT&& value) {
44 m_codeHasBeenSet = true;
45 m_code = std::forward<CodeT>(value);
46 }
47 template <typename CodeT = Aws::String>
48 IpCountry& WithCode(CodeT&& value) {
49 SetCode(std::forward<CodeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 IpCountry& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_code;
73
74 Aws::String m_name;
75 bool m_codeHasBeenSet = false;
76 bool m_nameHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Macie2
81} // namespace Aws
const Aws::String & GetName() const
Definition IpCountry.h:58
IpCountry & WithName(NameT &&value)
Definition IpCountry.h:66
AWS_MACIE2_API IpCountry()=default
AWS_MACIE2_API IpCountry(Aws::Utils::Json::JsonView jsonValue)
IpCountry & WithCode(CodeT &&value)
Definition IpCountry.h:48
void SetCode(CodeT &&value)
Definition IpCountry.h:43
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MACIE2_API IpCountry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
Definition IpCountry.h:61
const Aws::String & GetCode() const
Definition IpCountry.h:40
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue