AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
GetIPSetResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/guardduty/GuardDuty_EXPORTS.h>
11#include <aws/guardduty/model/IpSetFormat.h>
12#include <aws/guardduty/model/IpSetStatus.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace GuardDuty {
26namespace Model {
28 public:
29 AWS_GUARDDUTY_API GetIPSetResult() = default;
32
34
37 inline const Aws::String& GetName() const { return m_name; }
38 template <typename NameT = Aws::String>
39 void SetName(NameT&& value) {
40 m_nameHasBeenSet = true;
41 m_name = std::forward<NameT>(value);
42 }
43 template <typename NameT = Aws::String>
44 GetIPSetResult& WithName(NameT&& value) {
45 SetName(std::forward<NameT>(value));
46 return *this;
47 }
49
51
54 inline IpSetFormat GetFormat() const { return m_format; }
55 inline void SetFormat(IpSetFormat value) {
56 m_formatHasBeenSet = true;
57 m_format = value;
58 }
60 SetFormat(value);
61 return *this;
62 }
64
66
69 inline const Aws::String& GetLocation() const { return m_location; }
70 template <typename LocationT = Aws::String>
71 void SetLocation(LocationT&& value) {
72 m_locationHasBeenSet = true;
73 m_location = std::forward<LocationT>(value);
74 }
75 template <typename LocationT = Aws::String>
76 GetIPSetResult& WithLocation(LocationT&& value) {
77 SetLocation(std::forward<LocationT>(value));
78 return *this;
79 }
81
83
86 inline IpSetStatus GetStatus() const { return m_status; }
87 inline void SetStatus(IpSetStatus value) {
88 m_statusHasBeenSet = true;
89 m_status = value;
90 }
92 SetStatus(value);
93 return *this;
94 }
96
98
101 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
102 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
103 void SetTags(TagsT&& value) {
104 m_tagsHasBeenSet = true;
105 m_tags = std::forward<TagsT>(value);
106 }
107 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
108 GetIPSetResult& WithTags(TagsT&& value) {
109 SetTags(std::forward<TagsT>(value));
110 return *this;
111 }
112 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
113 GetIPSetResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
114 m_tagsHasBeenSet = true;
115 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
116 return *this;
117 }
119
121
126 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
127 template <typename ExpectedBucketOwnerT = Aws::String>
128 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
129 m_expectedBucketOwnerHasBeenSet = true;
130 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
131 }
132 template <typename ExpectedBucketOwnerT = Aws::String>
133 GetIPSetResult& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
134 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
135 return *this;
136 }
138
140
141 inline const Aws::String& GetRequestId() const { return m_requestId; }
142 template <typename RequestIdT = Aws::String>
143 void SetRequestId(RequestIdT&& value) {
144 m_requestIdHasBeenSet = true;
145 m_requestId = std::forward<RequestIdT>(value);
146 }
147 template <typename RequestIdT = Aws::String>
148 GetIPSetResult& WithRequestId(RequestIdT&& value) {
149 SetRequestId(std::forward<RequestIdT>(value));
150 return *this;
151 }
153 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
154
155 private:
156 Aws::String m_name;
157
159
160 Aws::String m_location;
161
163
165
166 Aws::String m_expectedBucketOwner;
167
168 Aws::String m_requestId;
169 Aws::Http::HttpResponseCode m_HttpResponseCode;
170 bool m_nameHasBeenSet = false;
171 bool m_formatHasBeenSet = false;
172 bool m_locationHasBeenSet = false;
173 bool m_statusHasBeenSet = false;
174 bool m_tagsHasBeenSet = false;
175 bool m_expectedBucketOwnerHasBeenSet = false;
176 bool m_requestIdHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace GuardDuty
181} // namespace Aws
GetIPSetResult & WithStatus(IpSetStatus value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetRequestId() const
GetIPSetResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_GUARDDUTY_API GetIPSetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_GUARDDUTY_API GetIPSetResult()=default
GetIPSetResult & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_GUARDDUTY_API GetIPSetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLocation(LocationT &&value)
const Aws::String & GetLocation() const
void SetRequestId(RequestIdT &&value)
const Aws::String & GetExpectedBucketOwner() const
GetIPSetResult & WithLocation(LocationT &&value)
const Aws::String & GetName() const
GetIPSetResult & WithFormat(IpSetFormat value)
GetIPSetResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetIPSetResult & WithName(NameT &&value)
GetIPSetResult & WithTags(TagsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue