AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
UpdateFolderRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/workdocs/WorkDocsRequest.h>
9#include <aws/workdocs/WorkDocs_EXPORTS.h>
10#include <aws/workdocs/model/ResourceStateType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace WorkDocs {
16namespace Model {
17
21 public:
22 AWS_WORKDOCS_API UpdateFolderRequest() = 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 "UpdateFolder"; }
29
30 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetAuthenticationToken() const { return m_authenticationToken; }
40 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
41 template <typename AuthenticationTokenT = Aws::String>
42 void SetAuthenticationToken(AuthenticationTokenT&& value) {
43 m_authenticationTokenHasBeenSet = true;
44 m_authenticationToken = std::forward<AuthenticationTokenT>(value);
45 }
46 template <typename AuthenticationTokenT = Aws::String>
47 UpdateFolderRequest& WithAuthenticationToken(AuthenticationTokenT&& value) {
48 SetAuthenticationToken(std::forward<AuthenticationTokenT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetFolderId() const { return m_folderId; }
58 inline bool FolderIdHasBeenSet() const { return m_folderIdHasBeenSet; }
59 template <typename FolderIdT = Aws::String>
60 void SetFolderId(FolderIdT&& value) {
61 m_folderIdHasBeenSet = true;
62 m_folderId = std::forward<FolderIdT>(value);
63 }
64 template <typename FolderIdT = Aws::String>
65 UpdateFolderRequest& WithFolderId(FolderIdT&& value) {
66 SetFolderId(std::forward<FolderIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 template <typename NameT = Aws::String>
78 void SetName(NameT&& value) {
79 m_nameHasBeenSet = true;
80 m_name = std::forward<NameT>(value);
81 }
82 template <typename NameT = Aws::String>
83 UpdateFolderRequest& WithName(NameT&& value) {
84 SetName(std::forward<NameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetParentFolderId() const { return m_parentFolderId; }
94 inline bool ParentFolderIdHasBeenSet() const { return m_parentFolderIdHasBeenSet; }
95 template <typename ParentFolderIdT = Aws::String>
96 void SetParentFolderId(ParentFolderIdT&& value) {
97 m_parentFolderIdHasBeenSet = true;
98 m_parentFolderId = std::forward<ParentFolderIdT>(value);
99 }
100 template <typename ParentFolderIdT = Aws::String>
101 UpdateFolderRequest& WithParentFolderId(ParentFolderIdT&& value) {
102 SetParentFolderId(std::forward<ParentFolderIdT>(value));
103 return *this;
104 }
106
108
112 inline ResourceStateType GetResourceState() const { return m_resourceState; }
113 inline bool ResourceStateHasBeenSet() const { return m_resourceStateHasBeenSet; }
115 m_resourceStateHasBeenSet = true;
116 m_resourceState = value;
117 }
119 SetResourceState(value);
120 return *this;
121 }
123 private:
124 Aws::String m_authenticationToken;
125
126 Aws::String m_folderId;
127
128 Aws::String m_name;
129
130 Aws::String m_parentFolderId;
131
133 bool m_authenticationTokenHasBeenSet = false;
134 bool m_folderIdHasBeenSet = false;
135 bool m_nameHasBeenSet = false;
136 bool m_parentFolderIdHasBeenSet = false;
137 bool m_resourceStateHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace WorkDocs
142} // namespace Aws
UpdateFolderRequest & WithFolderId(FolderIdT &&value)
const Aws::String & GetAuthenticationToken() const
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetResourceState(ResourceStateType value)
void SetParentFolderId(ParentFolderIdT &&value)
const Aws::String & GetParentFolderId() const
AWS_WORKDOCS_API UpdateFolderRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_WORKDOCS_API Aws::String SerializePayload() const override
UpdateFolderRequest & WithParentFolderId(ParentFolderIdT &&value)
void SetAuthenticationToken(AuthenticationTokenT &&value)
UpdateFolderRequest & WithResourceState(ResourceStateType value)
UpdateFolderRequest & WithAuthenticationToken(AuthenticationTokenT &&value)
UpdateFolderRequest & WithName(NameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String