AWS SDK for C++

AWS SDK for C++ Version 1.11.677

Loading...
Searching...
No Matches
GetTraceGraphRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/xray/XRayRequest.h>
10#include <aws/xray/XRay_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace XRay {
16namespace Model {
17
21 public:
22 AWS_XRAY_API GetTraceGraphRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetTraceGraph"; }
29
30 AWS_XRAY_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::Vector<Aws::String>& GetTraceIds() const { return m_traceIds; }
37 inline bool TraceIdsHasBeenSet() const { return m_traceIdsHasBeenSet; }
38 template <typename TraceIdsT = Aws::Vector<Aws::String>>
39 void SetTraceIds(TraceIdsT&& value) {
40 m_traceIdsHasBeenSet = true;
41 m_traceIds = std::forward<TraceIdsT>(value);
42 }
43 template <typename TraceIdsT = Aws::Vector<Aws::String>>
44 GetTraceGraphRequest& WithTraceIds(TraceIdsT&& value) {
45 SetTraceIds(std::forward<TraceIdsT>(value));
46 return *this;
47 }
48 template <typename TraceIdsT = Aws::String>
49 GetTraceGraphRequest& AddTraceIds(TraceIdsT&& value) {
50 m_traceIdsHasBeenSet = true;
51 m_traceIds.emplace_back(std::forward<TraceIdsT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetNextToken() const { return m_nextToken; }
61 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
62 template <typename NextTokenT = Aws::String>
63 void SetNextToken(NextTokenT&& value) {
64 m_nextTokenHasBeenSet = true;
65 m_nextToken = std::forward<NextTokenT>(value);
66 }
67 template <typename NextTokenT = Aws::String>
68 GetTraceGraphRequest& WithNextToken(NextTokenT&& value) {
69 SetNextToken(std::forward<NextTokenT>(value));
70 return *this;
71 }
73 private:
74 Aws::Vector<Aws::String> m_traceIds;
75 bool m_traceIdsHasBeenSet = false;
76
77 Aws::String m_nextToken;
78 bool m_nextTokenHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace XRay
83} // namespace Aws
AWS_XRAY_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
GetTraceGraphRequest & AddTraceIds(TraceIdsT &&value)
GetTraceGraphRequest & WithTraceIds(TraceIdsT &&value)
AWS_XRAY_API GetTraceGraphRequest()=default
const Aws::Vector< Aws::String > & GetTraceIds() const
GetTraceGraphRequest & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector