AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
OpsEntity.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/ssm/model/OpsEntityItem.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SSM
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SSM_API OpsEntity() = default;
37 AWS_SSM_API OpsEntity(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template<typename IdT = Aws::String>
49 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
50 template<typename IdT = Aws::String>
51 OpsEntity& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
53
55
58 inline const Aws::Map<Aws::String, OpsEntityItem>& GetData() const { return m_data; }
59 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
60 template<typename DataT = Aws::Map<Aws::String, OpsEntityItem>>
61 void SetData(DataT&& value) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
62 template<typename DataT = Aws::Map<Aws::String, OpsEntityItem>>
63 OpsEntity& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
64 template<typename DataKeyT = Aws::String, typename DataValueT = OpsEntityItem>
65 OpsEntity& AddData(DataKeyT&& key, DataValueT&& value) {
66 m_dataHasBeenSet = true; m_data.emplace(std::forward<DataKeyT>(key), std::forward<DataValueT>(value)); return *this;
67 }
69 private:
70
71 Aws::String m_id;
72 bool m_idHasBeenSet = false;
73
75 bool m_dataHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace SSM
80} // namespace Aws
const Aws::String & GetId() const
Definition OpsEntity.h:46
bool IdHasBeenSet() const
Definition OpsEntity.h:47
AWS_SSM_API OpsEntity & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API OpsEntity()=default
bool DataHasBeenSet() const
Definition OpsEntity.h:59
OpsEntity & AddData(DataKeyT &&key, DataValueT &&value)
Definition OpsEntity.h:65
OpsEntity & WithId(IdT &&value)
Definition OpsEntity.h:51
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSM_API OpsEntity(Aws::Utils::Json::JsonView jsonValue)
void SetId(IdT &&value)
Definition OpsEntity.h:49
OpsEntity & WithData(DataT &&value)
Definition OpsEntity.h:63
const Aws::Map< Aws::String, OpsEntityItem > & GetData() const
Definition OpsEntity.h:58
void SetData(DataT &&value)
Definition OpsEntity.h:61
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue