AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
46 inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
47 inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
49 inline UpdateDocumentRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
50 inline UpdateDocumentRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
52
54
57 inline const Aws::String& GetDocumentId() const{ return m_documentId; }
58 inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
59 inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; }
60 inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); }
61 inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); }
62 inline UpdateDocumentRequest& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;}
63 inline UpdateDocumentRequest& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;}
64 inline UpdateDocumentRequest& WithDocumentId(const char* value) { SetDocumentId(value); return *this;}
66
68
71 inline const Aws::String& GetName() const{ return m_name; }
72 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
73 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
74 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
75 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
76 inline UpdateDocumentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
77 inline UpdateDocumentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78 inline UpdateDocumentRequest& WithName(const char* value) { SetName(value); return *this;}
80
82
85 inline const Aws::String& GetParentFolderId() const{ return m_parentFolderId; }
86 inline bool ParentFolderIdHasBeenSet() const { return m_parentFolderIdHasBeenSet; }
87 inline void SetParentFolderId(const Aws::String& value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId = value; }
88 inline void SetParentFolderId(Aws::String&& value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId = std::move(value); }
89 inline void SetParentFolderId(const char* value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId.assign(value); }
90 inline UpdateDocumentRequest& WithParentFolderId(const Aws::String& value) { SetParentFolderId(value); return *this;}
91 inline UpdateDocumentRequest& WithParentFolderId(Aws::String&& value) { SetParentFolderId(std::move(value)); return *this;}
92 inline UpdateDocumentRequest& WithParentFolderId(const char* value) { SetParentFolderId(value); return *this;}
94
96
100 inline const ResourceStateType& GetResourceState() const{ return m_resourceState; }
101 inline bool ResourceStateHasBeenSet() const { return m_resourceStateHasBeenSet; }
102 inline void SetResourceState(const ResourceStateType& value) { m_resourceStateHasBeenSet = true; m_resourceState = value; }
103 inline void SetResourceState(ResourceStateType&& value) { m_resourceStateHasBeenSet = true; m_resourceState = std::move(value); }
104 inline UpdateDocumentRequest& WithResourceState(const ResourceStateType& value) { SetResourceState(value); return *this;}
105 inline UpdateDocumentRequest& WithResourceState(ResourceStateType&& value) { SetResourceState(std::move(value)); return *this;}
107 private:
108
109 Aws::String m_authenticationToken;
110 bool m_authenticationTokenHasBeenSet = false;
111
112 Aws::String m_documentId;
113 bool m_documentIdHasBeenSet = false;
114
115 Aws::String m_name;
116 bool m_nameHasBeenSet = false;
117
118 Aws::String m_parentFolderId;
119 bool m_parentFolderIdHasBeenSet = false;
120
121 ResourceStateType m_resourceState;
122 bool m_resourceStateHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace WorkDocs
127} // namespace Aws
UpdateDocumentRequest & WithResourceState(const ResourceStateType &value)
UpdateDocumentRequest & WithName(const Aws::String &value)
AWS_WORKDOCS_API Aws::String SerializePayload() const override
void SetResourceState(const ResourceStateType &value)
UpdateDocumentRequest & WithAuthenticationToken(Aws::String &&value)
UpdateDocumentRequest & WithParentFolderId(Aws::String &&value)
void SetAuthenticationToken(const Aws::String &value)
UpdateDocumentRequest & WithDocumentId(Aws::String &&value)
UpdateDocumentRequest & WithName(Aws::String &&value)
UpdateDocumentRequest & WithAuthenticationToken(const char *value)
UpdateDocumentRequest & WithDocumentId(const Aws::String &value)
UpdateDocumentRequest & WithAuthenticationToken(const Aws::String &value)
void SetParentFolderId(const Aws::String &value)
UpdateDocumentRequest & WithName(const char *value)
UpdateDocumentRequest & WithResourceState(ResourceStateType &&value)
void SetResourceState(ResourceStateType &&value)
virtual const char * GetServiceRequestName() const override
UpdateDocumentRequest & WithDocumentId(const char *value)
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateDocumentRequest & WithParentFolderId(const Aws::String &value)
const ResourceStateType & GetResourceState() const
UpdateDocumentRequest & WithParentFolderId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String