AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutInsightSelectorsRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/CloudTrailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cloudtrail/model/InsightSelector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudTrail
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDTRAIL_API PutInsightSelectorsRequest() = 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 "PutInsightSelectors"; }
33
34 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
35
37
38
40
45 inline const Aws::String& GetTrailName() const { return m_trailName; }
46 inline bool TrailNameHasBeenSet() const { return m_trailNameHasBeenSet; }
47 template<typename TrailNameT = Aws::String>
48 void SetTrailName(TrailNameT&& value) { m_trailNameHasBeenSet = true; m_trailName = std::forward<TrailNameT>(value); }
49 template<typename TrailNameT = Aws::String>
50 PutInsightSelectorsRequest& WithTrailName(TrailNameT&& value) { SetTrailName(std::forward<TrailNameT>(value)); return *this;}
52
54
64 inline const Aws::Vector<InsightSelector>& GetInsightSelectors() const { return m_insightSelectors; }
65 inline bool InsightSelectorsHasBeenSet() const { return m_insightSelectorsHasBeenSet; }
66 template<typename InsightSelectorsT = Aws::Vector<InsightSelector>>
67 void SetInsightSelectors(InsightSelectorsT&& value) { m_insightSelectorsHasBeenSet = true; m_insightSelectors = std::forward<InsightSelectorsT>(value); }
68 template<typename InsightSelectorsT = Aws::Vector<InsightSelector>>
69 PutInsightSelectorsRequest& WithInsightSelectors(InsightSelectorsT&& value) { SetInsightSelectors(std::forward<InsightSelectorsT>(value)); return *this;}
70 template<typename InsightSelectorsT = InsightSelector>
71 PutInsightSelectorsRequest& AddInsightSelectors(InsightSelectorsT&& value) { m_insightSelectorsHasBeenSet = true; m_insightSelectors.emplace_back(std::forward<InsightSelectorsT>(value)); return *this; }
73
75
82 inline const Aws::String& GetEventDataStore() const { return m_eventDataStore; }
83 inline bool EventDataStoreHasBeenSet() const { return m_eventDataStoreHasBeenSet; }
84 template<typename EventDataStoreT = Aws::String>
85 void SetEventDataStore(EventDataStoreT&& value) { m_eventDataStoreHasBeenSet = true; m_eventDataStore = std::forward<EventDataStoreT>(value); }
86 template<typename EventDataStoreT = Aws::String>
87 PutInsightSelectorsRequest& WithEventDataStore(EventDataStoreT&& value) { SetEventDataStore(std::forward<EventDataStoreT>(value)); return *this;}
89
91
98 inline const Aws::String& GetInsightsDestination() const { return m_insightsDestination; }
99 inline bool InsightsDestinationHasBeenSet() const { return m_insightsDestinationHasBeenSet; }
100 template<typename InsightsDestinationT = Aws::String>
101 void SetInsightsDestination(InsightsDestinationT&& value) { m_insightsDestinationHasBeenSet = true; m_insightsDestination = std::forward<InsightsDestinationT>(value); }
102 template<typename InsightsDestinationT = Aws::String>
103 PutInsightSelectorsRequest& WithInsightsDestination(InsightsDestinationT&& value) { SetInsightsDestination(std::forward<InsightsDestinationT>(value)); return *this;}
105 private:
106
107 Aws::String m_trailName;
108 bool m_trailNameHasBeenSet = false;
109
110 Aws::Vector<InsightSelector> m_insightSelectors;
111 bool m_insightSelectorsHasBeenSet = false;
112
113 Aws::String m_eventDataStore;
114 bool m_eventDataStoreHasBeenSet = false;
115
116 Aws::String m_insightsDestination;
117 bool m_insightsDestinationHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace CloudTrail
122} // 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