AWS SDK for C++

AWS SDK for C++ Version 1.11.638

Loading...
Searching...
No Matches
CreateInvestigationGroupRequest.h
1
6#pragma once
7#include <aws/aiops/AIOps_EXPORTS.h>
8#include <aws/aiops/AIOpsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/aiops/model/EncryptionConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/aiops/model/CrossAccountConfiguration.h>
14#include <utility>
15
16namespace Aws
17{
18namespace AIOps
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_AIOPS_API CreateInvestigationGroupRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateInvestigationGroup"; }
35
36 AWS_AIOPS_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template<typename NameT = Aws::String>
46 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
47 template<typename NameT = Aws::String>
48 CreateInvestigationGroupRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
50
52
61 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
62 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
63 template<typename RoleArnT = Aws::String>
64 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
65 template<typename RoleArnT = Aws::String>
66 CreateInvestigationGroupRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
68
70
78 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
79 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
80 template<typename EncryptionConfigurationT = EncryptionConfiguration>
81 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value); }
82 template<typename EncryptionConfigurationT = EncryptionConfiguration>
83 CreateInvestigationGroupRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) { SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value)); return *this;}
85
87
94 inline long long GetRetentionInDays() const { return m_retentionInDays; }
95 inline bool RetentionInDaysHasBeenSet() const { return m_retentionInDaysHasBeenSet; }
96 inline void SetRetentionInDays(long long value) { m_retentionInDaysHasBeenSet = true; m_retentionInDays = value; }
97 inline CreateInvestigationGroupRequest& WithRetentionInDays(long long value) { SetRetentionInDays(value); return *this;}
99
101
110 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
111 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
112 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
113 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
114 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
115 CreateInvestigationGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
116 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
117 CreateInvestigationGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
118 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
119 }
121
123
136 inline const Aws::Vector<Aws::String>& GetTagKeyBoundaries() const { return m_tagKeyBoundaries; }
137 inline bool TagKeyBoundariesHasBeenSet() const { return m_tagKeyBoundariesHasBeenSet; }
138 template<typename TagKeyBoundariesT = Aws::Vector<Aws::String>>
139 void SetTagKeyBoundaries(TagKeyBoundariesT&& value) { m_tagKeyBoundariesHasBeenSet = true; m_tagKeyBoundaries = std::forward<TagKeyBoundariesT>(value); }
140 template<typename TagKeyBoundariesT = Aws::Vector<Aws::String>>
141 CreateInvestigationGroupRequest& WithTagKeyBoundaries(TagKeyBoundariesT&& value) { SetTagKeyBoundaries(std::forward<TagKeyBoundariesT>(value)); return *this;}
142 template<typename TagKeyBoundariesT = Aws::String>
143 CreateInvestigationGroupRequest& AddTagKeyBoundaries(TagKeyBoundariesT&& value) { m_tagKeyBoundariesHasBeenSet = true; m_tagKeyBoundaries.emplace_back(std::forward<TagKeyBoundariesT>(value)); return *this; }
145
147
158 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetChatbotNotificationChannel() const { return m_chatbotNotificationChannel; }
159 inline bool ChatbotNotificationChannelHasBeenSet() const { return m_chatbotNotificationChannelHasBeenSet; }
160 template<typename ChatbotNotificationChannelT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
161 void SetChatbotNotificationChannel(ChatbotNotificationChannelT&& value) { m_chatbotNotificationChannelHasBeenSet = true; m_chatbotNotificationChannel = std::forward<ChatbotNotificationChannelT>(value); }
162 template<typename ChatbotNotificationChannelT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
163 CreateInvestigationGroupRequest& WithChatbotNotificationChannel(ChatbotNotificationChannelT&& value) { SetChatbotNotificationChannel(std::forward<ChatbotNotificationChannelT>(value)); return *this;}
164 template<typename ChatbotNotificationChannelKeyT = Aws::String, typename ChatbotNotificationChannelValueT = Aws::Vector<Aws::String>>
165 CreateInvestigationGroupRequest& AddChatbotNotificationChannel(ChatbotNotificationChannelKeyT&& key, ChatbotNotificationChannelValueT&& value) {
166 m_chatbotNotificationChannelHasBeenSet = true; m_chatbotNotificationChannel.emplace(std::forward<ChatbotNotificationChannelKeyT>(key), std::forward<ChatbotNotificationChannelValueT>(value)); return *this;
167 }
169
171
176 inline bool GetIsCloudTrailEventHistoryEnabled() const { return m_isCloudTrailEventHistoryEnabled; }
177 inline bool IsCloudTrailEventHistoryEnabledHasBeenSet() const { return m_isCloudTrailEventHistoryEnabledHasBeenSet; }
178 inline void SetIsCloudTrailEventHistoryEnabled(bool value) { m_isCloudTrailEventHistoryEnabledHasBeenSet = true; m_isCloudTrailEventHistoryEnabled = value; }
181
183
187 inline const Aws::Vector<CrossAccountConfiguration>& GetCrossAccountConfigurations() const { return m_crossAccountConfigurations; }
188 inline bool CrossAccountConfigurationsHasBeenSet() const { return m_crossAccountConfigurationsHasBeenSet; }
189 template<typename CrossAccountConfigurationsT = Aws::Vector<CrossAccountConfiguration>>
190 void SetCrossAccountConfigurations(CrossAccountConfigurationsT&& value) { m_crossAccountConfigurationsHasBeenSet = true; m_crossAccountConfigurations = std::forward<CrossAccountConfigurationsT>(value); }
191 template<typename CrossAccountConfigurationsT = Aws::Vector<CrossAccountConfiguration>>
192 CreateInvestigationGroupRequest& WithCrossAccountConfigurations(CrossAccountConfigurationsT&& value) { SetCrossAccountConfigurations(std::forward<CrossAccountConfigurationsT>(value)); return *this;}
193 template<typename CrossAccountConfigurationsT = CrossAccountConfiguration>
194 CreateInvestigationGroupRequest& AddCrossAccountConfigurations(CrossAccountConfigurationsT&& value) { m_crossAccountConfigurationsHasBeenSet = true; m_crossAccountConfigurations.emplace_back(std::forward<CrossAccountConfigurationsT>(value)); return *this; }
196 private:
197
198 Aws::String m_name;
199 bool m_nameHasBeenSet = false;
200
201 Aws::String m_roleArn;
202 bool m_roleArnHasBeenSet = false;
203
204 EncryptionConfiguration m_encryptionConfiguration;
205 bool m_encryptionConfigurationHasBeenSet = false;
206
207 long long m_retentionInDays{0};
208 bool m_retentionInDaysHasBeenSet = false;
209
211 bool m_tagsHasBeenSet = false;
212
213 Aws::Vector<Aws::String> m_tagKeyBoundaries;
214 bool m_tagKeyBoundariesHasBeenSet = false;
215
216 Aws::Map<Aws::String, Aws::Vector<Aws::String>> m_chatbotNotificationChannel;
217 bool m_chatbotNotificationChannelHasBeenSet = false;
218
219 bool m_isCloudTrailEventHistoryEnabled{false};
220 bool m_isCloudTrailEventHistoryEnabledHasBeenSet = false;
221
222 Aws::Vector<CrossAccountConfiguration> m_crossAccountConfigurations;
223 bool m_crossAccountConfigurationsHasBeenSet = false;
224 };
225
226} // namespace Model
227} // namespace AIOps
228} // namespace Aws
const Aws::Vector< Aws::String > & GetTagKeyBoundaries() const
CreateInvestigationGroupRequest & AddTagKeyBoundaries(TagKeyBoundariesT &&value)
CreateInvestigationGroupRequest & WithTagKeyBoundaries(TagKeyBoundariesT &&value)
CreateInvestigationGroupRequest & WithChatbotNotificationChannel(ChatbotNotificationChannelT &&value)
CreateInvestigationGroupRequest & WithRetentionInDays(long long value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetChatbotNotificationChannel() const
const Aws::Vector< CrossAccountConfiguration > & GetCrossAccountConfigurations() const
CreateInvestigationGroupRequest & WithName(NameT &&value)
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
CreateInvestigationGroupRequest & WithIsCloudTrailEventHistoryEnabled(bool value)
CreateInvestigationGroupRequest & AddChatbotNotificationChannel(ChatbotNotificationChannelKeyT &&key, ChatbotNotificationChannelValueT &&value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
void SetChatbotNotificationChannel(ChatbotNotificationChannelT &&value)
CreateInvestigationGroupRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateInvestigationGroupRequest & WithCrossAccountConfigurations(CrossAccountConfigurationsT &&value)
CreateInvestigationGroupRequest & WithRoleArn(RoleArnT &&value)
CreateInvestigationGroupRequest & AddCrossAccountConfigurations(CrossAccountConfigurationsT &&value)
void SetCrossAccountConfigurations(CrossAccountConfigurationsT &&value)
AWS_AIOPS_API Aws::String SerializePayload() const override
CreateInvestigationGroupRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateInvestigationGroupRequest & WithEncryptionConfiguration(EncryptionConfigurationT &&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
std::vector< T, Aws::Allocator< T > > Vector