AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
InventoryItemSchema.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10#include <aws/ssm/model/InventoryItemAttribute.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 InventoryItemSchema() = 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 InventoryItemSchema& WithTypeName(TypeNameT&& value) {
54 SetTypeName(std::forward<TypeNameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetVersion() const { return m_version; }
64 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
65 template <typename VersionT = Aws::String>
66 void SetVersion(VersionT&& value) {
67 m_versionHasBeenSet = true;
68 m_version = std::forward<VersionT>(value);
69 }
70 template <typename VersionT = Aws::String>
71 InventoryItemSchema& WithVersion(VersionT&& value) {
72 SetVersion(std::forward<VersionT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::Vector<InventoryItemAttribute>& GetAttributes() const { return m_attributes; }
83 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
84 template <typename AttributesT = Aws::Vector<InventoryItemAttribute>>
85 void SetAttributes(AttributesT&& value) {
86 m_attributesHasBeenSet = true;
87 m_attributes = std::forward<AttributesT>(value);
88 }
89 template <typename AttributesT = Aws::Vector<InventoryItemAttribute>>
90 InventoryItemSchema& WithAttributes(AttributesT&& value) {
91 SetAttributes(std::forward<AttributesT>(value));
92 return *this;
93 }
94 template <typename AttributesT = InventoryItemAttribute>
95 InventoryItemSchema& AddAttributes(AttributesT&& value) {
96 m_attributesHasBeenSet = true;
97 m_attributes.emplace_back(std::forward<AttributesT>(value));
98 return *this;
99 }
101
103
107 inline const Aws::String& GetDisplayName() const { return m_displayName; }
108 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
109 template <typename DisplayNameT = Aws::String>
110 void SetDisplayName(DisplayNameT&& value) {
111 m_displayNameHasBeenSet = true;
112 m_displayName = std::forward<DisplayNameT>(value);
113 }
114 template <typename DisplayNameT = Aws::String>
115 InventoryItemSchema& WithDisplayName(DisplayNameT&& value) {
116 SetDisplayName(std::forward<DisplayNameT>(value));
117 return *this;
118 }
120 private:
121 Aws::String m_typeName;
122
123 Aws::String m_version;
124
126
127 Aws::String m_displayName;
128 bool m_typeNameHasBeenSet = false;
129 bool m_versionHasBeenSet = false;
130 bool m_attributesHasBeenSet = false;
131 bool m_displayNameHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace SSM
136} // namespace Aws
InventoryItemSchema & WithDisplayName(DisplayNameT &&value)
InventoryItemSchema & AddAttributes(AttributesT &&value)
InventoryItemSchema & WithAttributes(AttributesT &&value)
AWS_SSM_API InventoryItemSchema & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API InventoryItemSchema(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API InventoryItemSchema()=default
const Aws::String & GetDisplayName() const
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
InventoryItemSchema & WithVersion(VersionT &&value)
const Aws::Vector< InventoryItemAttribute > & GetAttributes() const
InventoryItemSchema & WithTypeName(TypeNameT &&value)
const Aws::String & GetTypeName() const
void SetAttributes(AttributesT &&value)
void SetDisplayName(DisplayNameT &&value)
const Aws::String & GetVersion() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue