/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace WorkDocs { namespace Model { /** */ class DescribeDocumentVersionsRequest : public WorkDocsRequest { public: AWS_WORKDOCS_API DescribeDocumentVersionsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DescribeDocumentVersions"; } AWS_WORKDOCS_API Aws::String SerializePayload() const override; AWS_WORKDOCS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Amazon WorkDocs authentication token. Not required when using Amazon Web * Services administrator credentials to access the API.

*/ inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; } /** *

Amazon WorkDocs authentication token. Not required when using Amazon Web * Services administrator credentials to access the API.

*/ inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; } /** *

Amazon WorkDocs authentication token. Not required when using Amazon Web * Services administrator credentials to access the API.

*/ inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; } /** *

Amazon WorkDocs authentication token. Not required when using Amazon Web * Services administrator credentials to access the API.

*/ inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); } /** *

Amazon WorkDocs authentication token. Not required when using Amazon Web * Services administrator credentials to access the API.

*/ inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); } /** *

Amazon WorkDocs authentication token. Not required when using Amazon Web * Services administrator credentials to access the API.

*/ inline DescribeDocumentVersionsRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;} /** *

Amazon WorkDocs authentication token. Not required when using Amazon Web * Services administrator credentials to access the API.

*/ inline DescribeDocumentVersionsRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;} /** *

Amazon WorkDocs authentication token. Not required when using Amazon Web * Services administrator credentials to access the API.

*/ inline DescribeDocumentVersionsRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;} /** *

The ID of the document.

*/ inline const Aws::String& GetDocumentId() const{ return m_documentId; } /** *

The ID of the document.

*/ inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; } /** *

The ID of the document.

*/ inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; } /** *

The ID of the document.

*/ inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); } /** *

The ID of the document.

*/ inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); } /** *

The ID of the document.

*/ inline DescribeDocumentVersionsRequest& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;} /** *

The ID of the document.

*/ inline DescribeDocumentVersionsRequest& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;} /** *

The ID of the document.

*/ inline DescribeDocumentVersionsRequest& WithDocumentId(const char* value) { SetDocumentId(value); return *this;} /** *

The marker for the next set of results. (You received this marker from a * previous call.)

*/ inline const Aws::String& GetMarker() const{ return m_marker; } /** *

The marker for the next set of results. (You received this marker from a * previous call.)

*/ inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; } /** *

The marker for the next set of results. (You received this marker from a * previous call.)

*/ inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; } /** *

The marker for the next set of results. (You received this marker from a * previous call.)

*/ inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); } /** *

The marker for the next set of results. (You received this marker from a * previous call.)

*/ inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); } /** *

The marker for the next set of results. (You received this marker from a * previous call.)

*/ inline DescribeDocumentVersionsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} /** *

The marker for the next set of results. (You received this marker from a * previous call.)

*/ inline DescribeDocumentVersionsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} /** *

The marker for the next set of results. (You received this marker from a * previous call.)

*/ inline DescribeDocumentVersionsRequest& WithMarker(const char* value) { SetMarker(value); return *this;} /** *

The maximum number of versions to return with this call.

*/ inline int GetLimit() const{ return m_limit; } /** *

The maximum number of versions to return with this call.

*/ inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; } /** *

The maximum number of versions to return with this call.

*/ inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; } /** *

The maximum number of versions to return with this call.

*/ inline DescribeDocumentVersionsRequest& WithLimit(int value) { SetLimit(value); return *this;} /** *

A comma-separated list of values. Specify "INITIALIZED" to include incomplete * versions.

*/ inline const Aws::String& GetInclude() const{ return m_include; } /** *

A comma-separated list of values. Specify "INITIALIZED" to include incomplete * versions.

*/ inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; } /** *

A comma-separated list of values. Specify "INITIALIZED" to include incomplete * versions.

*/ inline void SetInclude(const Aws::String& value) { m_includeHasBeenSet = true; m_include = value; } /** *

A comma-separated list of values. Specify "INITIALIZED" to include incomplete * versions.

*/ inline void SetInclude(Aws::String&& value) { m_includeHasBeenSet = true; m_include = std::move(value); } /** *

A comma-separated list of values. Specify "INITIALIZED" to include incomplete * versions.

*/ inline void SetInclude(const char* value) { m_includeHasBeenSet = true; m_include.assign(value); } /** *

A comma-separated list of values. Specify "INITIALIZED" to include incomplete * versions.

*/ inline DescribeDocumentVersionsRequest& WithInclude(const Aws::String& value) { SetInclude(value); return *this;} /** *

A comma-separated list of values. Specify "INITIALIZED" to include incomplete * versions.

*/ inline DescribeDocumentVersionsRequest& WithInclude(Aws::String&& value) { SetInclude(std::move(value)); return *this;} /** *

A comma-separated list of values. Specify "INITIALIZED" to include incomplete * versions.

*/ inline DescribeDocumentVersionsRequest& WithInclude(const char* value) { SetInclude(value); return *this;} /** *

Specify "SOURCE" to include initialized versions and a URL for the source * document.

*/ inline const Aws::String& GetFields() const{ return m_fields; } /** *

Specify "SOURCE" to include initialized versions and a URL for the source * document.

*/ inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; } /** *

Specify "SOURCE" to include initialized versions and a URL for the source * document.

*/ inline void SetFields(const Aws::String& value) { m_fieldsHasBeenSet = true; m_fields = value; } /** *

Specify "SOURCE" to include initialized versions and a URL for the source * document.

*/ inline void SetFields(Aws::String&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); } /** *

Specify "SOURCE" to include initialized versions and a URL for the source * document.

*/ inline void SetFields(const char* value) { m_fieldsHasBeenSet = true; m_fields.assign(value); } /** *

Specify "SOURCE" to include initialized versions and a URL for the source * document.

*/ inline DescribeDocumentVersionsRequest& WithFields(const Aws::String& value) { SetFields(value); return *this;} /** *

Specify "SOURCE" to include initialized versions and a URL for the source * document.

*/ inline DescribeDocumentVersionsRequest& WithFields(Aws::String&& value) { SetFields(std::move(value)); return *this;} /** *

Specify "SOURCE" to include initialized versions and a URL for the source * document.

*/ inline DescribeDocumentVersionsRequest& WithFields(const char* value) { SetFields(value); return *this;} private: Aws::String m_authenticationToken; bool m_authenticationTokenHasBeenSet = false; Aws::String m_documentId; bool m_documentIdHasBeenSet = false; Aws::String m_marker; bool m_markerHasBeenSet = false; int m_limit; bool m_limitHasBeenSet = false; Aws::String m_include; bool m_includeHasBeenSet = false; Aws::String m_fields; bool m_fieldsHasBeenSet = false; }; } // namespace Model } // namespace WorkDocs } // namespace Aws