AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
35 AWS_DATAZONE_API UpdateSubscriptionGrantStatusResult() = 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 UpdateSubscriptionGrantStatusResult& WithAssets(AssetsT&& value) { SetAssets(std::forward<AssetsT>(value)); return *this;}
49 template<typename AssetsT = SubscribedAsset>
50 UpdateSubscriptionGrantStatusResult& 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 UpdateSubscriptionGrantStatusResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
63
65
69 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
70 template<typename CreatedByT = Aws::String>
71 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
72 template<typename CreatedByT = Aws::String>
73 UpdateSubscriptionGrantStatusResult& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
75
77
81 inline const Aws::String& GetDomainId() const { return m_domainId; }
82 template<typename DomainIdT = Aws::String>
83 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
84 template<typename DomainIdT = Aws::String>
85 UpdateSubscriptionGrantStatusResult& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
87
89
93 inline const GrantedEntity& GetGrantedEntity() const { return m_grantedEntity; }
94 template<typename GrantedEntityT = GrantedEntity>
95 void SetGrantedEntity(GrantedEntityT&& value) { m_grantedEntityHasBeenSet = true; m_grantedEntity = std::forward<GrantedEntityT>(value); }
96 template<typename GrantedEntityT = GrantedEntity>
97 UpdateSubscriptionGrantStatusResult& WithGrantedEntity(GrantedEntityT&& value) { SetGrantedEntity(std::forward<GrantedEntityT>(value)); return *this;}
99
101
104 inline const Aws::String& GetId() const { return m_id; }
105 template<typename IdT = Aws::String>
106 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
107 template<typename IdT = Aws::String>
108 UpdateSubscriptionGrantStatusResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
110
112
116 inline SubscriptionGrantOverallStatus GetStatus() const { return m_status; }
117 inline void SetStatus(SubscriptionGrantOverallStatus value) { m_statusHasBeenSet = true; m_status = value; }
120
122
126 inline const Aws::String& GetSubscriptionTargetId() const { return m_subscriptionTargetId; }
127 template<typename SubscriptionTargetIdT = Aws::String>
128 void SetSubscriptionTargetId(SubscriptionTargetIdT&& value) { m_subscriptionTargetIdHasBeenSet = true; m_subscriptionTargetId = std::forward<SubscriptionTargetIdT>(value); }
129 template<typename SubscriptionTargetIdT = Aws::String>
130 UpdateSubscriptionGrantStatusResult& WithSubscriptionTargetId(SubscriptionTargetIdT&& value) { SetSubscriptionTargetId(std::forward<SubscriptionTargetIdT>(value)); return *this;}
132
134
137 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
138 template<typename UpdatedAtT = Aws::Utils::DateTime>
139 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
140 template<typename UpdatedAtT = Aws::Utils::DateTime>
141 UpdateSubscriptionGrantStatusResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
143
145
148 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
149 template<typename UpdatedByT = Aws::String>
150 void SetUpdatedBy(UpdatedByT&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::forward<UpdatedByT>(value); }
151 template<typename UpdatedByT = Aws::String>
152 UpdateSubscriptionGrantStatusResult& WithUpdatedBy(UpdatedByT&& value) { SetUpdatedBy(std::forward<UpdatedByT>(value)); return *this;}
154
156
157 inline const Aws::String& GetRequestId() const { return m_requestId; }
158 template<typename RequestIdT = Aws::String>
159 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
160 template<typename RequestIdT = Aws::String>
161 UpdateSubscriptionGrantStatusResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
163 private:
164
166 bool m_assetsHasBeenSet = false;
167
168 Aws::Utils::DateTime m_createdAt{};
169 bool m_createdAtHasBeenSet = false;
170
171 Aws::String m_createdBy;
172 bool m_createdByHasBeenSet = false;
173
174 Aws::String m_domainId;
175 bool m_domainIdHasBeenSet = false;
176
177 GrantedEntity m_grantedEntity;
178 bool m_grantedEntityHasBeenSet = false;
179
180 Aws::String m_id;
181 bool m_idHasBeenSet = false;
182
184 bool m_statusHasBeenSet = false;
185
186 Aws::String m_subscriptionTargetId;
187 bool m_subscriptionTargetIdHasBeenSet = false;
188
189 Aws::Utils::DateTime m_updatedAt{};
190 bool m_updatedAtHasBeenSet = false;
191
192 Aws::String m_updatedBy;
193 bool m_updatedByHasBeenSet = false;
194
195 Aws::String m_requestId;
196 bool m_requestIdHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace DataZone
201} // namespace Aws
UpdateSubscriptionGrantStatusResult & WithDomainId(DomainIdT &&value)
AWS_DATAZONE_API UpdateSubscriptionGrantStatusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateSubscriptionGrantStatusResult & WithSubscriptionTargetId(SubscriptionTargetIdT &&value)
UpdateSubscriptionGrantStatusResult & WithCreatedAt(CreatedAtT &&value)
UpdateSubscriptionGrantStatusResult & WithAssets(AssetsT &&value)
AWS_DATAZONE_API UpdateSubscriptionGrantStatusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateSubscriptionGrantStatusResult & WithUpdatedAt(UpdatedAtT &&value)
UpdateSubscriptionGrantStatusResult & WithUpdatedBy(UpdatedByT &&value)
UpdateSubscriptionGrantStatusResult & WithCreatedBy(CreatedByT &&value)
UpdateSubscriptionGrantStatusResult & AddAssets(AssetsT &&value)
UpdateSubscriptionGrantStatusResult & WithStatus(SubscriptionGrantOverallStatus value)
UpdateSubscriptionGrantStatusResult & WithGrantedEntity(GrantedEntityT &&value)
UpdateSubscriptionGrantStatusResult & WithRequestId(RequestIdT &&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