AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ValueWithServiceIds.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/AnnotationValue.h>
10#include <aws/xray/model/ServiceId.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
30 public:
31 AWS_XRAY_API ValueWithServiceIds() = default;
35
37
40 inline const AnnotationValue& GetAnnotationValue() const { return m_annotationValue; }
41 inline bool AnnotationValueHasBeenSet() const { return m_annotationValueHasBeenSet; }
42 template <typename AnnotationValueT = AnnotationValue>
43 void SetAnnotationValue(AnnotationValueT&& value) {
44 m_annotationValueHasBeenSet = true;
45 m_annotationValue = std::forward<AnnotationValueT>(value);
46 }
47 template <typename AnnotationValueT = AnnotationValue>
48 ValueWithServiceIds& WithAnnotationValue(AnnotationValueT&& value) {
49 SetAnnotationValue(std::forward<AnnotationValueT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<ServiceId>& GetServiceIds() const { return m_serviceIds; }
59 inline bool ServiceIdsHasBeenSet() const { return m_serviceIdsHasBeenSet; }
60 template <typename ServiceIdsT = Aws::Vector<ServiceId>>
61 void SetServiceIds(ServiceIdsT&& value) {
62 m_serviceIdsHasBeenSet = true;
63 m_serviceIds = std::forward<ServiceIdsT>(value);
64 }
65 template <typename ServiceIdsT = Aws::Vector<ServiceId>>
66 ValueWithServiceIds& WithServiceIds(ServiceIdsT&& value) {
67 SetServiceIds(std::forward<ServiceIdsT>(value));
68 return *this;
69 }
70 template <typename ServiceIdsT = ServiceId>
71 ValueWithServiceIds& AddServiceIds(ServiceIdsT&& value) {
72 m_serviceIdsHasBeenSet = true;
73 m_serviceIds.emplace_back(std::forward<ServiceIdsT>(value));
74 return *this;
75 }
77 private:
78 AnnotationValue m_annotationValue;
79
80 Aws::Vector<ServiceId> m_serviceIds;
81 bool m_annotationValueHasBeenSet = false;
82 bool m_serviceIdsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace XRay
87} // namespace Aws
const AnnotationValue & GetAnnotationValue() const
const Aws::Vector< ServiceId > & GetServiceIds() const
AWS_XRAY_API ValueWithServiceIds(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API ValueWithServiceIds & operator=(Aws::Utils::Json::JsonView jsonValue)
ValueWithServiceIds & WithAnnotationValue(AnnotationValueT &&value)
ValueWithServiceIds & AddServiceIds(ServiceIdsT &&value)
void SetAnnotationValue(AnnotationValueT &&value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_XRAY_API ValueWithServiceIds()=default
ValueWithServiceIds & WithServiceIds(ServiceIdsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue