AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLibraryItemRequest.h
1
6#pragma once
7#include <aws/qapps/QApps_EXPORTS.h>
8#include <aws/qapps/QAppsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace QApps
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_QAPPS_API CreateLibraryItemRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateLibraryItem"; }
32
33 AWS_QAPPS_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
44 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
45 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
46 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
47 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
48 inline CreateLibraryItemRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
49 inline CreateLibraryItemRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
50 inline CreateLibraryItemRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
52
54
57 inline const Aws::String& GetAppId() const{ return m_appId; }
58 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
59 inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
60 inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
61 inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
62 inline CreateLibraryItemRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
63 inline CreateLibraryItemRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
64 inline CreateLibraryItemRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
66
68
71 inline int GetAppVersion() const{ return m_appVersion; }
72 inline bool AppVersionHasBeenSet() const { return m_appVersionHasBeenSet; }
73 inline void SetAppVersion(int value) { m_appVersionHasBeenSet = true; m_appVersion = value; }
74 inline CreateLibraryItemRequest& WithAppVersion(int value) { SetAppVersion(value); return *this;}
76
78
81 inline const Aws::Vector<Aws::String>& GetCategories() const{ return m_categories; }
82 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
83 inline void SetCategories(const Aws::Vector<Aws::String>& value) { m_categoriesHasBeenSet = true; m_categories = value; }
84 inline void SetCategories(Aws::Vector<Aws::String>&& value) { m_categoriesHasBeenSet = true; m_categories = std::move(value); }
86 inline CreateLibraryItemRequest& WithCategories(Aws::Vector<Aws::String>&& value) { SetCategories(std::move(value)); return *this;}
87 inline CreateLibraryItemRequest& AddCategories(const Aws::String& value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; }
88 inline CreateLibraryItemRequest& AddCategories(Aws::String&& value) { m_categoriesHasBeenSet = true; m_categories.push_back(std::move(value)); return *this; }
89 inline CreateLibraryItemRequest& AddCategories(const char* value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; }
91 private:
92
93 Aws::String m_instanceId;
94 bool m_instanceIdHasBeenSet = false;
95
96 Aws::String m_appId;
97 bool m_appIdHasBeenSet = false;
98
99 int m_appVersion;
100 bool m_appVersionHasBeenSet = false;
101
102 Aws::Vector<Aws::String> m_categories;
103 bool m_categoriesHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace QApps
108} // namespace Aws
const Aws::Vector< Aws::String > & GetCategories() const
CreateLibraryItemRequest & WithInstanceId(const char *value)
CreateLibraryItemRequest & WithInstanceId(Aws::String &&value)
CreateLibraryItemRequest & WithInstanceId(const Aws::String &value)
CreateLibraryItemRequest & WithAppId(const char *value)
CreateLibraryItemRequest & AddCategories(const Aws::String &value)
CreateLibraryItemRequest & AddCategories(const char *value)
CreateLibraryItemRequest & WithCategories(const Aws::Vector< Aws::String > &value)
void SetCategories(Aws::Vector< Aws::String > &&value)
CreateLibraryItemRequest & AddCategories(Aws::String &&value)
CreateLibraryItemRequest & WithCategories(Aws::Vector< Aws::String > &&value)
CreateLibraryItemRequest & WithAppVersion(int value)
CreateLibraryItemRequest & WithAppId(Aws::String &&value)
AWS_QAPPS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetCategories(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
CreateLibraryItemRequest & WithAppId(const Aws::String &value)
AWS_QAPPS_API Aws::String SerializePayload() 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