AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
CreateGrantVersionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/license-manager/LicenseManagerRequest.h>
10#include <aws/license-manager/LicenseManager_EXPORTS.h>
11#include <aws/license-manager/model/AllowedOperation.h>
12#include <aws/license-manager/model/GrantStatus.h>
13#include <aws/license-manager/model/Options.h>
14
15#include <utility>
16
17namespace Aws {
18namespace LicenseManager {
19namespace Model {
20
24 public:
25 AWS_LICENSEMANAGER_API CreateGrantVersionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateGrantVersion"; }
32
33 AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override;
34
35 AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
42 inline const Aws::String& GetClientToken() const { return m_clientToken; }
43 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
44 template <typename ClientTokenT = Aws::String>
45 void SetClientToken(ClientTokenT&& value) {
46 m_clientTokenHasBeenSet = true;
47 m_clientToken = std::forward<ClientTokenT>(value);
48 }
49 template <typename ClientTokenT = Aws::String>
51 SetClientToken(std::forward<ClientTokenT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetGrantArn() const { return m_grantArn; }
61 inline bool GrantArnHasBeenSet() const { return m_grantArnHasBeenSet; }
62 template <typename GrantArnT = Aws::String>
63 void SetGrantArn(GrantArnT&& value) {
64 m_grantArnHasBeenSet = true;
65 m_grantArn = std::forward<GrantArnT>(value);
66 }
67 template <typename GrantArnT = Aws::String>
69 SetGrantArn(std::forward<GrantArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetGrantName() const { return m_grantName; }
79 inline bool GrantNameHasBeenSet() const { return m_grantNameHasBeenSet; }
80 template <typename GrantNameT = Aws::String>
81 void SetGrantName(GrantNameT&& value) {
82 m_grantNameHasBeenSet = true;
83 m_grantName = std::forward<GrantNameT>(value);
84 }
85 template <typename GrantNameT = Aws::String>
87 SetGrantName(std::forward<GrantNameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Vector<AllowedOperation>& GetAllowedOperations() const { return m_allowedOperations; }
97 inline bool AllowedOperationsHasBeenSet() const { return m_allowedOperationsHasBeenSet; }
98 template <typename AllowedOperationsT = Aws::Vector<AllowedOperation>>
99 void SetAllowedOperations(AllowedOperationsT&& value) {
100 m_allowedOperationsHasBeenSet = true;
101 m_allowedOperations = std::forward<AllowedOperationsT>(value);
102 }
103 template <typename AllowedOperationsT = Aws::Vector<AllowedOperation>>
105 SetAllowedOperations(std::forward<AllowedOperationsT>(value));
106 return *this;
107 }
109 m_allowedOperationsHasBeenSet = true;
110 m_allowedOperations.push_back(value);
111 return *this;
112 }
114
116
119 inline GrantStatus GetStatus() const { return m_status; }
120 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
121 inline void SetStatus(GrantStatus value) {
122 m_statusHasBeenSet = true;
123 m_status = value;
124 }
126 SetStatus(value);
127 return *this;
128 }
130
132
135 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
136 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
137 template <typename StatusReasonT = Aws::String>
138 void SetStatusReason(StatusReasonT&& value) {
139 m_statusReasonHasBeenSet = true;
140 m_statusReason = std::forward<StatusReasonT>(value);
141 }
142 template <typename StatusReasonT = Aws::String>
144 SetStatusReason(std::forward<StatusReasonT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetSourceVersion() const { return m_sourceVersion; }
154 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
155 template <typename SourceVersionT = Aws::String>
156 void SetSourceVersion(SourceVersionT&& value) {
157 m_sourceVersionHasBeenSet = true;
158 m_sourceVersion = std::forward<SourceVersionT>(value);
159 }
160 template <typename SourceVersionT = Aws::String>
162 SetSourceVersion(std::forward<SourceVersionT>(value));
163 return *this;
164 }
166
168
171 inline const Options& GetOptions() const { return m_options; }
172 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
173 template <typename OptionsT = Options>
174 void SetOptions(OptionsT&& value) {
175 m_optionsHasBeenSet = true;
176 m_options = std::forward<OptionsT>(value);
177 }
178 template <typename OptionsT = Options>
180 SetOptions(std::forward<OptionsT>(value));
181 return *this;
182 }
184 private:
185 Aws::String m_clientToken;
186 bool m_clientTokenHasBeenSet = false;
187
188 Aws::String m_grantArn;
189 bool m_grantArnHasBeenSet = false;
190
191 Aws::String m_grantName;
192 bool m_grantNameHasBeenSet = false;
193
194 Aws::Vector<AllowedOperation> m_allowedOperations;
195 bool m_allowedOperationsHasBeenSet = false;
196
198 bool m_statusHasBeenSet = false;
199
200 Aws::String m_statusReason;
201 bool m_statusReasonHasBeenSet = false;
202
203 Aws::String m_sourceVersion;
204 bool m_sourceVersionHasBeenSet = false;
205
206 Options m_options;
207 bool m_optionsHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace LicenseManager
212} // namespace Aws
CreateGrantVersionRequest & WithGrantName(GrantNameT &&value)
CreateGrantVersionRequest & AddAllowedOperations(AllowedOperation value)
AWS_LICENSEMANAGER_API CreateGrantVersionRequest()=default
CreateGrantVersionRequest & WithStatusReason(StatusReasonT &&value)
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateGrantVersionRequest & WithOptions(OptionsT &&value)
CreateGrantVersionRequest & WithSourceVersion(SourceVersionT &&value)
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
CreateGrantVersionRequest & WithClientToken(ClientTokenT &&value)
const Aws::Vector< AllowedOperation > & GetAllowedOperations() const
CreateGrantVersionRequest & WithStatus(GrantStatus value)
CreateGrantVersionRequest & WithGrantArn(GrantArnT &&value)
CreateGrantVersionRequest & WithAllowedOperations(AllowedOperationsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector