AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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
43 inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
44 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
45 inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
46 inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
47 inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
48 inline CreateThreatIntelSetRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
49 inline CreateThreatIntelSetRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
50 inline CreateThreatIntelSetRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
52
54
59 inline const Aws::String& GetName() const{ return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 inline CreateThreatIntelSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline CreateThreatIntelSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline CreateThreatIntelSetRequest& WithName(const char* value) { SetName(value); return *this;}
68
70
73 inline const ThreatIntelSetFormat& GetFormat() const{ return m_format; }
74 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
75 inline void SetFormat(const ThreatIntelSetFormat& value) { m_formatHasBeenSet = true; m_format = value; }
76 inline void SetFormat(ThreatIntelSetFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
77 inline CreateThreatIntelSetRequest& WithFormat(const ThreatIntelSetFormat& value) { SetFormat(value); return *this;}
78 inline CreateThreatIntelSetRequest& WithFormat(ThreatIntelSetFormat&& value) { SetFormat(std::move(value)); return *this;}
80
82
85 inline const Aws::String& GetLocation() const{ return m_location; }
86 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
87 inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
88 inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
89 inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
90 inline CreateThreatIntelSetRequest& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
91 inline CreateThreatIntelSetRequest& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
92 inline CreateThreatIntelSetRequest& WithLocation(const char* value) { SetLocation(value); return *this;}
94
96
100 inline bool GetActivate() const{ return m_activate; }
101 inline bool ActivateHasBeenSet() const { return m_activateHasBeenSet; }
102 inline void SetActivate(bool value) { m_activateHasBeenSet = true; m_activate = value; }
103 inline CreateThreatIntelSetRequest& WithActivate(bool value) { SetActivate(value); return *this;}
105
107
110 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
111 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
112 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
113 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
114 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
115 inline CreateThreatIntelSetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
116 inline CreateThreatIntelSetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
117 inline CreateThreatIntelSetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
119
121
124 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
125 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
126 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
127 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
129 inline CreateThreatIntelSetRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
130 inline CreateThreatIntelSetRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
131 inline CreateThreatIntelSetRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
132 inline CreateThreatIntelSetRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
133 inline CreateThreatIntelSetRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
134 inline CreateThreatIntelSetRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
135 inline CreateThreatIntelSetRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
136 inline CreateThreatIntelSetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
138 private:
139
140 Aws::String m_detectorId;
141 bool m_detectorIdHasBeenSet = false;
142
143 Aws::String m_name;
144 bool m_nameHasBeenSet = false;
145
146 ThreatIntelSetFormat m_format;
147 bool m_formatHasBeenSet = false;
148
149 Aws::String m_location;
150 bool m_locationHasBeenSet = false;
151
152 bool m_activate;
153 bool m_activateHasBeenSet = false;
154
155 Aws::String m_clientToken;
156 bool m_clientTokenHasBeenSet = false;
157
159 bool m_tagsHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace GuardDuty
164} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateThreatIntelSetRequest & AddTags(const char *key, const char *value)
CreateThreatIntelSetRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateThreatIntelSetRequest & WithName(Aws::String &&value)
CreateThreatIntelSetRequest & WithDetectorId(Aws::String &&value)
CreateThreatIntelSetRequest & WithClientToken(Aws::String &&value)
CreateThreatIntelSetRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateThreatIntelSetRequest & AddTags(Aws::String &&key, const char *value)
CreateThreatIntelSetRequest & WithDetectorId(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateThreatIntelSetRequest & WithActivate(bool value)
CreateThreatIntelSetRequest & WithFormat(const ThreatIntelSetFormat &value)
CreateThreatIntelSetRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateThreatIntelSetRequest & WithClientToken(const char *value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
CreateThreatIntelSetRequest & WithName(const Aws::String &value)
CreateThreatIntelSetRequest & WithLocation(const char *value)
CreateThreatIntelSetRequest & WithClientToken(const Aws::String &value)
CreateThreatIntelSetRequest & WithLocation(Aws::String &&value)
CreateThreatIntelSetRequest & AddTags(const char *key, Aws::String &&value)
CreateThreatIntelSetRequest & WithDetectorId(const char *value)
CreateThreatIntelSetRequest & WithLocation(const Aws::String &value)
CreateThreatIntelSetRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateThreatIntelSetRequest & WithName(const char *value)
CreateThreatIntelSetRequest & WithFormat(ThreatIntelSetFormat &&value)
CreateThreatIntelSetRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateThreatIntelSetRequest & AddTags(Aws::String &&key, const Aws::String &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