AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CreateEntitlementRequest.h
Go to the documentation of this file.
1
6#pragma once
13#include <utility>
14
15namespace Aws
16{
17namespace AppStream
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateEntitlement"; }
34
36
38
39
43 inline const Aws::String& GetName() const{ return m_name; }
44
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49
53 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54
58 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
59
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64
68 inline CreateEntitlementRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
69
73 inline CreateEntitlementRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
74
78 inline CreateEntitlementRequest& WithName(const char* value) { SetName(value); return *this;}
79
80
84 inline const Aws::String& GetStackName() const{ return m_stackName; }
85
89 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
90
94 inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; }
95
99 inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = std::move(value); }
100
104 inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); }
105
109 inline CreateEntitlementRequest& WithStackName(const Aws::String& value) { SetStackName(value); return *this;}
110
114 inline CreateEntitlementRequest& WithStackName(Aws::String&& value) { SetStackName(std::move(value)); return *this;}
115
119 inline CreateEntitlementRequest& WithStackName(const char* value) { SetStackName(value); return *this;}
120
121
125 inline const Aws::String& GetDescription() const{ return m_description; }
126
130 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
131
135 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
136
140 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
141
145 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
146
150 inline CreateEntitlementRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
151
155 inline CreateEntitlementRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
156
160 inline CreateEntitlementRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
161
162
166 inline const AppVisibility& GetAppVisibility() const{ return m_appVisibility; }
167
171 inline bool AppVisibilityHasBeenSet() const { return m_appVisibilityHasBeenSet; }
172
176 inline void SetAppVisibility(const AppVisibility& value) { m_appVisibilityHasBeenSet = true; m_appVisibility = value; }
177
181 inline void SetAppVisibility(AppVisibility&& value) { m_appVisibilityHasBeenSet = true; m_appVisibility = std::move(value); }
182
186 inline CreateEntitlementRequest& WithAppVisibility(const AppVisibility& value) { SetAppVisibility(value); return *this;}
187
191 inline CreateEntitlementRequest& WithAppVisibility(AppVisibility&& value) { SetAppVisibility(std::move(value)); return *this;}
192
193
197 inline const Aws::Vector<EntitlementAttribute>& GetAttributes() const{ return m_attributes; }
198
202 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
203
207 inline void SetAttributes(const Aws::Vector<EntitlementAttribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
208
212 inline void SetAttributes(Aws::Vector<EntitlementAttribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
213
218
223
227 inline CreateEntitlementRequest& AddAttributes(const EntitlementAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
228
232 inline CreateEntitlementRequest& AddAttributes(EntitlementAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
233
234 private:
235
236 Aws::String m_name;
237 bool m_nameHasBeenSet = false;
238
239 Aws::String m_stackName;
240 bool m_stackNameHasBeenSet = false;
241
242 Aws::String m_description;
243 bool m_descriptionHasBeenSet = false;
244
245 AppVisibility m_appVisibility;
246 bool m_appVisibilityHasBeenSet = false;
247
249 bool m_attributesHasBeenSet = false;
250 };
251
252} // namespace Model
253} // namespace AppStream
254} // namespace Aws
#define AWS_APPSTREAM_API
CreateEntitlementRequest & WithAppVisibility(AppVisibility &&value)
CreateEntitlementRequest & WithName(const char *value)
CreateEntitlementRequest & WithName(Aws::String &&value)
CreateEntitlementRequest & WithAttributes(Aws::Vector< EntitlementAttribute > &&value)
const Aws::Vector< EntitlementAttribute > & GetAttributes() const
CreateEntitlementRequest & WithDescription(const Aws::String &value)
CreateEntitlementRequest & WithAttributes(const Aws::Vector< EntitlementAttribute > &value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
CreateEntitlementRequest & WithStackName(const char *value)
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateEntitlementRequest & AddAttributes(EntitlementAttribute &&value)
void SetAttributes(Aws::Vector< EntitlementAttribute > &&value)
virtual const char * GetServiceRequestName() const override
void SetAttributes(const Aws::Vector< EntitlementAttribute > &value)
CreateEntitlementRequest & AddAttributes(const EntitlementAttribute &value)
CreateEntitlementRequest & WithStackName(Aws::String &&value)
CreateEntitlementRequest & WithStackName(const Aws::String &value)
CreateEntitlementRequest & WithAppVisibility(const AppVisibility &value)
CreateEntitlementRequest & WithName(const Aws::String &value)
CreateEntitlementRequest & WithDescription(const char *value)
CreateEntitlementRequest & WithDescription(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