AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
45 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
46 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
47 inline CreateLabelsRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
48 inline CreateLabelsRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
49 inline CreateLabelsRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
51
53
56 inline const Aws::Vector<Aws::String>& GetLabels() const{ return m_labels; }
57 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
58 inline void SetLabels(const Aws::Vector<Aws::String>& value) { m_labelsHasBeenSet = true; m_labels = value; }
59 inline void SetLabels(Aws::Vector<Aws::String>&& value) { m_labelsHasBeenSet = true; m_labels = std::move(value); }
60 inline CreateLabelsRequest& WithLabels(const Aws::Vector<Aws::String>& value) { SetLabels(value); return *this;}
61 inline CreateLabelsRequest& WithLabels(Aws::Vector<Aws::String>&& value) { SetLabels(std::move(value)); return *this;}
62 inline CreateLabelsRequest& AddLabels(const Aws::String& value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
63 inline CreateLabelsRequest& AddLabels(Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.push_back(std::move(value)); return *this; }
64 inline CreateLabelsRequest& AddLabels(const char* value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
66
68
72 inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
73 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
74 inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
75 inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
76 inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
78 inline CreateLabelsRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
79 inline CreateLabelsRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
81 private:
82
83 Aws::String m_resourceId;
84 bool m_resourceIdHasBeenSet = false;
85
87 bool m_labelsHasBeenSet = false;
88
89 Aws::String m_authenticationToken;
90 bool m_authenticationTokenHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace WorkDocs
95} // namespace Aws
CreateLabelsRequest & WithAuthenticationToken(const char *value)
CreateLabelsRequest & WithResourceId(const char *value)
const Aws::String & GetAuthenticationToken() const
CreateLabelsRequest & AddLabels(Aws::String &&value)
CreateLabelsRequest & WithResourceId(const Aws::String &value)
CreateLabelsRequest & WithResourceId(Aws::String &&value)
void SetAuthenticationToken(const Aws::String &value)
CreateLabelsRequest & WithLabels(Aws::Vector< Aws::String > &&value)
CreateLabelsRequest & AddLabels(const char *value)
virtual const char * GetServiceRequestName() const override
CreateLabelsRequest & WithLabels(const Aws::Vector< Aws::String > &value)
void SetLabels(Aws::Vector< Aws::String > &&value)
AWS_WORKDOCS_API Aws::String SerializePayload() const override
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLabelsRequest & AddLabels(const Aws::String &value)
CreateLabelsRequest & WithAuthenticationToken(const Aws::String &value)
void SetLabels(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetLabels() const
void SetResourceId(const Aws::String &value)
CreateLabelsRequest & WithAuthenticationToken(Aws::String &&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