AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
57 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
58 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
59 inline CreateDetectorRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
60 inline CreateDetectorRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
61 inline CreateDetectorRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
63
65
68 inline const FindingPublishingFrequency& GetFindingPublishingFrequency() const{ return m_findingPublishingFrequency; }
69 inline bool FindingPublishingFrequencyHasBeenSet() const { return m_findingPublishingFrequencyHasBeenSet; }
70 inline void SetFindingPublishingFrequency(const FindingPublishingFrequency& value) { m_findingPublishingFrequencyHasBeenSet = true; m_findingPublishingFrequency = value; }
71 inline void SetFindingPublishingFrequency(FindingPublishingFrequency&& value) { m_findingPublishingFrequencyHasBeenSet = true; m_findingPublishingFrequency = std::move(value); }
75
77
80 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
81 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
82 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
83 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
84 inline CreateDetectorRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
85 inline CreateDetectorRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
86 inline CreateDetectorRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
87 inline CreateDetectorRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
88 inline CreateDetectorRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
89 inline CreateDetectorRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
90 inline CreateDetectorRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
91 inline CreateDetectorRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
92 inline CreateDetectorRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
94
96
99 inline const Aws::Vector<DetectorFeatureConfiguration>& GetFeatures() const{ return m_features; }
100 inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; }
101 inline void SetFeatures(const Aws::Vector<DetectorFeatureConfiguration>& value) { m_featuresHasBeenSet = true; m_features = value; }
102 inline void SetFeatures(Aws::Vector<DetectorFeatureConfiguration>&& value) { m_featuresHasBeenSet = true; m_features = std::move(value); }
105 inline CreateDetectorRequest& AddFeatures(const DetectorFeatureConfiguration& value) { m_featuresHasBeenSet = true; m_features.push_back(value); return *this; }
106 inline CreateDetectorRequest& AddFeatures(DetectorFeatureConfiguration&& value) { m_featuresHasBeenSet = true; m_features.push_back(std::move(value)); return *this; }
108 private:
109
110 bool m_enable;
111 bool m_enableHasBeenSet = false;
112
113 Aws::String m_clientToken;
114 bool m_clientTokenHasBeenSet = false;
115
116 FindingPublishingFrequency m_findingPublishingFrequency;
117 bool m_findingPublishingFrequencyHasBeenSet = false;
118
120 bool m_tagsHasBeenSet = false;
121
123 bool m_featuresHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace GuardDuty
128} // namespace Aws
CreateDetectorRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateDetectorRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetFindingPublishingFrequency(FindingPublishingFrequency &&value)
CreateDetectorRequest & WithClientToken(const char *value)
CreateDetectorRequest & WithEnable(bool value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
CreateDetectorRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetFeatures(Aws::Vector< DetectorFeatureConfiguration > &&value)
const Aws::Vector< DetectorFeatureConfiguration > & GetFeatures() const
CreateDetectorRequest & AddFeatures(DetectorFeatureConfiguration &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDetectorRequest & AddFeatures(const DetectorFeatureConfiguration &value)
CreateDetectorRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateDetectorRequest & WithFindingPublishingFrequency(const FindingPublishingFrequency &value)
virtual const char * GetServiceRequestName() const override
CreateDetectorRequest & WithClientToken(Aws::String &&value)
const FindingPublishingFrequency & GetFindingPublishingFrequency() const
CreateDetectorRequest & WithFindingPublishingFrequency(FindingPublishingFrequency &&value)
CreateDetectorRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateDetectorRequest & AddTags(Aws::String &&key, const char *value)
void SetFindingPublishingFrequency(const FindingPublishingFrequency &value)
CreateDetectorRequest & AddTags(const char *key, Aws::String &&value)
void SetFeatures(const Aws::Vector< DetectorFeatureConfiguration > &value)
CreateDetectorRequest & WithFeatures(Aws::Vector< DetectorFeatureConfiguration > &&value)
CreateDetectorRequest & WithFeatures(const Aws::Vector< DetectorFeatureConfiguration > &value)
CreateDetectorRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateDetectorRequest & AddTags(const char *key, const char *value)
CreateDetectorRequest & WithClientToken(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
std::vector< T, Aws::Allocator< T > > Vector