AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
PutInsightSelectorsResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/model/InsightSelector.h>
9#include <aws/core/http/HttpResponse.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 {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CloudTrail {
25namespace Model {
27 public:
28 AWS_CLOUDTRAIL_API PutInsightSelectorsResult() = default;
31
33
37 inline const Aws::String& GetTrailARN() const { return m_trailARN; }
38 template <typename TrailARNT = Aws::String>
39 void SetTrailARN(TrailARNT&& value) {
40 m_trailARNHasBeenSet = true;
41 m_trailARN = std::forward<TrailARNT>(value);
42 }
43 template <typename TrailARNT = Aws::String>
45 SetTrailARN(std::forward<TrailARNT>(value));
46 return *this;
47 }
49
51
58 inline const Aws::Vector<InsightSelector>& GetInsightSelectors() const { return m_insightSelectors; }
59 template <typename InsightSelectorsT = Aws::Vector<InsightSelector>>
60 void SetInsightSelectors(InsightSelectorsT&& value) {
61 m_insightSelectorsHasBeenSet = true;
62 m_insightSelectors = std::forward<InsightSelectorsT>(value);
63 }
64 template <typename InsightSelectorsT = Aws::Vector<InsightSelector>>
65 PutInsightSelectorsResult& WithInsightSelectors(InsightSelectorsT&& value) {
66 SetInsightSelectors(std::forward<InsightSelectorsT>(value));
67 return *this;
68 }
69 template <typename InsightSelectorsT = InsightSelector>
70 PutInsightSelectorsResult& AddInsightSelectors(InsightSelectorsT&& value) {
71 m_insightSelectorsHasBeenSet = true;
72 m_insightSelectors.emplace_back(std::forward<InsightSelectorsT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetEventDataStoreArn() const { return m_eventDataStoreArn; }
83 template <typename EventDataStoreArnT = Aws::String>
84 void SetEventDataStoreArn(EventDataStoreArnT&& value) {
85 m_eventDataStoreArnHasBeenSet = true;
86 m_eventDataStoreArn = std::forward<EventDataStoreArnT>(value);
87 }
88 template <typename EventDataStoreArnT = Aws::String>
89 PutInsightSelectorsResult& WithEventDataStoreArn(EventDataStoreArnT&& value) {
90 SetEventDataStoreArn(std::forward<EventDataStoreArnT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetInsightsDestination() const { return m_insightsDestination; }
100 template <typename InsightsDestinationT = Aws::String>
101 void SetInsightsDestination(InsightsDestinationT&& value) {
102 m_insightsDestinationHasBeenSet = true;
103 m_insightsDestination = std::forward<InsightsDestinationT>(value);
104 }
105 template <typename InsightsDestinationT = Aws::String>
106 PutInsightSelectorsResult& WithInsightsDestination(InsightsDestinationT&& value) {
107 SetInsightsDestination(std::forward<InsightsDestinationT>(value));
108 return *this;
109 }
111
113
114 inline const Aws::String& GetRequestId() const { return m_requestId; }
115 template <typename RequestIdT = Aws::String>
116 void SetRequestId(RequestIdT&& value) {
117 m_requestIdHasBeenSet = true;
118 m_requestId = std::forward<RequestIdT>(value);
119 }
120 template <typename RequestIdT = Aws::String>
122 SetRequestId(std::forward<RequestIdT>(value));
123 return *this;
124 }
126 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
127
128 private:
129 Aws::String m_trailARN;
130
131 Aws::Vector<InsightSelector> m_insightSelectors;
132
133 Aws::String m_eventDataStoreArn;
134
135 Aws::String m_insightsDestination;
136
137 Aws::String m_requestId;
138 Aws::Http::HttpResponseCode m_HttpResponseCode;
139 bool m_trailARNHasBeenSet = false;
140 bool m_insightSelectorsHasBeenSet = false;
141 bool m_eventDataStoreArnHasBeenSet = false;
142 bool m_insightsDestinationHasBeenSet = false;
143 bool m_requestIdHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace CloudTrail
148} // namespace Aws
const Aws::Vector< InsightSelector > & GetInsightSelectors() const
AWS_CLOUDTRAIL_API PutInsightSelectorsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutInsightSelectorsResult & WithEventDataStoreArn(EventDataStoreArnT &&value)
AWS_CLOUDTRAIL_API PutInsightSelectorsResult()=default
PutInsightSelectorsResult & AddInsightSelectors(InsightSelectorsT &&value)
PutInsightSelectorsResult & WithTrailARN(TrailARNT &&value)
AWS_CLOUDTRAIL_API PutInsightSelectorsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutInsightSelectorsResult & WithInsightSelectors(InsightSelectorsT &&value)
PutInsightSelectorsResult & WithRequestId(RequestIdT &&value)
PutInsightSelectorsResult & WithInsightsDestination(InsightsDestinationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue