AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
SubscribedListing.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZone_EXPORTS.h>
9#include <aws/datazone/model/SubscribedListingItem.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataZone {
21namespace Model {
22
30 public:
31 AWS_DATAZONE_API SubscribedListing() = default;
32 AWS_DATAZONE_API SubscribedListing(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 SubscribedListing& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetRevision() const { return m_revision; }
61 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
62 template <typename RevisionT = Aws::String>
63 void SetRevision(RevisionT&& value) {
64 m_revisionHasBeenSet = true;
65 m_revision = std::forward<RevisionT>(value);
66 }
67 template <typename RevisionT = Aws::String>
68 SubscribedListing& WithRevision(RevisionT&& value) {
69 SetRevision(std::forward<RevisionT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetName() const { return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 template <typename NameT = Aws::String>
82 void SetName(NameT&& value) {
83 m_nameHasBeenSet = true;
84 m_name = std::forward<NameT>(value);
85 }
86 template <typename NameT = Aws::String>
87 SubscribedListing& WithName(NameT&& value) {
88 SetName(std::forward<NameT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetDescription() const { return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 template <typename DescriptionT = Aws::String>
101 void SetDescription(DescriptionT&& value) {
102 m_descriptionHasBeenSet = true;
103 m_description = std::forward<DescriptionT>(value);
104 }
105 template <typename DescriptionT = Aws::String>
106 SubscribedListing& WithDescription(DescriptionT&& value) {
107 SetDescription(std::forward<DescriptionT>(value));
108 return *this;
109 }
111
113
116 inline const SubscribedListingItem& GetItem() const { return m_item; }
117 inline bool ItemHasBeenSet() const { return m_itemHasBeenSet; }
118 template <typename ItemT = SubscribedListingItem>
119 void SetItem(ItemT&& value) {
120 m_itemHasBeenSet = true;
121 m_item = std::forward<ItemT>(value);
122 }
123 template <typename ItemT = SubscribedListingItem>
124 SubscribedListing& WithItem(ItemT&& value) {
125 SetItem(std::forward<ItemT>(value));
126 return *this;
127 }
129
131
135 inline const Aws::String& GetOwnerProjectId() const { return m_ownerProjectId; }
136 inline bool OwnerProjectIdHasBeenSet() const { return m_ownerProjectIdHasBeenSet; }
137 template <typename OwnerProjectIdT = Aws::String>
138 void SetOwnerProjectId(OwnerProjectIdT&& value) {
139 m_ownerProjectIdHasBeenSet = true;
140 m_ownerProjectId = std::forward<OwnerProjectIdT>(value);
141 }
142 template <typename OwnerProjectIdT = Aws::String>
143 SubscribedListing& WithOwnerProjectId(OwnerProjectIdT&& value) {
144 SetOwnerProjectId(std::forward<OwnerProjectIdT>(value));
145 return *this;
146 }
148
150
154 inline const Aws::String& GetOwnerProjectName() const { return m_ownerProjectName; }
155 inline bool OwnerProjectNameHasBeenSet() const { return m_ownerProjectNameHasBeenSet; }
156 template <typename OwnerProjectNameT = Aws::String>
157 void SetOwnerProjectName(OwnerProjectNameT&& value) {
158 m_ownerProjectNameHasBeenSet = true;
159 m_ownerProjectName = std::forward<OwnerProjectNameT>(value);
160 }
161 template <typename OwnerProjectNameT = Aws::String>
162 SubscribedListing& WithOwnerProjectName(OwnerProjectNameT&& value) {
163 SetOwnerProjectName(std::forward<OwnerProjectNameT>(value));
164 return *this;
165 }
167 private:
168 Aws::String m_id;
169
170 Aws::String m_revision;
171
172 Aws::String m_name;
173
174 Aws::String m_description;
175
177
178 Aws::String m_ownerProjectId;
179
180 Aws::String m_ownerProjectName;
181 bool m_idHasBeenSet = false;
182 bool m_revisionHasBeenSet = false;
183 bool m_nameHasBeenSet = false;
184 bool m_descriptionHasBeenSet = false;
185 bool m_itemHasBeenSet = false;
186 bool m_ownerProjectIdHasBeenSet = false;
187 bool m_ownerProjectNameHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace DataZone
192} // namespace Aws
SubscribedListing & WithItem(ItemT &&value)
SubscribedListing & WithName(NameT &&value)
AWS_DATAZONE_API SubscribedListing()=default
SubscribedListing & WithDescription(DescriptionT &&value)
SubscribedListing & WithOwnerProjectId(OwnerProjectIdT &&value)
void SetOwnerProjectId(OwnerProjectIdT &&value)
SubscribedListing & WithRevision(RevisionT &&value)
void SetOwnerProjectName(OwnerProjectNameT &&value)
const Aws::String & GetOwnerProjectId() const
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRevision() const
SubscribedListing & WithOwnerProjectName(OwnerProjectNameT &&value)
SubscribedListing & WithId(IdT &&value)
const Aws::String & GetOwnerProjectName() const
AWS_DATAZONE_API SubscribedListing & operator=(Aws::Utils::Json::JsonView jsonValue)
const SubscribedListingItem & GetItem() const
void SetDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
AWS_DATAZONE_API SubscribedListing(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue