AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DeleteSubscriptionGrantResult.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 DeleteSubscriptionGrantResult() = 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 DeleteSubscriptionGrantResult& WithAssets(AssetsT&& value) { SetAssets(std::forward<AssetsT>(value)); return *this;}
49 template<typename AssetsT = SubscribedAsset>
50 DeleteSubscriptionGrantResult& 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 DeleteSubscriptionGrantResult& 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 DeleteSubscriptionGrantResult& 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 DeleteSubscriptionGrantResult& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
87
89
92 inline const GrantedEntity& GetGrantedEntity() const { return m_grantedEntity; }
93 template<typename GrantedEntityT = GrantedEntity>
94 void SetGrantedEntity(GrantedEntityT&& value) { m_grantedEntityHasBeenSet = true; m_grantedEntity = std::forward<GrantedEntityT>(value); }
95 template<typename GrantedEntityT = GrantedEntity>
96 DeleteSubscriptionGrantResult& WithGrantedEntity(GrantedEntityT&& value) { SetGrantedEntity(std::forward<GrantedEntityT>(value)); return *this;}
98
100
103 inline const Aws::String& GetId() const { return m_id; }
104 template<typename IdT = Aws::String>
105 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
106 template<typename IdT = Aws::String>
107 DeleteSubscriptionGrantResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
109
111
114 inline SubscriptionGrantOverallStatus GetStatus() const { return m_status; }
115 inline void SetStatus(SubscriptionGrantOverallStatus value) { m_statusHasBeenSet = true; m_status = value; }
118
120
124 inline const Aws::String& GetSubscriptionTargetId() const { return m_subscriptionTargetId; }
125 template<typename SubscriptionTargetIdT = Aws::String>
126 void SetSubscriptionTargetId(SubscriptionTargetIdT&& value) { m_subscriptionTargetIdHasBeenSet = true; m_subscriptionTargetId = std::forward<SubscriptionTargetIdT>(value); }
127 template<typename SubscriptionTargetIdT = Aws::String>
128 DeleteSubscriptionGrantResult& WithSubscriptionTargetId(SubscriptionTargetIdT&& value) { SetSubscriptionTargetId(std::forward<SubscriptionTargetIdT>(value)); return *this;}
130
132
135 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
136 template<typename UpdatedAtT = Aws::Utils::DateTime>
137 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
138 template<typename UpdatedAtT = Aws::Utils::DateTime>
139 DeleteSubscriptionGrantResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
141
143
147 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
148 template<typename UpdatedByT = Aws::String>
149 void SetUpdatedBy(UpdatedByT&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::forward<UpdatedByT>(value); }
150 template<typename UpdatedByT = Aws::String>
151 DeleteSubscriptionGrantResult& WithUpdatedBy(UpdatedByT&& value) { SetUpdatedBy(std::forward<UpdatedByT>(value)); return *this;}
153
155
156 inline const Aws::String& GetRequestId() const { return m_requestId; }
157 template<typename RequestIdT = Aws::String>
158 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
159 template<typename RequestIdT = Aws::String>
160 DeleteSubscriptionGrantResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
162 private:
163
165 bool m_assetsHasBeenSet = false;
166
167 Aws::Utils::DateTime m_createdAt{};
168 bool m_createdAtHasBeenSet = false;
169
170 Aws::String m_createdBy;
171 bool m_createdByHasBeenSet = false;
172
173 Aws::String m_domainId;
174 bool m_domainIdHasBeenSet = false;
175
176 GrantedEntity m_grantedEntity;
177 bool m_grantedEntityHasBeenSet = false;
178
179 Aws::String m_id;
180 bool m_idHasBeenSet = false;
181
183 bool m_statusHasBeenSet = false;
184
185 Aws::String m_subscriptionTargetId;
186 bool m_subscriptionTargetIdHasBeenSet = false;
187
188 Aws::Utils::DateTime m_updatedAt{};
189 bool m_updatedAtHasBeenSet = false;
190
191 Aws::String m_updatedBy;
192 bool m_updatedByHasBeenSet = false;
193
194 Aws::String m_requestId;
195 bool m_requestIdHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace DataZone
200} // namespace Aws
const Aws::Vector< SubscribedAsset > & GetAssets() const
DeleteSubscriptionGrantResult & WithRequestId(RequestIdT &&value)
AWS_DATAZONE_API DeleteSubscriptionGrantResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DeleteSubscriptionGrantResult & WithStatus(SubscriptionGrantOverallStatus value)
DeleteSubscriptionGrantResult & WithDomainId(DomainIdT &&value)
DeleteSubscriptionGrantResult & WithCreatedAt(CreatedAtT &&value)
AWS_DATAZONE_API DeleteSubscriptionGrantResult()=default
DeleteSubscriptionGrantResult & WithSubscriptionTargetId(SubscriptionTargetIdT &&value)
DeleteSubscriptionGrantResult & WithUpdatedAt(UpdatedAtT &&value)
DeleteSubscriptionGrantResult & AddAssets(AssetsT &&value)
DeleteSubscriptionGrantResult & WithAssets(AssetsT &&value)
AWS_DATAZONE_API DeleteSubscriptionGrantResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DeleteSubscriptionGrantResult & WithCreatedBy(CreatedByT &&value)
DeleteSubscriptionGrantResult & WithUpdatedBy(UpdatedByT &&value)
DeleteSubscriptionGrantResult & WithGrantedEntity(GrantedEntityT &&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