AWS SDK for C++

AWS SDK for C++ Version 1.11.678

Loading...
Searching...
No Matches
GetTraceSummariesRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/xray/XRayRequest.h>
10#include <aws/xray/XRay_EXPORTS.h>
11#include <aws/xray/model/SamplingStrategy.h>
12#include <aws/xray/model/TimeRangeType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace XRay {
18namespace Model {
19
23 public:
24 AWS_XRAY_API GetTraceSummariesRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetTraceSummaries"; }
31
32 AWS_XRAY_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
39 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
40 template <typename StartTimeT = Aws::Utils::DateTime>
41 void SetStartTime(StartTimeT&& value) {
42 m_startTimeHasBeenSet = true;
43 m_startTime = std::forward<StartTimeT>(value);
44 }
45 template <typename StartTimeT = Aws::Utils::DateTime>
47 SetStartTime(std::forward<StartTimeT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
57 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
58 template <typename EndTimeT = Aws::Utils::DateTime>
59 void SetEndTime(EndTimeT&& value) {
60 m_endTimeHasBeenSet = true;
61 m_endTime = std::forward<EndTimeT>(value);
62 }
63 template <typename EndTimeT = Aws::Utils::DateTime>
65 SetEndTime(std::forward<EndTimeT>(value));
66 return *this;
67 }
69
71
75 inline TimeRangeType GetTimeRangeType() const { return m_timeRangeType; }
76 inline bool TimeRangeTypeHasBeenSet() const { return m_timeRangeTypeHasBeenSet; }
77 inline void SetTimeRangeType(TimeRangeType value) {
78 m_timeRangeTypeHasBeenSet = true;
79 m_timeRangeType = value;
80 }
82 SetTimeRangeType(value);
83 return *this;
84 }
86
88
92 inline bool GetSampling() const { return m_sampling; }
93 inline bool SamplingHasBeenSet() const { return m_samplingHasBeenSet; }
94 inline void SetSampling(bool value) {
95 m_samplingHasBeenSet = true;
96 m_sampling = value;
97 }
99 SetSampling(value);
100 return *this;
101 }
103
105
109 inline const SamplingStrategy& GetSamplingStrategy() const { return m_samplingStrategy; }
110 inline bool SamplingStrategyHasBeenSet() const { return m_samplingStrategyHasBeenSet; }
111 template <typename SamplingStrategyT = SamplingStrategy>
112 void SetSamplingStrategy(SamplingStrategyT&& value) {
113 m_samplingStrategyHasBeenSet = true;
114 m_samplingStrategy = std::forward<SamplingStrategyT>(value);
115 }
116 template <typename SamplingStrategyT = SamplingStrategy>
117 GetTraceSummariesRequest& WithSamplingStrategy(SamplingStrategyT&& value) {
118 SetSamplingStrategy(std::forward<SamplingStrategyT>(value));
119 return *this;
120 }
122
124
128 inline const Aws::String& GetFilterExpression() const { return m_filterExpression; }
129 inline bool FilterExpressionHasBeenSet() const { return m_filterExpressionHasBeenSet; }
130 template <typename FilterExpressionT = Aws::String>
131 void SetFilterExpression(FilterExpressionT&& value) {
132 m_filterExpressionHasBeenSet = true;
133 m_filterExpression = std::forward<FilterExpressionT>(value);
134 }
135 template <typename FilterExpressionT = Aws::String>
136 GetTraceSummariesRequest& WithFilterExpression(FilterExpressionT&& value) {
137 SetFilterExpression(std::forward<FilterExpressionT>(value));
138 return *this;
139 }
141
143
147 inline const Aws::String& GetNextToken() const { return m_nextToken; }
148 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
149 template <typename NextTokenT = Aws::String>
150 void SetNextToken(NextTokenT&& value) {
151 m_nextTokenHasBeenSet = true;
152 m_nextToken = std::forward<NextTokenT>(value);
153 }
154 template <typename NextTokenT = Aws::String>
156 SetNextToken(std::forward<NextTokenT>(value));
157 return *this;
158 }
160 private:
161 Aws::Utils::DateTime m_startTime{};
162 bool m_startTimeHasBeenSet = false;
163
164 Aws::Utils::DateTime m_endTime{};
165 bool m_endTimeHasBeenSet = false;
166
167 TimeRangeType m_timeRangeType{TimeRangeType::NOT_SET};
168 bool m_timeRangeTypeHasBeenSet = false;
169
170 bool m_sampling{false};
171 bool m_samplingHasBeenSet = false;
172
173 SamplingStrategy m_samplingStrategy;
174 bool m_samplingStrategyHasBeenSet = false;
175
176 Aws::String m_filterExpression;
177 bool m_filterExpressionHasBeenSet = false;
178
179 Aws::String m_nextToken;
180 bool m_nextTokenHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace XRay
185} // namespace Aws
GetTraceSummariesRequest & WithStartTime(StartTimeT &&value)
void SetFilterExpression(FilterExpressionT &&value)
GetTraceSummariesRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
GetTraceSummariesRequest & WithFilterExpression(FilterExpressionT &&value)
const Aws::Utils::DateTime & GetEndTime() const
GetTraceSummariesRequest & WithEndTime(EndTimeT &&value)
AWS_XRAY_API GetTraceSummariesRequest()=default
GetTraceSummariesRequest & WithTimeRangeType(TimeRangeType value)
const Aws::Utils::DateTime & GetStartTime() const
GetTraceSummariesRequest & WithSamplingStrategy(SamplingStrategyT &&value)
GetTraceSummariesRequest & WithSampling(bool value)
AWS_XRAY_API Aws::String SerializePayload() const override
const SamplingStrategy & GetSamplingStrategy() const
void SetSamplingStrategy(SamplingStrategyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String