AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateLibraryItemRequest.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/qapps/model/LibraryItemStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace QApps
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_QAPPS_API UpdateLibraryItemRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateLibraryItem"; }
33
34 AWS_QAPPS_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
45 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
46 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
47 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
48 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
49 inline UpdateLibraryItemRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
50 inline UpdateLibraryItemRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
51 inline UpdateLibraryItemRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
53
55
58 inline const Aws::String& GetLibraryItemId() const{ return m_libraryItemId; }
59 inline bool LibraryItemIdHasBeenSet() const { return m_libraryItemIdHasBeenSet; }
60 inline void SetLibraryItemId(const Aws::String& value) { m_libraryItemIdHasBeenSet = true; m_libraryItemId = value; }
61 inline void SetLibraryItemId(Aws::String&& value) { m_libraryItemIdHasBeenSet = true; m_libraryItemId = std::move(value); }
62 inline void SetLibraryItemId(const char* value) { m_libraryItemIdHasBeenSet = true; m_libraryItemId.assign(value); }
63 inline UpdateLibraryItemRequest& WithLibraryItemId(const Aws::String& value) { SetLibraryItemId(value); return *this;}
64 inline UpdateLibraryItemRequest& WithLibraryItemId(Aws::String&& value) { SetLibraryItemId(std::move(value)); return *this;}
65 inline UpdateLibraryItemRequest& WithLibraryItemId(const char* value) { SetLibraryItemId(value); return *this;}
67
69
73 inline const LibraryItemStatus& GetStatus() const{ return m_status; }
74 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
75 inline void SetStatus(const LibraryItemStatus& value) { m_statusHasBeenSet = true; m_status = value; }
76 inline void SetStatus(LibraryItemStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
77 inline UpdateLibraryItemRequest& WithStatus(const LibraryItemStatus& value) { SetStatus(value); return *this;}
78 inline UpdateLibraryItemRequest& WithStatus(LibraryItemStatus&& value) { SetStatus(std::move(value)); return *this;}
80
82
85 inline const Aws::Vector<Aws::String>& GetCategories() const{ return m_categories; }
86 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
87 inline void SetCategories(const Aws::Vector<Aws::String>& value) { m_categoriesHasBeenSet = true; m_categories = value; }
88 inline void SetCategories(Aws::Vector<Aws::String>&& value) { m_categoriesHasBeenSet = true; m_categories = std::move(value); }
90 inline UpdateLibraryItemRequest& WithCategories(Aws::Vector<Aws::String>&& value) { SetCategories(std::move(value)); return *this;}
91 inline UpdateLibraryItemRequest& AddCategories(const Aws::String& value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; }
92 inline UpdateLibraryItemRequest& AddCategories(Aws::String&& value) { m_categoriesHasBeenSet = true; m_categories.push_back(std::move(value)); return *this; }
93 inline UpdateLibraryItemRequest& AddCategories(const char* value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; }
95 private:
96
97 Aws::String m_instanceId;
98 bool m_instanceIdHasBeenSet = false;
99
100 Aws::String m_libraryItemId;
101 bool m_libraryItemIdHasBeenSet = false;
102
103 LibraryItemStatus m_status;
104 bool m_statusHasBeenSet = false;
105
106 Aws::Vector<Aws::String> m_categories;
107 bool m_categoriesHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace QApps
112} // namespace Aws
UpdateLibraryItemRequest & WithLibraryItemId(Aws::String &&value)
UpdateLibraryItemRequest & WithInstanceId(const Aws::String &value)
UpdateLibraryItemRequest & AddCategories(Aws::String &&value)
UpdateLibraryItemRequest & WithInstanceId(const char *value)
AWS_QAPPS_API Aws::String SerializePayload() const override
UpdateLibraryItemRequest & WithLibraryItemId(const char *value)
UpdateLibraryItemRequest & WithInstanceId(Aws::String &&value)
UpdateLibraryItemRequest & WithCategories(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
UpdateLibraryItemRequest & WithCategories(Aws::Vector< Aws::String > &&value)
UpdateLibraryItemRequest & WithStatus(LibraryItemStatus &&value)
void SetCategories(const Aws::Vector< Aws::String > &value)
void SetCategories(Aws::Vector< Aws::String > &&value)
UpdateLibraryItemRequest & WithStatus(const LibraryItemStatus &value)
const Aws::Vector< Aws::String > & GetCategories() const
UpdateLibraryItemRequest & AddCategories(const char *value)
AWS_QAPPS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateLibraryItemRequest & WithLibraryItemId(const Aws::String &value)
UpdateLibraryItemRequest & AddCategories(const Aws::String &value)
void SetStatus(const LibraryItemStatus &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