AWS SDK for C++  1.9.131
AWS SDK for C++
GetDocumentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace WorkDocs
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "GetDocument"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
41 
42 
47  inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
48 
53  inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
54 
59  inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
60 
65  inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
66 
71  inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
72 
77  inline GetDocumentRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
78 
83  inline GetDocumentRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
84 
89  inline GetDocumentRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
90 
91 
95  inline const Aws::String& GetDocumentId() const{ return m_documentId; }
96 
100  inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
101 
105  inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; }
106 
110  inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); }
111 
115  inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); }
116 
120  inline GetDocumentRequest& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;}
121 
125  inline GetDocumentRequest& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;}
126 
130  inline GetDocumentRequest& WithDocumentId(const char* value) { SetDocumentId(value); return *this;}
131 
132 
136  inline bool GetIncludeCustomMetadata() const{ return m_includeCustomMetadata; }
137 
141  inline bool IncludeCustomMetadataHasBeenSet() const { return m_includeCustomMetadataHasBeenSet; }
142 
146  inline void SetIncludeCustomMetadata(bool value) { m_includeCustomMetadataHasBeenSet = true; m_includeCustomMetadata = value; }
147 
151  inline GetDocumentRequest& WithIncludeCustomMetadata(bool value) { SetIncludeCustomMetadata(value); return *this;}
152 
153  private:
154 
155  Aws::String m_authenticationToken;
156  bool m_authenticationTokenHasBeenSet;
157 
158  Aws::String m_documentId;
159  bool m_documentIdHasBeenSet;
160 
161  bool m_includeCustomMetadata;
162  bool m_includeCustomMetadataHasBeenSet;
163  };
164 
165 } // namespace Model
166 } // namespace WorkDocs
167 } // namespace Aws
Aws::WorkDocs::Model::GetDocumentRequest::SetDocumentId
void SetDocumentId(const char *value)
Definition: GetDocumentRequest.h:115
Aws::Http::URI
Definition: URI.h:32
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WorkDocs::Model::GetDocumentRequest::SetAuthenticationToken
void SetAuthenticationToken(const char *value)
Definition: GetDocumentRequest.h:71
Aws::WorkDocs::WorkDocsRequest
Definition: WorkDocsRequest.h:17
Aws::WorkDocs::Model::GetDocumentRequest::WithDocumentId
GetDocumentRequest & WithDocumentId(const Aws::String &value)
Definition: GetDocumentRequest.h:120
Aws::WorkDocs::Model::GetDocumentRequest::WithAuthenticationToken
GetDocumentRequest & WithAuthenticationToken(const char *value)
Definition: GetDocumentRequest.h:89
Aws::WorkDocs::Model::GetDocumentRequest::GetDocumentRequest
GetDocumentRequest()
Aws::WorkDocs::Model::GetDocumentRequest::WithIncludeCustomMetadata
GetDocumentRequest & WithIncludeCustomMetadata(bool value)
Definition: GetDocumentRequest.h:151
Aws::WorkDocs::Model::GetDocumentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkDocs::Model::GetDocumentRequest::SetAuthenticationToken
void SetAuthenticationToken(Aws::String &&value)
Definition: GetDocumentRequest.h:65
Aws::WorkDocs::Model::GetDocumentRequest::GetDocumentId
const Aws::String & GetDocumentId() const
Definition: GetDocumentRequest.h:95
Aws::WorkDocs::Model::GetDocumentRequest::SetAuthenticationToken
void SetAuthenticationToken(const Aws::String &value)
Definition: GetDocumentRequest.h:59
Aws::WorkDocs::Model::GetDocumentRequest
Definition: GetDocumentRequest.h:26
Aws::WorkDocs::Model::GetDocumentRequest::SetIncludeCustomMetadata
void SetIncludeCustomMetadata(bool value)
Definition: GetDocumentRequest.h:146
Aws::WorkDocs::Model::GetDocumentRequest::SetDocumentId
void SetDocumentId(Aws::String &&value)
Definition: GetDocumentRequest.h:110
Aws::WorkDocs::Model::GetDocumentRequest::IncludeCustomMetadataHasBeenSet
bool IncludeCustomMetadataHasBeenSet() const
Definition: GetDocumentRequest.h:141
Aws::WorkDocs::Model::GetDocumentRequest::WithDocumentId
GetDocumentRequest & WithDocumentId(const char *value)
Definition: GetDocumentRequest.h:130
WorkDocs_EXPORTS.h
AWSString.h
Aws::WorkDocs::Model::GetDocumentRequest::WithAuthenticationToken
GetDocumentRequest & WithAuthenticationToken(Aws::String &&value)
Definition: GetDocumentRequest.h:83
Aws::WorkDocs::Model::GetDocumentRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::WorkDocs::Model::GetDocumentRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WorkDocs::Model::GetDocumentRequest::DocumentIdHasBeenSet
bool DocumentIdHasBeenSet() const
Definition: GetDocumentRequest.h:100
Aws::WorkDocs::Model::GetDocumentRequest::WithDocumentId
GetDocumentRequest & WithDocumentId(Aws::String &&value)
Definition: GetDocumentRequest.h:125
Aws::WorkDocs::Model::GetDocumentRequest::SetDocumentId
void SetDocumentId(const Aws::String &value)
Definition: GetDocumentRequest.h:105
Aws::WorkDocs::Model::GetDocumentRequest::WithAuthenticationToken
GetDocumentRequest & WithAuthenticationToken(const Aws::String &value)
Definition: GetDocumentRequest.h:77
AWS_WORKDOCS_API
#define AWS_WORKDOCS_API
Definition: WorkDocs_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::WorkDocs::Model::GetDocumentRequest::AuthenticationTokenHasBeenSet
bool AuthenticationTokenHasBeenSet() const
Definition: GetDocumentRequest.h:53
Aws::WorkDocs::Model::GetDocumentRequest::GetAuthenticationToken
const Aws::String & GetAuthenticationToken() const
Definition: GetDocumentRequest.h:47
WorkDocsRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkDocs::Model::GetDocumentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetDocumentRequest.h:34
Aws::WorkDocs::Model::GetDocumentRequest::GetIncludeCustomMetadata
bool GetIncludeCustomMetadata() const
Definition: GetDocumentRequest.h:136