AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateFolderRequest.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
11#include <utility>
12
13namespace Aws {
14namespace WorkDocs {
15namespace Model {
16
20 public:
21 AWS_WORKDOCS_API CreateFolderRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "CreateFolder"; }
28
29 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
30
32
34
38 inline const Aws::String& GetAuthenticationToken() const { return m_authenticationToken; }
39 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
40 template <typename AuthenticationTokenT = Aws::String>
41 void SetAuthenticationToken(AuthenticationTokenT&& value) {
42 m_authenticationTokenHasBeenSet = true;
43 m_authenticationToken = std::forward<AuthenticationTokenT>(value);
44 }
45 template <typename AuthenticationTokenT = Aws::String>
46 CreateFolderRequest& WithAuthenticationToken(AuthenticationTokenT&& value) {
47 SetAuthenticationToken(std::forward<AuthenticationTokenT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
64 CreateFolderRequest& WithName(NameT&& value) {
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetParentFolderId() const { return m_parentFolderId; }
75 inline bool ParentFolderIdHasBeenSet() const { return m_parentFolderIdHasBeenSet; }
76 template <typename ParentFolderIdT = Aws::String>
77 void SetParentFolderId(ParentFolderIdT&& value) {
78 m_parentFolderIdHasBeenSet = true;
79 m_parentFolderId = std::forward<ParentFolderIdT>(value);
80 }
81 template <typename ParentFolderIdT = Aws::String>
82 CreateFolderRequest& WithParentFolderId(ParentFolderIdT&& value) {
83 SetParentFolderId(std::forward<ParentFolderIdT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_authenticationToken;
89
90 Aws::String m_name;
91
92 Aws::String m_parentFolderId;
93 bool m_authenticationTokenHasBeenSet = false;
94 bool m_nameHasBeenSet = false;
95 bool m_parentFolderIdHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace WorkDocs
100} // namespace Aws
CreateFolderRequest & WithParentFolderId(ParentFolderIdT &&value)
const Aws::String & GetAuthenticationToken() const
void SetParentFolderId(ParentFolderIdT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetParentFolderId() const
CreateFolderRequest & WithAuthenticationToken(AuthenticationTokenT &&value)
AWS_WORKDOCS_API CreateFolderRequest()=default
AWS_WORKDOCS_API Aws::String SerializePayload() const override
void SetAuthenticationToken(AuthenticationTokenT &&value)
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateFolderRequest & WithName(NameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String