110 lines
4.8 KiB
C++
110 lines
4.8 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/comprehend/Comprehend_EXPORTS.h>
|
|
#include <aws/comprehend/ComprehendRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Comprehend
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_COMPREHEND_API BatchDetectDominantLanguageRequest : public ComprehendRequest
|
|
{
|
|
public:
|
|
BatchDetectDominantLanguageRequest();
|
|
|
|
// 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 "BatchDetectDominantLanguage"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|
|
|
|
|
/**
|
|
* <p>A list containing the text of the input documents. The list can contain a
|
|
* maximum of 25 documents. Each document should contain at least 20 characters and
|
|
* must contain fewer than 5,000 bytes of UTF-8 encoded characters.</p>
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetTextList() const{ return m_textList; }
|
|
|
|
/**
|
|
* <p>A list containing the text of the input documents. The list can contain a
|
|
* maximum of 25 documents. Each document should contain at least 20 characters and
|
|
* must contain fewer than 5,000 bytes of UTF-8 encoded characters.</p>
|
|
*/
|
|
inline bool TextListHasBeenSet() const { return m_textListHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A list containing the text of the input documents. The list can contain a
|
|
* maximum of 25 documents. Each document should contain at least 20 characters and
|
|
* must contain fewer than 5,000 bytes of UTF-8 encoded characters.</p>
|
|
*/
|
|
inline void SetTextList(const Aws::Vector<Aws::String>& value) { m_textListHasBeenSet = true; m_textList = value; }
|
|
|
|
/**
|
|
* <p>A list containing the text of the input documents. The list can contain a
|
|
* maximum of 25 documents. Each document should contain at least 20 characters and
|
|
* must contain fewer than 5,000 bytes of UTF-8 encoded characters.</p>
|
|
*/
|
|
inline void SetTextList(Aws::Vector<Aws::String>&& value) { m_textListHasBeenSet = true; m_textList = std::move(value); }
|
|
|
|
/**
|
|
* <p>A list containing the text of the input documents. The list can contain a
|
|
* maximum of 25 documents. Each document should contain at least 20 characters and
|
|
* must contain fewer than 5,000 bytes of UTF-8 encoded characters.</p>
|
|
*/
|
|
inline BatchDetectDominantLanguageRequest& WithTextList(const Aws::Vector<Aws::String>& value) { SetTextList(value); return *this;}
|
|
|
|
/**
|
|
* <p>A list containing the text of the input documents. The list can contain a
|
|
* maximum of 25 documents. Each document should contain at least 20 characters and
|
|
* must contain fewer than 5,000 bytes of UTF-8 encoded characters.</p>
|
|
*/
|
|
inline BatchDetectDominantLanguageRequest& WithTextList(Aws::Vector<Aws::String>&& value) { SetTextList(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A list containing the text of the input documents. The list can contain a
|
|
* maximum of 25 documents. Each document should contain at least 20 characters and
|
|
* must contain fewer than 5,000 bytes of UTF-8 encoded characters.</p>
|
|
*/
|
|
inline BatchDetectDominantLanguageRequest& AddTextList(const Aws::String& value) { m_textListHasBeenSet = true; m_textList.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>A list containing the text of the input documents. The list can contain a
|
|
* maximum of 25 documents. Each document should contain at least 20 characters and
|
|
* must contain fewer than 5,000 bytes of UTF-8 encoded characters.</p>
|
|
*/
|
|
inline BatchDetectDominantLanguageRequest& AddTextList(Aws::String&& value) { m_textListHasBeenSet = true; m_textList.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>A list containing the text of the input documents. The list can contain a
|
|
* maximum of 25 documents. Each document should contain at least 20 characters and
|
|
* must contain fewer than 5,000 bytes of UTF-8 encoded characters.</p>
|
|
*/
|
|
inline BatchDetectDominantLanguageRequest& AddTextList(const char* value) { m_textListHasBeenSet = true; m_textList.push_back(value); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::Vector<Aws::String> m_textList;
|
|
bool m_textListHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Comprehend
|
|
} // namespace Aws
|