AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
RetrievedService.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/xray/XRay_EXPORTS.h>
9#include <aws/xray/model/GraphLink.h>
10#include <aws/xray/model/Service.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace XRay {
22namespace Model {
23
32 public:
33 AWS_XRAY_API RetrievedService() = default;
37
39
40 inline const Service& GetService() const { return m_service; }
41 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
42 template <typename ServiceT = Service>
43 void SetService(ServiceT&& value) {
44 m_serviceHasBeenSet = true;
45 m_service = std::forward<ServiceT>(value);
46 }
47 template <typename ServiceT = Service>
48 RetrievedService& WithService(ServiceT&& value) {
49 SetService(std::forward<ServiceT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<GraphLink>& GetLinks() const { return m_links; }
59 inline bool LinksHasBeenSet() const { return m_linksHasBeenSet; }
60 template <typename LinksT = Aws::Vector<GraphLink>>
61 void SetLinks(LinksT&& value) {
62 m_linksHasBeenSet = true;
63 m_links = std::forward<LinksT>(value);
64 }
65 template <typename LinksT = Aws::Vector<GraphLink>>
66 RetrievedService& WithLinks(LinksT&& value) {
67 SetLinks(std::forward<LinksT>(value));
68 return *this;
69 }
70 template <typename LinksT = GraphLink>
71 RetrievedService& AddLinks(LinksT&& value) {
72 m_linksHasBeenSet = true;
73 m_links.emplace_back(std::forward<LinksT>(value));
74 return *this;
75 }
77 private:
78 Service m_service;
79
81 bool m_serviceHasBeenSet = false;
82 bool m_linksHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace XRay
87} // namespace Aws
AWS_XRAY_API RetrievedService()=default
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
RetrievedService & AddLinks(LinksT &&value)
const Aws::Vector< GraphLink > & GetLinks() const
RetrievedService & WithService(ServiceT &&value)
AWS_XRAY_API RetrievedService(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API RetrievedService & operator=(Aws::Utils::Json::JsonView jsonValue)
RetrievedService & WithLinks(LinksT &&value)
const Service & GetService() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue