AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InventoryItemSchema.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/ssm/model/InventoryItemAttribute.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 InventoryItemSchema() = 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 InventoryItemSchema& WithTypeName(TypeNameT&& value) { SetTypeName(std::forward<TypeNameT>(value)); return *this;}
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) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
67 template<typename VersionT = Aws::String>
68 InventoryItemSchema& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
70
72
76 inline const Aws::Vector<InventoryItemAttribute>& GetAttributes() const { return m_attributes; }
77 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
78 template<typename AttributesT = Aws::Vector<InventoryItemAttribute>>
79 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
80 template<typename AttributesT = Aws::Vector<InventoryItemAttribute>>
81 InventoryItemSchema& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
82 template<typename AttributesT = InventoryItemAttribute>
83 InventoryItemSchema& AddAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes.emplace_back(std::forward<AttributesT>(value)); return *this; }
85
87
91 inline const Aws::String& GetDisplayName() const { return m_displayName; }
92 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
93 template<typename DisplayNameT = Aws::String>
94 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
95 template<typename DisplayNameT = Aws::String>
96 InventoryItemSchema& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
98 private:
99
100 Aws::String m_typeName;
101 bool m_typeNameHasBeenSet = false;
102
103 Aws::String m_version;
104 bool m_versionHasBeenSet = false;
105
107 bool m_attributesHasBeenSet = false;
108
109 Aws::String m_displayName;
110 bool m_displayNameHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace SSM
115} // 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