AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
41
42
44
51 inline const Aws::String& GetTypeName() const{ return m_typeName; }
52 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
53 inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; }
54 inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = std::move(value); }
55 inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); }
56 inline InventoryItem& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;}
57 inline InventoryItem& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;}
58 inline InventoryItem& WithTypeName(const char* value) { SetTypeName(value); return *this;}
60
62
65 inline const Aws::String& GetSchemaVersion() const{ return m_schemaVersion; }
66 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
67 inline void SetSchemaVersion(const Aws::String& value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = value; }
68 inline void SetSchemaVersion(Aws::String&& value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = std::move(value); }
69 inline void SetSchemaVersion(const char* value) { m_schemaVersionHasBeenSet = true; m_schemaVersion.assign(value); }
70 inline InventoryItem& WithSchemaVersion(const Aws::String& value) { SetSchemaVersion(value); return *this;}
71 inline InventoryItem& WithSchemaVersion(Aws::String&& value) { SetSchemaVersion(std::move(value)); return *this;}
72 inline InventoryItem& WithSchemaVersion(const char* value) { SetSchemaVersion(value); return *this;}
74
76
79 inline const Aws::String& GetCaptureTime() const{ return m_captureTime; }
80 inline bool CaptureTimeHasBeenSet() const { return m_captureTimeHasBeenSet; }
81 inline void SetCaptureTime(const Aws::String& value) { m_captureTimeHasBeenSet = true; m_captureTime = value; }
82 inline void SetCaptureTime(Aws::String&& value) { m_captureTimeHasBeenSet = true; m_captureTime = std::move(value); }
83 inline void SetCaptureTime(const char* value) { m_captureTimeHasBeenSet = true; m_captureTime.assign(value); }
84 inline InventoryItem& WithCaptureTime(const Aws::String& value) { SetCaptureTime(value); return *this;}
85 inline InventoryItem& WithCaptureTime(Aws::String&& value) { SetCaptureTime(std::move(value)); return *this;}
86 inline InventoryItem& WithCaptureTime(const char* value) { SetCaptureTime(value); return *this;}
88
90
96 inline const Aws::String& GetContentHash() const{ return m_contentHash; }
97 inline bool ContentHashHasBeenSet() const { return m_contentHashHasBeenSet; }
98 inline void SetContentHash(const Aws::String& value) { m_contentHashHasBeenSet = true; m_contentHash = value; }
99 inline void SetContentHash(Aws::String&& value) { m_contentHashHasBeenSet = true; m_contentHash = std::move(value); }
100 inline void SetContentHash(const char* value) { m_contentHashHasBeenSet = true; m_contentHash.assign(value); }
101 inline InventoryItem& WithContentHash(const Aws::String& value) { SetContentHash(value); return *this;}
102 inline InventoryItem& WithContentHash(Aws::String&& value) { SetContentHash(std::move(value)); return *this;}
103 inline InventoryItem& WithContentHash(const char* value) { SetContentHash(value); return *this;}
105
107
110 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetContent() const{ return m_content; }
111 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
112 inline void SetContent(const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& value) { m_contentHasBeenSet = true; m_content = value; }
113 inline void SetContent(Aws::Vector<Aws::Map<Aws::String, Aws::String>>&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
115 inline InventoryItem& WithContent(Aws::Vector<Aws::Map<Aws::String, Aws::String>>&& value) { SetContent(std::move(value)); return *this;}
116 inline InventoryItem& AddContent(const Aws::Map<Aws::String, Aws::String>& value) { m_contentHasBeenSet = true; m_content.push_back(value); return *this; }
117 inline InventoryItem& AddContent(Aws::Map<Aws::String, Aws::String>&& value) { m_contentHasBeenSet = true; m_content.push_back(std::move(value)); return *this; }
119
121
127 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const{ return m_context; }
128 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
129 inline void SetContext(const Aws::Map<Aws::String, Aws::String>& value) { m_contextHasBeenSet = true; m_context = value; }
130 inline void SetContext(Aws::Map<Aws::String, Aws::String>&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
131 inline InventoryItem& WithContext(const Aws::Map<Aws::String, Aws::String>& value) { SetContext(value); return *this;}
132 inline InventoryItem& WithContext(Aws::Map<Aws::String, Aws::String>&& value) { SetContext(std::move(value)); return *this;}
133 inline InventoryItem& AddContext(const Aws::String& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
134 inline InventoryItem& AddContext(Aws::String&& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
135 inline InventoryItem& AddContext(const Aws::String& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
136 inline InventoryItem& AddContext(Aws::String&& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), std::move(value)); return *this; }
137 inline InventoryItem& AddContext(const char* key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
138 inline InventoryItem& AddContext(Aws::String&& key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
139 inline InventoryItem& AddContext(const char* key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
141 private:
142
143 Aws::String m_typeName;
144 bool m_typeNameHasBeenSet = false;
145
146 Aws::String m_schemaVersion;
147 bool m_schemaVersionHasBeenSet = false;
148
149 Aws::String m_captureTime;
150 bool m_captureTimeHasBeenSet = false;
151
152 Aws::String m_contentHash;
153 bool m_contentHashHasBeenSet = false;
154
156 bool m_contentHasBeenSet = false;
157
159 bool m_contextHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace SSM
164} // namespace Aws
void SetContext(const Aws::Map< Aws::String, Aws::String > &value)
InventoryItem & WithContent(const Aws::Vector< Aws::Map< Aws::String, Aws::String > > &value)
const Aws::Map< Aws::String, Aws::String > & GetContext() const
void SetContentHash(const char *value)
InventoryItem & AddContext(const char *key, Aws::String &&value)
InventoryItem & WithSchemaVersion(const char *value)
InventoryItem & AddContext(Aws::String &&key, const Aws::String &value)
const Aws::String & GetCaptureTime() const
AWS_SSM_API InventoryItem(Aws::Utils::Json::JsonView jsonValue)
InventoryItem & WithSchemaVersion(const Aws::String &value)
void SetCaptureTime(const char *value)
InventoryItem & WithContentHash(const char *value)
InventoryItem & AddContext(Aws::String &&key, const char *value)
void SetCaptureTime(Aws::String &&value)
const Aws::String & GetTypeName() const
InventoryItem & WithTypeName(Aws::String &&value)
InventoryItem & WithContext(const Aws::Map< Aws::String, Aws::String > &value)
InventoryItem & WithCaptureTime(const Aws::String &value)
void SetSchemaVersion(Aws::String &&value)
InventoryItem & AddContext(Aws::String &&key, Aws::String &&value)
const Aws::String & GetSchemaVersion() const
void SetContext(Aws::Map< Aws::String, Aws::String > &&value)
InventoryItem & AddContent(const Aws::Map< Aws::String, Aws::String > &value)
InventoryItem & AddContext(const char *key, const char *value)
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetContent() const
InventoryItem & WithSchemaVersion(Aws::String &&value)
AWS_SSM_API InventoryItem & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContentHash(const Aws::String &value)
InventoryItem & WithContext(Aws::Map< Aws::String, Aws::String > &&value)
void SetTypeName(Aws::String &&value)
InventoryItem & WithTypeName(const char *value)
void SetContent(Aws::Vector< Aws::Map< Aws::String, Aws::String > > &&value)
InventoryItem & WithContent(Aws::Vector< Aws::Map< Aws::String, Aws::String > > &&value)
InventoryItem & WithContentHash(const Aws::String &value)
void SetTypeName(const char *value)
InventoryItem & WithCaptureTime(const char *value)
InventoryItem & WithContentHash(Aws::String &&value)
void SetTypeName(const Aws::String &value)
InventoryItem & AddContext(const Aws::String &key, const Aws::String &value)
InventoryItem & WithCaptureTime(Aws::String &&value)
void SetCaptureTime(const Aws::String &value)
InventoryItem & AddContent(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetContentHash() const
InventoryItem & AddContext(const Aws::String &key, Aws::String &&value)
void SetSchemaVersion(const Aws::String &value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContent(const Aws::Vector< Aws::Map< Aws::String, Aws::String > > &value)
InventoryItem & WithTypeName(const Aws::String &value)
void SetContentHash(Aws::String &&value)
void SetSchemaVersion(const char *value)
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