AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateDetectorRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/guardduty/GuardDutyRequest.h>
12#include <aws/guardduty/GuardDuty_EXPORTS.h>
13#include <aws/guardduty/model/DetectorFeatureConfiguration.h>
14#include <aws/guardduty/model/FindingPublishingFrequency.h>
15
16#include <utility>
17
18namespace Aws {
19namespace GuardDuty {
20namespace Model {
21
25 public:
26 AWS_GUARDDUTY_API CreateDetectorRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateDetector"; }
33
34 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
35
37
40 inline bool GetEnable() const { return m_enable; }
41 inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
42 inline void SetEnable(bool value) {
43 m_enableHasBeenSet = true;
44 m_enable = value;
45 }
46 inline CreateDetectorRequest& WithEnable(bool value) {
47 SetEnable(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetClientToken() const { return m_clientToken; }
57 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
58 template <typename ClientTokenT = Aws::String>
59 void SetClientToken(ClientTokenT&& value) {
60 m_clientTokenHasBeenSet = true;
61 m_clientToken = std::forward<ClientTokenT>(value);
62 }
63 template <typename ClientTokenT = Aws::String>
64 CreateDetectorRequest& WithClientToken(ClientTokenT&& value) {
65 SetClientToken(std::forward<ClientTokenT>(value));
66 return *this;
67 }
69
71
74 inline FindingPublishingFrequency GetFindingPublishingFrequency() const { return m_findingPublishingFrequency; }
75 inline bool FindingPublishingFrequencyHasBeenSet() const { return m_findingPublishingFrequencyHasBeenSet; }
77 m_findingPublishingFrequencyHasBeenSet = true;
78 m_findingPublishingFrequency = value;
79 }
82 return *this;
83 }
85
87
90 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
91 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
93 void SetTags(TagsT&& value) {
94 m_tagsHasBeenSet = true;
95 m_tags = std::forward<TagsT>(value);
96 }
97 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
99 SetTags(std::forward<TagsT>(value));
100 return *this;
101 }
102 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
103 CreateDetectorRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
104 m_tagsHasBeenSet = true;
105 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<DetectorFeatureConfiguration>& GetFeatures() const { return m_features; }
115 inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; }
116 template <typename FeaturesT = Aws::Vector<DetectorFeatureConfiguration>>
117 void SetFeatures(FeaturesT&& value) {
118 m_featuresHasBeenSet = true;
119 m_features = std::forward<FeaturesT>(value);
120 }
121 template <typename FeaturesT = Aws::Vector<DetectorFeatureConfiguration>>
123 SetFeatures(std::forward<FeaturesT>(value));
124 return *this;
125 }
126 template <typename FeaturesT = DetectorFeatureConfiguration>
127 CreateDetectorRequest& AddFeatures(FeaturesT&& value) {
128 m_featuresHasBeenSet = true;
129 m_features.emplace_back(std::forward<FeaturesT>(value));
130 return *this;
131 }
133 private:
134 bool m_enable{false};
135
137
139
141
143 bool m_enableHasBeenSet = false;
144 bool m_clientTokenHasBeenSet = true;
145 bool m_findingPublishingFrequencyHasBeenSet = false;
146 bool m_tagsHasBeenSet = false;
147 bool m_featuresHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace GuardDuty
152} // namespace Aws
CreateDetectorRequest & WithEnable(bool value)
CreateDetectorRequest & WithFindingPublishingFrequency(FindingPublishingFrequency value)
CreateDetectorRequest & WithClientToken(ClientTokenT &&value)
CreateDetectorRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
const Aws::Vector< DetectorFeatureConfiguration > & GetFeatures() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDetectorRequest & WithFeatures(FeaturesT &&value)
CreateDetectorRequest & AddFeatures(FeaturesT &&value)
FindingPublishingFrequency GetFindingPublishingFrequency() const
AWS_GUARDDUTY_API CreateDetectorRequest()=default
CreateDetectorRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
void SetFindingPublishingFrequency(FindingPublishingFrequency 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
std::vector< T, Aws::Allocator< T > > Vector