AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetSamplingTargetsResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/xray/XRay_EXPORTS.h>
11#include <aws/xray/model/SamplingTargetDocument.h>
12#include <aws/xray/model/UnprocessedStatistics.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace XRay {
26namespace Model {
28 public:
29 AWS_XRAY_API GetSamplingTargetsResult() = default;
32
34
37 inline const Aws::Vector<SamplingTargetDocument>& GetSamplingTargetDocuments() const { return m_samplingTargetDocuments; }
38 template <typename SamplingTargetDocumentsT = Aws::Vector<SamplingTargetDocument>>
39 void SetSamplingTargetDocuments(SamplingTargetDocumentsT&& value) {
40 m_samplingTargetDocumentsHasBeenSet = true;
41 m_samplingTargetDocuments = std::forward<SamplingTargetDocumentsT>(value);
42 }
43 template <typename SamplingTargetDocumentsT = Aws::Vector<SamplingTargetDocument>>
44 GetSamplingTargetsResult& WithSamplingTargetDocuments(SamplingTargetDocumentsT&& value) {
45 SetSamplingTargetDocuments(std::forward<SamplingTargetDocumentsT>(value));
46 return *this;
47 }
48 template <typename SamplingTargetDocumentsT = SamplingTargetDocument>
49 GetSamplingTargetsResult& AddSamplingTargetDocuments(SamplingTargetDocumentsT&& value) {
50 m_samplingTargetDocumentsHasBeenSet = true;
51 m_samplingTargetDocuments.emplace_back(std::forward<SamplingTargetDocumentsT>(value));
52 return *this;
53 }
55
57
64 inline const Aws::Utils::DateTime& GetLastRuleModification() const { return m_lastRuleModification; }
65 template <typename LastRuleModificationT = Aws::Utils::DateTime>
66 void SetLastRuleModification(LastRuleModificationT&& value) {
67 m_lastRuleModificationHasBeenSet = true;
68 m_lastRuleModification = std::forward<LastRuleModificationT>(value);
69 }
70 template <typename LastRuleModificationT = Aws::Utils::DateTime>
71 GetSamplingTargetsResult& WithLastRuleModification(LastRuleModificationT&& value) {
72 SetLastRuleModification(std::forward<LastRuleModificationT>(value));
73 return *this;
74 }
76
78
83 inline const Aws::Vector<UnprocessedStatistics>& GetUnprocessedStatistics() const { return m_unprocessedStatistics; }
84 template <typename UnprocessedStatisticsT = Aws::Vector<UnprocessedStatistics>>
85 void SetUnprocessedStatistics(UnprocessedStatisticsT&& value) {
86 m_unprocessedStatisticsHasBeenSet = true;
87 m_unprocessedStatistics = std::forward<UnprocessedStatisticsT>(value);
88 }
89 template <typename UnprocessedStatisticsT = Aws::Vector<UnprocessedStatistics>>
90 GetSamplingTargetsResult& WithUnprocessedStatistics(UnprocessedStatisticsT&& value) {
91 SetUnprocessedStatistics(std::forward<UnprocessedStatisticsT>(value));
92 return *this;
93 }
94 template <typename UnprocessedStatisticsT = UnprocessedStatistics>
95 GetSamplingTargetsResult& AddUnprocessedStatistics(UnprocessedStatisticsT&& value) {
96 m_unprocessedStatisticsHasBeenSet = true;
97 m_unprocessedStatistics.emplace_back(std::forward<UnprocessedStatisticsT>(value));
98 return *this;
99 }
101
103
108 inline const Aws::Vector<UnprocessedStatistics>& GetUnprocessedBoostStatistics() const { return m_unprocessedBoostStatistics; }
109 template <typename UnprocessedBoostStatisticsT = Aws::Vector<UnprocessedStatistics>>
110 void SetUnprocessedBoostStatistics(UnprocessedBoostStatisticsT&& value) {
111 m_unprocessedBoostStatisticsHasBeenSet = true;
112 m_unprocessedBoostStatistics = std::forward<UnprocessedBoostStatisticsT>(value);
113 }
114 template <typename UnprocessedBoostStatisticsT = Aws::Vector<UnprocessedStatistics>>
115 GetSamplingTargetsResult& WithUnprocessedBoostStatistics(UnprocessedBoostStatisticsT&& value) {
116 SetUnprocessedBoostStatistics(std::forward<UnprocessedBoostStatisticsT>(value));
117 return *this;
118 }
119 template <typename UnprocessedBoostStatisticsT = UnprocessedStatistics>
120 GetSamplingTargetsResult& AddUnprocessedBoostStatistics(UnprocessedBoostStatisticsT&& value) {
121 m_unprocessedBoostStatisticsHasBeenSet = true;
122 m_unprocessedBoostStatistics.emplace_back(std::forward<UnprocessedBoostStatisticsT>(value));
123 return *this;
124 }
126
128
129 inline const Aws::String& GetRequestId() const { return m_requestId; }
130 template <typename RequestIdT = Aws::String>
131 void SetRequestId(RequestIdT&& value) {
132 m_requestIdHasBeenSet = true;
133 m_requestId = std::forward<RequestIdT>(value);
134 }
135 template <typename RequestIdT = Aws::String>
137 SetRequestId(std::forward<RequestIdT>(value));
138 return *this;
139 }
141 private:
142 Aws::Vector<SamplingTargetDocument> m_samplingTargetDocuments;
143
144 Aws::Utils::DateTime m_lastRuleModification{};
145
146 Aws::Vector<UnprocessedStatistics> m_unprocessedStatistics;
147
148 Aws::Vector<UnprocessedStatistics> m_unprocessedBoostStatistics;
149
150 Aws::String m_requestId;
151 bool m_samplingTargetDocumentsHasBeenSet = false;
152 bool m_lastRuleModificationHasBeenSet = false;
153 bool m_unprocessedStatisticsHasBeenSet = false;
154 bool m_unprocessedBoostStatisticsHasBeenSet = false;
155 bool m_requestIdHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace XRay
160} // 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)
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