AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
49 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
50 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
51 inline IpCountry& WithCode(const Aws::String& value) { SetCode(value); return *this;}
52 inline IpCountry& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
53 inline IpCountry& WithCode(const char* value) { SetCode(value); return *this;}
55
57
60 inline const Aws::String& GetName() const{ return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
63 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 inline IpCountry& WithName(const Aws::String& value) { SetName(value); return *this;}
66 inline IpCountry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
67 inline IpCountry& WithName(const char* value) { SetName(value); return *this;}
69 private:
70
71 Aws::String m_code;
72 bool m_codeHasBeenSet = false;
73
74 Aws::String m_name;
75 bool m_nameHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Macie2
80} // namespace Aws
void SetName(Aws::String &&value)
Definition IpCountry.h:63
const Aws::String & GetName() const
Definition IpCountry.h:60
IpCountry & WithCode(Aws::String &&value)
Definition IpCountry.h:52
void SetName(const char *value)
Definition IpCountry.h:64
IpCountry & WithCode(const Aws::String &value)
Definition IpCountry.h:51
IpCountry & WithName(const char *value)
Definition IpCountry.h:67
AWS_MACIE2_API IpCountry(Aws::Utils::Json::JsonView jsonValue)
void SetName(const Aws::String &value)
Definition IpCountry.h:62
void SetCode(const char *value)
Definition IpCountry.h:50
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MACIE2_API IpCountry & operator=(Aws::Utils::Json::JsonView jsonValue)
IpCountry & WithName(const Aws::String &value)
Definition IpCountry.h:65
IpCountry & WithCode(const char *value)
Definition IpCountry.h:53
void SetCode(Aws::String &&value)
Definition IpCountry.h:49
void SetCode(const Aws::String &value)
Definition IpCountry.h:48
const Aws::String & GetCode() const
Definition IpCountry.h:46
IpCountry & WithName(Aws::String &&value)
Definition IpCountry.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue