AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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
84 inline const Aws::String& GetRequestId() const { return m_requestId; }
85 template<typename RequestIdT = Aws::String>
86 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
87 template<typename RequestIdT = Aws::String>
88 GetSamplingTargetsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
90 private:
91
92 Aws::Vector<SamplingTargetDocument> m_samplingTargetDocuments;
93 bool m_samplingTargetDocumentsHasBeenSet = false;
94
95 Aws::Utils::DateTime m_lastRuleModification{};
96 bool m_lastRuleModificationHasBeenSet = false;
97
98 Aws::Vector<UnprocessedStatistics> m_unprocessedStatistics;
99 bool m_unprocessedStatisticsHasBeenSet = false;
100
101 Aws::String m_requestId;
102 bool m_requestIdHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace XRay
107} // namespace Aws
AWS_XRAY_API GetSamplingTargetsResult()=default
AWS_XRAY_API GetSamplingTargetsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSamplingTargetsResult & WithRequestId(RequestIdT &&value)
void SetUnprocessedStatistics(UnprocessedStatisticsT &&value)
GetSamplingTargetsResult & AddUnprocessedStatistics(UnprocessedStatisticsT &&value)
const Aws::Vector< UnprocessedStatistics > & GetUnprocessedStatistics() const
GetSamplingTargetsResult & WithLastRuleModification(LastRuleModificationT &&value)
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