AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
GetSamplingTargetsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/xray/XRay_EXPORTS.h>
12#include <aws/xray/model/SamplingTargetDocument.h>
13#include <aws/xray/model/UnprocessedStatistics.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace XRay {
27namespace Model {
29 public:
30 AWS_XRAY_API GetSamplingTargetsResult() = default;
33
35
38 inline const Aws::Vector<SamplingTargetDocument>& GetSamplingTargetDocuments() const { return m_samplingTargetDocuments; }
39 template <typename SamplingTargetDocumentsT = Aws::Vector<SamplingTargetDocument>>
40 void SetSamplingTargetDocuments(SamplingTargetDocumentsT&& value) {
41 m_samplingTargetDocumentsHasBeenSet = true;
42 m_samplingTargetDocuments = std::forward<SamplingTargetDocumentsT>(value);
43 }
44 template <typename SamplingTargetDocumentsT = Aws::Vector<SamplingTargetDocument>>
45 GetSamplingTargetsResult& WithSamplingTargetDocuments(SamplingTargetDocumentsT&& value) {
46 SetSamplingTargetDocuments(std::forward<SamplingTargetDocumentsT>(value));
47 return *this;
48 }
49 template <typename SamplingTargetDocumentsT = SamplingTargetDocument>
50 GetSamplingTargetsResult& AddSamplingTargetDocuments(SamplingTargetDocumentsT&& value) {
51 m_samplingTargetDocumentsHasBeenSet = true;
52 m_samplingTargetDocuments.emplace_back(std::forward<SamplingTargetDocumentsT>(value));
53 return *this;
54 }
56
58
65 inline const Aws::Utils::DateTime& GetLastRuleModification() const { return m_lastRuleModification; }
66 template <typename LastRuleModificationT = Aws::Utils::DateTime>
67 void SetLastRuleModification(LastRuleModificationT&& value) {
68 m_lastRuleModificationHasBeenSet = true;
69 m_lastRuleModification = std::forward<LastRuleModificationT>(value);
70 }
71 template <typename LastRuleModificationT = Aws::Utils::DateTime>
72 GetSamplingTargetsResult& WithLastRuleModification(LastRuleModificationT&& value) {
73 SetLastRuleModification(std::forward<LastRuleModificationT>(value));
74 return *this;
75 }
77
79
84 inline const Aws::Vector<UnprocessedStatistics>& GetUnprocessedStatistics() const { return m_unprocessedStatistics; }
85 template <typename UnprocessedStatisticsT = Aws::Vector<UnprocessedStatistics>>
86 void SetUnprocessedStatistics(UnprocessedStatisticsT&& value) {
87 m_unprocessedStatisticsHasBeenSet = true;
88 m_unprocessedStatistics = std::forward<UnprocessedStatisticsT>(value);
89 }
90 template <typename UnprocessedStatisticsT = Aws::Vector<UnprocessedStatistics>>
91 GetSamplingTargetsResult& WithUnprocessedStatistics(UnprocessedStatisticsT&& value) {
92 SetUnprocessedStatistics(std::forward<UnprocessedStatisticsT>(value));
93 return *this;
94 }
95 template <typename UnprocessedStatisticsT = UnprocessedStatistics>
96 GetSamplingTargetsResult& AddUnprocessedStatistics(UnprocessedStatisticsT&& value) {
97 m_unprocessedStatisticsHasBeenSet = true;
98 m_unprocessedStatistics.emplace_back(std::forward<UnprocessedStatisticsT>(value));
99 return *this;
100 }
102
104
109 inline const Aws::Vector<UnprocessedStatistics>& GetUnprocessedBoostStatistics() const { return m_unprocessedBoostStatistics; }
110 template <typename UnprocessedBoostStatisticsT = Aws::Vector<UnprocessedStatistics>>
111 void SetUnprocessedBoostStatistics(UnprocessedBoostStatisticsT&& value) {
112 m_unprocessedBoostStatisticsHasBeenSet = true;
113 m_unprocessedBoostStatistics = std::forward<UnprocessedBoostStatisticsT>(value);
114 }
115 template <typename UnprocessedBoostStatisticsT = Aws::Vector<UnprocessedStatistics>>
116 GetSamplingTargetsResult& WithUnprocessedBoostStatistics(UnprocessedBoostStatisticsT&& value) {
117 SetUnprocessedBoostStatistics(std::forward<UnprocessedBoostStatisticsT>(value));
118 return *this;
119 }
120 template <typename UnprocessedBoostStatisticsT = UnprocessedStatistics>
121 GetSamplingTargetsResult& AddUnprocessedBoostStatistics(UnprocessedBoostStatisticsT&& value) {
122 m_unprocessedBoostStatisticsHasBeenSet = true;
123 m_unprocessedBoostStatistics.emplace_back(std::forward<UnprocessedBoostStatisticsT>(value));
124 return *this;
125 }
127
129
130 inline const Aws::String& GetRequestId() const { return m_requestId; }
131 template <typename RequestIdT = Aws::String>
132 void SetRequestId(RequestIdT&& value) {
133 m_requestIdHasBeenSet = true;
134 m_requestId = std::forward<RequestIdT>(value);
135 }
136 template <typename RequestIdT = Aws::String>
138 SetRequestId(std::forward<RequestIdT>(value));
139 return *this;
140 }
142 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
143
144 private:
145 Aws::Vector<SamplingTargetDocument> m_samplingTargetDocuments;
146
147 Aws::Utils::DateTime m_lastRuleModification{};
148
149 Aws::Vector<UnprocessedStatistics> m_unprocessedStatistics;
150
151 Aws::Vector<UnprocessedStatistics> m_unprocessedBoostStatistics;
152
153 Aws::String m_requestId;
154 Aws::Http::HttpResponseCode m_HttpResponseCode;
155 bool m_samplingTargetDocumentsHasBeenSet = false;
156 bool m_lastRuleModificationHasBeenSet = false;
157 bool m_unprocessedStatisticsHasBeenSet = false;
158 bool m_unprocessedBoostStatisticsHasBeenSet = false;
159 bool m_requestIdHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace XRay
164} // namespace Aws
AWS_XRAY_API GetSamplingTargetsResult()=default
GetSamplingTargetsResult & AddUnprocessedBoostStatistics(UnprocessedBoostStatisticsT &&value)
AWS_XRAY_API GetSamplingTargetsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSamplingTargetsResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetUnprocessedStatistics(UnprocessedStatisticsT &&value)
GetSamplingTargetsResult & AddUnprocessedStatistics(UnprocessedStatisticsT &&value)
GetSamplingTargetsResult & WithUnprocessedBoostStatistics(UnprocessedBoostStatisticsT &&value)
void SetUnprocessedBoostStatistics(UnprocessedBoostStatisticsT &&value)
const Aws::Vector< UnprocessedStatistics > & GetUnprocessedStatistics() const
GetSamplingTargetsResult & WithLastRuleModification(LastRuleModificationT &&value)
const Aws::Vector< UnprocessedStatistics > & GetUnprocessedBoostStatistics() const
void SetSamplingTargetDocuments(SamplingTargetDocumentsT &&value)
GetSamplingTargetsResult & WithSamplingTargetDocuments(SamplingTargetDocumentsT &&value)
const Aws::Vector< SamplingTargetDocument > & GetSamplingTargetDocuments() const
GetSamplingTargetsResult & WithUnprocessedStatistics(UnprocessedStatisticsT &&value)
GetSamplingTargetsResult & AddSamplingTargetDocuments(SamplingTargetDocumentsT &&value)
const Aws::Utils::DateTime & GetLastRuleModification() const
void SetLastRuleModification(LastRuleModificationT &&value)
AWS_XRAY_API GetSamplingTargetsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue