AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateLabelsRequest.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 WorkDocs {
16namespace Model {
17
21 public:
22 AWS_WORKDOCS_API CreateLabelsRequest() = 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 "CreateLabels"; }
29
30 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetResourceId() const { return m_resourceId; }
39 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
40 template <typename ResourceIdT = Aws::String>
41 void SetResourceId(ResourceIdT&& value) {
42 m_resourceIdHasBeenSet = true;
43 m_resourceId = std::forward<ResourceIdT>(value);
44 }
45 template <typename ResourceIdT = Aws::String>
46 CreateLabelsRequest& WithResourceId(ResourceIdT&& value) {
47 SetResourceId(std::forward<ResourceIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Vector<Aws::String>& GetLabels() const { return m_labels; }
57 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
58 template <typename LabelsT = Aws::Vector<Aws::String>>
59 void SetLabels(LabelsT&& value) {
60 m_labelsHasBeenSet = true;
61 m_labels = std::forward<LabelsT>(value);
62 }
63 template <typename LabelsT = Aws::Vector<Aws::String>>
64 CreateLabelsRequest& WithLabels(LabelsT&& value) {
65 SetLabels(std::forward<LabelsT>(value));
66 return *this;
67 }
68 template <typename LabelsT = Aws::String>
69 CreateLabelsRequest& AddLabels(LabelsT&& value) {
70 m_labelsHasBeenSet = true;
71 m_labels.emplace_back(std::forward<LabelsT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetAuthenticationToken() const { return m_authenticationToken; }
82 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
83 template <typename AuthenticationTokenT = Aws::String>
84 void SetAuthenticationToken(AuthenticationTokenT&& value) {
85 m_authenticationTokenHasBeenSet = true;
86 m_authenticationToken = std::forward<AuthenticationTokenT>(value);
87 }
88 template <typename AuthenticationTokenT = Aws::String>
89 CreateLabelsRequest& WithAuthenticationToken(AuthenticationTokenT&& value) {
90 SetAuthenticationToken(std::forward<AuthenticationTokenT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_resourceId;
96
98
99 Aws::String m_authenticationToken;
100 bool m_resourceIdHasBeenSet = false;
101 bool m_labelsHasBeenSet = false;
102 bool m_authenticationTokenHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace WorkDocs
107} // namespace Aws
const Aws::String & GetAuthenticationToken() const
virtual const char * GetServiceRequestName() const override
CreateLabelsRequest & WithLabels(LabelsT &&value)
AWS_WORKDOCS_API Aws::String SerializePayload() const override
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLabelsRequest & WithAuthenticationToken(AuthenticationTokenT &&value)
void SetAuthenticationToken(AuthenticationTokenT &&value)
CreateLabelsRequest & WithResourceId(ResourceIdT &&value)
CreateLabelsRequest & AddLabels(LabelsT &&value)
AWS_WORKDOCS_API CreateLabelsRequest()=default
const Aws::Vector< Aws::String > & GetLabels() const
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