AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GraphLink.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/XRay_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace XRay {
21namespace Model {
22
28class GraphLink {
29 public:
30 AWS_XRAY_API GraphLink() = default;
31 AWS_XRAY_API GraphLink(Aws::Utils::Json::JsonView jsonValue);
34
36
39 inline const Aws::String& GetReferenceType() const { return m_referenceType; }
40 inline bool ReferenceTypeHasBeenSet() const { return m_referenceTypeHasBeenSet; }
41 template <typename ReferenceTypeT = Aws::String>
42 void SetReferenceType(ReferenceTypeT&& value) {
43 m_referenceTypeHasBeenSet = true;
44 m_referenceType = std::forward<ReferenceTypeT>(value);
45 }
46 template <typename ReferenceTypeT = Aws::String>
47 GraphLink& WithReferenceType(ReferenceTypeT&& value) {
48 SetReferenceType(std::forward<ReferenceTypeT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetSourceTraceId() const { return m_sourceTraceId; }
58 inline bool SourceTraceIdHasBeenSet() const { return m_sourceTraceIdHasBeenSet; }
59 template <typename SourceTraceIdT = Aws::String>
60 void SetSourceTraceId(SourceTraceIdT&& value) {
61 m_sourceTraceIdHasBeenSet = true;
62 m_sourceTraceId = std::forward<SourceTraceIdT>(value);
63 }
64 template <typename SourceTraceIdT = Aws::String>
65 GraphLink& WithSourceTraceId(SourceTraceIdT&& value) {
66 SetSourceTraceId(std::forward<SourceTraceIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Vector<Aws::String>& GetDestinationTraceIds() const { return m_destinationTraceIds; }
76 inline bool DestinationTraceIdsHasBeenSet() const { return m_destinationTraceIdsHasBeenSet; }
77 template <typename DestinationTraceIdsT = Aws::Vector<Aws::String>>
78 void SetDestinationTraceIds(DestinationTraceIdsT&& value) {
79 m_destinationTraceIdsHasBeenSet = true;
80 m_destinationTraceIds = std::forward<DestinationTraceIdsT>(value);
81 }
82 template <typename DestinationTraceIdsT = Aws::Vector<Aws::String>>
83 GraphLink& WithDestinationTraceIds(DestinationTraceIdsT&& value) {
84 SetDestinationTraceIds(std::forward<DestinationTraceIdsT>(value));
85 return *this;
86 }
87 template <typename DestinationTraceIdsT = Aws::String>
88 GraphLink& AddDestinationTraceIds(DestinationTraceIdsT&& value) {
89 m_destinationTraceIdsHasBeenSet = true;
90 m_destinationTraceIds.emplace_back(std::forward<DestinationTraceIdsT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_referenceType;
96
97 Aws::String m_sourceTraceId;
98
99 Aws::Vector<Aws::String> m_destinationTraceIds;
100 bool m_referenceTypeHasBeenSet = false;
101 bool m_sourceTraceIdHasBeenSet = false;
102 bool m_destinationTraceIdsHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace XRay
107} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue