AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetSubscriptionGrantResult.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:
35 AWS_DATAZONE_API GetSubscriptionGrantResult();
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); }
47 inline GetSubscriptionGrantResult& WithAssets(const Aws::Vector<SubscribedAsset>& value) { SetAssets(value); return *this;}
48 inline GetSubscriptionGrantResult& WithAssets(Aws::Vector<SubscribedAsset>&& value) { SetAssets(std::move(value)); return *this;}
49 inline GetSubscriptionGrantResult& AddAssets(const SubscribedAsset& value) { m_assets.push_back(value); return *this; }
50 inline GetSubscriptionGrantResult& 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); }
60 inline GetSubscriptionGrantResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
61 inline GetSubscriptionGrantResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
63
65
68 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
69 inline void SetCreatedBy(const Aws::String& value) { m_createdBy = value; }
70 inline void SetCreatedBy(Aws::String&& value) { m_createdBy = std::move(value); }
71 inline void SetCreatedBy(const char* value) { m_createdBy.assign(value); }
72 inline GetSubscriptionGrantResult& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
73 inline GetSubscriptionGrantResult& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
74 inline GetSubscriptionGrantResult& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
76
78
82 inline const Aws::String& GetDomainId() const{ return m_domainId; }
83 inline void SetDomainId(const Aws::String& value) { m_domainId = value; }
84 inline void SetDomainId(Aws::String&& value) { m_domainId = std::move(value); }
85 inline void SetDomainId(const char* value) { m_domainId.assign(value); }
86 inline GetSubscriptionGrantResult& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;}
87 inline GetSubscriptionGrantResult& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;}
88 inline GetSubscriptionGrantResult& WithDomainId(const char* value) { SetDomainId(value); return *this;}
90
92
95 inline const GrantedEntity& GetGrantedEntity() const{ return m_grantedEntity; }
96 inline void SetGrantedEntity(const GrantedEntity& value) { m_grantedEntity = value; }
97 inline void SetGrantedEntity(GrantedEntity&& value) { m_grantedEntity = std::move(value); }
98 inline GetSubscriptionGrantResult& WithGrantedEntity(const GrantedEntity& value) { SetGrantedEntity(value); return *this;}
99 inline GetSubscriptionGrantResult& WithGrantedEntity(GrantedEntity&& value) { SetGrantedEntity(std::move(value)); return *this;}
101
103
106 inline const Aws::String& GetId() const{ return m_id; }
107 inline void SetId(const Aws::String& value) { m_id = value; }
108 inline void SetId(Aws::String&& value) { m_id = std::move(value); }
109 inline void SetId(const char* value) { m_id.assign(value); }
110 inline GetSubscriptionGrantResult& WithId(const Aws::String& value) { SetId(value); return *this;}
111 inline GetSubscriptionGrantResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
112 inline GetSubscriptionGrantResult& WithId(const char* value) { SetId(value); return *this;}
114
116
119 inline const SubscriptionGrantOverallStatus& GetStatus() const{ return m_status; }
120 inline void SetStatus(const SubscriptionGrantOverallStatus& value) { m_status = value; }
121 inline void SetStatus(SubscriptionGrantOverallStatus&& value) { m_status = std::move(value); }
123 inline GetSubscriptionGrantResult& WithStatus(SubscriptionGrantOverallStatus&& value) { SetStatus(std::move(value)); return *this;}
125
127
130 inline const Aws::String& GetSubscriptionTargetId() const{ return m_subscriptionTargetId; }
131 inline void SetSubscriptionTargetId(const Aws::String& value) { m_subscriptionTargetId = value; }
132 inline void SetSubscriptionTargetId(Aws::String&& value) { m_subscriptionTargetId = std::move(value); }
133 inline void SetSubscriptionTargetId(const char* value) { m_subscriptionTargetId.assign(value); }
136 inline GetSubscriptionGrantResult& WithSubscriptionTargetId(const char* value) { SetSubscriptionTargetId(value); return *this;}
138
140
143 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
144 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; }
145 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); }
146 inline GetSubscriptionGrantResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
147 inline GetSubscriptionGrantResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
149
151
154 inline const Aws::String& GetUpdatedBy() const{ return m_updatedBy; }
155 inline void SetUpdatedBy(const Aws::String& value) { m_updatedBy = value; }
156 inline void SetUpdatedBy(Aws::String&& value) { m_updatedBy = std::move(value); }
157 inline void SetUpdatedBy(const char* value) { m_updatedBy.assign(value); }
158 inline GetSubscriptionGrantResult& WithUpdatedBy(const Aws::String& value) { SetUpdatedBy(value); return *this;}
159 inline GetSubscriptionGrantResult& WithUpdatedBy(Aws::String&& value) { SetUpdatedBy(std::move(value)); return *this;}
160 inline GetSubscriptionGrantResult& WithUpdatedBy(const char* value) { SetUpdatedBy(value); return *this;}
162
164
165 inline const Aws::String& GetRequestId() const{ return m_requestId; }
166 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
167 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
168 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
169 inline GetSubscriptionGrantResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
170 inline GetSubscriptionGrantResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
171 inline GetSubscriptionGrantResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
173 private:
174
176
177 Aws::Utils::DateTime m_createdAt;
178
179 Aws::String m_createdBy;
180
181 Aws::String m_domainId;
182
183 GrantedEntity m_grantedEntity;
184
185 Aws::String m_id;
186
188
189 Aws::String m_subscriptionTargetId;
190
191 Aws::Utils::DateTime m_updatedAt;
192
193 Aws::String m_updatedBy;
194
195 Aws::String m_requestId;
196 };
197
198} // namespace Model
199} // namespace DataZone
200} // namespace Aws
void SetStatus(const SubscriptionGrantOverallStatus &value)
GetSubscriptionGrantResult & WithGrantedEntity(const GrantedEntity &value)
GetSubscriptionGrantResult & WithDomainId(const char *value)
GetSubscriptionGrantResult & WithUpdatedAt(Aws::Utils::DateTime &&value)
GetSubscriptionGrantResult & AddAssets(SubscribedAsset &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
GetSubscriptionGrantResult & WithStatus(const SubscriptionGrantOverallStatus &value)
GetSubscriptionGrantResult & WithUpdatedBy(const Aws::String &value)
GetSubscriptionGrantResult & WithRequestId(const char *value)
GetSubscriptionGrantResult & WithId(Aws::String &&value)
GetSubscriptionGrantResult & WithUpdatedBy(const char *value)
GetSubscriptionGrantResult & WithAssets(Aws::Vector< SubscribedAsset > &&value)
void SetAssets(Aws::Vector< SubscribedAsset > &&value)
GetSubscriptionGrantResult & WithCreatedAt(const Aws::Utils::DateTime &value)
GetSubscriptionGrantResult & WithSubscriptionTargetId(const char *value)
GetSubscriptionGrantResult & WithSubscriptionTargetId(Aws::String &&value)
GetSubscriptionGrantResult & WithDomainId(const Aws::String &value)
GetSubscriptionGrantResult & WithStatus(SubscriptionGrantOverallStatus &&value)
AWS_DATAZONE_API GetSubscriptionGrantResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSubscriptionGrantResult & WithAssets(const Aws::Vector< SubscribedAsset > &value)
GetSubscriptionGrantResult & WithRequestId(Aws::String &&value)
const SubscriptionGrantOverallStatus & GetStatus() const
void SetStatus(SubscriptionGrantOverallStatus &&value)
GetSubscriptionGrantResult & WithDomainId(Aws::String &&value)
const Aws::Vector< SubscribedAsset > & GetAssets() const
GetSubscriptionGrantResult & WithId(const char *value)
GetSubscriptionGrantResult & WithSubscriptionTargetId(const Aws::String &value)
void SetAssets(const Aws::Vector< SubscribedAsset > &value)
GetSubscriptionGrantResult & WithRequestId(const Aws::String &value)
GetSubscriptionGrantResult & WithId(const Aws::String &value)
GetSubscriptionGrantResult & WithCreatedBy(Aws::String &&value)
GetSubscriptionGrantResult & WithUpdatedBy(Aws::String &&value)
GetSubscriptionGrantResult & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
GetSubscriptionGrantResult & WithCreatedBy(const char *value)
GetSubscriptionGrantResult & WithGrantedEntity(GrantedEntity &&value)
AWS_DATAZONE_API GetSubscriptionGrantResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSubscriptionGrantResult & WithCreatedBy(const Aws::String &value)
GetSubscriptionGrantResult & WithUpdatedAt(const Aws::Utils::DateTime &value)
GetSubscriptionGrantResult & AddAssets(const SubscribedAsset &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