AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = 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 GetSubscriptionGrantResult& WithAssets(AssetsT&& value) { SetAssets(std::forward<AssetsT>(value)); return *this;}
49 template<typename AssetsT = SubscribedAsset>
50 GetSubscriptionGrantResult& 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 GetSubscriptionGrantResult& 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 GetSubscriptionGrantResult& 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 GetSubscriptionGrantResult& 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 GetSubscriptionGrantResult& 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 GetSubscriptionGrantResult& 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
122 inline const Aws::String& GetSubscriptionTargetId() const { return m_subscriptionTargetId; }
123 template<typename SubscriptionTargetIdT = Aws::String>
124 void SetSubscriptionTargetId(SubscriptionTargetIdT&& value) { m_subscriptionTargetIdHasBeenSet = true; m_subscriptionTargetId = std::forward<SubscriptionTargetIdT>(value); }
125 template<typename SubscriptionTargetIdT = Aws::String>
126 GetSubscriptionGrantResult& WithSubscriptionTargetId(SubscriptionTargetIdT&& value) { SetSubscriptionTargetId(std::forward<SubscriptionTargetIdT>(value)); return *this;}
128
130
133 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
134 template<typename UpdatedAtT = Aws::Utils::DateTime>
135 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
136 template<typename UpdatedAtT = Aws::Utils::DateTime>
137 GetSubscriptionGrantResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
139
141
144 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
145 template<typename UpdatedByT = Aws::String>
146 void SetUpdatedBy(UpdatedByT&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::forward<UpdatedByT>(value); }
147 template<typename UpdatedByT = Aws::String>
148 GetSubscriptionGrantResult& WithUpdatedBy(UpdatedByT&& value) { SetUpdatedBy(std::forward<UpdatedByT>(value)); return *this;}
150
152
153 inline const Aws::String& GetRequestId() const { return m_requestId; }
154 template<typename RequestIdT = Aws::String>
155 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
156 template<typename RequestIdT = Aws::String>
157 GetSubscriptionGrantResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
159 private:
160
162 bool m_assetsHasBeenSet = false;
163
164 Aws::Utils::DateTime m_createdAt{};
165 bool m_createdAtHasBeenSet = false;
166
167 Aws::String m_createdBy;
168 bool m_createdByHasBeenSet = false;
169
170 Aws::String m_domainId;
171 bool m_domainIdHasBeenSet = false;
172
173 GrantedEntity m_grantedEntity;
174 bool m_grantedEntityHasBeenSet = false;
175
176 Aws::String m_id;
177 bool m_idHasBeenSet = false;
178
180 bool m_statusHasBeenSet = false;
181
182 Aws::String m_subscriptionTargetId;
183 bool m_subscriptionTargetIdHasBeenSet = false;
184
185 Aws::Utils::DateTime m_updatedAt{};
186 bool m_updatedAtHasBeenSet = false;
187
188 Aws::String m_updatedBy;
189 bool m_updatedByHasBeenSet = false;
190
191 Aws::String m_requestId;
192 bool m_requestIdHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace DataZone
197} // namespace Aws
GetSubscriptionGrantResult & WithCreatedAt(CreatedAtT &&value)
GetSubscriptionGrantResult & WithRequestId(RequestIdT &&value)
GetSubscriptionGrantResult & AddAssets(AssetsT &&value)
GetSubscriptionGrantResult & WithId(IdT &&value)
GetSubscriptionGrantResult & WithStatus(SubscriptionGrantOverallStatus value)
GetSubscriptionGrantResult & WithAssets(AssetsT &&value)
GetSubscriptionGrantResult & WithGrantedEntity(GrantedEntityT &&value)
GetSubscriptionGrantResult & WithCreatedBy(CreatedByT &&value)
AWS_DATAZONE_API GetSubscriptionGrantResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DATAZONE_API GetSubscriptionGrantResult()=default
const Aws::Vector< SubscribedAsset > & GetAssets() const
GetSubscriptionGrantResult & WithDomainId(DomainIdT &&value)
GetSubscriptionGrantResult & WithUpdatedBy(UpdatedByT &&value)
GetSubscriptionGrantResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_DATAZONE_API GetSubscriptionGrantResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSubscriptionGrantResult & WithSubscriptionTargetId(SubscriptionTargetIdT &&value)
void SetSubscriptionTargetId(SubscriptionTargetIdT &&value)
void SetStatus(SubscriptionGrantOverallStatus 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