130 lines
3.9 KiB
C++
130 lines
3.9 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/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Comprehend
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_COMPREHEND_API ClassifyDocumentRequest : public ComprehendRequest
|
|
{
|
|
public:
|
|
ClassifyDocumentRequest();
|
|
|
|
// 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 "ClassifyDocument"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|
|
|
|
|
/**
|
|
* <p>The document text to be analyzed.</p>
|
|
*/
|
|
inline const Aws::String& GetText() const{ return m_text; }
|
|
|
|
/**
|
|
* <p>The document text to be analyzed.</p>
|
|
*/
|
|
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The document text to be analyzed.</p>
|
|
*/
|
|
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
|
|
|
|
/**
|
|
* <p>The document text to be analyzed.</p>
|
|
*/
|
|
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
|
|
|
|
/**
|
|
* <p>The document text to be analyzed.</p>
|
|
*/
|
|
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
|
|
|
|
/**
|
|
* <p>The document text to be analyzed.</p>
|
|
*/
|
|
inline ClassifyDocumentRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
|
|
|
|
/**
|
|
* <p>The document text to be analyzed.</p>
|
|
*/
|
|
inline ClassifyDocumentRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The document text to be analyzed.</p>
|
|
*/
|
|
inline ClassifyDocumentRequest& WithText(const char* value) { SetText(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The Amazon Resource Number (ARN) of the endpoint.</p>
|
|
*/
|
|
inline const Aws::String& GetEndpointArn() const{ return m_endpointArn; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Number (ARN) of the endpoint.</p>
|
|
*/
|
|
inline bool EndpointArnHasBeenSet() const { return m_endpointArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Number (ARN) of the endpoint.</p>
|
|
*/
|
|
inline void SetEndpointArn(const Aws::String& value) { m_endpointArnHasBeenSet = true; m_endpointArn = value; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Number (ARN) of the endpoint.</p>
|
|
*/
|
|
inline void SetEndpointArn(Aws::String&& value) { m_endpointArnHasBeenSet = true; m_endpointArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Number (ARN) of the endpoint.</p>
|
|
*/
|
|
inline void SetEndpointArn(const char* value) { m_endpointArnHasBeenSet = true; m_endpointArn.assign(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Number (ARN) of the endpoint.</p>
|
|
*/
|
|
inline ClassifyDocumentRequest& WithEndpointArn(const Aws::String& value) { SetEndpointArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Number (ARN) of the endpoint.</p>
|
|
*/
|
|
inline ClassifyDocumentRequest& WithEndpointArn(Aws::String&& value) { SetEndpointArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Number (ARN) of the endpoint.</p>
|
|
*/
|
|
inline ClassifyDocumentRequest& WithEndpointArn(const char* value) { SetEndpointArn(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_text;
|
|
bool m_textHasBeenSet;
|
|
|
|
Aws::String m_endpointArn;
|
|
bool m_endpointArnHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Comprehend
|
|
} // namespace Aws
|