AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSubscriptionGrantResult.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 CreateSubscriptionGrantResult& WithAssets(Aws::Vector<SubscribedAsset>&& value) { SetAssets(std::move(value)); return *this;}
49 inline CreateSubscriptionGrantResult& AddAssets(const SubscribedAsset& value) { m_assets.push_back(value); return *this; }
50 inline CreateSubscriptionGrantResult& 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 CreateSubscriptionGrantResult& 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 CreateSubscriptionGrantResult& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
73 inline CreateSubscriptionGrantResult& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
74 inline CreateSubscriptionGrantResult& 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 CreateSubscriptionGrantResult& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;}
87 inline CreateSubscriptionGrantResult& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;}
88 inline CreateSubscriptionGrantResult& 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); }
99 inline CreateSubscriptionGrantResult& 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 CreateSubscriptionGrantResult& WithId(const Aws::String& value) { SetId(value); return *this;}
111 inline CreateSubscriptionGrantResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
112 inline CreateSubscriptionGrantResult& 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 CreateSubscriptionGrantResult& WithStatus(SubscriptionGrantOverallStatus&& value) { SetStatus(std::move(value)); return *this;}
125
127
131 inline const Aws::String& GetSubscriptionTargetId() const{ return m_subscriptionTargetId; }
132 inline void SetSubscriptionTargetId(const Aws::String& value) { m_subscriptionTargetId = value; }
133 inline void SetSubscriptionTargetId(Aws::String&& value) { m_subscriptionTargetId = std::move(value); }
134 inline void SetSubscriptionTargetId(const char* value) { m_subscriptionTargetId.assign(value); }
137 inline CreateSubscriptionGrantResult& WithSubscriptionTargetId(const char* value) { SetSubscriptionTargetId(value); return *this;}
139
141
144 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
145 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; }
146 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); }
148 inline CreateSubscriptionGrantResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
150
152
155 inline const Aws::String& GetUpdatedBy() const{ return m_updatedBy; }
156 inline void SetUpdatedBy(const Aws::String& value) { m_updatedBy = value; }
157 inline void SetUpdatedBy(Aws::String&& value) { m_updatedBy = std::move(value); }
158 inline void SetUpdatedBy(const char* value) { m_updatedBy.assign(value); }
159 inline CreateSubscriptionGrantResult& WithUpdatedBy(const Aws::String& value) { SetUpdatedBy(value); return *this;}
160 inline CreateSubscriptionGrantResult& WithUpdatedBy(Aws::String&& value) { SetUpdatedBy(std::move(value)); return *this;}
161 inline CreateSubscriptionGrantResult& WithUpdatedBy(const char* value) { SetUpdatedBy(value); return *this;}
163
165
166 inline const Aws::String& GetRequestId() const{ return m_requestId; }
167 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
168 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
169 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
170 inline CreateSubscriptionGrantResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
171 inline CreateSubscriptionGrantResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
172 inline CreateSubscriptionGrantResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
174 private:
175
177
178 Aws::Utils::DateTime m_createdAt;
179
180 Aws::String m_createdBy;
181
182 Aws::String m_domainId;
183
184 GrantedEntity m_grantedEntity;
185
186 Aws::String m_id;
187
189
190 Aws::String m_subscriptionTargetId;
191
192 Aws::Utils::DateTime m_updatedAt;
193
194 Aws::String m_updatedBy;
195
196 Aws::String m_requestId;
197 };
198
199} // namespace Model
200} // namespace DataZone
201} // namespace Aws
void SetAssets(const Aws::Vector< SubscribedAsset > &value)
CreateSubscriptionGrantResult & WithDomainId(Aws::String &&value)
CreateSubscriptionGrantResult & WithCreatedBy(const char *value)
CreateSubscriptionGrantResult & WithGrantedEntity(GrantedEntity &&value)
CreateSubscriptionGrantResult & WithUpdatedAt(Aws::Utils::DateTime &&value)
CreateSubscriptionGrantResult & WithRequestId(const char *value)
CreateSubscriptionGrantResult & WithAssets(Aws::Vector< SubscribedAsset > &&value)
CreateSubscriptionGrantResult & WithUpdatedBy(const Aws::String &value)
CreateSubscriptionGrantResult & WithUpdatedBy(Aws::String &&value)
CreateSubscriptionGrantResult & WithCreatedAt(Aws::Utils::DateTime &&value)
CreateSubscriptionGrantResult & WithId(const char *value)
void SetAssets(Aws::Vector< SubscribedAsset > &&value)
const Aws::Vector< SubscribedAsset > & GetAssets() const
CreateSubscriptionGrantResult & AddAssets(const SubscribedAsset &value)
CreateSubscriptionGrantResult & WithId(Aws::String &&value)
CreateSubscriptionGrantResult & WithStatus(const SubscriptionGrantOverallStatus &value)
CreateSubscriptionGrantResult & WithUpdatedAt(const Aws::Utils::DateTime &value)
void SetStatus(const SubscriptionGrantOverallStatus &value)
CreateSubscriptionGrantResult & AddAssets(SubscribedAsset &&value)
CreateSubscriptionGrantResult & WithAssets(const Aws::Vector< SubscribedAsset > &value)
AWS_DATAZONE_API CreateSubscriptionGrantResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateSubscriptionGrantResult & WithStatus(SubscriptionGrantOverallStatus &&value)
const SubscriptionGrantOverallStatus & GetStatus() const
void SetStatus(SubscriptionGrantOverallStatus &&value)
CreateSubscriptionGrantResult & WithRequestId(Aws::String &&value)
CreateSubscriptionGrantResult & WithRequestId(const Aws::String &value)
CreateSubscriptionGrantResult & WithSubscriptionTargetId(Aws::String &&value)
AWS_DATAZONE_API CreateSubscriptionGrantResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateSubscriptionGrantResult & WithSubscriptionTargetId(const Aws::String &value)
CreateSubscriptionGrantResult & WithGrantedEntity(const GrantedEntity &value)
CreateSubscriptionGrantResult & WithDomainId(const Aws::String &value)
CreateSubscriptionGrantResult & WithSubscriptionTargetId(const char *value)
CreateSubscriptionGrantResult & WithCreatedAt(const Aws::Utils::DateTime &value)
CreateSubscriptionGrantResult & WithCreatedBy(const Aws::String &value)
CreateSubscriptionGrantResult & WithDomainId(const char *value)
CreateSubscriptionGrantResult & WithUpdatedBy(const char *value)
CreateSubscriptionGrantResult & WithId(const Aws::String &value)
CreateSubscriptionGrantResult & WithCreatedBy(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