AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateSubscriptionGrantStatusResult.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/datazone/model/GrantedEntity.h>
12#include <aws/datazone/model/SubscriptionGrantOverallStatus.h>
13#include <aws/datazone/model/SubscribedAsset.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace DataZone
29{
30namespace Model
31{
33 {
34 public:
38
39
41
44 inline const Aws::Vector<SubscribedAsset>& GetAssets() const{ return m_assets; }
45 inline void SetAssets(const Aws::Vector<SubscribedAsset>& value) { m_assets = value; }
46 inline void SetAssets(Aws::Vector<SubscribedAsset>&& value) { m_assets = std::move(value); }
48 inline UpdateSubscriptionGrantStatusResult& WithAssets(Aws::Vector<SubscribedAsset>&& value) { SetAssets(std::move(value)); return *this;}
49 inline UpdateSubscriptionGrantStatusResult& AddAssets(const SubscribedAsset& value) { m_assets.push_back(value); return *this; }
50 inline UpdateSubscriptionGrantStatusResult& AddAssets(SubscribedAsset&& value) { m_assets.push_back(std::move(value)); return *this; }
52
54
57 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
58 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; }
59 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); }
61 inline UpdateSubscriptionGrantStatusResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
63
65
69 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
70 inline void SetCreatedBy(const Aws::String& value) { m_createdBy = value; }
71 inline void SetCreatedBy(Aws::String&& value) { m_createdBy = std::move(value); }
72 inline void SetCreatedBy(const char* value) { m_createdBy.assign(value); }
73 inline UpdateSubscriptionGrantStatusResult& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
74 inline UpdateSubscriptionGrantStatusResult& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
75 inline UpdateSubscriptionGrantStatusResult& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
77
79
83 inline const Aws::String& GetDomainId() const{ return m_domainId; }
84 inline void SetDomainId(const Aws::String& value) { m_domainId = value; }
85 inline void SetDomainId(Aws::String&& value) { m_domainId = std::move(value); }
86 inline void SetDomainId(const char* value) { m_domainId.assign(value); }
87 inline UpdateSubscriptionGrantStatusResult& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;}
88 inline UpdateSubscriptionGrantStatusResult& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;}
89 inline UpdateSubscriptionGrantStatusResult& WithDomainId(const char* value) { SetDomainId(value); return *this;}
91
93
97 inline const GrantedEntity& GetGrantedEntity() const{ return m_grantedEntity; }
98 inline void SetGrantedEntity(const GrantedEntity& value) { m_grantedEntity = value; }
99 inline void SetGrantedEntity(GrantedEntity&& value) { m_grantedEntity = std::move(value); }
101 inline UpdateSubscriptionGrantStatusResult& WithGrantedEntity(GrantedEntity&& value) { SetGrantedEntity(std::move(value)); return *this;}
103
105
108 inline const Aws::String& GetId() const{ return m_id; }
109 inline void SetId(const Aws::String& value) { m_id = value; }
110 inline void SetId(Aws::String&& value) { m_id = std::move(value); }
111 inline void SetId(const char* value) { m_id.assign(value); }
112 inline UpdateSubscriptionGrantStatusResult& WithId(const Aws::String& value) { SetId(value); return *this;}
113 inline UpdateSubscriptionGrantStatusResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
114 inline UpdateSubscriptionGrantStatusResult& WithId(const char* value) { SetId(value); return *this;}
116
118
122 inline const SubscriptionGrantOverallStatus& GetStatus() const{ return m_status; }
123 inline void SetStatus(const SubscriptionGrantOverallStatus& value) { m_status = value; }
124 inline void SetStatus(SubscriptionGrantOverallStatus&& value) { m_status = std::move(value); }
128
130
134 inline const Aws::String& GetSubscriptionTargetId() const{ return m_subscriptionTargetId; }
135 inline void SetSubscriptionTargetId(const Aws::String& value) { m_subscriptionTargetId = value; }
136 inline void SetSubscriptionTargetId(Aws::String&& value) { m_subscriptionTargetId = std::move(value); }
137 inline void SetSubscriptionTargetId(const char* value) { m_subscriptionTargetId.assign(value); }
142
144
147 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
148 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; }
149 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); }
151 inline UpdateSubscriptionGrantStatusResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
153
155
158 inline const Aws::String& GetUpdatedBy() const{ return m_updatedBy; }
159 inline void SetUpdatedBy(const Aws::String& value) { m_updatedBy = value; }
160 inline void SetUpdatedBy(Aws::String&& value) { m_updatedBy = std::move(value); }
161 inline void SetUpdatedBy(const char* value) { m_updatedBy.assign(value); }
162 inline UpdateSubscriptionGrantStatusResult& WithUpdatedBy(const Aws::String& value) { SetUpdatedBy(value); return *this;}
163 inline UpdateSubscriptionGrantStatusResult& WithUpdatedBy(Aws::String&& value) { SetUpdatedBy(std::move(value)); return *this;}
164 inline UpdateSubscriptionGrantStatusResult& WithUpdatedBy(const char* value) { SetUpdatedBy(value); return *this;}
166
168
169 inline const Aws::String& GetRequestId() const{ return m_requestId; }
170 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
171 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
172 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
173 inline UpdateSubscriptionGrantStatusResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
174 inline UpdateSubscriptionGrantStatusResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
175 inline UpdateSubscriptionGrantStatusResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
177 private:
178
180
181 Aws::Utils::DateTime m_createdAt;
182
183 Aws::String m_createdBy;
184
185 Aws::String m_domainId;
186
187 GrantedEntity m_grantedEntity;
188
189 Aws::String m_id;
190
192
193 Aws::String m_subscriptionTargetId;
194
195 Aws::Utils::DateTime m_updatedAt;
196
197 Aws::String m_updatedBy;
198
199 Aws::String m_requestId;
200 };
201
202} // namespace Model
203} // namespace DataZone
204} // namespace Aws
UpdateSubscriptionGrantStatusResult & WithCreatedAt(Aws::Utils::DateTime &&value)
UpdateSubscriptionGrantStatusResult & WithDomainId(const Aws::String &value)
UpdateSubscriptionGrantStatusResult & WithGrantedEntity(GrantedEntity &&value)
UpdateSubscriptionGrantStatusResult & WithSubscriptionTargetId(const char *value)
UpdateSubscriptionGrantStatusResult & WithCreatedBy(const Aws::String &value)
UpdateSubscriptionGrantStatusResult & AddAssets(const SubscribedAsset &value)
UpdateSubscriptionGrantStatusResult & WithUpdatedBy(const Aws::String &value)
UpdateSubscriptionGrantStatusResult & WithStatus(SubscriptionGrantOverallStatus &&value)
AWS_DATAZONE_API UpdateSubscriptionGrantStatusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateSubscriptionGrantStatusResult & WithUpdatedBy(Aws::String &&value)
UpdateSubscriptionGrantStatusResult & WithUpdatedBy(const char *value)
UpdateSubscriptionGrantStatusResult & WithDomainId(const char *value)
UpdateSubscriptionGrantStatusResult & WithDomainId(Aws::String &&value)
UpdateSubscriptionGrantStatusResult & WithRequestId(const Aws::String &value)
UpdateSubscriptionGrantStatusResult & WithSubscriptionTargetId(const Aws::String &value)
UpdateSubscriptionGrantStatusResult & WithCreatedBy(Aws::String &&value)
UpdateSubscriptionGrantStatusResult & WithStatus(const SubscriptionGrantOverallStatus &value)
UpdateSubscriptionGrantStatusResult & WithRequestId(const char *value)
AWS_DATAZONE_API UpdateSubscriptionGrantStatusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateSubscriptionGrantStatusResult & WithRequestId(Aws::String &&value)
UpdateSubscriptionGrantStatusResult & WithUpdatedAt(const Aws::Utils::DateTime &value)
UpdateSubscriptionGrantStatusResult & WithCreatedAt(const Aws::Utils::DateTime &value)
UpdateSubscriptionGrantStatusResult & WithAssets(Aws::Vector< SubscribedAsset > &&value)
UpdateSubscriptionGrantStatusResult & WithAssets(const Aws::Vector< SubscribedAsset > &value)
UpdateSubscriptionGrantStatusResult & WithCreatedBy(const char *value)
UpdateSubscriptionGrantStatusResult & WithGrantedEntity(const GrantedEntity &value)
UpdateSubscriptionGrantStatusResult & AddAssets(SubscribedAsset &&value)
UpdateSubscriptionGrantStatusResult & WithId(Aws::String &&value)
UpdateSubscriptionGrantStatusResult & WithId(const char *value)
UpdateSubscriptionGrantStatusResult & WithId(const Aws::String &value)
UpdateSubscriptionGrantStatusResult & WithUpdatedAt(Aws::Utils::DateTime &&value)
UpdateSubscriptionGrantStatusResult & WithSubscriptionTargetId(Aws::String &&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