AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateLibraryItemRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qapps/QAppsRequest.h>
10#include <aws/qapps/QApps_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace QApps {
16namespace Model {
17
21 public:
22 AWS_QAPPS_API CreateLibraryItemRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateLibraryItem"; }
29
30 AWS_QAPPS_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
40 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
41 template <typename InstanceIdT = Aws::String>
42 void SetInstanceId(InstanceIdT&& value) {
43 m_instanceIdHasBeenSet = true;
44 m_instanceId = std::forward<InstanceIdT>(value);
45 }
46 template <typename InstanceIdT = Aws::String>
48 SetInstanceId(std::forward<InstanceIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAppId() const { return m_appId; }
58 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
59 template <typename AppIdT = Aws::String>
60 void SetAppId(AppIdT&& value) {
61 m_appIdHasBeenSet = true;
62 m_appId = std::forward<AppIdT>(value);
63 }
64 template <typename AppIdT = Aws::String>
66 SetAppId(std::forward<AppIdT>(value));
67 return *this;
68 }
70
72
75 inline int GetAppVersion() const { return m_appVersion; }
76 inline bool AppVersionHasBeenSet() const { return m_appVersionHasBeenSet; }
77 inline void SetAppVersion(int value) {
78 m_appVersionHasBeenSet = true;
79 m_appVersion = value;
80 }
82 SetAppVersion(value);
83 return *this;
84 }
86
88
91 inline const Aws::Vector<Aws::String>& GetCategories() const { return m_categories; }
92 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
93 template <typename CategoriesT = Aws::Vector<Aws::String>>
94 void SetCategories(CategoriesT&& value) {
95 m_categoriesHasBeenSet = true;
96 m_categories = std::forward<CategoriesT>(value);
97 }
98 template <typename CategoriesT = Aws::Vector<Aws::String>>
100 SetCategories(std::forward<CategoriesT>(value));
101 return *this;
102 }
103 template <typename CategoriesT = Aws::String>
105 m_categoriesHasBeenSet = true;
106 m_categories.emplace_back(std::forward<CategoriesT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_instanceId;
112
113 Aws::String m_appId;
114
115 int m_appVersion{0};
116
117 Aws::Vector<Aws::String> m_categories;
118 bool m_instanceIdHasBeenSet = false;
119 bool m_appIdHasBeenSet = false;
120 bool m_appVersionHasBeenSet = false;
121 bool m_categoriesHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace QApps
126} // namespace Aws
const Aws::Vector< Aws::String > & GetCategories() const
CreateLibraryItemRequest & WithAppId(AppIdT &&value)
CreateLibraryItemRequest & AddCategories(CategoriesT &&value)
AWS_QAPPS_API CreateLibraryItemRequest()=default
CreateLibraryItemRequest & WithCategories(CategoriesT &&value)
CreateLibraryItemRequest & WithInstanceId(InstanceIdT &&value)
CreateLibraryItemRequest & WithAppVersion(int value)
AWS_QAPPS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_QAPPS_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector