/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace ConnectWisdomService { namespace Model { /** */ class CreateContentRequest : public ConnectWisdomServiceRequest { public: AWS_CONNECTWISDOMSERVICE_API CreateContentRequest(); // 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 "CreateContent"; } AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override; /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline CreateContentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline CreateContentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline CreateContentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs * cannot contain 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. URLs * cannot contain the ARN.

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

The identifier of the knowledge base. Can be either the ID or the ARN. URLs * cannot contain 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. URLs * cannot contain 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. URLs * cannot contain 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. URLs * cannot contain the ARN.

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

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

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

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

*/ inline CreateContentRequest& 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 CreateContentRequest& 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 CreateContentRequest& 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 CreateContentRequest& 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 CreateContentRequest& 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 CreateContentRequest& 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 CreateContentRequest& 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 CreateContentRequest& 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 CreateContentRequest& 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 CreateContentRequest& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; } /** *

The name of the content. Each piece of content in a knowledge base must have * a unique name. You can retrieve a piece of content using only its knowledge base * and its name with the SearchContent * API.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the content. Each piece of content in a knowledge base must have * a unique name. You can retrieve a piece of content using only its knowledge base * and its name with the SearchContent * API.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the content. Each piece of content in a knowledge base must have * a unique name. You can retrieve a piece of content using only its knowledge base * and its name with the SearchContent * API.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the content. Each piece of content in a knowledge base must have * a unique name. You can retrieve a piece of content using only its knowledge base * and its name with the SearchContent * API.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the content. Each piece of content in a knowledge base must have * a unique name. You can retrieve a piece of content using only its knowledge base * and its name with the SearchContent * API.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the content. Each piece of content in a knowledge base must have * a unique name. You can retrieve a piece of content using only its knowledge base * and its name with the SearchContent * API.

*/ inline CreateContentRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the content. Each piece of content in a knowledge base must have * a unique name. You can retrieve a piece of content using only its knowledge base * and its name with the SearchContent * API.

*/ inline CreateContentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the content. Each piece of content in a knowledge base must have * a unique name. You can retrieve a piece of content using only its knowledge base * and its name with the SearchContent * API.

*/ inline CreateContentRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The URI you want to use for the article. If the knowledge base has a * templateUri, setting this argument overrides it for this piece of content.

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

The URI you want to use for the article. If the knowledge base has a * templateUri, setting this argument overrides it for this piece of content.

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

The URI you want to use for the article. If the knowledge base has a * templateUri, setting this argument overrides it for this piece of content.

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

The URI you want to use for the article. If the knowledge base has a * templateUri, setting this argument overrides it for this piece of content.

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

The URI you want to use for the article. If the knowledge base has a * templateUri, setting this argument overrides it for this piece of content.

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

The URI you want to use for the article. If the knowledge base has a * templateUri, setting this argument overrides it for this piece of content.

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

The URI you want to use for the article. If the knowledge base has a * templateUri, setting this argument overrides it for this piece of content.

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

The URI you want to use for the article. If the knowledge base has a * templateUri, setting this argument overrides it for this piece of content.

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

The tags used to organize, track, or control access for this resource.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags used to organize, track, or control access for this resource.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags used to organize, track, or control access for this resource.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags used to organize, track, or control access for this resource.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags used to organize, track, or control access for this resource.

*/ inline CreateContentRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags used to organize, track, or control access for this resource.

*/ inline CreateContentRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags used to organize, track, or control access for this resource.

*/ inline CreateContentRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags used to organize, track, or control access for this resource.

*/ inline CreateContentRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags used to organize, track, or control access for this resource.

*/ inline CreateContentRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags used to organize, track, or control access for this resource.

*/ inline CreateContentRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags used to organize, track, or control access for this resource.

*/ inline CreateContentRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags used to organize, track, or control access for this resource.

*/ inline CreateContentRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags used to organize, track, or control access for this resource.

*/ inline CreateContentRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The title of the content. If not set, the title is equal to the name.

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

The title of the content. If not set, the title is equal to the name.

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

The title of the content. If not set, the title is equal to the name.

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

The title of the content. If not set, the title is equal to the name.

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

The title of the content. If not set, the title is equal to the name.

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

The title of the content. If not set, the title is equal to the name.

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

The title of the content. If not set, the title is equal to the name.

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

The title of the content. If not set, the title is equal to the name.

*/ inline CreateContentRequest& 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 CreateContentRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;} /** *

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

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

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

*/ inline CreateContentRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;} private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_knowledgeBaseId; bool m_knowledgeBaseIdHasBeenSet = false; Aws::Map m_metadata; bool m_metadataHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_overrideLinkOutUri; bool m_overrideLinkOutUriHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_title; bool m_titleHasBeenSet = false; Aws::String m_uploadId; bool m_uploadIdHasBeenSet = false; }; } // namespace Model } // namespace ConnectWisdomService } // namespace Aws