AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
InventoryItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SSM {
22namespace Model {
23
31 public:
32 AWS_SSM_API InventoryItem() = default;
36
38
45 inline const Aws::String& GetTypeName() const { return m_typeName; }
46 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
47 template <typename TypeNameT = Aws::String>
48 void SetTypeName(TypeNameT&& value) {
49 m_typeNameHasBeenSet = true;
50 m_typeName = std::forward<TypeNameT>(value);
51 }
52 template <typename TypeNameT = Aws::String>
53 InventoryItem& WithTypeName(TypeNameT&& value) {
54 SetTypeName(std::forward<TypeNameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetSchemaVersion() const { return m_schemaVersion; }
64 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
65 template <typename SchemaVersionT = Aws::String>
66 void SetSchemaVersion(SchemaVersionT&& value) {
67 m_schemaVersionHasBeenSet = true;
68 m_schemaVersion = std::forward<SchemaVersionT>(value);
69 }
70 template <typename SchemaVersionT = Aws::String>
71 InventoryItem& WithSchemaVersion(SchemaVersionT&& value) {
72 SetSchemaVersion(std::forward<SchemaVersionT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetCaptureTime() const { return m_captureTime; }
82 inline bool CaptureTimeHasBeenSet() const { return m_captureTimeHasBeenSet; }
83 template <typename CaptureTimeT = Aws::String>
84 void SetCaptureTime(CaptureTimeT&& value) {
85 m_captureTimeHasBeenSet = true;
86 m_captureTime = std::forward<CaptureTimeT>(value);
87 }
88 template <typename CaptureTimeT = Aws::String>
89 InventoryItem& WithCaptureTime(CaptureTimeT&& value) {
90 SetCaptureTime(std::forward<CaptureTimeT>(value));
91 return *this;
92 }
94
96
102 inline const Aws::String& GetContentHash() const { return m_contentHash; }
103 inline bool ContentHashHasBeenSet() const { return m_contentHashHasBeenSet; }
104 template <typename ContentHashT = Aws::String>
105 void SetContentHash(ContentHashT&& value) {
106 m_contentHashHasBeenSet = true;
107 m_contentHash = std::forward<ContentHashT>(value);
108 }
109 template <typename ContentHashT = Aws::String>
110 InventoryItem& WithContentHash(ContentHashT&& value) {
111 SetContentHash(std::forward<ContentHashT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetContent() const { return m_content; }
121 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
122 template <typename ContentT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
123 void SetContent(ContentT&& value) {
124 m_contentHasBeenSet = true;
125 m_content = std::forward<ContentT>(value);
126 }
127 template <typename ContentT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
128 InventoryItem& WithContent(ContentT&& value) {
129 SetContent(std::forward<ContentT>(value));
130 return *this;
131 }
132 template <typename ContentT = Aws::Map<Aws::String, Aws::String>>
133 InventoryItem& AddContent(ContentT&& value) {
134 m_contentHasBeenSet = true;
135 m_content.emplace_back(std::forward<ContentT>(value));
136 return *this;
137 }
139
141
147 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const { return m_context; }
148 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
149 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
150 void SetContext(ContextT&& value) {
151 m_contextHasBeenSet = true;
152 m_context = std::forward<ContextT>(value);
153 }
154 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
155 InventoryItem& WithContext(ContextT&& value) {
156 SetContext(std::forward<ContextT>(value));
157 return *this;
158 }
159 template <typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
160 InventoryItem& AddContext(ContextKeyT&& key, ContextValueT&& value) {
161 m_contextHasBeenSet = true;
162 m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value));
163 return *this;
164 }
166 private:
167 Aws::String m_typeName;
168
169 Aws::String m_schemaVersion;
170
171 Aws::String m_captureTime;
172
173 Aws::String m_contentHash;
174
176
178 bool m_typeNameHasBeenSet = false;
179 bool m_schemaVersionHasBeenSet = false;
180 bool m_captureTimeHasBeenSet = false;
181 bool m_contentHashHasBeenSet = false;
182 bool m_contentHasBeenSet = false;
183 bool m_contextHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace SSM
188} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetContext() const
InventoryItem & AddContext(ContextKeyT &&key, ContextValueT &&value)
InventoryItem & AddContent(ContentT &&value)
void SetContentHash(ContentHashT &&value)
const Aws::String & GetCaptureTime() const
AWS_SSM_API InventoryItem(Aws::Utils::Json::JsonView jsonValue)
void SetContext(ContextT &&value)
const Aws::String & GetTypeName() const
InventoryItem & WithContent(ContentT &&value)
void SetContent(ContentT &&value)
void SetTypeName(TypeNameT &&value)
const Aws::String & GetSchemaVersion() const
InventoryItem & WithSchemaVersion(SchemaVersionT &&value)
void SetCaptureTime(CaptureTimeT &&value)
InventoryItem & WithContentHash(ContentHashT &&value)
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetContent() const
AWS_SSM_API InventoryItem & operator=(Aws::Utils::Json::JsonView jsonValue)
InventoryItem & WithContext(ContextT &&value)
InventoryItem & WithCaptureTime(CaptureTimeT &&value)
void SetSchemaVersion(SchemaVersionT &&value)
const Aws::String & GetContentHash() const
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
InventoryItem & WithTypeName(TypeNameT &&value)
AWS_SSM_API InventoryItem()=default
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue