AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateEntitlementRequest.h
1
6#pragma once
7#include <aws/appstream/AppStreamRequest.h>
8#include <aws/appstream/AppStream_EXPORTS.h>
9#include <aws/appstream/model/AppVisibility.h>
10#include <aws/appstream/model/EntitlementAttribute.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace AppStream {
18namespace Model {
19
23 public:
24 AWS_APPSTREAM_API CreateEntitlementRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateEntitlement"; }
31
32 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetStackName() const { return m_stackName; }
59 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
60 template <typename StackNameT = Aws::String>
61 void SetStackName(StackNameT&& value) {
62 m_stackNameHasBeenSet = true;
63 m_stackName = std::forward<StackNameT>(value);
64 }
65 template <typename StackNameT = Aws::String>
67 SetStackName(std::forward<StackNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
94 inline AppVisibility GetAppVisibility() const { return m_appVisibility; }
95 inline bool AppVisibilityHasBeenSet() const { return m_appVisibilityHasBeenSet; }
96 inline void SetAppVisibility(AppVisibility value) {
97 m_appVisibilityHasBeenSet = true;
98 m_appVisibility = value;
99 }
101 SetAppVisibility(value);
102 return *this;
103 }
105
107
110 inline const Aws::Vector<EntitlementAttribute>& GetAttributes() const { return m_attributes; }
111 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
112 template <typename AttributesT = Aws::Vector<EntitlementAttribute>>
113 void SetAttributes(AttributesT&& value) {
114 m_attributesHasBeenSet = true;
115 m_attributes = std::forward<AttributesT>(value);
116 }
117 template <typename AttributesT = Aws::Vector<EntitlementAttribute>>
119 SetAttributes(std::forward<AttributesT>(value));
120 return *this;
121 }
122 template <typename AttributesT = EntitlementAttribute>
124 m_attributesHasBeenSet = true;
125 m_attributes.emplace_back(std::forward<AttributesT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_name;
131
132 Aws::String m_stackName;
133
134 Aws::String m_description;
135
136 AppVisibility m_appVisibility{AppVisibility::NOT_SET};
137
139 bool m_nameHasBeenSet = false;
140 bool m_stackNameHasBeenSet = false;
141 bool m_descriptionHasBeenSet = false;
142 bool m_appVisibilityHasBeenSet = false;
143 bool m_attributesHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace AppStream
148} // namespace Aws
CreateEntitlementRequest & WithAttributes(AttributesT &&value)
AWS_APPSTREAM_API CreateEntitlementRequest()=default
CreateEntitlementRequest & WithStackName(StackNameT &&value)
const Aws::Vector< EntitlementAttribute > & GetAttributes() const
CreateEntitlementRequest & WithName(NameT &&value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
CreateEntitlementRequest & WithDescription(DescriptionT &&value)
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateEntitlementRequest & AddAttributes(AttributesT &&value)
CreateEntitlementRequest & WithAppVisibility(AppVisibility value)
virtual const char * GetServiceRequestName() const override
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