AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40
41
43
46 inline const AnnotationValue& GetAnnotationValue() const{ return m_annotationValue; }
47 inline bool AnnotationValueHasBeenSet() const { return m_annotationValueHasBeenSet; }
48 inline void SetAnnotationValue(const AnnotationValue& value) { m_annotationValueHasBeenSet = true; m_annotationValue = value; }
49 inline void SetAnnotationValue(AnnotationValue&& value) { m_annotationValueHasBeenSet = true; m_annotationValue = std::move(value); }
50 inline ValueWithServiceIds& WithAnnotationValue(const AnnotationValue& value) { SetAnnotationValue(value); return *this;}
51 inline ValueWithServiceIds& WithAnnotationValue(AnnotationValue&& value) { SetAnnotationValue(std::move(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 inline void SetServiceIds(const Aws::Vector<ServiceId>& value) { m_serviceIdsHasBeenSet = true; m_serviceIds = value; }
61 inline void SetServiceIds(Aws::Vector<ServiceId>&& value) { m_serviceIdsHasBeenSet = true; m_serviceIds = std::move(value); }
62 inline ValueWithServiceIds& WithServiceIds(const Aws::Vector<ServiceId>& value) { SetServiceIds(value); return *this;}
63 inline ValueWithServiceIds& WithServiceIds(Aws::Vector<ServiceId>&& value) { SetServiceIds(std::move(value)); return *this;}
64 inline ValueWithServiceIds& AddServiceIds(const ServiceId& value) { m_serviceIdsHasBeenSet = true; m_serviceIds.push_back(value); return *this; }
65 inline ValueWithServiceIds& AddServiceIds(ServiceId&& value) { m_serviceIdsHasBeenSet = true; m_serviceIds.push_back(std::move(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
ValueWithServiceIds & WithAnnotationValue(AnnotationValue &&value)
ValueWithServiceIds & AddServiceIds(ServiceId &&value)
void SetServiceIds(const Aws::Vector< ServiceId > &value)
const AnnotationValue & GetAnnotationValue() const
void SetServiceIds(Aws::Vector< ServiceId > &&value)
const Aws::Vector< ServiceId > & GetServiceIds() const
ValueWithServiceIds & WithServiceIds(Aws::Vector< ServiceId > &&value)
AWS_XRAY_API ValueWithServiceIds(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API ValueWithServiceIds & operator=(Aws::Utils::Json::JsonView jsonValue)
ValueWithServiceIds & WithServiceIds(const Aws::Vector< ServiceId > &value)
ValueWithServiceIds & AddServiceIds(const ServiceId &value)
ValueWithServiceIds & WithAnnotationValue(const AnnotationValue &value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAnnotationValue(AnnotationValue &&value)
void SetAnnotationValue(const AnnotationValue &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue