AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
35 AWS_DATAZONE_API CreateSubscriptionGrantResult() = default;
38
39
41
44 inline const Aws::Vector<SubscribedAsset>& GetAssets() const { return m_assets; }
45 template<typename AssetsT = Aws::Vector<SubscribedAsset>>
46 void SetAssets(AssetsT&& value) { m_assetsHasBeenSet = true; m_assets = std::forward<AssetsT>(value); }
47 template<typename AssetsT = Aws::Vector<SubscribedAsset>>
48 CreateSubscriptionGrantResult& WithAssets(AssetsT&& value) { SetAssets(std::forward<AssetsT>(value)); return *this;}
49 template<typename AssetsT = SubscribedAsset>
50 CreateSubscriptionGrantResult& AddAssets(AssetsT&& value) { m_assetsHasBeenSet = true; m_assets.emplace_back(std::forward<AssetsT>(value)); return *this; }
52
54
57 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
58 template<typename CreatedAtT = Aws::Utils::DateTime>
59 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
60 template<typename CreatedAtT = Aws::Utils::DateTime>
61 CreateSubscriptionGrantResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
63
65
68 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
69 template<typename CreatedByT = Aws::String>
70 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
71 template<typename CreatedByT = Aws::String>
72 CreateSubscriptionGrantResult& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
74
76
80 inline const Aws::String& GetDomainId() const { return m_domainId; }
81 template<typename DomainIdT = Aws::String>
82 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
83 template<typename DomainIdT = Aws::String>
84 CreateSubscriptionGrantResult& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
86
88
91 inline const GrantedEntity& GetGrantedEntity() const { return m_grantedEntity; }
92 template<typename GrantedEntityT = GrantedEntity>
93 void SetGrantedEntity(GrantedEntityT&& value) { m_grantedEntityHasBeenSet = true; m_grantedEntity = std::forward<GrantedEntityT>(value); }
94 template<typename GrantedEntityT = GrantedEntity>
95 CreateSubscriptionGrantResult& WithGrantedEntity(GrantedEntityT&& value) { SetGrantedEntity(std::forward<GrantedEntityT>(value)); return *this;}
97
99
102 inline const Aws::String& GetId() const { return m_id; }
103 template<typename IdT = Aws::String>
104 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
105 template<typename IdT = Aws::String>
106 CreateSubscriptionGrantResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
108
110
113 inline SubscriptionGrantOverallStatus GetStatus() const { return m_status; }
114 inline void SetStatus(SubscriptionGrantOverallStatus value) { m_statusHasBeenSet = true; m_status = value; }
117
119
123 inline const Aws::String& GetSubscriptionTargetId() const { return m_subscriptionTargetId; }
124 template<typename SubscriptionTargetIdT = Aws::String>
125 void SetSubscriptionTargetId(SubscriptionTargetIdT&& value) { m_subscriptionTargetIdHasBeenSet = true; m_subscriptionTargetId = std::forward<SubscriptionTargetIdT>(value); }
126 template<typename SubscriptionTargetIdT = Aws::String>
127 CreateSubscriptionGrantResult& WithSubscriptionTargetId(SubscriptionTargetIdT&& value) { SetSubscriptionTargetId(std::forward<SubscriptionTargetIdT>(value)); return *this;}
129
131
134 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
135 template<typename UpdatedAtT = Aws::Utils::DateTime>
136 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
137 template<typename UpdatedAtT = Aws::Utils::DateTime>
138 CreateSubscriptionGrantResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
140
142
145 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
146 template<typename UpdatedByT = Aws::String>
147 void SetUpdatedBy(UpdatedByT&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::forward<UpdatedByT>(value); }
148 template<typename UpdatedByT = Aws::String>
149 CreateSubscriptionGrantResult& WithUpdatedBy(UpdatedByT&& value) { SetUpdatedBy(std::forward<UpdatedByT>(value)); return *this;}
151
153
154 inline const Aws::String& GetRequestId() const { return m_requestId; }
155 template<typename RequestIdT = Aws::String>
156 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
157 template<typename RequestIdT = Aws::String>
158 CreateSubscriptionGrantResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
160 private:
161
163 bool m_assetsHasBeenSet = false;
164
165 Aws::Utils::DateTime m_createdAt{};
166 bool m_createdAtHasBeenSet = false;
167
168 Aws::String m_createdBy;
169 bool m_createdByHasBeenSet = false;
170
171 Aws::String m_domainId;
172 bool m_domainIdHasBeenSet = false;
173
174 GrantedEntity m_grantedEntity;
175 bool m_grantedEntityHasBeenSet = false;
176
177 Aws::String m_id;
178 bool m_idHasBeenSet = false;
179
181 bool m_statusHasBeenSet = false;
182
183 Aws::String m_subscriptionTargetId;
184 bool m_subscriptionTargetIdHasBeenSet = false;
185
186 Aws::Utils::DateTime m_updatedAt{};
187 bool m_updatedAtHasBeenSet = false;
188
189 Aws::String m_updatedBy;
190 bool m_updatedByHasBeenSet = false;
191
192 Aws::String m_requestId;
193 bool m_requestIdHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace DataZone
198} // namespace Aws
CreateSubscriptionGrantResult & AddAssets(AssetsT &&value)
CreateSubscriptionGrantResult & WithCreatedAt(CreatedAtT &&value)
CreateSubscriptionGrantResult & WithCreatedBy(CreatedByT &&value)
CreateSubscriptionGrantResult & WithUpdatedBy(UpdatedByT &&value)
const Aws::Vector< SubscribedAsset > & GetAssets() const
CreateSubscriptionGrantResult & WithSubscriptionTargetId(SubscriptionTargetIdT &&value)
CreateSubscriptionGrantResult & WithRequestId(RequestIdT &&value)
AWS_DATAZONE_API CreateSubscriptionGrantResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateSubscriptionGrantResult & WithGrantedEntity(GrantedEntityT &&value)
AWS_DATAZONE_API CreateSubscriptionGrantResult()=default
CreateSubscriptionGrantResult & WithDomainId(DomainIdT &&value)
AWS_DATAZONE_API CreateSubscriptionGrantResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateSubscriptionGrantResult & WithUpdatedAt(UpdatedAtT &&value)
CreateSubscriptionGrantResult & WithStatus(SubscriptionGrantOverallStatus value)
CreateSubscriptionGrantResult & WithAssets(AssetsT &&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