/**
* 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; }
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
inline OpsItemDataValue& WithValue(const Aws::String& value) { SetValue(value); return *this;}
inline OpsItemDataValue& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
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; }
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
inline void SetType(const OpsItemDataType& value) { m_typeHasBeenSet = true; m_type = value; }
inline void SetType(OpsItemDataType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
inline OpsItemDataValue& WithType(const OpsItemDataType& value) { SetType(value); return *this;}
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