AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateEntitlementRequest.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 UpdateEntitlementRequest();
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 "UpdateEntitlement"; }
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 UpdateEntitlementRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline UpdateEntitlementRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline UpdateEntitlementRequest& 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 UpdateEntitlementRequest& WithStackName(const Aws::String& value) { SetStackName(value); return *this;}
64 inline UpdateEntitlementRequest& WithStackName(Aws::String&& value) { SetStackName(std::move(value)); return *this;}
65 inline UpdateEntitlementRequest& 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 UpdateEntitlementRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
78 inline UpdateEntitlementRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
79 inline UpdateEntitlementRequest& 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 UpdateEntitlementRequest& WithAppVisibility(const AppVisibility& value) { SetAppVisibility(value); return *this;}
91 inline UpdateEntitlementRequest& 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 UpdateEntitlementRequest& AddAttributes(const EntitlementAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
105 inline UpdateEntitlementRequest& 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
UpdateEntitlementRequest & AddAttributes(const EntitlementAttribute &value)
UpdateEntitlementRequest & WithAttributes(Aws::Vector< EntitlementAttribute > &&value)
UpdateEntitlementRequest & WithStackName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateEntitlementRequest & WithDescription(const Aws::String &value)
UpdateEntitlementRequest & AddAttributes(EntitlementAttribute &&value)
UpdateEntitlementRequest & WithName(const char *value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
void SetAttributes(const Aws::Vector< EntitlementAttribute > &value)
UpdateEntitlementRequest & WithDescription(const char *value)
void SetAttributes(Aws::Vector< EntitlementAttribute > &&value)
UpdateEntitlementRequest & WithName(const Aws::String &value)
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< EntitlementAttribute > & GetAttributes() const
UpdateEntitlementRequest & WithName(Aws::String &&value)
UpdateEntitlementRequest & WithAppVisibility(const AppVisibility &value)
UpdateEntitlementRequest & WithStackName(const Aws::String &value)
UpdateEntitlementRequest & WithAppVisibility(AppVisibility &&value)
UpdateEntitlementRequest & WithStackName(const char *value)
UpdateEntitlementRequest & WithAttributes(const Aws::Vector< EntitlementAttribute > &value)
UpdateEntitlementRequest & 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