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

An object that defines the value of the key and its type in the * OperationalData map.

See Also:

AWS * API Reference

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

The value of the OperationalData key.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The value of the OperationalData key.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value of the OperationalData key.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of the OperationalData key.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value of the OperationalData key.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The value of the OperationalData key.

*/ inline OpsItemDataValue& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The value of the OperationalData key.

*/ inline OpsItemDataValue& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The value of the OperationalData key.

*/ inline OpsItemDataValue& WithValue(const char* value) { SetValue(value); return *this;} /** *

The type of key-value pair. Valid types include SearchableString * and String.

*/ inline const OpsItemDataType& GetType() const{ return m_type; } /** *

The type of key-value pair. Valid types include SearchableString * and String.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of key-value pair. Valid types include SearchableString * and String.

*/ inline void SetType(const OpsItemDataType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of key-value pair. Valid types include SearchableString * and String.

*/ inline void SetType(OpsItemDataType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of key-value pair. Valid types include SearchableString * and String.

*/ inline OpsItemDataValue& WithType(const OpsItemDataType& value) { SetType(value); return *this;} /** *

The type of key-value pair. Valid types include SearchableString * and String.

*/ inline OpsItemDataValue& WithType(OpsItemDataType&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_value; bool m_valueHasBeenSet = false; OpsItemDataType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws