AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AcceptDataGrantResult.h
1
6#pragma once
7#include <aws/dataexchange/DataExchange_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dataexchange/model/DataGrantAcceptanceState.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/dataexchange/model/GrantDistributionScope.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace DataExchange
27{
28namespace Model
29{
31 {
32 public:
33 AWS_DATAEXCHANGE_API AcceptDataGrantResult() = default;
36
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 template<typename NameT = Aws::String>
44 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
45 template<typename NameT = Aws::String>
46 AcceptDataGrantResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetSenderPrincipal() const { return m_senderPrincipal; }
54 template<typename SenderPrincipalT = Aws::String>
55 void SetSenderPrincipal(SenderPrincipalT&& value) { m_senderPrincipalHasBeenSet = true; m_senderPrincipal = std::forward<SenderPrincipalT>(value); }
56 template<typename SenderPrincipalT = Aws::String>
57 AcceptDataGrantResult& WithSenderPrincipal(SenderPrincipalT&& value) { SetSenderPrincipal(std::forward<SenderPrincipalT>(value)); return *this;}
59
61
64 inline const Aws::String& GetReceiverPrincipal() const { return m_receiverPrincipal; }
65 template<typename ReceiverPrincipalT = Aws::String>
66 void SetReceiverPrincipal(ReceiverPrincipalT&& value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal = std::forward<ReceiverPrincipalT>(value); }
67 template<typename ReceiverPrincipalT = Aws::String>
68 AcceptDataGrantResult& WithReceiverPrincipal(ReceiverPrincipalT&& value) { SetReceiverPrincipal(std::forward<ReceiverPrincipalT>(value)); return *this;}
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 template<typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
78 template<typename DescriptionT = Aws::String>
79 AcceptDataGrantResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
81
83
86 inline DataGrantAcceptanceState GetAcceptanceState() const { return m_acceptanceState; }
87 inline void SetAcceptanceState(DataGrantAcceptanceState value) { m_acceptanceStateHasBeenSet = true; m_acceptanceState = value; }
90
92
95 inline const Aws::Utils::DateTime& GetAcceptedAt() const { return m_acceptedAt; }
96 template<typename AcceptedAtT = Aws::Utils::DateTime>
97 void SetAcceptedAt(AcceptedAtT&& value) { m_acceptedAtHasBeenSet = true; m_acceptedAt = std::forward<AcceptedAtT>(value); }
98 template<typename AcceptedAtT = Aws::Utils::DateTime>
99 AcceptDataGrantResult& WithAcceptedAt(AcceptedAtT&& value) { SetAcceptedAt(std::forward<AcceptedAtT>(value)); return *this;}
101
103
106 inline const Aws::Utils::DateTime& GetEndsAt() const { return m_endsAt; }
107 template<typename EndsAtT = Aws::Utils::DateTime>
108 void SetEndsAt(EndsAtT&& value) { m_endsAtHasBeenSet = true; m_endsAt = std::forward<EndsAtT>(value); }
109 template<typename EndsAtT = Aws::Utils::DateTime>
110 AcceptDataGrantResult& WithEndsAt(EndsAtT&& value) { SetEndsAt(std::forward<EndsAtT>(value)); return *this;}
112
114
117 inline GrantDistributionScope GetGrantDistributionScope() const { return m_grantDistributionScope; }
118 inline void SetGrantDistributionScope(GrantDistributionScope value) { m_grantDistributionScopeHasBeenSet = true; m_grantDistributionScope = value; }
121
123
126 inline const Aws::String& GetDataSetId() const { return m_dataSetId; }
127 template<typename DataSetIdT = Aws::String>
128 void SetDataSetId(DataSetIdT&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::forward<DataSetIdT>(value); }
129 template<typename DataSetIdT = Aws::String>
130 AcceptDataGrantResult& WithDataSetId(DataSetIdT&& value) { SetDataSetId(std::forward<DataSetIdT>(value)); return *this;}
132
134
137 inline const Aws::String& GetId() const { return m_id; }
138 template<typename IdT = Aws::String>
139 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
140 template<typename IdT = Aws::String>
141 AcceptDataGrantResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
143
145
148 inline const Aws::String& GetArn() const { return m_arn; }
149 template<typename ArnT = Aws::String>
150 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
151 template<typename ArnT = Aws::String>
152 AcceptDataGrantResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
154
156
159 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
160 template<typename CreatedAtT = Aws::Utils::DateTime>
161 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
162 template<typename CreatedAtT = Aws::Utils::DateTime>
163 AcceptDataGrantResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
165
167
170 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
171 template<typename UpdatedAtT = Aws::Utils::DateTime>
172 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
173 template<typename UpdatedAtT = Aws::Utils::DateTime>
174 AcceptDataGrantResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
176
178
179 inline const Aws::String& GetRequestId() const { return m_requestId; }
180 template<typename RequestIdT = Aws::String>
181 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
182 template<typename RequestIdT = Aws::String>
183 AcceptDataGrantResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
185 private:
186
187 Aws::String m_name;
188 bool m_nameHasBeenSet = false;
189
190 Aws::String m_senderPrincipal;
191 bool m_senderPrincipalHasBeenSet = false;
192
193 Aws::String m_receiverPrincipal;
194 bool m_receiverPrincipalHasBeenSet = false;
195
196 Aws::String m_description;
197 bool m_descriptionHasBeenSet = false;
198
200 bool m_acceptanceStateHasBeenSet = false;
201
202 Aws::Utils::DateTime m_acceptedAt{};
203 bool m_acceptedAtHasBeenSet = false;
204
205 Aws::Utils::DateTime m_endsAt{};
206 bool m_endsAtHasBeenSet = false;
207
209 bool m_grantDistributionScopeHasBeenSet = false;
210
211 Aws::String m_dataSetId;
212 bool m_dataSetIdHasBeenSet = false;
213
214 Aws::String m_id;
215 bool m_idHasBeenSet = false;
216
217 Aws::String m_arn;
218 bool m_arnHasBeenSet = false;
219
220 Aws::Utils::DateTime m_createdAt{};
221 bool m_createdAtHasBeenSet = false;
222
223 Aws::Utils::DateTime m_updatedAt{};
224 bool m_updatedAtHasBeenSet = false;
225
226 Aws::String m_requestId;
227 bool m_requestIdHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace DataExchange
232} // namespace Aws
const Aws::Utils::DateTime & GetEndsAt() const
AcceptDataGrantResult & WithDescription(DescriptionT &&value)
AcceptDataGrantResult & WithAcceptedAt(AcceptedAtT &&value)
AcceptDataGrantResult & WithCreatedAt(CreatedAtT &&value)
AcceptDataGrantResult & WithArn(ArnT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetReceiverPrincipal(ReceiverPrincipalT &&value)
AcceptDataGrantResult & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetAcceptedAt() const
void SetGrantDistributionScope(GrantDistributionScope value)
const Aws::Utils::DateTime & GetUpdatedAt() const
AcceptDataGrantResult & WithRequestId(RequestIdT &&value)
AWS_DATAEXCHANGE_API AcceptDataGrantResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AcceptDataGrantResult & WithReceiverPrincipal(ReceiverPrincipalT &&value)
AcceptDataGrantResult & WithSenderPrincipal(SenderPrincipalT &&value)
AWS_DATAEXCHANGE_API AcceptDataGrantResult()=default
AcceptDataGrantResult & WithGrantDistributionScope(GrantDistributionScope value)
AWS_DATAEXCHANGE_API AcceptDataGrantResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AcceptDataGrantResult & WithAcceptanceState(DataGrantAcceptanceState value)
AcceptDataGrantResult & WithName(NameT &&value)
AcceptDataGrantResult & WithEndsAt(EndsAtT &&value)
void SetAcceptanceState(DataGrantAcceptanceState value)
DataGrantAcceptanceState GetAcceptanceState() const
AcceptDataGrantResult & WithDataSetId(DataSetIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue