AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InventoryItem.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.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
35 {
36 public:
37 AWS_SSM_API InventoryItem() = default;
41
42
44
51 inline const Aws::String& GetTypeName() const { return m_typeName; }
52 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
53 template<typename TypeNameT = Aws::String>
54 void SetTypeName(TypeNameT&& value) { m_typeNameHasBeenSet = true; m_typeName = std::forward<TypeNameT>(value); }
55 template<typename TypeNameT = Aws::String>
56 InventoryItem& WithTypeName(TypeNameT&& value) { SetTypeName(std::forward<TypeNameT>(value)); return *this;}
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) { m_schemaVersionHasBeenSet = true; m_schemaVersion = std::forward<SchemaVersionT>(value); }
67 template<typename SchemaVersionT = Aws::String>
68 InventoryItem& WithSchemaVersion(SchemaVersionT&& value) { SetSchemaVersion(std::forward<SchemaVersionT>(value)); return *this;}
70
72
75 inline const Aws::String& GetCaptureTime() const { return m_captureTime; }
76 inline bool CaptureTimeHasBeenSet() const { return m_captureTimeHasBeenSet; }
77 template<typename CaptureTimeT = Aws::String>
78 void SetCaptureTime(CaptureTimeT&& value) { m_captureTimeHasBeenSet = true; m_captureTime = std::forward<CaptureTimeT>(value); }
79 template<typename CaptureTimeT = Aws::String>
80 InventoryItem& WithCaptureTime(CaptureTimeT&& value) { SetCaptureTime(std::forward<CaptureTimeT>(value)); return *this;}
82
84
90 inline const Aws::String& GetContentHash() const { return m_contentHash; }
91 inline bool ContentHashHasBeenSet() const { return m_contentHashHasBeenSet; }
92 template<typename ContentHashT = Aws::String>
93 void SetContentHash(ContentHashT&& value) { m_contentHashHasBeenSet = true; m_contentHash = std::forward<ContentHashT>(value); }
94 template<typename ContentHashT = Aws::String>
95 InventoryItem& WithContentHash(ContentHashT&& value) { SetContentHash(std::forward<ContentHashT>(value)); return *this;}
97
99
102 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetContent() const { return m_content; }
103 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
104 template<typename ContentT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
105 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
106 template<typename ContentT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
107 InventoryItem& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
108 template<typename ContentT = Aws::Map<Aws::String, Aws::String>>
109 InventoryItem& AddContent(ContentT&& value) { m_contentHasBeenSet = true; m_content.emplace_back(std::forward<ContentT>(value)); return *this; }
111
113
119 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const { return m_context; }
120 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
121 template<typename ContextT = Aws::Map<Aws::String, Aws::String>>
122 void SetContext(ContextT&& value) { m_contextHasBeenSet = true; m_context = std::forward<ContextT>(value); }
123 template<typename ContextT = Aws::Map<Aws::String, Aws::String>>
124 InventoryItem& WithContext(ContextT&& value) { SetContext(std::forward<ContextT>(value)); return *this;}
125 template<typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
126 InventoryItem& AddContext(ContextKeyT&& key, ContextValueT&& value) {
127 m_contextHasBeenSet = true; m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value)); return *this;
128 }
130 private:
131
132 Aws::String m_typeName;
133 bool m_typeNameHasBeenSet = false;
134
135 Aws::String m_schemaVersion;
136 bool m_schemaVersionHasBeenSet = false;
137
138 Aws::String m_captureTime;
139 bool m_captureTimeHasBeenSet = false;
140
141 Aws::String m_contentHash;
142 bool m_contentHashHasBeenSet = false;
143
145 bool m_contentHasBeenSet = false;
146
148 bool m_contextHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace SSM
153} // 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