AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
IpCountry.h
1
6#pragma once
7#include <aws/macie2/Macie2_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 Macie2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_MACIE2_API IpCountry() = default;
36 AWS_MACIE2_API IpCountry(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetCode() const { return m_code; }
47 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
48 template<typename CodeT = Aws::String>
49 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
50 template<typename CodeT = Aws::String>
51 IpCountry& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 IpCountry& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65 private:
66
67 Aws::String m_code;
68 bool m_codeHasBeenSet = false;
69
70 Aws::String m_name;
71 bool m_nameHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Macie2
76} // namespace Aws
const Aws::String & GetName() const
Definition IpCountry.h:58
IpCountry & WithName(NameT &&value)
Definition IpCountry.h:63
AWS_MACIE2_API IpCountry()=default
AWS_MACIE2_API IpCountry(Aws::Utils::Json::JsonView jsonValue)
IpCountry & WithCode(CodeT &&value)
Definition IpCountry.h:51
void SetCode(CodeT &&value)
Definition IpCountry.h:49
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:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue