AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
InventoryResultItem.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
30 public:
31 AWS_SSM_API InventoryResultItem() = default;
35
37
40 inline const Aws::String& GetTypeName() const { return m_typeName; }
41 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
42 template <typename TypeNameT = Aws::String>
43 void SetTypeName(TypeNameT&& value) {
44 m_typeNameHasBeenSet = true;
45 m_typeName = std::forward<TypeNameT>(value);
46 }
47 template <typename TypeNameT = Aws::String>
48 InventoryResultItem& WithTypeName(TypeNameT&& value) {
49 SetTypeName(std::forward<TypeNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetSchemaVersion() const { return m_schemaVersion; }
59 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
60 template <typename SchemaVersionT = Aws::String>
61 void SetSchemaVersion(SchemaVersionT&& value) {
62 m_schemaVersionHasBeenSet = true;
63 m_schemaVersion = std::forward<SchemaVersionT>(value);
64 }
65 template <typename SchemaVersionT = Aws::String>
66 InventoryResultItem& WithSchemaVersion(SchemaVersionT&& value) {
67 SetSchemaVersion(std::forward<SchemaVersionT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetCaptureTime() const { return m_captureTime; }
77 inline bool CaptureTimeHasBeenSet() const { return m_captureTimeHasBeenSet; }
78 template <typename CaptureTimeT = Aws::String>
79 void SetCaptureTime(CaptureTimeT&& value) {
80 m_captureTimeHasBeenSet = true;
81 m_captureTime = std::forward<CaptureTimeT>(value);
82 }
83 template <typename CaptureTimeT = Aws::String>
84 InventoryResultItem& WithCaptureTime(CaptureTimeT&& value) {
85 SetCaptureTime(std::forward<CaptureTimeT>(value));
86 return *this;
87 }
89
91
97 inline const Aws::String& GetContentHash() const { return m_contentHash; }
98 inline bool ContentHashHasBeenSet() const { return m_contentHashHasBeenSet; }
99 template <typename ContentHashT = Aws::String>
100 void SetContentHash(ContentHashT&& value) {
101 m_contentHashHasBeenSet = true;
102 m_contentHash = std::forward<ContentHashT>(value);
103 }
104 template <typename ContentHashT = Aws::String>
105 InventoryResultItem& WithContentHash(ContentHashT&& value) {
106 SetContentHash(std::forward<ContentHashT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetContent() const { return m_content; }
117 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
118 template <typename ContentT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
119 void SetContent(ContentT&& value) {
120 m_contentHasBeenSet = true;
121 m_content = std::forward<ContentT>(value);
122 }
123 template <typename ContentT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
124 InventoryResultItem& WithContent(ContentT&& value) {
125 SetContent(std::forward<ContentT>(value));
126 return *this;
127 }
128 template <typename ContentT = Aws::Map<Aws::String, Aws::String>>
129 InventoryResultItem& AddContent(ContentT&& value) {
130 m_contentHasBeenSet = true;
131 m_content.emplace_back(std::forward<ContentT>(value));
132 return *this;
133 }
135 private:
136 Aws::String m_typeName;
137
138 Aws::String m_schemaVersion;
139
140 Aws::String m_captureTime;
141
142 Aws::String m_contentHash;
143
145 bool m_typeNameHasBeenSet = false;
146 bool m_schemaVersionHasBeenSet = false;
147 bool m_captureTimeHasBeenSet = false;
148 bool m_contentHashHasBeenSet = false;
149 bool m_contentHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace SSM
154} // namespace Aws
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetContent() const
InventoryResultItem & AddContent(ContentT &&value)
InventoryResultItem & WithTypeName(TypeNameT &&value)
const Aws::String & GetSchemaVersion() const
AWS_SSM_API InventoryResultItem & operator=(Aws::Utils::Json::JsonView jsonValue)
InventoryResultItem & WithContent(ContentT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCaptureTime(CaptureTimeT &&value)
InventoryResultItem & WithContentHash(ContentHashT &&value)
InventoryResultItem & WithSchemaVersion(SchemaVersionT &&value)
const Aws::String & GetTypeName() const
void SetContentHash(ContentHashT &&value)
const Aws::String & GetContentHash() const
AWS_SSM_API InventoryResultItem(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCaptureTime() const
void SetSchemaVersion(SchemaVersionT &&value)
InventoryResultItem & WithCaptureTime(CaptureTimeT &&value)
AWS_SSM_API InventoryResultItem()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue