AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DeleteLabelsRequest.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/workdocs/WorkDocsRequest.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 Http
16{
17 class URI;
18} //namespace Http
19namespace WorkDocs
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_WORKDOCS_API DeleteLabelsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "DeleteLabels"; }
36
37 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
38
39 AWS_WORKDOCS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
42
43
45
48 inline const Aws::String& GetResourceId() const { return m_resourceId; }
49 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
50 template<typename ResourceIdT = Aws::String>
51 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
52 template<typename ResourceIdT = Aws::String>
53 DeleteLabelsRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
55
57
61 inline const Aws::String& GetAuthenticationToken() const { return m_authenticationToken; }
62 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
63 template<typename AuthenticationTokenT = Aws::String>
64 void SetAuthenticationToken(AuthenticationTokenT&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::forward<AuthenticationTokenT>(value); }
65 template<typename AuthenticationTokenT = Aws::String>
66 DeleteLabelsRequest& WithAuthenticationToken(AuthenticationTokenT&& value) { SetAuthenticationToken(std::forward<AuthenticationTokenT>(value)); return *this;}
68
70
73 inline const Aws::Vector<Aws::String>& GetLabels() const { return m_labels; }
74 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
75 template<typename LabelsT = Aws::Vector<Aws::String>>
76 void SetLabels(LabelsT&& value) { m_labelsHasBeenSet = true; m_labels = std::forward<LabelsT>(value); }
77 template<typename LabelsT = Aws::Vector<Aws::String>>
78 DeleteLabelsRequest& WithLabels(LabelsT&& value) { SetLabels(std::forward<LabelsT>(value)); return *this;}
79 template<typename LabelsT = Aws::String>
80 DeleteLabelsRequest& AddLabels(LabelsT&& value) { m_labelsHasBeenSet = true; m_labels.emplace_back(std::forward<LabelsT>(value)); return *this; }
82
84
87 inline bool GetDeleteAll() const { return m_deleteAll; }
88 inline bool DeleteAllHasBeenSet() const { return m_deleteAllHasBeenSet; }
89 inline void SetDeleteAll(bool value) { m_deleteAllHasBeenSet = true; m_deleteAll = value; }
90 inline DeleteLabelsRequest& WithDeleteAll(bool value) { SetDeleteAll(value); return *this;}
92 private:
93
94 Aws::String m_resourceId;
95 bool m_resourceIdHasBeenSet = false;
96
97 Aws::String m_authenticationToken;
98 bool m_authenticationTokenHasBeenSet = false;
99
101 bool m_labelsHasBeenSet = false;
102
103 bool m_deleteAll{false};
104 bool m_deleteAllHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace WorkDocs
109} // 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