AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
49 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
50 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
51 inline CreateGrantVersionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
52 inline CreateGrantVersionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
53 inline CreateGrantVersionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
55
57
60 inline const Aws::String& GetGrantArn() const{ return m_grantArn; }
61 inline bool GrantArnHasBeenSet() const { return m_grantArnHasBeenSet; }
62 inline void SetGrantArn(const Aws::String& value) { m_grantArnHasBeenSet = true; m_grantArn = value; }
63 inline void SetGrantArn(Aws::String&& value) { m_grantArnHasBeenSet = true; m_grantArn = std::move(value); }
64 inline void SetGrantArn(const char* value) { m_grantArnHasBeenSet = true; m_grantArn.assign(value); }
65 inline CreateGrantVersionRequest& WithGrantArn(const Aws::String& value) { SetGrantArn(value); return *this;}
66 inline CreateGrantVersionRequest& WithGrantArn(Aws::String&& value) { SetGrantArn(std::move(value)); return *this;}
67 inline CreateGrantVersionRequest& WithGrantArn(const char* value) { SetGrantArn(value); return *this;}
69
71
74 inline const Aws::String& GetGrantName() const{ return m_grantName; }
75 inline bool GrantNameHasBeenSet() const { return m_grantNameHasBeenSet; }
76 inline void SetGrantName(const Aws::String& value) { m_grantNameHasBeenSet = true; m_grantName = value; }
77 inline void SetGrantName(Aws::String&& value) { m_grantNameHasBeenSet = true; m_grantName = std::move(value); }
78 inline void SetGrantName(const char* value) { m_grantNameHasBeenSet = true; m_grantName.assign(value); }
79 inline CreateGrantVersionRequest& WithGrantName(const Aws::String& value) { SetGrantName(value); return *this;}
80 inline CreateGrantVersionRequest& WithGrantName(Aws::String&& value) { SetGrantName(std::move(value)); return *this;}
81 inline CreateGrantVersionRequest& WithGrantName(const char* value) { SetGrantName(value); return *this;}
83
85
88 inline const Aws::Vector<AllowedOperation>& GetAllowedOperations() const{ return m_allowedOperations; }
89 inline bool AllowedOperationsHasBeenSet() const { return m_allowedOperationsHasBeenSet; }
90 inline void SetAllowedOperations(const Aws::Vector<AllowedOperation>& value) { m_allowedOperationsHasBeenSet = true; m_allowedOperations = value; }
91 inline void SetAllowedOperations(Aws::Vector<AllowedOperation>&& value) { m_allowedOperationsHasBeenSet = true; m_allowedOperations = std::move(value); }
94 inline CreateGrantVersionRequest& AddAllowedOperations(const AllowedOperation& value) { m_allowedOperationsHasBeenSet = true; m_allowedOperations.push_back(value); return *this; }
95 inline CreateGrantVersionRequest& AddAllowedOperations(AllowedOperation&& value) { m_allowedOperationsHasBeenSet = true; m_allowedOperations.push_back(std::move(value)); return *this; }
97
99
102 inline const GrantStatus& GetStatus() const{ return m_status; }
103 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
104 inline void SetStatus(const GrantStatus& value) { m_statusHasBeenSet = true; m_status = value; }
105 inline void SetStatus(GrantStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
106 inline CreateGrantVersionRequest& WithStatus(const GrantStatus& value) { SetStatus(value); return *this;}
107 inline CreateGrantVersionRequest& WithStatus(GrantStatus&& value) { SetStatus(std::move(value)); return *this;}
109
111
114 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
115 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
116 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
117 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
118 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
119 inline CreateGrantVersionRequest& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
120 inline CreateGrantVersionRequest& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
121 inline CreateGrantVersionRequest& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
123
125
128 inline const Aws::String& GetSourceVersion() const{ return m_sourceVersion; }
129 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
130 inline void SetSourceVersion(const Aws::String& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = value; }
131 inline void SetSourceVersion(Aws::String&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::move(value); }
132 inline void SetSourceVersion(const char* value) { m_sourceVersionHasBeenSet = true; m_sourceVersion.assign(value); }
133 inline CreateGrantVersionRequest& WithSourceVersion(const Aws::String& value) { SetSourceVersion(value); return *this;}
134 inline CreateGrantVersionRequest& WithSourceVersion(Aws::String&& value) { SetSourceVersion(std::move(value)); return *this;}
135 inline CreateGrantVersionRequest& WithSourceVersion(const char* value) { SetSourceVersion(value); return *this;}
137
139
142 inline const Options& GetOptions() const{ return m_options; }
143 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
144 inline void SetOptions(const Options& value) { m_optionsHasBeenSet = true; m_options = value; }
145 inline void SetOptions(Options&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
146 inline CreateGrantVersionRequest& WithOptions(const Options& value) { SetOptions(value); return *this;}
147 inline CreateGrantVersionRequest& WithOptions(Options&& value) { SetOptions(std::move(value)); return *this;}
149 private:
150
151 Aws::String m_clientToken;
152 bool m_clientTokenHasBeenSet = false;
153
154 Aws::String m_grantArn;
155 bool m_grantArnHasBeenSet = false;
156
157 Aws::String m_grantName;
158 bool m_grantNameHasBeenSet = false;
159
160 Aws::Vector<AllowedOperation> m_allowedOperations;
161 bool m_allowedOperationsHasBeenSet = false;
162
163 GrantStatus m_status;
164 bool m_statusHasBeenSet = false;
165
166 Aws::String m_statusReason;
167 bool m_statusReasonHasBeenSet = false;
168
169 Aws::String m_sourceVersion;
170 bool m_sourceVersionHasBeenSet = false;
171
172 Options m_options;
173 bool m_optionsHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace LicenseManager
178} // namespace Aws
CreateGrantVersionRequest & WithClientToken(Aws::String &&value)
void SetAllowedOperations(Aws::Vector< AllowedOperation > &&value)
CreateGrantVersionRequest & WithStatus(const GrantStatus &value)
CreateGrantVersionRequest & WithStatusReason(const char *value)
CreateGrantVersionRequest & WithClientToken(const Aws::String &value)
CreateGrantVersionRequest & AddAllowedOperations(AllowedOperation &&value)
CreateGrantVersionRequest & WithStatusReason(const Aws::String &value)
CreateGrantVersionRequest & WithOptions(const Options &value)
CreateGrantVersionRequest & WithClientToken(const char *value)
CreateGrantVersionRequest & WithStatus(GrantStatus &&value)
CreateGrantVersionRequest & WithGrantArn(const char *value)
CreateGrantVersionRequest & WithGrantArn(const Aws::String &value)
CreateGrantVersionRequest & AddAllowedOperations(const AllowedOperation &value)
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
CreateGrantVersionRequest & WithAllowedOperations(const Aws::Vector< AllowedOperation > &value)
CreateGrantVersionRequest & WithGrantArn(Aws::String &&value)
const Aws::Vector< AllowedOperation > & GetAllowedOperations() const
CreateGrantVersionRequest & WithAllowedOperations(Aws::Vector< AllowedOperation > &&value)
CreateGrantVersionRequest & WithOptions(Options &&value)
CreateGrantVersionRequest & WithGrantName(const Aws::String &value)
CreateGrantVersionRequest & WithSourceVersion(const char *value)
CreateGrantVersionRequest & WithGrantName(Aws::String &&value)
CreateGrantVersionRequest & WithSourceVersion(const Aws::String &value)
void SetAllowedOperations(const Aws::Vector< AllowedOperation > &value)
CreateGrantVersionRequest & WithGrantName(const char *value)
CreateGrantVersionRequest & WithSourceVersion(Aws::String &&value)
CreateGrantVersionRequest & WithStatusReason(Aws::String &&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