/**
* 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 SSM
{
namespace Model
{
/**
* The result of the query.
See Also:
AWS API
* Reference
*/
class OpsEntity
{
public:
AWS_SSM_API OpsEntity();
AWS_SSM_API OpsEntity(Aws::Utils::Json::JsonView jsonValue);
AWS_SSM_API OpsEntity& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const;
///@{
/**
* The query ID.
*/
inline const Aws::String& GetId() const{ return m_id; }
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
inline OpsEntity& WithId(const Aws::String& value) { SetId(value); return *this;}
inline OpsEntity& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
inline OpsEntity& WithId(const char* value) { SetId(value); return *this;}
///@}
///@{
/**
* The data returned by the query.
*/
inline const Aws::Map& GetData() const{ return m_data; }
inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
inline void SetData(const Aws::Map& value) { m_dataHasBeenSet = true; m_data = value; }
inline void SetData(Aws::Map&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
inline OpsEntity& WithData(const Aws::Map& value) { SetData(value); return *this;}
inline OpsEntity& WithData(Aws::Map&& value) { SetData(std::move(value)); return *this;}
inline OpsEntity& AddData(const Aws::String& key, const OpsEntityItem& value) { m_dataHasBeenSet = true; m_data.emplace(key, value); return *this; }
inline OpsEntity& AddData(Aws::String&& key, const OpsEntityItem& value) { m_dataHasBeenSet = true; m_data.emplace(std::move(key), value); return *this; }
inline OpsEntity& AddData(const Aws::String& key, OpsEntityItem&& value) { m_dataHasBeenSet = true; m_data.emplace(key, std::move(value)); return *this; }
inline OpsEntity& AddData(Aws::String&& key, OpsEntityItem&& value) { m_dataHasBeenSet = true; m_data.emplace(std::move(key), std::move(value)); return *this; }
inline OpsEntity& AddData(const char* key, OpsEntityItem&& value) { m_dataHasBeenSet = true; m_data.emplace(key, std::move(value)); return *this; }
inline OpsEntity& AddData(const char* key, const OpsEntityItem& value) { m_dataHasBeenSet = true; m_data.emplace(key, value); return *this; }
///@}
private:
Aws::String m_id;
bool m_idHasBeenSet = false;
Aws::Map m_data;
bool m_dataHasBeenSet = false;
};
} // namespace Model
} // namespace SSM
} // namespace Aws