AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateThreatIntelSetRequest.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/GuardDutyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/guardduty/model/ThreatIntelSetFormat.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace GuardDuty
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_GUARDDUTY_API CreateThreatIntelSetRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateThreatIntelSet"; }
34
35 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
36
37
39
47 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
48 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
49 template<typename DetectorIdT = Aws::String>
50 void SetDetectorId(DetectorIdT&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::forward<DetectorIdT>(value); }
51 template<typename DetectorIdT = Aws::String>
52 CreateThreatIntelSetRequest& WithDetectorId(DetectorIdT&& value) { SetDetectorId(std::forward<DetectorIdT>(value)); return *this;}
54
56
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template<typename NameT = Aws::String>
64 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
65 template<typename NameT = Aws::String>
66 CreateThreatIntelSetRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
68
70
73 inline ThreatIntelSetFormat GetFormat() const { return m_format; }
74 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
75 inline void SetFormat(ThreatIntelSetFormat value) { m_formatHasBeenSet = true; m_format = value; }
78
80
83 inline const Aws::String& GetLocation() const { return m_location; }
84 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
85 template<typename LocationT = Aws::String>
86 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
87 template<typename LocationT = Aws::String>
88 CreateThreatIntelSetRequest& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
90
92
96 inline bool GetActivate() const { return m_activate; }
97 inline bool ActivateHasBeenSet() const { return m_activateHasBeenSet; }
98 inline void SetActivate(bool value) { m_activateHasBeenSet = true; m_activate = value; }
99 inline CreateThreatIntelSetRequest& WithActivate(bool value) { SetActivate(value); return *this;}
101
103
106 inline const Aws::String& GetClientToken() const { return m_clientToken; }
107 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
108 template<typename ClientTokenT = Aws::String>
109 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
110 template<typename ClientTokenT = Aws::String>
111 CreateThreatIntelSetRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
113
115
118 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
119 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
120 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
121 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
122 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
123 CreateThreatIntelSetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
124 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
125 CreateThreatIntelSetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
126 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
127 }
129
131
135 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
136 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
137 template<typename ExpectedBucketOwnerT = Aws::String>
138 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
139 template<typename ExpectedBucketOwnerT = Aws::String>
140 CreateThreatIntelSetRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) { SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value)); return *this;}
142 private:
143
144 Aws::String m_detectorId;
145 bool m_detectorIdHasBeenSet = false;
146
147 Aws::String m_name;
148 bool m_nameHasBeenSet = false;
149
151 bool m_formatHasBeenSet = false;
152
153 Aws::String m_location;
154 bool m_locationHasBeenSet = false;
155
156 bool m_activate{false};
157 bool m_activateHasBeenSet = false;
158
160 bool m_clientTokenHasBeenSet = true;
161
163 bool m_tagsHasBeenSet = false;
164
165 Aws::String m_expectedBucketOwner;
166 bool m_expectedBucketOwnerHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace GuardDuty
171} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateThreatIntelSetRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateThreatIntelSetRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateThreatIntelSetRequest & WithActivate(bool value)
CreateThreatIntelSetRequest & WithDetectorId(DetectorIdT &&value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
CreateThreatIntelSetRequest & WithClientToken(ClientTokenT &&value)
AWS_GUARDDUTY_API CreateThreatIntelSetRequest()=default
CreateThreatIntelSetRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
CreateThreatIntelSetRequest & WithName(NameT &&value)
CreateThreatIntelSetRequest & WithLocation(LocationT &&value)
CreateThreatIntelSetRequest & WithFormat(ThreatIntelSetFormat value)
static Aws::Utils::UUID PseudoRandomUUID()
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