AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
DeleteLabelsRequest.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/workdocs/WorkDocsRequest.h>
10#include <aws/workdocs/WorkDocs_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace WorkDocs {
19namespace Model {
20
24 public:
25 AWS_WORKDOCS_API DeleteLabelsRequest() = default;
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 "DeleteLabels"; }
32
33 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
34
35 AWS_WORKDOCS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
40
43 inline const Aws::String& GetResourceId() const { return m_resourceId; }
44 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
45 template <typename ResourceIdT = Aws::String>
46 void SetResourceId(ResourceIdT&& value) {
47 m_resourceIdHasBeenSet = true;
48 m_resourceId = std::forward<ResourceIdT>(value);
49 }
50 template <typename ResourceIdT = Aws::String>
51 DeleteLabelsRequest& WithResourceId(ResourceIdT&& value) {
52 SetResourceId(std::forward<ResourceIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetAuthenticationToken() const { return m_authenticationToken; }
63 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
64 template <typename AuthenticationTokenT = Aws::String>
65 void SetAuthenticationToken(AuthenticationTokenT&& value) {
66 m_authenticationTokenHasBeenSet = true;
67 m_authenticationToken = std::forward<AuthenticationTokenT>(value);
68 }
69 template <typename AuthenticationTokenT = Aws::String>
70 DeleteLabelsRequest& WithAuthenticationToken(AuthenticationTokenT&& value) {
71 SetAuthenticationToken(std::forward<AuthenticationTokenT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Vector<Aws::String>& GetLabels() const { return m_labels; }
81 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
82 template <typename LabelsT = Aws::Vector<Aws::String>>
83 void SetLabels(LabelsT&& value) {
84 m_labelsHasBeenSet = true;
85 m_labels = std::forward<LabelsT>(value);
86 }
87 template <typename LabelsT = Aws::Vector<Aws::String>>
88 DeleteLabelsRequest& WithLabels(LabelsT&& value) {
89 SetLabels(std::forward<LabelsT>(value));
90 return *this;
91 }
92 template <typename LabelsT = Aws::String>
93 DeleteLabelsRequest& AddLabels(LabelsT&& value) {
94 m_labelsHasBeenSet = true;
95 m_labels.emplace_back(std::forward<LabelsT>(value));
96 return *this;
97 }
99
101
104 inline bool GetDeleteAll() const { return m_deleteAll; }
105 inline bool DeleteAllHasBeenSet() const { return m_deleteAllHasBeenSet; }
106 inline void SetDeleteAll(bool value) {
107 m_deleteAllHasBeenSet = true;
108 m_deleteAll = value;
109 }
110 inline DeleteLabelsRequest& WithDeleteAll(bool value) {
111 SetDeleteAll(value);
112 return *this;
113 }
115 private:
116 Aws::String m_resourceId;
117
118 Aws::String m_authenticationToken;
119
121
122 bool m_deleteAll{false};
123 bool m_resourceIdHasBeenSet = false;
124 bool m_authenticationTokenHasBeenSet = false;
125 bool m_labelsHasBeenSet = false;
126 bool m_deleteAllHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace WorkDocs
131} // namespace Aws
DeleteLabelsRequest & WithAuthenticationToken(AuthenticationTokenT &&value)
AWS_WORKDOCS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetLabels() const
DeleteLabelsRequest & WithResourceId(ResourceIdT &&value)
AWS_WORKDOCS_API DeleteLabelsRequest()=default
DeleteLabelsRequest & WithLabels(LabelsT &&value)
const Aws::String & GetAuthenticationToken() const
void SetAuthenticationToken(AuthenticationTokenT &&value)
AWS_WORKDOCS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
DeleteLabelsRequest & AddLabels(LabelsT &&value)
DeleteLabelsRequest & WithDeleteAll(bool value)
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() 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