AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 InventoryItemSchema& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;}
57 inline InventoryItemSchema& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;}
58 inline InventoryItemSchema& WithTypeName(const char* value) { SetTypeName(value); return *this;}
60
62
65 inline const Aws::String& GetVersion() const{ return m_version; }
66 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
67 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
68 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
69 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
70 inline InventoryItemSchema& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
71 inline InventoryItemSchema& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
72 inline InventoryItemSchema& WithVersion(const char* value) { SetVersion(value); return *this;}
74
76
80 inline const Aws::Vector<InventoryItemAttribute>& GetAttributes() const{ return m_attributes; }
81 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
82 inline void SetAttributes(const Aws::Vector<InventoryItemAttribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
83 inline void SetAttributes(Aws::Vector<InventoryItemAttribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
85 inline InventoryItemSchema& WithAttributes(Aws::Vector<InventoryItemAttribute>&& value) { SetAttributes(std::move(value)); return *this;}
86 inline InventoryItemSchema& AddAttributes(const InventoryItemAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
87 inline InventoryItemSchema& AddAttributes(InventoryItemAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
89
91
95 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
96 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
97 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
98 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
99 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
100 inline InventoryItemSchema& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
101 inline InventoryItemSchema& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
102 inline InventoryItemSchema& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
104 private:
105
106 Aws::String m_typeName;
107 bool m_typeNameHasBeenSet = false;
108
109 Aws::String m_version;
110 bool m_versionHasBeenSet = false;
111
113 bool m_attributesHasBeenSet = false;
114
115 Aws::String m_displayName;
116 bool m_displayNameHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace SSM
121} // namespace Aws
void SetDisplayName(Aws::String &&value)
InventoryItemSchema & AddAttributes(const InventoryItemAttribute &value)
InventoryItemSchema & WithVersion(const Aws::String &value)
void SetTypeName(const Aws::String &value)
void SetAttributes(Aws::Vector< InventoryItemAttribute > &&value)
AWS_SSM_API InventoryItemSchema & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API InventoryItemSchema(Aws::Utils::Json::JsonView jsonValue)
InventoryItemSchema & WithAttributes(const Aws::Vector< InventoryItemAttribute > &value)
InventoryItemSchema & WithVersion(Aws::String &&value)
const Aws::String & GetDisplayName() const
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVersion(const Aws::String &value)
InventoryItemSchema & WithVersion(const char *value)
InventoryItemSchema & WithTypeName(const Aws::String &value)
InventoryItemSchema & WithTypeName(const char *value)
InventoryItemSchema & WithTypeName(Aws::String &&value)
const Aws::Vector< InventoryItemAttribute > & GetAttributes() const
void SetAttributes(const Aws::Vector< InventoryItemAttribute > &value)
InventoryItemSchema & AddAttributes(InventoryItemAttribute &&value)
InventoryItemSchema & WithDisplayName(const Aws::String &value)
const Aws::String & GetTypeName() const
void SetDisplayName(const Aws::String &value)
InventoryItemSchema & WithDisplayName(Aws::String &&value)
InventoryItemSchema & WithAttributes(Aws::Vector< InventoryItemAttribute > &&value)
const Aws::String & GetVersion() const
InventoryItemSchema & WithDisplayName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue