AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 UpdateEntitlementRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
51
53
56 inline const Aws::String& GetStackName() const { return m_stackName; }
57 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
58 template<typename StackNameT = Aws::String>
59 void SetStackName(StackNameT&& value) { m_stackNameHasBeenSet = true; m_stackName = std::forward<StackNameT>(value); }
60 template<typename StackNameT = Aws::String>
61 UpdateEntitlementRequest& WithStackName(StackNameT&& value) { SetStackName(std::forward<StackNameT>(value)); return *this;}
63
65
68 inline const Aws::String& GetDescription() const { return m_description; }
69 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
70 template<typename DescriptionT = Aws::String>
71 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
72 template<typename DescriptionT = Aws::String>
73 UpdateEntitlementRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
75
77
80 inline AppVisibility GetAppVisibility() const { return m_appVisibility; }
81 inline bool AppVisibilityHasBeenSet() const { return m_appVisibilityHasBeenSet; }
82 inline void SetAppVisibility(AppVisibility value) { m_appVisibilityHasBeenSet = true; m_appVisibility = value; }
85
87
90 inline const Aws::Vector<EntitlementAttribute>& GetAttributes() const { return m_attributes; }
91 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
92 template<typename AttributesT = Aws::Vector<EntitlementAttribute>>
93 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
94 template<typename AttributesT = Aws::Vector<EntitlementAttribute>>
95 UpdateEntitlementRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
96 template<typename AttributesT = EntitlementAttribute>
97 UpdateEntitlementRequest& AddAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes.emplace_back(std::forward<AttributesT>(value)); return *this; }
99 private:
100
101 Aws::String m_name;
102 bool m_nameHasBeenSet = false;
103
104 Aws::String m_stackName;
105 bool m_stackNameHasBeenSet = false;
106
107 Aws::String m_description;
108 bool m_descriptionHasBeenSet = false;
109
110 AppVisibility m_appVisibility{AppVisibility::NOT_SET};
111 bool m_appVisibilityHasBeenSet = false;
112
114 bool m_attributesHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace AppStream
119} // namespace Aws
virtual const char * GetServiceRequestName() const override
UpdateEntitlementRequest & WithStackName(StackNameT &&value)
UpdateEntitlementRequest & WithAppVisibility(AppVisibility value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
UpdateEntitlementRequest & WithDescription(DescriptionT &&value)
UpdateEntitlementRequest & WithName(NameT &&value)
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< EntitlementAttribute > & GetAttributes() const
UpdateEntitlementRequest & WithAttributes(AttributesT &&value)
AWS_APPSTREAM_API UpdateEntitlementRequest()=default
UpdateEntitlementRequest & AddAttributes(AttributesT &&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