AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateLabelsRequest.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 WorkDocs
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_WORKDOCS_API CreateLabelsRequest() = 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 "CreateLabels"; }
32
33 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetResourceId() const { return m_resourceId; }
43 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
44 template<typename ResourceIdT = Aws::String>
45 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
46 template<typename ResourceIdT = Aws::String>
47 CreateLabelsRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
49
51
54 inline const Aws::Vector<Aws::String>& GetLabels() const { return m_labels; }
55 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
56 template<typename LabelsT = Aws::Vector<Aws::String>>
57 void SetLabels(LabelsT&& value) { m_labelsHasBeenSet = true; m_labels = std::forward<LabelsT>(value); }
58 template<typename LabelsT = Aws::Vector<Aws::String>>
59 CreateLabelsRequest& WithLabels(LabelsT&& value) { SetLabels(std::forward<LabelsT>(value)); return *this;}
60 template<typename LabelsT = Aws::String>
61 CreateLabelsRequest& AddLabels(LabelsT&& value) { m_labelsHasBeenSet = true; m_labels.emplace_back(std::forward<LabelsT>(value)); return *this; }
63
65
69 inline const Aws::String& GetAuthenticationToken() const { return m_authenticationToken; }
70 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
71 template<typename AuthenticationTokenT = Aws::String>
72 void SetAuthenticationToken(AuthenticationTokenT&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::forward<AuthenticationTokenT>(value); }
73 template<typename AuthenticationTokenT = Aws::String>
74 CreateLabelsRequest& WithAuthenticationToken(AuthenticationTokenT&& value) { SetAuthenticationToken(std::forward<AuthenticationTokenT>(value)); return *this;}
76 private:
77
78 Aws::String m_resourceId;
79 bool m_resourceIdHasBeenSet = false;
80
82 bool m_labelsHasBeenSet = false;
83
84 Aws::String m_authenticationToken;
85 bool m_authenticationTokenHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace WorkDocs
90} // 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