AWS SDK for C++  1.9.109
AWS SDK for C++
GetIPSetResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24 } // namespace Json
25 } // namespace Utils
26 namespace GuardDuty
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
41  inline const Aws::String& GetName() const{ return m_name; }
42 
46  inline void SetName(const Aws::String& value) { m_name = value; }
47 
51  inline void SetName(Aws::String&& value) { m_name = std::move(value); }
52 
56  inline void SetName(const char* value) { m_name.assign(value); }
57 
61  inline GetIPSetResult& WithName(const Aws::String& value) { SetName(value); return *this;}
62 
66  inline GetIPSetResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
67 
71  inline GetIPSetResult& WithName(const char* value) { SetName(value); return *this;}
72 
73 
77  inline const IpSetFormat& GetFormat() const{ return m_format; }
78 
82  inline void SetFormat(const IpSetFormat& value) { m_format = value; }
83 
87  inline void SetFormat(IpSetFormat&& value) { m_format = std::move(value); }
88 
92  inline GetIPSetResult& WithFormat(const IpSetFormat& value) { SetFormat(value); return *this;}
93 
97  inline GetIPSetResult& WithFormat(IpSetFormat&& value) { SetFormat(std::move(value)); return *this;}
98 
99 
104  inline const Aws::String& GetLocation() const{ return m_location; }
105 
110  inline void SetLocation(const Aws::String& value) { m_location = value; }
111 
116  inline void SetLocation(Aws::String&& value) { m_location = std::move(value); }
117 
122  inline void SetLocation(const char* value) { m_location.assign(value); }
123 
128  inline GetIPSetResult& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
129 
134  inline GetIPSetResult& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
135 
140  inline GetIPSetResult& WithLocation(const char* value) { SetLocation(value); return *this;}
141 
142 
146  inline const IpSetStatus& GetStatus() const{ return m_status; }
147 
151  inline void SetStatus(const IpSetStatus& value) { m_status = value; }
152 
156  inline void SetStatus(IpSetStatus&& value) { m_status = std::move(value); }
157 
161  inline GetIPSetResult& WithStatus(const IpSetStatus& value) { SetStatus(value); return *this;}
162 
166  inline GetIPSetResult& WithStatus(IpSetStatus&& value) { SetStatus(std::move(value)); return *this;}
167 
168 
172  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
173 
177  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
178 
182  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
183 
187  inline GetIPSetResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
188 
192  inline GetIPSetResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
193 
197  inline GetIPSetResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
198 
202  inline GetIPSetResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
203 
207  inline GetIPSetResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
208 
212  inline GetIPSetResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
213 
217  inline GetIPSetResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
218 
222  inline GetIPSetResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
223 
227  inline GetIPSetResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
228 
229  private:
230 
231  Aws::String m_name;
232 
233  IpSetFormat m_format;
234 
235  Aws::String m_location;
236 
237  IpSetStatus m_status;
238 
240  };
241 
242 } // namespace Model
243 } // namespace GuardDuty
244 } // namespace Aws
Aws::GuardDuty::Model::GetIPSetResult::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: GetIPSetResult.h:172
Aws::GuardDuty::Model::GetIPSetResult::WithTags
GetIPSetResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetIPSetResult.h:187
Aws::GuardDuty::Model::GetIPSetResult::GetStatus
const IpSetStatus & GetStatus() const
Definition: GetIPSetResult.h:146
Aws::GuardDuty::Model::GetIPSetResult::WithName
GetIPSetResult & WithName(const char *value)
Definition: GetIPSetResult.h:71
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::GuardDuty::Model::GetIPSetResult::SetFormat
void SetFormat(const IpSetFormat &value)
Definition: GetIPSetResult.h:82
Aws::GuardDuty::Model::GetIPSetResult::operator=
GetIPSetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GuardDuty::Model::GetIPSetResult::WithStatus
GetIPSetResult & WithStatus(IpSetStatus &&value)
Definition: GetIPSetResult.h:166
Aws::GuardDuty::Model::GetIPSetResult::AddTags
GetIPSetResult & AddTags(const char *key, Aws::String &&value)
Definition: GetIPSetResult.h:217
Aws::GuardDuty::Model::GetIPSetResult::SetLocation
void SetLocation(const char *value)
Definition: GetIPSetResult.h:122
Aws::GuardDuty::Model::GetIPSetResult::GetFormat
const IpSetFormat & GetFormat() const
Definition: GetIPSetResult.h:77
Aws::GuardDuty::Model::GetIPSetResult::SetFormat
void SetFormat(IpSetFormat &&value)
Definition: GetIPSetResult.h:87
Aws::GuardDuty::Model::GetIPSetResult::WithFormat
GetIPSetResult & WithFormat(IpSetFormat &&value)
Definition: GetIPSetResult.h:97
Aws::GuardDuty::Model::GetIPSetResult::WithName
GetIPSetResult & WithName(Aws::String &&value)
Definition: GetIPSetResult.h:66
Aws::GuardDuty::Model::GetIPSetResult::WithFormat
GetIPSetResult & WithFormat(const IpSetFormat &value)
Definition: GetIPSetResult.h:92
IpSetStatus.h
Aws::GuardDuty::Model::GetIPSetResult::AddTags
GetIPSetResult & AddTags(const char *key, const char *value)
Definition: GetIPSetResult.h:227
Aws::GuardDuty::Model::GetIPSetResult::AddTags
GetIPSetResult & AddTags(Aws::String &&key, const Aws::String &value)
Definition: GetIPSetResult.h:202
Aws::GuardDuty::Model::IpSetStatus
IpSetStatus
Definition: IpSetStatus.h:17
Aws::GuardDuty::Model::GetIPSetResult::WithLocation
GetIPSetResult & WithLocation(const Aws::String &value)
Definition: GetIPSetResult.h:128
Aws::GuardDuty::Model::GetIPSetResult::WithLocation
GetIPSetResult & WithLocation(Aws::String &&value)
Definition: GetIPSetResult.h:134
Aws::GuardDuty::Model::GetIPSetResult::SetLocation
void SetLocation(const Aws::String &value)
Definition: GetIPSetResult.h:110
Aws::GuardDuty::Model::GetIPSetResult::SetName
void SetName(Aws::String &&value)
Definition: GetIPSetResult.h:51
Aws::GuardDuty::Model::GetIPSetResult::WithTags
GetIPSetResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetIPSetResult.h:192
Aws::GuardDuty::Model::IpSetFormat
IpSetFormat
Definition: IpSetFormat.h:17
Aws::GuardDuty::Model::GetIPSetResult::AddTags
GetIPSetResult & AddTags(Aws::String &&key, const char *value)
Definition: GetIPSetResult.h:222
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::GetIPSetResult::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetIPSetResult.h:177
Aws::GuardDuty::Model::GetIPSetResult::SetLocation
void SetLocation(Aws::String &&value)
Definition: GetIPSetResult.h:116
Aws::GuardDuty::Model::GetIPSetResult::AddTags
GetIPSetResult & AddTags(const Aws::String &key, Aws::String &&value)
Definition: GetIPSetResult.h:207
Aws::GuardDuty::Model::GetIPSetResult::SetName
void SetName(const char *value)
Definition: GetIPSetResult.h:56
Aws::GuardDuty::Model::GetIPSetResult::SetStatus
void SetStatus(const IpSetStatus &value)
Definition: GetIPSetResult.h:151
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::GetIPSetResult::WithLocation
GetIPSetResult & WithLocation(const char *value)
Definition: GetIPSetResult.h:140
Aws::GuardDuty::Model::GetIPSetResult::WithStatus
GetIPSetResult & WithStatus(const IpSetStatus &value)
Definition: GetIPSetResult.h:161
AWSString.h
Aws::GuardDuty::Model::GetIPSetResult::SetName
void SetName(const Aws::String &value)
Definition: GetIPSetResult.h:46
Aws::GuardDuty::Model::GetIPSetResult::GetLocation
const Aws::String & GetLocation() const
Definition: GetIPSetResult.h:104
Aws::GuardDuty::Model::GetIPSetResult::GetIPSetResult
GetIPSetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GuardDuty::Model::GetIPSetResult::GetIPSetResult
GetIPSetResult()
Aws::GuardDuty::Model::GetIPSetResult::AddTags
GetIPSetResult & AddTags(const Aws::String &key, const Aws::String &value)
Definition: GetIPSetResult.h:197
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::GetIPSetResult::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetIPSetResult.h:182
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::GetIPSetResult::AddTags
GetIPSetResult & AddTags(Aws::String &&key, Aws::String &&value)
Definition: GetIPSetResult.h:212
Aws::GuardDuty::Model::GetIPSetResult::SetStatus
void SetStatus(IpSetStatus &&value)
Definition: GetIPSetResult.h:156
Aws::GuardDuty::Model::GetIPSetResult::WithName
GetIPSetResult & WithName(const Aws::String &value)
Definition: GetIPSetResult.h:61
Aws::GuardDuty::Model::GetIPSetResult::GetName
const Aws::String & GetName() const
Definition: GetIPSetResult.h:41
AWSMap.h
IpSetFormat.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::GuardDuty::Model::GetIPSetResult
Definition: GetIPSetResult.h:31