AWS SDK for C++  1.9.108
AWS SDK for C++
IpCountry.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Macie2
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
45  inline const Aws::String& GetCode() const{ return m_code; }
46 
51  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
52 
57  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
58 
63  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
64 
69  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
70 
75  inline IpCountry& WithCode(const Aws::String& value) { SetCode(value); return *this;}
76 
81  inline IpCountry& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
82 
87  inline IpCountry& WithCode(const char* value) { SetCode(value); return *this;}
88 
89 
93  inline const Aws::String& GetName() const{ return m_name; }
94 
98  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
99 
103  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
104 
108  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
109 
113  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
114 
118  inline IpCountry& WithName(const Aws::String& value) { SetName(value); return *this;}
119 
123  inline IpCountry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
124 
128  inline IpCountry& WithName(const char* value) { SetName(value); return *this;}
129 
130  private:
131 
132  Aws::String m_code;
133  bool m_codeHasBeenSet;
134 
135  Aws::String m_name;
136  bool m_nameHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace Macie2
141 } // namespace Aws
Aws::Macie2::Model::IpCountry::WithName
IpCountry & WithName(Aws::String &&value)
Definition: IpCountry.h:123
AWS_MACIE2_API
#define AWS_MACIE2_API
Definition: Macie2_EXPORTS.h:28
Aws::Macie2::Model::IpCountry::SetName
void SetName(Aws::String &&value)
Definition: IpCountry.h:108
Aws::Macie2::Model::IpCountry::SetName
void SetName(const char *value)
Definition: IpCountry.h:113
Aws::Macie2::Model::IpCountry::IpCountry
IpCountry(Aws::Utils::Json::JsonView jsonValue)
Aws::Macie2::Model::IpCountry::SetCode
void SetCode(Aws::String &&value)
Definition: IpCountry.h:63
Aws::Macie2::Model::IpCountry::SetCode
void SetCode(const Aws::String &value)
Definition: IpCountry.h:57
Macie2_EXPORTS.h
Aws::Macie2::Model::IpCountry::IpCountry
IpCountry()
Aws::Macie2::Model::IpCountry::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: IpCountry.h:51
Aws::Macie2::Model::IpCountry::SetName
void SetName(const Aws::String &value)
Definition: IpCountry.h:103
Aws::Macie2::Model::IpCountry::WithName
IpCountry & WithName(const Aws::String &value)
Definition: IpCountry.h:118
Aws::Macie2::Model::IpCountry::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Macie2::Model::IpCountry::GetCode
const Aws::String & GetCode() const
Definition: IpCountry.h:45
Aws::Macie2::Model::IpCountry::WithCode
IpCountry & WithCode(const char *value)
Definition: IpCountry.h:87
Aws::Macie2::Model::IpCountry::operator=
IpCountry & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Macie2::Model::IpCountry::WithName
IpCountry & WithName(const char *value)
Definition: IpCountry.h:128
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Macie2::Model::IpCountry
Definition: IpCountry.h:33
Aws::Macie2::Model::IpCountry::NameHasBeenSet
bool NameHasBeenSet() const
Definition: IpCountry.h:98
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Macie2::Model::IpCountry::WithCode
IpCountry & WithCode(Aws::String &&value)
Definition: IpCountry.h:81
Aws::Macie2::Model::IpCountry::GetName
const Aws::String & GetName() const
Definition: IpCountry.h:93
Aws::Macie2::Model::IpCountry::SetCode
void SetCode(const char *value)
Definition: IpCountry.h:69
Aws::Macie2::Model::IpCountry::WithCode
IpCountry & WithCode(const Aws::String &value)
Definition: IpCountry.h:75