AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateDocumentRequest.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/workdocs/model/ResourceStateType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace WorkDocs
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_WORKDOCS_API UpdateDocumentRequest() = 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 "UpdateDocument"; }
32
33 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetAuthenticationToken() const { return m_authenticationToken; }
44 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
45 template<typename AuthenticationTokenT = Aws::String>
46 void SetAuthenticationToken(AuthenticationTokenT&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::forward<AuthenticationTokenT>(value); }
47 template<typename AuthenticationTokenT = Aws::String>
48 UpdateDocumentRequest& WithAuthenticationToken(AuthenticationTokenT&& value) { SetAuthenticationToken(std::forward<AuthenticationTokenT>(value)); return *this;}
50
52
55 inline const Aws::String& GetDocumentId() const { return m_documentId; }
56 inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
57 template<typename DocumentIdT = Aws::String>
58 void SetDocumentId(DocumentIdT&& value) { m_documentIdHasBeenSet = true; m_documentId = std::forward<DocumentIdT>(value); }
59 template<typename DocumentIdT = Aws::String>
60 UpdateDocumentRequest& WithDocumentId(DocumentIdT&& value) { SetDocumentId(std::forward<DocumentIdT>(value)); return *this;}
62
64
67 inline const Aws::String& GetName() const { return m_name; }
68 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
69 template<typename NameT = Aws::String>
70 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
71 template<typename NameT = Aws::String>
72 UpdateDocumentRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
74
76
79 inline const Aws::String& GetParentFolderId() const { return m_parentFolderId; }
80 inline bool ParentFolderIdHasBeenSet() const { return m_parentFolderIdHasBeenSet; }
81 template<typename ParentFolderIdT = Aws::String>
82 void SetParentFolderId(ParentFolderIdT&& value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId = std::forward<ParentFolderIdT>(value); }
83 template<typename ParentFolderIdT = Aws::String>
84 UpdateDocumentRequest& WithParentFolderId(ParentFolderIdT&& value) { SetParentFolderId(std::forward<ParentFolderIdT>(value)); return *this;}
86
88
92 inline ResourceStateType GetResourceState() const { return m_resourceState; }
93 inline bool ResourceStateHasBeenSet() const { return m_resourceStateHasBeenSet; }
94 inline void SetResourceState(ResourceStateType value) { m_resourceStateHasBeenSet = true; m_resourceState = value; }
97 private:
98
99 Aws::String m_authenticationToken;
100 bool m_authenticationTokenHasBeenSet = false;
101
102 Aws::String m_documentId;
103 bool m_documentIdHasBeenSet = false;
104
105 Aws::String m_name;
106 bool m_nameHasBeenSet = false;
107
108 Aws::String m_parentFolderId;
109 bool m_parentFolderIdHasBeenSet = false;
110
112 bool m_resourceStateHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace WorkDocs
117} // namespace Aws
AWS_WORKDOCS_API Aws::String SerializePayload() const override
void SetAuthenticationToken(AuthenticationTokenT &&value)
UpdateDocumentRequest & WithAuthenticationToken(AuthenticationTokenT &&value)
UpdateDocumentRequest & WithDocumentId(DocumentIdT &&value)
UpdateDocumentRequest & WithResourceState(ResourceStateType value)
UpdateDocumentRequest & WithParentFolderId(ParentFolderIdT &&value)
AWS_WORKDOCS_API UpdateDocumentRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateDocumentRequest & WithName(NameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String