AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDetectorRequest.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/FindingPublishingFrequency.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/guardduty/model/DetectorFeatureConfiguration.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace GuardDuty
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_GUARDDUTY_API CreateDetectorRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateDetector"; }
36
37 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
38
39
41
44 inline bool GetEnable() const { return m_enable; }
45 inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
46 inline void SetEnable(bool value) { m_enableHasBeenSet = true; m_enable = value; }
47 inline CreateDetectorRequest& WithEnable(bool value) { SetEnable(value); return *this;}
49
51
54 inline const Aws::String& GetClientToken() const { return m_clientToken; }
55 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
56 template<typename ClientTokenT = Aws::String>
57 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
58 template<typename ClientTokenT = Aws::String>
59 CreateDetectorRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
61
63
66 inline FindingPublishingFrequency GetFindingPublishingFrequency() const { return m_findingPublishingFrequency; }
67 inline bool FindingPublishingFrequencyHasBeenSet() const { return m_findingPublishingFrequencyHasBeenSet; }
68 inline void SetFindingPublishingFrequency(FindingPublishingFrequency value) { m_findingPublishingFrequencyHasBeenSet = true; m_findingPublishingFrequency = value; }
71
73
76 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
77 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
78 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
79 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
80 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
81 CreateDetectorRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
82 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
83 CreateDetectorRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
84 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
85 }
87
89
92 inline const Aws::Vector<DetectorFeatureConfiguration>& GetFeatures() const { return m_features; }
93 inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; }
94 template<typename FeaturesT = Aws::Vector<DetectorFeatureConfiguration>>
95 void SetFeatures(FeaturesT&& value) { m_featuresHasBeenSet = true; m_features = std::forward<FeaturesT>(value); }
96 template<typename FeaturesT = Aws::Vector<DetectorFeatureConfiguration>>
97 CreateDetectorRequest& WithFeatures(FeaturesT&& value) { SetFeatures(std::forward<FeaturesT>(value)); return *this;}
98 template<typename FeaturesT = DetectorFeatureConfiguration>
99 CreateDetectorRequest& AddFeatures(FeaturesT&& value) { m_featuresHasBeenSet = true; m_features.emplace_back(std::forward<FeaturesT>(value)); return *this; }
101 private:
102
103 bool m_enable{false};
104 bool m_enableHasBeenSet = false;
105
107 bool m_clientTokenHasBeenSet = true;
108
110 bool m_findingPublishingFrequencyHasBeenSet = false;
111
113 bool m_tagsHasBeenSet = false;
114
116 bool m_featuresHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace GuardDuty
121} // 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