AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateEntitlementRequest.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/AppStreamRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appstream/model/AppVisibility.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/appstream/model/EntitlementAttribute.h>
13#include <utility>
14
15namespace Aws
16{
17namespace AppStream
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_APPSTREAM_API CreateEntitlementRequest();
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
35 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetName() const{ return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline CreateEntitlementRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline CreateEntitlementRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline CreateEntitlementRequest& WithName(const char* value) { SetName(value); return *this;}
53
55
58 inline const Aws::String& GetStackName() const{ return m_stackName; }
59 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
60 inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; }
61 inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = std::move(value); }
62 inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); }
63 inline CreateEntitlementRequest& WithStackName(const Aws::String& value) { SetStackName(value); return *this;}
64 inline CreateEntitlementRequest& WithStackName(Aws::String&& value) { SetStackName(std::move(value)); return *this;}
65 inline CreateEntitlementRequest& WithStackName(const char* value) { SetStackName(value); return *this;}
67
69
72 inline const Aws::String& GetDescription() const{ return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
75 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
76 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
77 inline CreateEntitlementRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
78 inline CreateEntitlementRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
79 inline CreateEntitlementRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
81
83
86 inline const AppVisibility& GetAppVisibility() const{ return m_appVisibility; }
87 inline bool AppVisibilityHasBeenSet() const { return m_appVisibilityHasBeenSet; }
88 inline void SetAppVisibility(const AppVisibility& value) { m_appVisibilityHasBeenSet = true; m_appVisibility = value; }
89 inline void SetAppVisibility(AppVisibility&& value) { m_appVisibilityHasBeenSet = true; m_appVisibility = std::move(value); }
90 inline CreateEntitlementRequest& WithAppVisibility(const AppVisibility& value) { SetAppVisibility(value); return *this;}
91 inline CreateEntitlementRequest& WithAppVisibility(AppVisibility&& value) { SetAppVisibility(std::move(value)); return *this;}
93
95
98 inline const Aws::Vector<EntitlementAttribute>& GetAttributes() const{ return m_attributes; }
99 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
100 inline void SetAttributes(const Aws::Vector<EntitlementAttribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
101 inline void SetAttributes(Aws::Vector<EntitlementAttribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
104 inline CreateEntitlementRequest& AddAttributes(const EntitlementAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
105 inline CreateEntitlementRequest& AddAttributes(EntitlementAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
107 private:
108
109 Aws::String m_name;
110 bool m_nameHasBeenSet = false;
111
112 Aws::String m_stackName;
113 bool m_stackNameHasBeenSet = false;
114
115 Aws::String m_description;
116 bool m_descriptionHasBeenSet = false;
117
118 AppVisibility m_appVisibility;
119 bool m_appVisibilityHasBeenSet = false;
120
122 bool m_attributesHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace AppStream
127} // namespace Aws
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