/** * 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 StartContentUploadRequest : public ConnectWisdomServiceRequest { public: AWS_CONNECTWISDOMSERVICE_API StartContentUploadRequest(); // 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 "StartContentUpload"; } AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override; /** *

The type of content to upload.

*/ inline const Aws::String& GetContentType() const{ return m_contentType; } /** *

The type of content to upload.

*/ inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; } /** *

The type of content to upload.

*/ inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; } /** *

The type of content to upload.

*/ inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); } /** *

The type of content to upload.

*/ inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); } /** *

The type of content to upload.

*/ inline StartContentUploadRequest& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} /** *

The type of content to upload.

*/ inline StartContentUploadRequest& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} /** *

The type of content to upload.

*/ inline StartContentUploadRequest& WithContentType(const char* value) { SetContentType(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 StartContentUploadRequest& 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 StartContentUploadRequest& 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 StartContentUploadRequest& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;} private: Aws::String m_contentType; bool m_contentTypeHasBeenSet = false; Aws::String m_knowledgeBaseId; bool m_knowledgeBaseIdHasBeenSet = false; }; } // namespace Model } // namespace ConnectWisdomService } // namespace Aws