/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace WorkDocs { namespace Model { /** */ class DeleteCustomMetadataRequest : public WorkDocsRequest { public: AWS_WORKDOCS_API DeleteCustomMetadataRequest(); // 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 "DeleteCustomMetadata"; } 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 DeleteCustomMetadataRequest& 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 DeleteCustomMetadataRequest& 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 DeleteCustomMetadataRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;} /** *

The ID of the resource, either a document or folder.

*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *

The ID of the resource, either a document or folder.

*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *

The ID of the resource, either a document or folder.

*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *

The ID of the resource, either a document or folder.

*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *

The ID of the resource, either a document or folder.

*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *

The ID of the resource, either a document or folder.

*/ inline DeleteCustomMetadataRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *

The ID of the resource, either a document or folder.

*/ inline DeleteCustomMetadataRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *

The ID of the resource, either a document or folder.

*/ inline DeleteCustomMetadataRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;} /** *

The ID of the version, if the custom metadata is being deleted from a * document version.

*/ inline const Aws::String& GetVersionId() const{ return m_versionId; } /** *

The ID of the version, if the custom metadata is being deleted from a * document version.

*/ inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; } /** *

The ID of the version, if the custom metadata is being deleted from a * document version.

*/ inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; } /** *

The ID of the version, if the custom metadata is being deleted from a * document version.

*/ inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); } /** *

The ID of the version, if the custom metadata is being deleted from a * document version.

*/ inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); } /** *

The ID of the version, if the custom metadata is being deleted from a * document version.

*/ inline DeleteCustomMetadataRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;} /** *

The ID of the version, if the custom metadata is being deleted from a * document version.

*/ inline DeleteCustomMetadataRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;} /** *

The ID of the version, if the custom metadata is being deleted from a * document version.

*/ inline DeleteCustomMetadataRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;} /** *

List of properties to remove.

*/ inline const Aws::Vector& GetKeys() const{ return m_keys; } /** *

List of properties to remove.

*/ inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; } /** *

List of properties to remove.

*/ inline void SetKeys(const Aws::Vector& value) { m_keysHasBeenSet = true; m_keys = value; } /** *

List of properties to remove.

*/ inline void SetKeys(Aws::Vector&& value) { m_keysHasBeenSet = true; m_keys = std::move(value); } /** *

List of properties to remove.

*/ inline DeleteCustomMetadataRequest& WithKeys(const Aws::Vector& value) { SetKeys(value); return *this;} /** *

List of properties to remove.

*/ inline DeleteCustomMetadataRequest& WithKeys(Aws::Vector&& value) { SetKeys(std::move(value)); return *this;} /** *

List of properties to remove.

*/ inline DeleteCustomMetadataRequest& AddKeys(const Aws::String& value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; } /** *

List of properties to remove.

*/ inline DeleteCustomMetadataRequest& AddKeys(Aws::String&& value) { m_keysHasBeenSet = true; m_keys.push_back(std::move(value)); return *this; } /** *

List of properties to remove.

*/ inline DeleteCustomMetadataRequest& AddKeys(const char* value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; } /** *

Flag to indicate removal of all custom metadata properties from the specified * resource.

*/ inline bool GetDeleteAll() const{ return m_deleteAll; } /** *

Flag to indicate removal of all custom metadata properties from the specified * resource.

*/ inline bool DeleteAllHasBeenSet() const { return m_deleteAllHasBeenSet; } /** *

Flag to indicate removal of all custom metadata properties from the specified * resource.

*/ inline void SetDeleteAll(bool value) { m_deleteAllHasBeenSet = true; m_deleteAll = value; } /** *

Flag to indicate removal of all custom metadata properties from the specified * resource.

*/ inline DeleteCustomMetadataRequest& WithDeleteAll(bool value) { SetDeleteAll(value); return *this;} private: Aws::String m_authenticationToken; bool m_authenticationTokenHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; Aws::String m_versionId; bool m_versionIdHasBeenSet = false; Aws::Vector m_keys; bool m_keysHasBeenSet = false; bool m_deleteAll; bool m_deleteAllHasBeenSet = false; }; } // namespace Model } // namespace WorkDocs } // namespace Aws