AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GetThreatIntelSetResult.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/ThreatIntelSetFormat.h>
12#include <aws/guardduty/model/ThreatIntelSetStatus.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 GetThreatIntelSetResult() = default;
32
34
39 inline const Aws::String& GetName() const { return m_name; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline ThreatIntelSetFormat GetFormat() const { return m_format; }
57 inline void SetFormat(ThreatIntelSetFormat value) {
58 m_formatHasBeenSet = true;
59 m_format = value;
60 }
62 SetFormat(value);
63 return *this;
64 }
66
68
71 inline const Aws::String& GetLocation() const { return m_location; }
72 template <typename LocationT = Aws::String>
73 void SetLocation(LocationT&& value) {
74 m_locationHasBeenSet = true;
75 m_location = std::forward<LocationT>(value);
76 }
77 template <typename LocationT = Aws::String>
79 SetLocation(std::forward<LocationT>(value));
80 return *this;
81 }
83
85
88 inline ThreatIntelSetStatus GetStatus() const { return m_status; }
89 inline void SetStatus(ThreatIntelSetStatus value) {
90 m_statusHasBeenSet = true;
91 m_status = value;
92 }
94 SetStatus(value);
95 return *this;
96 }
98
100
103 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
104 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
105 void SetTags(TagsT&& value) {
106 m_tagsHasBeenSet = true;
107 m_tags = std::forward<TagsT>(value);
108 }
109 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
111 SetTags(std::forward<TagsT>(value));
112 return *this;
113 }
114 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
115 GetThreatIntelSetResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
116 m_tagsHasBeenSet = true;
117 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
118 return *this;
119 }
121
123
128 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
129 template <typename ExpectedBucketOwnerT = Aws::String>
130 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
131 m_expectedBucketOwnerHasBeenSet = true;
132 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
133 }
134 template <typename ExpectedBucketOwnerT = Aws::String>
135 GetThreatIntelSetResult& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
136 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
137 return *this;
138 }
140
142
143 inline const Aws::String& GetRequestId() const { return m_requestId; }
144 template <typename RequestIdT = Aws::String>
145 void SetRequestId(RequestIdT&& value) {
146 m_requestIdHasBeenSet = true;
147 m_requestId = std::forward<RequestIdT>(value);
148 }
149 template <typename RequestIdT = Aws::String>
151 SetRequestId(std::forward<RequestIdT>(value));
152 return *this;
153 }
155 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
156
157 private:
158 Aws::String m_name;
159
161
162 Aws::String m_location;
163
165
167
168 Aws::String m_expectedBucketOwner;
169
170 Aws::String m_requestId;
171 Aws::Http::HttpResponseCode m_HttpResponseCode;
172 bool m_nameHasBeenSet = false;
173 bool m_formatHasBeenSet = false;
174 bool m_locationHasBeenSet = false;
175 bool m_statusHasBeenSet = false;
176 bool m_tagsHasBeenSet = false;
177 bool m_expectedBucketOwnerHasBeenSet = false;
178 bool m_requestIdHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace GuardDuty
183} // namespace Aws
AWS_GUARDDUTY_API GetThreatIntelSetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetThreatIntelSetResult & WithName(NameT &&value)
GetThreatIntelSetResult & WithStatus(ThreatIntelSetStatus value)
GetThreatIntelSetResult & WithLocation(LocationT &&value)
GetThreatIntelSetResult & WithTags(TagsT &&value)
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_GUARDDUTY_API GetThreatIntelSetResult()=default
GetThreatIntelSetResult & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
GetThreatIntelSetResult & WithRequestId(RequestIdT &&value)
AWS_GUARDDUTY_API GetThreatIntelSetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetThreatIntelSetResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetThreatIntelSetResult & WithFormat(ThreatIntelSetFormat value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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