/** * 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 ConnectWisdomService { namespace Model { /** */ class UpdateContentRequest : public ConnectWisdomServiceRequest { public: AWS_CONNECTWISDOMSERVICE_API UpdateContentRequest(); // 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 "UpdateContent"; } AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override; /** *

The identifier of the content. Can be either the ID or the ARN. URLs cannot * contain the ARN.

*/ inline const Aws::String& GetContentId() const{ return m_contentId; } /** *

The identifier of the content. Can be either the ID or the ARN. URLs cannot * contain the ARN.

*/ inline bool ContentIdHasBeenSet() const { return m_contentIdHasBeenSet; } /** *

The identifier of the content. Can be either the ID or the ARN. URLs cannot * contain the ARN.

*/ inline void SetContentId(const Aws::String& value) { m_contentIdHasBeenSet = true; m_contentId = value; } /** *

The identifier of the content. Can be either the ID or the ARN. URLs cannot * contain the ARN.

*/ inline void SetContentId(Aws::String&& value) { m_contentIdHasBeenSet = true; m_contentId = std::move(value); } /** *

The identifier of the content. Can be either the ID or the ARN. URLs cannot * contain the ARN.

*/ inline void SetContentId(const char* value) { m_contentIdHasBeenSet = true; m_contentId.assign(value); } /** *

The identifier of the content. Can be either the ID or the ARN. URLs cannot * contain the ARN.

*/ inline UpdateContentRequest& WithContentId(const Aws::String& value) { SetContentId(value); return *this;} /** *

The identifier of the content. Can be either the ID or the ARN. URLs cannot * contain the ARN.

*/ inline UpdateContentRequest& WithContentId(Aws::String&& value) { SetContentId(std::move(value)); return *this;} /** *

The identifier of the content. Can be either the ID or the ARN. URLs cannot * contain the ARN.

*/ inline UpdateContentRequest& WithContentId(const char* value) { SetContentId(value); return *this;} /** *

The identifier of the knowledge base. Can be either the ID or the ARN

*/ inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; } /** *

The identifier of the knowledge base. Can be either the ID or the ARN

*/ inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; } /** *

The identifier of the knowledge base. Can be either the ID or the ARN

*/ inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; } /** *

The identifier of the knowledge base. Can be either the ID or the ARN

*/ inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); } /** *

The identifier of the knowledge base. Can be either the ID or the ARN

*/ inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); } /** *

The identifier of the knowledge base. Can be either the ID or the ARN

*/ inline UpdateContentRequest& WithKnowledgeBaseId(const Aws::String& value) { SetKnowledgeBaseId(value); return *this;} /** *

The identifier of the knowledge base. Can be either the ID or the ARN

*/ inline UpdateContentRequest& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;} /** *

The identifier of the knowledge base. Can be either the ID or the ARN

*/ inline UpdateContentRequest& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;} /** *

A key/value map to store attributes without affecting tagging or * recommendations. For example, when synchronizing data between an external system * and Wisdom, you can store an external version identifier as metadata to utilize * for determining drift.

*/ inline const Aws::Map& GetMetadata() const{ return m_metadata; } /** *

A key/value map to store attributes without affecting tagging or * recommendations. For example, when synchronizing data between an external system * and Wisdom, you can store an external version identifier as metadata to utilize * for determining drift.

*/ inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; } /** *

A key/value map to store attributes without affecting tagging or * recommendations. For example, when synchronizing data between an external system * and Wisdom, you can store an external version identifier as metadata to utilize * for determining drift.

*/ inline void SetMetadata(const Aws::Map& value) { m_metadataHasBeenSet = true; m_metadata = value; } /** *

A key/value map to store attributes without affecting tagging or * recommendations. For example, when synchronizing data between an external system * and Wisdom, you can store an external version identifier as metadata to utilize * for determining drift.

*/ inline void SetMetadata(Aws::Map&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); } /** *

A key/value map to store attributes without affecting tagging or * recommendations. For example, when synchronizing data between an external system * and Wisdom, you can store an external version identifier as metadata to utilize * for determining drift.

*/ inline UpdateContentRequest& WithMetadata(const Aws::Map& value) { SetMetadata(value); return *this;} /** *

A key/value map to store attributes without affecting tagging or * recommendations. For example, when synchronizing data between an external system * and Wisdom, you can store an external version identifier as metadata to utilize * for determining drift.

*/ inline UpdateContentRequest& WithMetadata(Aws::Map&& value) { SetMetadata(std::move(value)); return *this;} /** *

A key/value map to store attributes without affecting tagging or * recommendations. For example, when synchronizing data between an external system * and Wisdom, you can store an external version identifier as metadata to utilize * for determining drift.

*/ inline UpdateContentRequest& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; } /** *

A key/value map to store attributes without affecting tagging or * recommendations. For example, when synchronizing data between an external system * and Wisdom, you can store an external version identifier as metadata to utilize * for determining drift.

*/ inline UpdateContentRequest& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; } /** *

A key/value map to store attributes without affecting tagging or * recommendations. For example, when synchronizing data between an external system * and Wisdom, you can store an external version identifier as metadata to utilize * for determining drift.

*/ inline UpdateContentRequest& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; } /** *

A key/value map to store attributes without affecting tagging or * recommendations. For example, when synchronizing data between an external system * and Wisdom, you can store an external version identifier as metadata to utilize * for determining drift.

*/ inline UpdateContentRequest& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; } /** *

A key/value map to store attributes without affecting tagging or * recommendations. For example, when synchronizing data between an external system * and Wisdom, you can store an external version identifier as metadata to utilize * for determining drift.

*/ inline UpdateContentRequest& AddMetadata(const char* key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; } /** *

A key/value map to store attributes without affecting tagging or * recommendations. For example, when synchronizing data between an external system * and Wisdom, you can store an external version identifier as metadata to utilize * for determining drift.

*/ inline UpdateContentRequest& AddMetadata(Aws::String&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; } /** *

A key/value map to store attributes without affecting tagging or * recommendations. For example, when synchronizing data between an external system * and Wisdom, you can store an external version identifier as metadata to utilize * for determining drift.

*/ inline UpdateContentRequest& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; } /** *

The URI for the article. If the knowledge base has a templateUri, setting * this argument overrides it for this piece of content. To remove an existing * overrideLinkOurUri, exclude this argument and set * removeOverrideLinkOutUri to true.

*/ inline const Aws::String& GetOverrideLinkOutUri() const{ return m_overrideLinkOutUri; } /** *

The URI for the article. If the knowledge base has a templateUri, setting * this argument overrides it for this piece of content. To remove an existing * overrideLinkOurUri, exclude this argument and set * removeOverrideLinkOutUri to true.

*/ inline bool OverrideLinkOutUriHasBeenSet() const { return m_overrideLinkOutUriHasBeenSet; } /** *

The URI for the article. If the knowledge base has a templateUri, setting * this argument overrides it for this piece of content. To remove an existing * overrideLinkOurUri, exclude this argument and set * removeOverrideLinkOutUri to true.

*/ inline void SetOverrideLinkOutUri(const Aws::String& value) { m_overrideLinkOutUriHasBeenSet = true; m_overrideLinkOutUri = value; } /** *

The URI for the article. If the knowledge base has a templateUri, setting * this argument overrides it for this piece of content. To remove an existing * overrideLinkOurUri, exclude this argument and set * removeOverrideLinkOutUri to true.

*/ inline void SetOverrideLinkOutUri(Aws::String&& value) { m_overrideLinkOutUriHasBeenSet = true; m_overrideLinkOutUri = std::move(value); } /** *

The URI for the article. If the knowledge base has a templateUri, setting * this argument overrides it for this piece of content. To remove an existing * overrideLinkOurUri, exclude this argument and set * removeOverrideLinkOutUri to true.

*/ inline void SetOverrideLinkOutUri(const char* value) { m_overrideLinkOutUriHasBeenSet = true; m_overrideLinkOutUri.assign(value); } /** *

The URI for the article. If the knowledge base has a templateUri, setting * this argument overrides it for this piece of content. To remove an existing * overrideLinkOurUri, exclude this argument and set * removeOverrideLinkOutUri to true.

*/ inline UpdateContentRequest& WithOverrideLinkOutUri(const Aws::String& value) { SetOverrideLinkOutUri(value); return *this;} /** *

The URI for the article. If the knowledge base has a templateUri, setting * this argument overrides it for this piece of content. To remove an existing * overrideLinkOurUri, exclude this argument and set * removeOverrideLinkOutUri to true.

*/ inline UpdateContentRequest& WithOverrideLinkOutUri(Aws::String&& value) { SetOverrideLinkOutUri(std::move(value)); return *this;} /** *

The URI for the article. If the knowledge base has a templateUri, setting * this argument overrides it for this piece of content. To remove an existing * overrideLinkOurUri, exclude this argument and set * removeOverrideLinkOutUri to true.

*/ inline UpdateContentRequest& WithOverrideLinkOutUri(const char* value) { SetOverrideLinkOutUri(value); return *this;} /** *

Unset the existing overrideLinkOutUri if it exists.

*/ inline bool GetRemoveOverrideLinkOutUri() const{ return m_removeOverrideLinkOutUri; } /** *

Unset the existing overrideLinkOutUri if it exists.

*/ inline bool RemoveOverrideLinkOutUriHasBeenSet() const { return m_removeOverrideLinkOutUriHasBeenSet; } /** *

Unset the existing overrideLinkOutUri if it exists.

*/ inline void SetRemoveOverrideLinkOutUri(bool value) { m_removeOverrideLinkOutUriHasBeenSet = true; m_removeOverrideLinkOutUri = value; } /** *

Unset the existing overrideLinkOutUri if it exists.

*/ inline UpdateContentRequest& WithRemoveOverrideLinkOutUri(bool value) { SetRemoveOverrideLinkOutUri(value); return *this;} /** *

The revisionId of the content resource to update, taken from an * earlier call to GetContent, GetContentSummary, * SearchContent, or ListContents. If included, this * argument acts as an optimistic lock to ensure content was not modified since it * was last read. If it has been modified, this API throws a * PreconditionFailedException.

*/ inline const Aws::String& GetRevisionId() const{ return m_revisionId; } /** *

The revisionId of the content resource to update, taken from an * earlier call to GetContent, GetContentSummary, * SearchContent, or ListContents. If included, this * argument acts as an optimistic lock to ensure content was not modified since it * was last read. If it has been modified, this API throws a * PreconditionFailedException.

*/ inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; } /** *

The revisionId of the content resource to update, taken from an * earlier call to GetContent, GetContentSummary, * SearchContent, or ListContents. If included, this * argument acts as an optimistic lock to ensure content was not modified since it * was last read. If it has been modified, this API throws a * PreconditionFailedException.

*/ inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; } /** *

The revisionId of the content resource to update, taken from an * earlier call to GetContent, GetContentSummary, * SearchContent, or ListContents. If included, this * argument acts as an optimistic lock to ensure content was not modified since it * was last read. If it has been modified, this API throws a * PreconditionFailedException.

*/ inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); } /** *

The revisionId of the content resource to update, taken from an * earlier call to GetContent, GetContentSummary, * SearchContent, or ListContents. If included, this * argument acts as an optimistic lock to ensure content was not modified since it * was last read. If it has been modified, this API throws a * PreconditionFailedException.

*/ inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); } /** *

The revisionId of the content resource to update, taken from an * earlier call to GetContent, GetContentSummary, * SearchContent, or ListContents. If included, this * argument acts as an optimistic lock to ensure content was not modified since it * was last read. If it has been modified, this API throws a * PreconditionFailedException.

*/ inline UpdateContentRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;} /** *

The revisionId of the content resource to update, taken from an * earlier call to GetContent, GetContentSummary, * SearchContent, or ListContents. If included, this * argument acts as an optimistic lock to ensure content was not modified since it * was last read. If it has been modified, this API throws a * PreconditionFailedException.

*/ inline UpdateContentRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;} /** *

The revisionId of the content resource to update, taken from an * earlier call to GetContent, GetContentSummary, * SearchContent, or ListContents. If included, this * argument acts as an optimistic lock to ensure content was not modified since it * was last read. If it has been modified, this API throws a * PreconditionFailedException.

*/ inline UpdateContentRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;} /** *

The title of the content.

*/ inline const Aws::String& GetTitle() const{ return m_title; } /** *

The title of the content.

*/ inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } /** *

The title of the content.

*/ inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } /** *

The title of the content.

*/ inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } /** *

The title of the content.

*/ inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } /** *

The title of the content.

*/ inline UpdateContentRequest& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} /** *

The title of the content.

*/ inline UpdateContentRequest& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} /** *

The title of the content.

*/ inline UpdateContentRequest& WithTitle(const char* value) { SetTitle(value); return *this;} /** *

A pointer to the uploaded asset. This value is returned by StartContentUpload. *

*/ inline const Aws::String& GetUploadId() const{ return m_uploadId; } /** *

A pointer to the uploaded asset. This value is returned by StartContentUpload. *

*/ inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; } /** *

A pointer to the uploaded asset. This value is returned by StartContentUpload. *

*/ inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; } /** *

A pointer to the uploaded asset. This value is returned by StartContentUpload. *

*/ inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); } /** *

A pointer to the uploaded asset. This value is returned by StartContentUpload. *

*/ inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); } /** *

A pointer to the uploaded asset. This value is returned by StartContentUpload. *

*/ inline UpdateContentRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;} /** *

A pointer to the uploaded asset. This value is returned by StartContentUpload. *

*/ inline UpdateContentRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;} /** *

A pointer to the uploaded asset. This value is returned by StartContentUpload. *

*/ inline UpdateContentRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;} private: Aws::String m_contentId; bool m_contentIdHasBeenSet = false; Aws::String m_knowledgeBaseId; bool m_knowledgeBaseIdHasBeenSet = false; Aws::Map m_metadata; bool m_metadataHasBeenSet = false; Aws::String m_overrideLinkOutUri; bool m_overrideLinkOutUriHasBeenSet = false; bool m_removeOverrideLinkOutUri; bool m_removeOverrideLinkOutUriHasBeenSet = false; Aws::String m_revisionId; bool m_revisionIdHasBeenSet = false; Aws::String m_title; bool m_titleHasBeenSet = false; Aws::String m_uploadId; bool m_uploadIdHasBeenSet = false; }; } // namespace Model } // namespace ConnectWisdomService } // namespace Aws