AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateGrantVersionRequest.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/license-manager/LicenseManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/license-manager/model/GrantStatus.h>
12#include <aws/license-manager/model/Options.h>
13#include <aws/license-manager/model/AllowedOperation.h>
14#include <utility>
15
16namespace Aws
17{
18namespace LicenseManager
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_LICENSEMANAGER_API CreateGrantVersionRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateGrantVersion"; }
35
36 AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override;
37
38 AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
46 inline const Aws::String& GetClientToken() const { return m_clientToken; }
47 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
48 template<typename ClientTokenT = Aws::String>
49 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
50 template<typename ClientTokenT = Aws::String>
51 CreateGrantVersionRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
53
55
58 inline const Aws::String& GetGrantArn() const { return m_grantArn; }
59 inline bool GrantArnHasBeenSet() const { return m_grantArnHasBeenSet; }
60 template<typename GrantArnT = Aws::String>
61 void SetGrantArn(GrantArnT&& value) { m_grantArnHasBeenSet = true; m_grantArn = std::forward<GrantArnT>(value); }
62 template<typename GrantArnT = Aws::String>
63 CreateGrantVersionRequest& WithGrantArn(GrantArnT&& value) { SetGrantArn(std::forward<GrantArnT>(value)); return *this;}
65
67
70 inline const Aws::String& GetGrantName() const { return m_grantName; }
71 inline bool GrantNameHasBeenSet() const { return m_grantNameHasBeenSet; }
72 template<typename GrantNameT = Aws::String>
73 void SetGrantName(GrantNameT&& value) { m_grantNameHasBeenSet = true; m_grantName = std::forward<GrantNameT>(value); }
74 template<typename GrantNameT = Aws::String>
75 CreateGrantVersionRequest& WithGrantName(GrantNameT&& value) { SetGrantName(std::forward<GrantNameT>(value)); return *this;}
77
79
82 inline const Aws::Vector<AllowedOperation>& GetAllowedOperations() const { return m_allowedOperations; }
83 inline bool AllowedOperationsHasBeenSet() const { return m_allowedOperationsHasBeenSet; }
84 template<typename AllowedOperationsT = Aws::Vector<AllowedOperation>>
85 void SetAllowedOperations(AllowedOperationsT&& value) { m_allowedOperationsHasBeenSet = true; m_allowedOperations = std::forward<AllowedOperationsT>(value); }
86 template<typename AllowedOperationsT = Aws::Vector<AllowedOperation>>
87 CreateGrantVersionRequest& WithAllowedOperations(AllowedOperationsT&& value) { SetAllowedOperations(std::forward<AllowedOperationsT>(value)); return *this;}
88 inline CreateGrantVersionRequest& AddAllowedOperations(AllowedOperation value) { m_allowedOperationsHasBeenSet = true; m_allowedOperations.push_back(value); return *this; }
90
92
95 inline GrantStatus GetStatus() const { return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
97 inline void SetStatus(GrantStatus value) { m_statusHasBeenSet = true; m_status = value; }
98 inline CreateGrantVersionRequest& WithStatus(GrantStatus value) { SetStatus(value); return *this;}
100
102
105 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
106 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
107 template<typename StatusReasonT = Aws::String>
108 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
109 template<typename StatusReasonT = Aws::String>
110 CreateGrantVersionRequest& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
112
114
117 inline const Aws::String& GetSourceVersion() const { return m_sourceVersion; }
118 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
119 template<typename SourceVersionT = Aws::String>
120 void SetSourceVersion(SourceVersionT&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::forward<SourceVersionT>(value); }
121 template<typename SourceVersionT = Aws::String>
122 CreateGrantVersionRequest& WithSourceVersion(SourceVersionT&& value) { SetSourceVersion(std::forward<SourceVersionT>(value)); return *this;}
124
126
129 inline const Options& GetOptions() const { return m_options; }
130 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
131 template<typename OptionsT = Options>
132 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
133 template<typename OptionsT = Options>
134 CreateGrantVersionRequest& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
136 private:
137
138 Aws::String m_clientToken;
139 bool m_clientTokenHasBeenSet = false;
140
141 Aws::String m_grantArn;
142 bool m_grantArnHasBeenSet = false;
143
144 Aws::String m_grantName;
145 bool m_grantNameHasBeenSet = false;
146
147 Aws::Vector<AllowedOperation> m_allowedOperations;
148 bool m_allowedOperationsHasBeenSet = false;
149
151 bool m_statusHasBeenSet = false;
152
153 Aws::String m_statusReason;
154 bool m_statusReasonHasBeenSet = false;
155
156 Aws::String m_sourceVersion;
157 bool m_sourceVersionHasBeenSet = false;
158
159 Options m_options;
160 bool m_optionsHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace LicenseManager
165} // 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