/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace XRay { namespace Model { /** *

Information about a segment annotation.

See Also:

AWS * API Reference

*/ class ValueWithServiceIds { public: AWS_XRAY_API ValueWithServiceIds(); AWS_XRAY_API ValueWithServiceIds(Aws::Utils::Json::JsonView jsonValue); AWS_XRAY_API ValueWithServiceIds& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Values of the annotation.

*/ inline const AnnotationValue& GetAnnotationValue() const{ return m_annotationValue; } /** *

Values of the annotation.

*/ inline bool AnnotationValueHasBeenSet() const { return m_annotationValueHasBeenSet; } /** *

Values of the annotation.

*/ inline void SetAnnotationValue(const AnnotationValue& value) { m_annotationValueHasBeenSet = true; m_annotationValue = value; } /** *

Values of the annotation.

*/ inline void SetAnnotationValue(AnnotationValue&& value) { m_annotationValueHasBeenSet = true; m_annotationValue = std::move(value); } /** *

Values of the annotation.

*/ inline ValueWithServiceIds& WithAnnotationValue(const AnnotationValue& value) { SetAnnotationValue(value); return *this;} /** *

Values of the annotation.

*/ inline ValueWithServiceIds& WithAnnotationValue(AnnotationValue&& value) { SetAnnotationValue(std::move(value)); return *this;} /** *

Services to which the annotation applies.

*/ inline const Aws::Vector& GetServiceIds() const{ return m_serviceIds; } /** *

Services to which the annotation applies.

*/ inline bool ServiceIdsHasBeenSet() const { return m_serviceIdsHasBeenSet; } /** *

Services to which the annotation applies.

*/ inline void SetServiceIds(const Aws::Vector& value) { m_serviceIdsHasBeenSet = true; m_serviceIds = value; } /** *

Services to which the annotation applies.

*/ inline void SetServiceIds(Aws::Vector&& value) { m_serviceIdsHasBeenSet = true; m_serviceIds = std::move(value); } /** *

Services to which the annotation applies.

*/ inline ValueWithServiceIds& WithServiceIds(const Aws::Vector& value) { SetServiceIds(value); return *this;} /** *

Services to which the annotation applies.

*/ inline ValueWithServiceIds& WithServiceIds(Aws::Vector&& value) { SetServiceIds(std::move(value)); return *this;} /** *

Services to which the annotation applies.

*/ inline ValueWithServiceIds& AddServiceIds(const ServiceId& value) { m_serviceIdsHasBeenSet = true; m_serviceIds.push_back(value); return *this; } /** *

Services to which the annotation applies.

*/ inline ValueWithServiceIds& AddServiceIds(ServiceId&& value) { m_serviceIdsHasBeenSet = true; m_serviceIds.push_back(std::move(value)); return *this; } private: AnnotationValue m_annotationValue; bool m_annotationValueHasBeenSet = false; Aws::Vector m_serviceIds; bool m_serviceIdsHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws