AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RetrievedService.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/xray/model/Service.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/xray/model/GraphLink.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace XRay
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_XRAY_API RetrievedService() = default;
42
43
45
46 inline const Service& GetService() const { return m_service; }
47 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
48 template<typename ServiceT = Service>
49 void SetService(ServiceT&& value) { m_serviceHasBeenSet = true; m_service = std::forward<ServiceT>(value); }
50 template<typename ServiceT = Service>
51 RetrievedService& WithService(ServiceT&& value) { SetService(std::forward<ServiceT>(value)); return *this;}
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) { m_linksHasBeenSet = true; m_links = std::forward<LinksT>(value); }
62 template<typename LinksT = Aws::Vector<GraphLink>>
63 RetrievedService& WithLinks(LinksT&& value) { SetLinks(std::forward<LinksT>(value)); return *this;}
64 template<typename LinksT = GraphLink>
65 RetrievedService& AddLinks(LinksT&& value) { m_linksHasBeenSet = true; m_links.emplace_back(std::forward<LinksT>(value)); return *this; }
67 private:
68
69 Service m_service;
70 bool m_serviceHasBeenSet = false;
71
73 bool m_linksHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace XRay
78} // 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