AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
GetSamplingTargetsResult.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/xray/model/SamplingTargetDocument.h>
12#include <aws/xray/model/UnprocessedStatistics.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace XRay
28{
29namespace Model
30{
32 {
33 public:
34 AWS_XRAY_API GetSamplingTargetsResult() = default;
37
38
40
43 inline const Aws::Vector<SamplingTargetDocument>& GetSamplingTargetDocuments() const { return m_samplingTargetDocuments; }
44 template<typename SamplingTargetDocumentsT = Aws::Vector<SamplingTargetDocument>>
45 void SetSamplingTargetDocuments(SamplingTargetDocumentsT&& value) { m_samplingTargetDocumentsHasBeenSet = true; m_samplingTargetDocuments = std::forward<SamplingTargetDocumentsT>(value); }
46 template<typename SamplingTargetDocumentsT = Aws::Vector<SamplingTargetDocument>>
47 GetSamplingTargetsResult& WithSamplingTargetDocuments(SamplingTargetDocumentsT&& value) { SetSamplingTargetDocuments(std::forward<SamplingTargetDocumentsT>(value)); return *this;}
48 template<typename SamplingTargetDocumentsT = SamplingTargetDocument>
49 GetSamplingTargetsResult& AddSamplingTargetDocuments(SamplingTargetDocumentsT&& value) { m_samplingTargetDocumentsHasBeenSet = true; m_samplingTargetDocuments.emplace_back(std::forward<SamplingTargetDocumentsT>(value)); return *this; }
51
53
60 inline const Aws::Utils::DateTime& GetLastRuleModification() const { return m_lastRuleModification; }
61 template<typename LastRuleModificationT = Aws::Utils::DateTime>
62 void SetLastRuleModification(LastRuleModificationT&& value) { m_lastRuleModificationHasBeenSet = true; m_lastRuleModification = std::forward<LastRuleModificationT>(value); }
63 template<typename LastRuleModificationT = Aws::Utils::DateTime>
64 GetSamplingTargetsResult& WithLastRuleModification(LastRuleModificationT&& value) { SetLastRuleModification(std::forward<LastRuleModificationT>(value)); return *this;}
66
68
73 inline const Aws::Vector<UnprocessedStatistics>& GetUnprocessedStatistics() const { return m_unprocessedStatistics; }
74 template<typename UnprocessedStatisticsT = Aws::Vector<UnprocessedStatistics>>
75 void SetUnprocessedStatistics(UnprocessedStatisticsT&& value) { m_unprocessedStatisticsHasBeenSet = true; m_unprocessedStatistics = std::forward<UnprocessedStatisticsT>(value); }
76 template<typename UnprocessedStatisticsT = Aws::Vector<UnprocessedStatistics>>
77 GetSamplingTargetsResult& WithUnprocessedStatistics(UnprocessedStatisticsT&& value) { SetUnprocessedStatistics(std::forward<UnprocessedStatisticsT>(value)); return *this;}
78 template<typename UnprocessedStatisticsT = UnprocessedStatistics>
79 GetSamplingTargetsResult& AddUnprocessedStatistics(UnprocessedStatisticsT&& value) { m_unprocessedStatisticsHasBeenSet = true; m_unprocessedStatistics.emplace_back(std::forward<UnprocessedStatisticsT>(value)); return *this; }
81
83
88 inline const Aws::Vector<UnprocessedStatistics>& GetUnprocessedBoostStatistics() const { return m_unprocessedBoostStatistics; }
89 template<typename UnprocessedBoostStatisticsT = Aws::Vector<UnprocessedStatistics>>
90 void SetUnprocessedBoostStatistics(UnprocessedBoostStatisticsT&& value) { m_unprocessedBoostStatisticsHasBeenSet = true; m_unprocessedBoostStatistics = std::forward<UnprocessedBoostStatisticsT>(value); }
91 template<typename UnprocessedBoostStatisticsT = Aws::Vector<UnprocessedStatistics>>
92 GetSamplingTargetsResult& WithUnprocessedBoostStatistics(UnprocessedBoostStatisticsT&& value) { SetUnprocessedBoostStatistics(std::forward<UnprocessedBoostStatisticsT>(value)); return *this;}
93 template<typename UnprocessedBoostStatisticsT = UnprocessedStatistics>
94 GetSamplingTargetsResult& AddUnprocessedBoostStatistics(UnprocessedBoostStatisticsT&& value) { m_unprocessedBoostStatisticsHasBeenSet = true; m_unprocessedBoostStatistics.emplace_back(std::forward<UnprocessedBoostStatisticsT>(value)); return *this; }
96
98
99 inline const Aws::String& GetRequestId() const { return m_requestId; }
100 template<typename RequestIdT = Aws::String>
101 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
102 template<typename RequestIdT = Aws::String>
103 GetSamplingTargetsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
105 private:
106
107 Aws::Vector<SamplingTargetDocument> m_samplingTargetDocuments;
108 bool m_samplingTargetDocumentsHasBeenSet = false;
109
110 Aws::Utils::DateTime m_lastRuleModification{};
111 bool m_lastRuleModificationHasBeenSet = false;
112
113 Aws::Vector<UnprocessedStatistics> m_unprocessedStatistics;
114 bool m_unprocessedStatisticsHasBeenSet = false;
115
116 Aws::Vector<UnprocessedStatistics> m_unprocessedBoostStatistics;
117 bool m_unprocessedBoostStatisticsHasBeenSet = false;
118
119 Aws::String m_requestId;
120 bool m_requestIdHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace XRay
125} // 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