AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GraphLink.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace XRay
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_XRAY_API GraphLink() = default;
36 AWS_XRAY_API GraphLink(Aws::Utils::Json::JsonView jsonValue);
39
40
42
45 inline const Aws::String& GetReferenceType() const { return m_referenceType; }
46 inline bool ReferenceTypeHasBeenSet() const { return m_referenceTypeHasBeenSet; }
47 template<typename ReferenceTypeT = Aws::String>
48 void SetReferenceType(ReferenceTypeT&& value) { m_referenceTypeHasBeenSet = true; m_referenceType = std::forward<ReferenceTypeT>(value); }
49 template<typename ReferenceTypeT = Aws::String>
50 GraphLink& WithReferenceType(ReferenceTypeT&& value) { SetReferenceType(std::forward<ReferenceTypeT>(value)); return *this;}
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) { m_sourceTraceIdHasBeenSet = true; m_sourceTraceId = std::forward<SourceTraceIdT>(value); }
61 template<typename SourceTraceIdT = Aws::String>
62 GraphLink& WithSourceTraceId(SourceTraceIdT&& value) { SetSourceTraceId(std::forward<SourceTraceIdT>(value)); return *this;}
64
66
69 inline const Aws::Vector<Aws::String>& GetDestinationTraceIds() const { return m_destinationTraceIds; }
70 inline bool DestinationTraceIdsHasBeenSet() const { return m_destinationTraceIdsHasBeenSet; }
71 template<typename DestinationTraceIdsT = Aws::Vector<Aws::String>>
72 void SetDestinationTraceIds(DestinationTraceIdsT&& value) { m_destinationTraceIdsHasBeenSet = true; m_destinationTraceIds = std::forward<DestinationTraceIdsT>(value); }
73 template<typename DestinationTraceIdsT = Aws::Vector<Aws::String>>
74 GraphLink& WithDestinationTraceIds(DestinationTraceIdsT&& value) { SetDestinationTraceIds(std::forward<DestinationTraceIdsT>(value)); return *this;}
75 template<typename DestinationTraceIdsT = Aws::String>
76 GraphLink& AddDestinationTraceIds(DestinationTraceIdsT&& value) { m_destinationTraceIdsHasBeenSet = true; m_destinationTraceIds.emplace_back(std::forward<DestinationTraceIdsT>(value)); return *this; }
78 private:
79
80 Aws::String m_referenceType;
81 bool m_referenceTypeHasBeenSet = false;
82
83 Aws::String m_sourceTraceId;
84 bool m_sourceTraceIdHasBeenSet = false;
85
86 Aws::Vector<Aws::String> m_destinationTraceIds;
87 bool m_destinationTraceIdsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace XRay
92} // 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