/** * 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 ConnectWisdomService { namespace Model { /** */ class GetContentRequest : public ConnectWisdomServiceRequest { public: AWS_CONNECTWISDOMSERVICE_API GetContentRequest(); // 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 "GetContent"; } 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 GetContentRequest& 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 GetContentRequest& 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 GetContentRequest& WithContentId(const char* value) { SetContentId(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 GetContentRequest& 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 GetContentRequest& 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 GetContentRequest& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;} private: Aws::String m_contentId; bool m_contentIdHasBeenSet = false; Aws::String m_knowledgeBaseId; bool m_knowledgeBaseIdHasBeenSet = false; }; } // namespace Model } // namespace ConnectWisdomService } // namespace Aws