AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ValueWithServiceIds.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/xray/model/AnnotationValue.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/xray/model/ServiceId.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
34 {
35 public:
36 AWS_XRAY_API ValueWithServiceIds() = default;
40
41
43
46 inline const AnnotationValue& GetAnnotationValue() const { return m_annotationValue; }
47 inline bool AnnotationValueHasBeenSet() const { return m_annotationValueHasBeenSet; }
48 template<typename AnnotationValueT = AnnotationValue>
49 void SetAnnotationValue(AnnotationValueT&& value) { m_annotationValueHasBeenSet = true; m_annotationValue = std::forward<AnnotationValueT>(value); }
50 template<typename AnnotationValueT = AnnotationValue>
51 ValueWithServiceIds& WithAnnotationValue(AnnotationValueT&& value) { SetAnnotationValue(std::forward<AnnotationValueT>(value)); return *this;}
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) { m_serviceIdsHasBeenSet = true; m_serviceIds = std::forward<ServiceIdsT>(value); }
62 template<typename ServiceIdsT = Aws::Vector<ServiceId>>
63 ValueWithServiceIds& WithServiceIds(ServiceIdsT&& value) { SetServiceIds(std::forward<ServiceIdsT>(value)); return *this;}
64 template<typename ServiceIdsT = ServiceId>
65 ValueWithServiceIds& AddServiceIds(ServiceIdsT&& value) { m_serviceIdsHasBeenSet = true; m_serviceIds.emplace_back(std::forward<ServiceIdsT>(value)); return *this; }
67 private:
68
69 AnnotationValue m_annotationValue;
70 bool m_annotationValueHasBeenSet = false;
71
72 Aws::Vector<ServiceId> m_serviceIds;
73 bool m_serviceIdsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace XRay
78} // 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