AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTrailName(const Aws::String& value) { m_trailNameHasBeenSet = true; m_trailName = value; }
48 inline void SetTrailName(Aws::String&& value) { m_trailNameHasBeenSet = true; m_trailName = std::move(value); }
49 inline void SetTrailName(const char* value) { m_trailNameHasBeenSet = true; m_trailName.assign(value); }
50 inline PutInsightSelectorsRequest& WithTrailName(const Aws::String& value) { SetTrailName(value); return *this;}
51 inline PutInsightSelectorsRequest& WithTrailName(Aws::String&& value) { SetTrailName(std::move(value)); return *this;}
52 inline PutInsightSelectorsRequest& WithTrailName(const char* value) { SetTrailName(value); return *this;}
54
56
66 inline const Aws::Vector<InsightSelector>& GetInsightSelectors() const{ return m_insightSelectors; }
67 inline bool InsightSelectorsHasBeenSet() const { return m_insightSelectorsHasBeenSet; }
68 inline void SetInsightSelectors(const Aws::Vector<InsightSelector>& value) { m_insightSelectorsHasBeenSet = true; m_insightSelectors = value; }
69 inline void SetInsightSelectors(Aws::Vector<InsightSelector>&& value) { m_insightSelectorsHasBeenSet = true; m_insightSelectors = std::move(value); }
72 inline PutInsightSelectorsRequest& AddInsightSelectors(const InsightSelector& value) { m_insightSelectorsHasBeenSet = true; m_insightSelectors.push_back(value); return *this; }
73 inline PutInsightSelectorsRequest& AddInsightSelectors(InsightSelector&& value) { m_insightSelectorsHasBeenSet = true; m_insightSelectors.push_back(std::move(value)); return *this; }
75
77
84 inline const Aws::String& GetEventDataStore() const{ return m_eventDataStore; }
85 inline bool EventDataStoreHasBeenSet() const { return m_eventDataStoreHasBeenSet; }
86 inline void SetEventDataStore(const Aws::String& value) { m_eventDataStoreHasBeenSet = true; m_eventDataStore = value; }
87 inline void SetEventDataStore(Aws::String&& value) { m_eventDataStoreHasBeenSet = true; m_eventDataStore = std::move(value); }
88 inline void SetEventDataStore(const char* value) { m_eventDataStoreHasBeenSet = true; m_eventDataStore.assign(value); }
89 inline PutInsightSelectorsRequest& WithEventDataStore(const Aws::String& value) { SetEventDataStore(value); return *this;}
90 inline PutInsightSelectorsRequest& WithEventDataStore(Aws::String&& value) { SetEventDataStore(std::move(value)); return *this;}
91 inline PutInsightSelectorsRequest& WithEventDataStore(const char* value) { SetEventDataStore(value); return *this;}
93
95
102 inline const Aws::String& GetInsightsDestination() const{ return m_insightsDestination; }
103 inline bool InsightsDestinationHasBeenSet() const { return m_insightsDestinationHasBeenSet; }
104 inline void SetInsightsDestination(const Aws::String& value) { m_insightsDestinationHasBeenSet = true; m_insightsDestination = value; }
105 inline void SetInsightsDestination(Aws::String&& value) { m_insightsDestinationHasBeenSet = true; m_insightsDestination = std::move(value); }
106 inline void SetInsightsDestination(const char* value) { m_insightsDestinationHasBeenSet = true; m_insightsDestination.assign(value); }
109 inline PutInsightSelectorsRequest& WithInsightsDestination(const char* value) { SetInsightsDestination(value); return *this;}
111 private:
112
113 Aws::String m_trailName;
114 bool m_trailNameHasBeenSet = false;
115
116 Aws::Vector<InsightSelector> m_insightSelectors;
117 bool m_insightSelectorsHasBeenSet = false;
118
119 Aws::String m_eventDataStore;
120 bool m_eventDataStoreHasBeenSet = false;
121
122 Aws::String m_insightsDestination;
123 bool m_insightsDestinationHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace CloudTrail
128} // namespace Aws
PutInsightSelectorsRequest & WithEventDataStore(const char *value)
PutInsightSelectorsRequest & WithInsightSelectors(Aws::Vector< InsightSelector > &&value)
const Aws::Vector< InsightSelector > & GetInsightSelectors() const
PutInsightSelectorsRequest & WithEventDataStore(const Aws::String &value)
PutInsightSelectorsRequest & WithTrailName(const Aws::String &value)
PutInsightSelectorsRequest & WithInsightsDestination(Aws::String &&value)
PutInsightSelectorsRequest & AddInsightSelectors(InsightSelector &&value)
PutInsightSelectorsRequest & AddInsightSelectors(const InsightSelector &value)
PutInsightSelectorsRequest & WithTrailName(Aws::String &&value)
void SetInsightSelectors(const Aws::Vector< InsightSelector > &value)
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutInsightSelectorsRequest & WithTrailName(const char *value)
PutInsightSelectorsRequest & WithInsightsDestination(const Aws::String &value)
PutInsightSelectorsRequest & WithInsightSelectors(const Aws::Vector< InsightSelector > &value)
PutInsightSelectorsRequest & WithInsightsDestination(const char *value)
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
void SetInsightSelectors(Aws::Vector< InsightSelector > &&value)
PutInsightSelectorsRequest & WithEventDataStore(Aws::String &&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