AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
49 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
50 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
51 inline OpsEntity& WithId(const Aws::String& value) { SetId(value); return *this;}
52 inline OpsEntity& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
53 inline OpsEntity& WithId(const char* value) { SetId(value); return *this;}
55
57
60 inline const Aws::Map<Aws::String, OpsEntityItem>& GetData() const{ return m_data; }
61 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
62 inline void SetData(const Aws::Map<Aws::String, OpsEntityItem>& value) { m_dataHasBeenSet = true; m_data = value; }
63 inline void SetData(Aws::Map<Aws::String, OpsEntityItem>&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
64 inline OpsEntity& WithData(const Aws::Map<Aws::String, OpsEntityItem>& value) { SetData(value); return *this;}
65 inline OpsEntity& WithData(Aws::Map<Aws::String, OpsEntityItem>&& value) { SetData(std::move(value)); return *this;}
66 inline OpsEntity& AddData(const Aws::String& key, const OpsEntityItem& value) { m_dataHasBeenSet = true; m_data.emplace(key, value); return *this; }
67 inline OpsEntity& AddData(Aws::String&& key, const OpsEntityItem& value) { m_dataHasBeenSet = true; m_data.emplace(std::move(key), value); return *this; }
68 inline OpsEntity& AddData(const Aws::String& key, OpsEntityItem&& value) { m_dataHasBeenSet = true; m_data.emplace(key, std::move(value)); return *this; }
69 inline OpsEntity& AddData(Aws::String&& key, OpsEntityItem&& value) { m_dataHasBeenSet = true; m_data.emplace(std::move(key), std::move(value)); return *this; }
70 inline OpsEntity& AddData(const char* key, OpsEntityItem&& value) { m_dataHasBeenSet = true; m_data.emplace(key, std::move(value)); return *this; }
71 inline OpsEntity& AddData(const char* key, const OpsEntityItem& value) { m_dataHasBeenSet = true; m_data.emplace(key, value); return *this; }
73 private:
74
75 Aws::String m_id;
76 bool m_idHasBeenSet = false;
77
79 bool m_dataHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace SSM
84} // namespace Aws
OpsEntity & WithData(const Aws::Map< Aws::String, OpsEntityItem > &value)
Definition OpsEntity.h:64
OpsEntity & WithId(const char *value)
Definition OpsEntity.h:53
const Aws::String & GetId() const
Definition OpsEntity.h:46
OpsEntity & AddData(const char *key, OpsEntityItem &&value)
Definition OpsEntity.h:70
OpsEntity & AddData(Aws::String &&key, OpsEntityItem &&value)
Definition OpsEntity.h:69
bool IdHasBeenSet() const
Definition OpsEntity.h:47
AWS_SSM_API OpsEntity & operator=(Aws::Utils::Json::JsonView jsonValue)
OpsEntity & AddData(const Aws::String &key, OpsEntityItem &&value)
Definition OpsEntity.h:68
void SetId(Aws::String &&value)
Definition OpsEntity.h:49
bool DataHasBeenSet() const
Definition OpsEntity.h:61
OpsEntity & WithData(Aws::Map< Aws::String, OpsEntityItem > &&value)
Definition OpsEntity.h:65
OpsEntity & AddData(const char *key, const OpsEntityItem &value)
Definition OpsEntity.h:71
void SetId(const Aws::String &value)
Definition OpsEntity.h:48
OpsEntity & AddData(Aws::String &&key, const OpsEntityItem &value)
Definition OpsEntity.h:67
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
OpsEntity & WithId(const Aws::String &value)
Definition OpsEntity.h:51
OpsEntity & AddData(const Aws::String &key, const OpsEntityItem &value)
Definition OpsEntity.h:66
AWS_SSM_API OpsEntity(Aws::Utils::Json::JsonView jsonValue)
void SetId(const char *value)
Definition OpsEntity.h:50
void SetData(const Aws::Map< Aws::String, OpsEntityItem > &value)
Definition OpsEntity.h:62
const Aws::Map< Aws::String, OpsEntityItem > & GetData() const
Definition OpsEntity.h:60
void SetData(Aws::Map< Aws::String, OpsEntityItem > &&value)
Definition OpsEntity.h:63
OpsEntity & WithId(Aws::String &&value)
Definition OpsEntity.h:52
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