AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
PutInsightSelectorsRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrailRequest.h>
8#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
9#include <aws/cloudtrail/model/InsightSelector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CloudTrail {
17namespace Model {
18
22 public:
23 AWS_CLOUDTRAIL_API PutInsightSelectorsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "PutInsightSelectors"; }
30
31 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
32
34
36
41 inline const Aws::String& GetTrailName() const { return m_trailName; }
42 inline bool TrailNameHasBeenSet() const { return m_trailNameHasBeenSet; }
43 template <typename TrailNameT = Aws::String>
44 void SetTrailName(TrailNameT&& value) {
45 m_trailNameHasBeenSet = true;
46 m_trailName = std::forward<TrailNameT>(value);
47 }
48 template <typename TrailNameT = Aws::String>
50 SetTrailName(std::forward<TrailNameT>(value));
51 return *this;
52 }
54
56
68 inline const Aws::Vector<InsightSelector>& GetInsightSelectors() const { return m_insightSelectors; }
69 inline bool InsightSelectorsHasBeenSet() const { return m_insightSelectorsHasBeenSet; }
70 template <typename InsightSelectorsT = Aws::Vector<InsightSelector>>
71 void SetInsightSelectors(InsightSelectorsT&& value) {
72 m_insightSelectorsHasBeenSet = true;
73 m_insightSelectors = std::forward<InsightSelectorsT>(value);
74 }
75 template <typename InsightSelectorsT = Aws::Vector<InsightSelector>>
77 SetInsightSelectors(std::forward<InsightSelectorsT>(value));
78 return *this;
79 }
80 template <typename InsightSelectorsT = InsightSelector>
81 PutInsightSelectorsRequest& AddInsightSelectors(InsightSelectorsT&& value) {
82 m_insightSelectorsHasBeenSet = true;
83 m_insightSelectors.emplace_back(std::forward<InsightSelectorsT>(value));
84 return *this;
85 }
87
89
96 inline const Aws::String& GetEventDataStore() const { return m_eventDataStore; }
97 inline bool EventDataStoreHasBeenSet() const { return m_eventDataStoreHasBeenSet; }
98 template <typename EventDataStoreT = Aws::String>
99 void SetEventDataStore(EventDataStoreT&& value) {
100 m_eventDataStoreHasBeenSet = true;
101 m_eventDataStore = std::forward<EventDataStoreT>(value);
102 }
103 template <typename EventDataStoreT = Aws::String>
105 SetEventDataStore(std::forward<EventDataStoreT>(value));
106 return *this;
107 }
109
111
118 inline const Aws::String& GetInsightsDestination() const { return m_insightsDestination; }
119 inline bool InsightsDestinationHasBeenSet() const { return m_insightsDestinationHasBeenSet; }
120 template <typename InsightsDestinationT = Aws::String>
121 void SetInsightsDestination(InsightsDestinationT&& value) {
122 m_insightsDestinationHasBeenSet = true;
123 m_insightsDestination = std::forward<InsightsDestinationT>(value);
124 }
125 template <typename InsightsDestinationT = Aws::String>
127 SetInsightsDestination(std::forward<InsightsDestinationT>(value));
128 return *this;
129 }
131 private:
132 Aws::String m_trailName;
133
134 Aws::Vector<InsightSelector> m_insightSelectors;
135
136 Aws::String m_eventDataStore;
137
138 Aws::String m_insightsDestination;
139 bool m_trailNameHasBeenSet = false;
140 bool m_insightSelectorsHasBeenSet = false;
141 bool m_eventDataStoreHasBeenSet = false;
142 bool m_insightsDestinationHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace CloudTrail
147} // namespace Aws
PutInsightSelectorsRequest & WithTrailName(TrailNameT &&value)
PutInsightSelectorsRequest & WithInsightSelectors(InsightSelectorsT &&value)
const Aws::Vector< InsightSelector > & GetInsightSelectors() const
PutInsightSelectorsRequest & WithInsightsDestination(InsightsDestinationT &&value)
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDTRAIL_API PutInsightSelectorsRequest()=default
PutInsightSelectorsRequest & AddInsightSelectors(InsightSelectorsT &&value)
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
PutInsightSelectorsRequest & WithEventDataStore(EventDataStoreT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector