AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
DataProductItem.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/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/DataProductItemType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DataZone {
22namespace Model {
23
30 public:
31 AWS_DATAZONE_API DataProductItem() = default;
32 AWS_DATAZONE_API DataProductItem(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline DataProductItemType GetItemType() const { return m_itemType; }
41 inline bool ItemTypeHasBeenSet() const { return m_itemTypeHasBeenSet; }
42 inline void SetItemType(DataProductItemType value) {
43 m_itemTypeHasBeenSet = true;
44 m_itemType = value;
45 }
47 SetItemType(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetIdentifier() const { return m_identifier; }
57 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
58 template <typename IdentifierT = Aws::String>
59 void SetIdentifier(IdentifierT&& value) {
60 m_identifierHasBeenSet = true;
61 m_identifier = std::forward<IdentifierT>(value);
62 }
63 template <typename IdentifierT = Aws::String>
64 DataProductItem& WithIdentifier(IdentifierT&& value) {
65 SetIdentifier(std::forward<IdentifierT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetRevision() const { return m_revision; }
75 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
76 template <typename RevisionT = Aws::String>
77 void SetRevision(RevisionT&& value) {
78 m_revisionHasBeenSet = true;
79 m_revision = std::forward<RevisionT>(value);
80 }
81 template <typename RevisionT = Aws::String>
82 DataProductItem& WithRevision(RevisionT&& value) {
83 SetRevision(std::forward<RevisionT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Vector<Aws::String>& GetGlossaryTerms() const { return m_glossaryTerms; }
93 inline bool GlossaryTermsHasBeenSet() const { return m_glossaryTermsHasBeenSet; }
94 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
95 void SetGlossaryTerms(GlossaryTermsT&& value) {
96 m_glossaryTermsHasBeenSet = true;
97 m_glossaryTerms = std::forward<GlossaryTermsT>(value);
98 }
99 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
100 DataProductItem& WithGlossaryTerms(GlossaryTermsT&& value) {
101 SetGlossaryTerms(std::forward<GlossaryTermsT>(value));
102 return *this;
103 }
104 template <typename GlossaryTermsT = Aws::String>
105 DataProductItem& AddGlossaryTerms(GlossaryTermsT&& value) {
106 m_glossaryTermsHasBeenSet = true;
107 m_glossaryTerms.emplace_back(std::forward<GlossaryTermsT>(value));
108 return *this;
109 }
111 private:
113
114 Aws::String m_identifier;
115
116 Aws::String m_revision;
117
118 Aws::Vector<Aws::String> m_glossaryTerms;
119 bool m_itemTypeHasBeenSet = false;
120 bool m_identifierHasBeenSet = false;
121 bool m_revisionHasBeenSet = false;
122 bool m_glossaryTermsHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace DataZone
127} // namespace Aws
const Aws::String & GetIdentifier() const
DataProductItem & WithRevision(RevisionT &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRevision() const
AWS_DATAZONE_API DataProductItem()=default
DataProductItem & WithItemType(DataProductItemType value)
DataProductItem & AddGlossaryTerms(GlossaryTermsT &&value)
const Aws::Vector< Aws::String > & GetGlossaryTerms() const
DataProductItemType GetItemType() const
void SetGlossaryTerms(GlossaryTermsT &&value)
AWS_DATAZONE_API DataProductItem(Aws::Utils::Json::JsonView jsonValue)
void SetIdentifier(IdentifierT &&value)
DataProductItem & WithGlossaryTerms(GlossaryTermsT &&value)
void SetItemType(DataProductItemType value)
DataProductItem & WithIdentifier(IdentifierT &&value)
AWS_DATAZONE_API DataProductItem & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue