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

Value of a segment annotation. Has one of three value types: Number, Boolean, * or String.

See Also:

AWS * API Reference

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

Value for a Number annotation.

*/ inline double GetNumberValue() const{ return m_numberValue; } /** *

Value for a Number annotation.

*/ inline bool NumberValueHasBeenSet() const { return m_numberValueHasBeenSet; } /** *

Value for a Number annotation.

*/ inline void SetNumberValue(double value) { m_numberValueHasBeenSet = true; m_numberValue = value; } /** *

Value for a Number annotation.

*/ inline AnnotationValue& WithNumberValue(double value) { SetNumberValue(value); return *this;} /** *

Value for a Boolean annotation.

*/ inline bool GetBooleanValue() const{ return m_booleanValue; } /** *

Value for a Boolean annotation.

*/ inline bool BooleanValueHasBeenSet() const { return m_booleanValueHasBeenSet; } /** *

Value for a Boolean annotation.

*/ inline void SetBooleanValue(bool value) { m_booleanValueHasBeenSet = true; m_booleanValue = value; } /** *

Value for a Boolean annotation.

*/ inline AnnotationValue& WithBooleanValue(bool value) { SetBooleanValue(value); return *this;} /** *

Value for a String annotation.

*/ inline const Aws::String& GetStringValue() const{ return m_stringValue; } /** *

Value for a String annotation.

*/ inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; } /** *

Value for a String annotation.

*/ inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; } /** *

Value for a String annotation.

*/ inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); } /** *

Value for a String annotation.

*/ inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); } /** *

Value for a String annotation.

*/ inline AnnotationValue& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;} /** *

Value for a String annotation.

*/ inline AnnotationValue& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;} /** *

Value for a String annotation.

*/ inline AnnotationValue& WithStringValue(const char* value) { SetStringValue(value); return *this;} private: double m_numberValue; bool m_numberValueHasBeenSet = false; bool m_booleanValue; bool m_booleanValueHasBeenSet = false; Aws::String m_stringValue; bool m_stringValueHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws