feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
/**
* 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/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Comprehend
{
namespace ComprehendEndpoint
{
AWS_COMPREHEND_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace ComprehendEndpoint
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,23 @@
/**
* 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/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_COMPREHEND_API ComprehendErrorMarshaller : public Aws::Client::JsonErrorMarshaller
{
public:
Aws::Client::AWSError<Aws::Client::CoreErrors> FindErrorByName(const char* exceptionName) const override;
};
} // namespace Client
} // namespace Aws

View File

@@ -0,0 +1,86 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/core/client/AWSError.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/comprehend/Comprehend_EXPORTS.h>
namespace Aws
{
namespace Comprehend
{
enum class ComprehendErrors
{
//From Core//
//////////////////////////////////////////////////////////////////////////////////////////
INCOMPLETE_SIGNATURE = 0,
INTERNAL_FAILURE = 1,
INVALID_ACTION = 2,
INVALID_CLIENT_TOKEN_ID = 3,
INVALID_PARAMETER_COMBINATION = 4,
INVALID_QUERY_PARAMETER = 5,
INVALID_PARAMETER_VALUE = 6,
MISSING_ACTION = 7, // SDK should never allow
MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
MISSING_PARAMETER = 9, // SDK should never allow
OPT_IN_REQUIRED = 10,
REQUEST_EXPIRED = 11,
SERVICE_UNAVAILABLE = 12,
THROTTLING = 13,
VALIDATION = 14,
ACCESS_DENIED = 15,
RESOURCE_NOT_FOUND = 16,
UNRECOGNIZED_CLIENT = 17,
MALFORMED_QUERY_STRING = 18,
SLOW_DOWN = 19,
REQUEST_TIME_TOO_SKEWED = 20,
INVALID_SIGNATURE = 21,
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
NETWORK_CONNECTION = 99,
UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////
BATCH_SIZE_LIMIT_EXCEEDED= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
CONCURRENT_MODIFICATION,
INTERNAL_SERVER,
INVALID_FILTER,
INVALID_REQUEST,
JOB_NOT_FOUND,
KMS_KEY_VALIDATION,
RESOURCE_IN_USE,
RESOURCE_LIMIT_EXCEEDED,
RESOURCE_UNAVAILABLE,
TEXT_SIZE_LIMIT_EXCEEDED,
TOO_MANY_REQUESTS,
TOO_MANY_TAGS,
TOO_MANY_TAG_KEYS,
UNSUPPORTED_LANGUAGE
};
class AWS_COMPREHEND_API ComprehendError : public Aws::Client::AWSError<ComprehendErrors>
{
public:
ComprehendError() {}
ComprehendError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<ComprehendErrors>(rhs) {}
ComprehendError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<ComprehendErrors>(rhs) {}
ComprehendError(const Aws::Client::AWSError<ComprehendErrors>& rhs) : Aws::Client::AWSError<ComprehendErrors>(rhs) {}
ComprehendError(Aws::Client::AWSError<ComprehendErrors>&& rhs) : Aws::Client::AWSError<ComprehendErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace ComprehendErrorMapper
{
AWS_COMPREHEND_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* 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/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace Comprehend
{
class AWS_COMPREHEND_API ComprehendRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~ComprehendRequest () {}
void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
inline Aws::Http::HeaderValueCollection GetHeaders() const override
{
auto headers = GetRequestSpecificHeaders();
if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
{
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 ));
}
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2017-11-27"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,29 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#ifdef _MSC_VER
//disable windows complaining about max template size.
#pragma warning (disable : 4503)
#endif // _MSC_VER
#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32)
#ifdef _MSC_VER
#pragma warning(disable : 4251)
#endif // _MSC_VER
#ifdef USE_IMPORT_EXPORT
#ifdef AWS_COMPREHEND_EXPORTS
#define AWS_COMPREHEND_API __declspec(dllexport)
#else
#define AWS_COMPREHEND_API __declspec(dllimport)
#endif /* AWS_COMPREHEND_EXPORTS */
#else
#define AWS_COMPREHEND_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_COMPREHEND_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

View File

@@ -0,0 +1,123 @@
/**
* 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/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehend/model/DominantLanguage.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>The result of calling the operation. The operation returns one object for
* each document that is successfully processed by the operation.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectDominantLanguageItemResult">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API BatchDetectDominantLanguageItemResult
{
public:
BatchDetectDominantLanguageItemResult();
BatchDetectDominantLanguageItemResult(Aws::Utils::Json::JsonView jsonValue);
BatchDetectDominantLanguageItemResult& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline int GetIndex() const{ return m_index; }
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; }
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline BatchDetectDominantLanguageItemResult& WithIndex(int value) { SetIndex(value); return *this;}
/**
* <p>One or more <a>DominantLanguage</a> objects describing the dominant languages
* in the document.</p>
*/
inline const Aws::Vector<DominantLanguage>& GetLanguages() const{ return m_languages; }
/**
* <p>One or more <a>DominantLanguage</a> objects describing the dominant languages
* in the document.</p>
*/
inline bool LanguagesHasBeenSet() const { return m_languagesHasBeenSet; }
/**
* <p>One or more <a>DominantLanguage</a> objects describing the dominant languages
* in the document.</p>
*/
inline void SetLanguages(const Aws::Vector<DominantLanguage>& value) { m_languagesHasBeenSet = true; m_languages = value; }
/**
* <p>One or more <a>DominantLanguage</a> objects describing the dominant languages
* in the document.</p>
*/
inline void SetLanguages(Aws::Vector<DominantLanguage>&& value) { m_languagesHasBeenSet = true; m_languages = std::move(value); }
/**
* <p>One or more <a>DominantLanguage</a> objects describing the dominant languages
* in the document.</p>
*/
inline BatchDetectDominantLanguageItemResult& WithLanguages(const Aws::Vector<DominantLanguage>& value) { SetLanguages(value); return *this;}
/**
* <p>One or more <a>DominantLanguage</a> objects describing the dominant languages
* in the document.</p>
*/
inline BatchDetectDominantLanguageItemResult& WithLanguages(Aws::Vector<DominantLanguage>&& value) { SetLanguages(std::move(value)); return *this;}
/**
* <p>One or more <a>DominantLanguage</a> objects describing the dominant languages
* in the document.</p>
*/
inline BatchDetectDominantLanguageItemResult& AddLanguages(const DominantLanguage& value) { m_languagesHasBeenSet = true; m_languages.push_back(value); return *this; }
/**
* <p>One or more <a>DominantLanguage</a> objects describing the dominant languages
* in the document.</p>
*/
inline BatchDetectDominantLanguageItemResult& AddLanguages(DominantLanguage&& value) { m_languagesHasBeenSet = true; m_languages.push_back(std::move(value)); return *this; }
private:
int m_index;
bool m_indexHasBeenSet;
Aws::Vector<DominantLanguage> m_languages;
bool m_languagesHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,109 @@
/**
* 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

View File

@@ -0,0 +1,159 @@
/**
* 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/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehend/model/BatchDetectDominantLanguageItemResult.h>
#include <aws/comprehend/model/BatchItemError.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API BatchDetectDominantLanguageResult
{
public:
BatchDetectDominantLanguageResult();
BatchDetectDominantLanguageResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchDetectDominantLanguageResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline const Aws::Vector<BatchDetectDominantLanguageItemResult>& GetResultList() const{ return m_resultList; }
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline void SetResultList(const Aws::Vector<BatchDetectDominantLanguageItemResult>& value) { m_resultList = value; }
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline void SetResultList(Aws::Vector<BatchDetectDominantLanguageItemResult>&& value) { m_resultList = std::move(value); }
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline BatchDetectDominantLanguageResult& WithResultList(const Aws::Vector<BatchDetectDominantLanguageItemResult>& value) { SetResultList(value); return *this;}
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline BatchDetectDominantLanguageResult& WithResultList(Aws::Vector<BatchDetectDominantLanguageItemResult>&& value) { SetResultList(std::move(value)); return *this;}
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline BatchDetectDominantLanguageResult& AddResultList(const BatchDetectDominantLanguageItemResult& value) { m_resultList.push_back(value); return *this; }
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline BatchDetectDominantLanguageResult& AddResultList(BatchDetectDominantLanguageItemResult&& value) { m_resultList.push_back(std::move(value)); return *this; }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline const Aws::Vector<BatchItemError>& GetErrorList() const{ return m_errorList; }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline void SetErrorList(const Aws::Vector<BatchItemError>& value) { m_errorList = value; }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline void SetErrorList(Aws::Vector<BatchItemError>&& value) { m_errorList = std::move(value); }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline BatchDetectDominantLanguageResult& WithErrorList(const Aws::Vector<BatchItemError>& value) { SetErrorList(value); return *this;}
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline BatchDetectDominantLanguageResult& WithErrorList(Aws::Vector<BatchItemError>&& value) { SetErrorList(std::move(value)); return *this;}
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline BatchDetectDominantLanguageResult& AddErrorList(const BatchItemError& value) { m_errorList.push_back(value); return *this; }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline BatchDetectDominantLanguageResult& AddErrorList(BatchItemError&& value) { m_errorList.push_back(std::move(value)); return *this; }
private:
Aws::Vector<BatchDetectDominantLanguageItemResult> m_resultList;
Aws::Vector<BatchItemError> m_errorList;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,123 @@
/**
* 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/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehend/model/Entity.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>The result of calling the operation. The operation returns one object for
* each document that is successfully processed by the operation.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectEntitiesItemResult">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API BatchDetectEntitiesItemResult
{
public:
BatchDetectEntitiesItemResult();
BatchDetectEntitiesItemResult(Aws::Utils::Json::JsonView jsonValue);
BatchDetectEntitiesItemResult& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline int GetIndex() const{ return m_index; }
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; }
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline BatchDetectEntitiesItemResult& WithIndex(int value) { SetIndex(value); return *this;}
/**
* <p>One or more <a>Entity</a> objects, one for each entity detected in the
* document.</p>
*/
inline const Aws::Vector<Entity>& GetEntities() const{ return m_entities; }
/**
* <p>One or more <a>Entity</a> objects, one for each entity detected in the
* document.</p>
*/
inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
/**
* <p>One or more <a>Entity</a> objects, one for each entity detected in the
* document.</p>
*/
inline void SetEntities(const Aws::Vector<Entity>& value) { m_entitiesHasBeenSet = true; m_entities = value; }
/**
* <p>One or more <a>Entity</a> objects, one for each entity detected in the
* document.</p>
*/
inline void SetEntities(Aws::Vector<Entity>&& value) { m_entitiesHasBeenSet = true; m_entities = std::move(value); }
/**
* <p>One or more <a>Entity</a> objects, one for each entity detected in the
* document.</p>
*/
inline BatchDetectEntitiesItemResult& WithEntities(const Aws::Vector<Entity>& value) { SetEntities(value); return *this;}
/**
* <p>One or more <a>Entity</a> objects, one for each entity detected in the
* document.</p>
*/
inline BatchDetectEntitiesItemResult& WithEntities(Aws::Vector<Entity>&& value) { SetEntities(std::move(value)); return *this;}
/**
* <p>One or more <a>Entity</a> objects, one for each entity detected in the
* document.</p>
*/
inline BatchDetectEntitiesItemResult& AddEntities(const Entity& value) { m_entitiesHasBeenSet = true; m_entities.push_back(value); return *this; }
/**
* <p>One or more <a>Entity</a> objects, one for each entity detected in the
* document.</p>
*/
inline BatchDetectEntitiesItemResult& AddEntities(Entity&& value) { m_entitiesHasBeenSet = true; m_entities.push_back(std::move(value)); return *this; }
private:
int m_index;
bool m_indexHasBeenSet;
Aws::Vector<Entity> m_entities;
bool m_entitiesHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,156 @@
/**
* 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/comprehend/model/LanguageCode.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Comprehend
{
namespace Model
{
/**
*/
class AWS_COMPREHEND_API BatchDetectEntitiesRequest : public ComprehendRequest
{
public:
BatchDetectEntitiesRequest();
// 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 "BatchDetectEntities"; }
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 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 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 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 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 must contain fewer than 5,000 bytes of
* UTF-8 encoded characters.</p>
*/
inline BatchDetectEntitiesRequest& 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 must contain fewer than 5,000 bytes of
* UTF-8 encoded characters.</p>
*/
inline BatchDetectEntitiesRequest& 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 must contain fewer than 5,000 bytes of
* UTF-8 encoded characters.</p>
*/
inline BatchDetectEntitiesRequest& 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 must contain fewer than 5,000 bytes of
* UTF-8 encoded characters.</p>
*/
inline BatchDetectEntitiesRequest& 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 must contain fewer than 5,000 bytes of
* UTF-8 encoded characters.</p>
*/
inline BatchDetectEntitiesRequest& AddTextList(const char* value) { m_textListHasBeenSet = true; m_textList.push_back(value); return *this; }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline BatchDetectEntitiesRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline BatchDetectEntitiesRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
private:
Aws::Vector<Aws::String> m_textList;
bool m_textListHasBeenSet;
LanguageCode m_languageCode;
bool m_languageCodeHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,159 @@
/**
* 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/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehend/model/BatchDetectEntitiesItemResult.h>
#include <aws/comprehend/model/BatchItemError.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API BatchDetectEntitiesResult
{
public:
BatchDetectEntitiesResult();
BatchDetectEntitiesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchDetectEntitiesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline const Aws::Vector<BatchDetectEntitiesItemResult>& GetResultList() const{ return m_resultList; }
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline void SetResultList(const Aws::Vector<BatchDetectEntitiesItemResult>& value) { m_resultList = value; }
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline void SetResultList(Aws::Vector<BatchDetectEntitiesItemResult>&& value) { m_resultList = std::move(value); }
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline BatchDetectEntitiesResult& WithResultList(const Aws::Vector<BatchDetectEntitiesItemResult>& value) { SetResultList(value); return *this;}
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline BatchDetectEntitiesResult& WithResultList(Aws::Vector<BatchDetectEntitiesItemResult>&& value) { SetResultList(std::move(value)); return *this;}
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline BatchDetectEntitiesResult& AddResultList(const BatchDetectEntitiesItemResult& value) { m_resultList.push_back(value); return *this; }
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline BatchDetectEntitiesResult& AddResultList(BatchDetectEntitiesItemResult&& value) { m_resultList.push_back(std::move(value)); return *this; }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline const Aws::Vector<BatchItemError>& GetErrorList() const{ return m_errorList; }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline void SetErrorList(const Aws::Vector<BatchItemError>& value) { m_errorList = value; }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline void SetErrorList(Aws::Vector<BatchItemError>&& value) { m_errorList = std::move(value); }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline BatchDetectEntitiesResult& WithErrorList(const Aws::Vector<BatchItemError>& value) { SetErrorList(value); return *this;}
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline BatchDetectEntitiesResult& WithErrorList(Aws::Vector<BatchItemError>&& value) { SetErrorList(std::move(value)); return *this;}
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline BatchDetectEntitiesResult& AddErrorList(const BatchItemError& value) { m_errorList.push_back(value); return *this; }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline BatchDetectEntitiesResult& AddErrorList(BatchItemError&& value) { m_errorList.push_back(std::move(value)); return *this; }
private:
Aws::Vector<BatchDetectEntitiesItemResult> m_resultList;
Aws::Vector<BatchItemError> m_errorList;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,123 @@
/**
* 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/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehend/model/KeyPhrase.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>The result of calling the operation. The operation returns one object for
* each document that is successfully processed by the operation.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectKeyPhrasesItemResult">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API BatchDetectKeyPhrasesItemResult
{
public:
BatchDetectKeyPhrasesItemResult();
BatchDetectKeyPhrasesItemResult(Aws::Utils::Json::JsonView jsonValue);
BatchDetectKeyPhrasesItemResult& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline int GetIndex() const{ return m_index; }
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; }
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline BatchDetectKeyPhrasesItemResult& WithIndex(int value) { SetIndex(value); return *this;}
/**
* <p>One or more <a>KeyPhrase</a> objects, one for each key phrase detected in the
* document.</p>
*/
inline const Aws::Vector<KeyPhrase>& GetKeyPhrases() const{ return m_keyPhrases; }
/**
* <p>One or more <a>KeyPhrase</a> objects, one for each key phrase detected in the
* document.</p>
*/
inline bool KeyPhrasesHasBeenSet() const { return m_keyPhrasesHasBeenSet; }
/**
* <p>One or more <a>KeyPhrase</a> objects, one for each key phrase detected in the
* document.</p>
*/
inline void SetKeyPhrases(const Aws::Vector<KeyPhrase>& value) { m_keyPhrasesHasBeenSet = true; m_keyPhrases = value; }
/**
* <p>One or more <a>KeyPhrase</a> objects, one for each key phrase detected in the
* document.</p>
*/
inline void SetKeyPhrases(Aws::Vector<KeyPhrase>&& value) { m_keyPhrasesHasBeenSet = true; m_keyPhrases = std::move(value); }
/**
* <p>One or more <a>KeyPhrase</a> objects, one for each key phrase detected in the
* document.</p>
*/
inline BatchDetectKeyPhrasesItemResult& WithKeyPhrases(const Aws::Vector<KeyPhrase>& value) { SetKeyPhrases(value); return *this;}
/**
* <p>One or more <a>KeyPhrase</a> objects, one for each key phrase detected in the
* document.</p>
*/
inline BatchDetectKeyPhrasesItemResult& WithKeyPhrases(Aws::Vector<KeyPhrase>&& value) { SetKeyPhrases(std::move(value)); return *this;}
/**
* <p>One or more <a>KeyPhrase</a> objects, one for each key phrase detected in the
* document.</p>
*/
inline BatchDetectKeyPhrasesItemResult& AddKeyPhrases(const KeyPhrase& value) { m_keyPhrasesHasBeenSet = true; m_keyPhrases.push_back(value); return *this; }
/**
* <p>One or more <a>KeyPhrase</a> objects, one for each key phrase detected in the
* document.</p>
*/
inline BatchDetectKeyPhrasesItemResult& AddKeyPhrases(KeyPhrase&& value) { m_keyPhrasesHasBeenSet = true; m_keyPhrases.push_back(std::move(value)); return *this; }
private:
int m_index;
bool m_indexHasBeenSet;
Aws::Vector<KeyPhrase> m_keyPhrases;
bool m_keyPhrasesHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,156 @@
/**
* 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/comprehend/model/LanguageCode.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Comprehend
{
namespace Model
{
/**
*/
class AWS_COMPREHEND_API BatchDetectKeyPhrasesRequest : public ComprehendRequest
{
public:
BatchDetectKeyPhrasesRequest();
// 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 "BatchDetectKeyPhrases"; }
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 must contain fewer that 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 must contain fewer that 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 must contain fewer that 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 must contain fewer that 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 must contain fewer that 5,000 bytes of
* UTF-8 encoded characters.</p>
*/
inline BatchDetectKeyPhrasesRequest& 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 must contain fewer that 5,000 bytes of
* UTF-8 encoded characters.</p>
*/
inline BatchDetectKeyPhrasesRequest& 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 must contain fewer that 5,000 bytes of
* UTF-8 encoded characters.</p>
*/
inline BatchDetectKeyPhrasesRequest& 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 must contain fewer that 5,000 bytes of
* UTF-8 encoded characters.</p>
*/
inline BatchDetectKeyPhrasesRequest& 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 must contain fewer that 5,000 bytes of
* UTF-8 encoded characters.</p>
*/
inline BatchDetectKeyPhrasesRequest& AddTextList(const char* value) { m_textListHasBeenSet = true; m_textList.push_back(value); return *this; }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline BatchDetectKeyPhrasesRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline BatchDetectKeyPhrasesRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
private:
Aws::Vector<Aws::String> m_textList;
bool m_textListHasBeenSet;
LanguageCode m_languageCode;
bool m_languageCodeHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,159 @@
/**
* 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/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehend/model/BatchDetectKeyPhrasesItemResult.h>
#include <aws/comprehend/model/BatchItemError.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API BatchDetectKeyPhrasesResult
{
public:
BatchDetectKeyPhrasesResult();
BatchDetectKeyPhrasesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchDetectKeyPhrasesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline const Aws::Vector<BatchDetectKeyPhrasesItemResult>& GetResultList() const{ return m_resultList; }
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline void SetResultList(const Aws::Vector<BatchDetectKeyPhrasesItemResult>& value) { m_resultList = value; }
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline void SetResultList(Aws::Vector<BatchDetectKeyPhrasesItemResult>&& value) { m_resultList = std::move(value); }
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline BatchDetectKeyPhrasesResult& WithResultList(const Aws::Vector<BatchDetectKeyPhrasesItemResult>& value) { SetResultList(value); return *this;}
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline BatchDetectKeyPhrasesResult& WithResultList(Aws::Vector<BatchDetectKeyPhrasesItemResult>&& value) { SetResultList(std::move(value)); return *this;}
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline BatchDetectKeyPhrasesResult& AddResultList(const BatchDetectKeyPhrasesItemResult& value) { m_resultList.push_back(value); return *this; }
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline BatchDetectKeyPhrasesResult& AddResultList(BatchDetectKeyPhrasesItemResult&& value) { m_resultList.push_back(std::move(value)); return *this; }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline const Aws::Vector<BatchItemError>& GetErrorList() const{ return m_errorList; }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline void SetErrorList(const Aws::Vector<BatchItemError>& value) { m_errorList = value; }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline void SetErrorList(Aws::Vector<BatchItemError>&& value) { m_errorList = std::move(value); }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline BatchDetectKeyPhrasesResult& WithErrorList(const Aws::Vector<BatchItemError>& value) { SetErrorList(value); return *this;}
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline BatchDetectKeyPhrasesResult& WithErrorList(Aws::Vector<BatchItemError>&& value) { SetErrorList(std::move(value)); return *this;}
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline BatchDetectKeyPhrasesResult& AddErrorList(const BatchItemError& value) { m_errorList.push_back(value); return *this; }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline BatchDetectKeyPhrasesResult& AddErrorList(BatchItemError&& value) { m_errorList.push_back(std::move(value)); return *this; }
private:
Aws::Vector<BatchDetectKeyPhrasesItemResult> m_resultList;
Aws::Vector<BatchItemError> m_errorList;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* 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/model/SentimentType.h>
#include <aws/comprehend/model/SentimentScore.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>The result of calling the operation. The operation returns one object for
* each document that is successfully processed by the operation.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectSentimentItemResult">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API BatchDetectSentimentItemResult
{
public:
BatchDetectSentimentItemResult();
BatchDetectSentimentItemResult(Aws::Utils::Json::JsonView jsonValue);
BatchDetectSentimentItemResult& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline int GetIndex() const{ return m_index; }
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; }
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline BatchDetectSentimentItemResult& WithIndex(int value) { SetIndex(value); return *this;}
/**
* <p>The sentiment detected in the document.</p>
*/
inline const SentimentType& GetSentiment() const{ return m_sentiment; }
/**
* <p>The sentiment detected in the document.</p>
*/
inline bool SentimentHasBeenSet() const { return m_sentimentHasBeenSet; }
/**
* <p>The sentiment detected in the document.</p>
*/
inline void SetSentiment(const SentimentType& value) { m_sentimentHasBeenSet = true; m_sentiment = value; }
/**
* <p>The sentiment detected in the document.</p>
*/
inline void SetSentiment(SentimentType&& value) { m_sentimentHasBeenSet = true; m_sentiment = std::move(value); }
/**
* <p>The sentiment detected in the document.</p>
*/
inline BatchDetectSentimentItemResult& WithSentiment(const SentimentType& value) { SetSentiment(value); return *this;}
/**
* <p>The sentiment detected in the document.</p>
*/
inline BatchDetectSentimentItemResult& WithSentiment(SentimentType&& value) { SetSentiment(std::move(value)); return *this;}
/**
* <p>The level of confidence that Amazon Comprehend has in the accuracy of its
* sentiment detection.</p>
*/
inline const SentimentScore& GetSentimentScore() const{ return m_sentimentScore; }
/**
* <p>The level of confidence that Amazon Comprehend has in the accuracy of its
* sentiment detection.</p>
*/
inline bool SentimentScoreHasBeenSet() const { return m_sentimentScoreHasBeenSet; }
/**
* <p>The level of confidence that Amazon Comprehend has in the accuracy of its
* sentiment detection.</p>
*/
inline void SetSentimentScore(const SentimentScore& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = value; }
/**
* <p>The level of confidence that Amazon Comprehend has in the accuracy of its
* sentiment detection.</p>
*/
inline void SetSentimentScore(SentimentScore&& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = std::move(value); }
/**
* <p>The level of confidence that Amazon Comprehend has in the accuracy of its
* sentiment detection.</p>
*/
inline BatchDetectSentimentItemResult& WithSentimentScore(const SentimentScore& value) { SetSentimentScore(value); return *this;}
/**
* <p>The level of confidence that Amazon Comprehend has in the accuracy of its
* sentiment detection.</p>
*/
inline BatchDetectSentimentItemResult& WithSentimentScore(SentimentScore&& value) { SetSentimentScore(std::move(value)); return *this;}
private:
int m_index;
bool m_indexHasBeenSet;
SentimentType m_sentiment;
bool m_sentimentHasBeenSet;
SentimentScore m_sentimentScore;
bool m_sentimentScoreHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,156 @@
/**
* 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/comprehend/model/LanguageCode.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Comprehend
{
namespace Model
{
/**
*/
class AWS_COMPREHEND_API BatchDetectSentimentRequest : public ComprehendRequest
{
public:
BatchDetectSentimentRequest();
// 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 "BatchDetectSentiment"; }
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 must contain fewer that 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 must contain fewer that 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 must contain fewer that 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 must contain fewer that 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 must contain fewer that 5,000 bytes of
* UTF-8 encoded characters.</p>
*/
inline BatchDetectSentimentRequest& 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 must contain fewer that 5,000 bytes of
* UTF-8 encoded characters.</p>
*/
inline BatchDetectSentimentRequest& 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 must contain fewer that 5,000 bytes of
* UTF-8 encoded characters.</p>
*/
inline BatchDetectSentimentRequest& 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 must contain fewer that 5,000 bytes of
* UTF-8 encoded characters.</p>
*/
inline BatchDetectSentimentRequest& 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 must contain fewer that 5,000 bytes of
* UTF-8 encoded characters.</p>
*/
inline BatchDetectSentimentRequest& AddTextList(const char* value) { m_textListHasBeenSet = true; m_textList.push_back(value); return *this; }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline BatchDetectSentimentRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline BatchDetectSentimentRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
private:
Aws::Vector<Aws::String> m_textList;
bool m_textListHasBeenSet;
LanguageCode m_languageCode;
bool m_languageCodeHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,159 @@
/**
* 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/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehend/model/BatchDetectSentimentItemResult.h>
#include <aws/comprehend/model/BatchItemError.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API BatchDetectSentimentResult
{
public:
BatchDetectSentimentResult();
BatchDetectSentimentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchDetectSentimentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline const Aws::Vector<BatchDetectSentimentItemResult>& GetResultList() const{ return m_resultList; }
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline void SetResultList(const Aws::Vector<BatchDetectSentimentItemResult>& value) { m_resultList = value; }
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline void SetResultList(Aws::Vector<BatchDetectSentimentItemResult>&& value) { m_resultList = std::move(value); }
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline BatchDetectSentimentResult& WithResultList(const Aws::Vector<BatchDetectSentimentItemResult>& value) { SetResultList(value); return *this;}
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline BatchDetectSentimentResult& WithResultList(Aws::Vector<BatchDetectSentimentItemResult>&& value) { SetResultList(std::move(value)); return *this;}
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline BatchDetectSentimentResult& AddResultList(const BatchDetectSentimentItemResult& value) { m_resultList.push_back(value); return *this; }
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline BatchDetectSentimentResult& AddResultList(BatchDetectSentimentItemResult&& value) { m_resultList.push_back(std::move(value)); return *this; }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline const Aws::Vector<BatchItemError>& GetErrorList() const{ return m_errorList; }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline void SetErrorList(const Aws::Vector<BatchItemError>& value) { m_errorList = value; }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline void SetErrorList(Aws::Vector<BatchItemError>&& value) { m_errorList = std::move(value); }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline BatchDetectSentimentResult& WithErrorList(const Aws::Vector<BatchItemError>& value) { SetErrorList(value); return *this;}
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline BatchDetectSentimentResult& WithErrorList(Aws::Vector<BatchItemError>&& value) { SetErrorList(std::move(value)); return *this;}
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline BatchDetectSentimentResult& AddErrorList(const BatchItemError& value) { m_errorList.push_back(value); return *this; }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline BatchDetectSentimentResult& AddErrorList(BatchItemError&& value) { m_errorList.push_back(std::move(value)); return *this; }
private:
Aws::Vector<BatchDetectSentimentItemResult> m_resultList;
Aws::Vector<BatchItemError> m_errorList;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,114 @@
/**
* 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/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehend/model/SyntaxToken.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>The result of calling the operation. The operation returns one object that is
* successfully processed by the operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectSyntaxItemResult">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API BatchDetectSyntaxItemResult
{
public:
BatchDetectSyntaxItemResult();
BatchDetectSyntaxItemResult(Aws::Utils::Json::JsonView jsonValue);
BatchDetectSyntaxItemResult& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline int GetIndex() const{ return m_index; }
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; }
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline BatchDetectSyntaxItemResult& WithIndex(int value) { SetIndex(value); return *this;}
/**
* <p>The syntax tokens for the words in the document, one token for each word.</p>
*/
inline const Aws::Vector<SyntaxToken>& GetSyntaxTokens() const{ return m_syntaxTokens; }
/**
* <p>The syntax tokens for the words in the document, one token for each word.</p>
*/
inline bool SyntaxTokensHasBeenSet() const { return m_syntaxTokensHasBeenSet; }
/**
* <p>The syntax tokens for the words in the document, one token for each word.</p>
*/
inline void SetSyntaxTokens(const Aws::Vector<SyntaxToken>& value) { m_syntaxTokensHasBeenSet = true; m_syntaxTokens = value; }
/**
* <p>The syntax tokens for the words in the document, one token for each word.</p>
*/
inline void SetSyntaxTokens(Aws::Vector<SyntaxToken>&& value) { m_syntaxTokensHasBeenSet = true; m_syntaxTokens = std::move(value); }
/**
* <p>The syntax tokens for the words in the document, one token for each word.</p>
*/
inline BatchDetectSyntaxItemResult& WithSyntaxTokens(const Aws::Vector<SyntaxToken>& value) { SetSyntaxTokens(value); return *this;}
/**
* <p>The syntax tokens for the words in the document, one token for each word.</p>
*/
inline BatchDetectSyntaxItemResult& WithSyntaxTokens(Aws::Vector<SyntaxToken>&& value) { SetSyntaxTokens(std::move(value)); return *this;}
/**
* <p>The syntax tokens for the words in the document, one token for each word.</p>
*/
inline BatchDetectSyntaxItemResult& AddSyntaxTokens(const SyntaxToken& value) { m_syntaxTokensHasBeenSet = true; m_syntaxTokens.push_back(value); return *this; }
/**
* <p>The syntax tokens for the words in the document, one token for each word.</p>
*/
inline BatchDetectSyntaxItemResult& AddSyntaxTokens(SyntaxToken&& value) { m_syntaxTokensHasBeenSet = true; m_syntaxTokens.push_back(std::move(value)); return *this; }
private:
int m_index;
bool m_indexHasBeenSet;
Aws::Vector<SyntaxToken> m_syntaxTokens;
bool m_syntaxTokensHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,162 @@
/**
* 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/comprehend/model/SyntaxLanguageCode.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Comprehend
{
namespace Model
{
/**
*/
class AWS_COMPREHEND_API BatchDetectSyntaxRequest : public ComprehendRequest
{
public:
BatchDetectSyntaxRequest();
// 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 "BatchDetectSyntax"; }
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 must contain fewer that 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 must contain fewer that 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 must contain fewer that 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 must contain fewer that 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 must contain fewer that 5,000 bytes of
* UTF-8 encoded characters.</p>
*/
inline BatchDetectSyntaxRequest& 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 must contain fewer that 5,000 bytes of
* UTF-8 encoded characters.</p>
*/
inline BatchDetectSyntaxRequest& 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 must contain fewer that 5,000 bytes of
* UTF-8 encoded characters.</p>
*/
inline BatchDetectSyntaxRequest& 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 must contain fewer that 5,000 bytes of
* UTF-8 encoded characters.</p>
*/
inline BatchDetectSyntaxRequest& 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 must contain fewer that 5,000 bytes of
* UTF-8 encoded characters.</p>
*/
inline BatchDetectSyntaxRequest& AddTextList(const char* value) { m_textListHasBeenSet = true; m_textList.push_back(value); return *this; }
/**
* <p>The language of the input documents. You can specify any of the following
* languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish
* ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must
* be in the same language.</p>
*/
inline const SyntaxLanguageCode& GetLanguageCode() const{ return m_languageCode; }
/**
* <p>The language of the input documents. You can specify any of the following
* languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish
* ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must
* be in the same language.</p>
*/
inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
/**
* <p>The language of the input documents. You can specify any of the following
* languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish
* ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must
* be in the same language.</p>
*/
inline void SetLanguageCode(const SyntaxLanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
/**
* <p>The language of the input documents. You can specify any of the following
* languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish
* ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must
* be in the same language.</p>
*/
inline void SetLanguageCode(SyntaxLanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
/**
* <p>The language of the input documents. You can specify any of the following
* languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish
* ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must
* be in the same language.</p>
*/
inline BatchDetectSyntaxRequest& WithLanguageCode(const SyntaxLanguageCode& value) { SetLanguageCode(value); return *this;}
/**
* <p>The language of the input documents. You can specify any of the following
* languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish
* ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must
* be in the same language.</p>
*/
inline BatchDetectSyntaxRequest& WithLanguageCode(SyntaxLanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
private:
Aws::Vector<Aws::String> m_textList;
bool m_textListHasBeenSet;
SyntaxLanguageCode m_languageCode;
bool m_languageCodeHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,159 @@
/**
* 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/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehend/model/BatchDetectSyntaxItemResult.h>
#include <aws/comprehend/model/BatchItemError.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API BatchDetectSyntaxResult
{
public:
BatchDetectSyntaxResult();
BatchDetectSyntaxResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchDetectSyntaxResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline const Aws::Vector<BatchDetectSyntaxItemResult>& GetResultList() const{ return m_resultList; }
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline void SetResultList(const Aws::Vector<BatchDetectSyntaxItemResult>& value) { m_resultList = value; }
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline void SetResultList(Aws::Vector<BatchDetectSyntaxItemResult>&& value) { m_resultList = std::move(value); }
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline BatchDetectSyntaxResult& WithResultList(const Aws::Vector<BatchDetectSyntaxItemResult>& value) { SetResultList(value); return *this;}
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline BatchDetectSyntaxResult& WithResultList(Aws::Vector<BatchDetectSyntaxItemResult>&& value) { SetResultList(std::move(value)); return *this;}
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline BatchDetectSyntaxResult& AddResultList(const BatchDetectSyntaxItemResult& value) { m_resultList.push_back(value); return *this; }
/**
* <p>A list of objects containing the results of the operation. The results are
* sorted in ascending order by the <code>Index</code> field and match the order of
* the documents in the input list. If all of the documents contain an error, the
* <code>ResultList</code> is empty.</p>
*/
inline BatchDetectSyntaxResult& AddResultList(BatchDetectSyntaxItemResult&& value) { m_resultList.push_back(std::move(value)); return *this; }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline const Aws::Vector<BatchItemError>& GetErrorList() const{ return m_errorList; }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline void SetErrorList(const Aws::Vector<BatchItemError>& value) { m_errorList = value; }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline void SetErrorList(Aws::Vector<BatchItemError>&& value) { m_errorList = std::move(value); }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline BatchDetectSyntaxResult& WithErrorList(const Aws::Vector<BatchItemError>& value) { SetErrorList(value); return *this;}
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline BatchDetectSyntaxResult& WithErrorList(Aws::Vector<BatchItemError>&& value) { SetErrorList(std::move(value)); return *this;}
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline BatchDetectSyntaxResult& AddErrorList(const BatchItemError& value) { m_errorList.push_back(value); return *this; }
/**
* <p>A list containing one object for each document that contained an error. The
* results are sorted in ascending order by the <code>Index</code> field and match
* the order of the documents in the input list. If there are no errors in the
* batch, the <code>ErrorList</code> is empty.</p>
*/
inline BatchDetectSyntaxResult& AddErrorList(BatchItemError&& value) { m_errorList.push_back(std::move(value)); return *this; }
private:
Aws::Vector<BatchDetectSyntaxItemResult> m_resultList;
Aws::Vector<BatchItemError> m_errorList;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,158 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Describes an error that occurred while processing a document in a batch. The
* operation returns on <code>BatchItemError</code> object for each document that
* contained an error.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchItemError">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API BatchItemError
{
public:
BatchItemError();
BatchItemError(Aws::Utils::Json::JsonView jsonValue);
BatchItemError& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline int GetIndex() const{ return m_index; }
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; }
/**
* <p>The zero-based index of the document in the input list.</p>
*/
inline BatchItemError& WithIndex(int value) { SetIndex(value); return *this;}
/**
* <p>The numeric error code of the error.</p>
*/
inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
/**
* <p>The numeric error code of the error.</p>
*/
inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
/**
* <p>The numeric error code of the error.</p>
*/
inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
/**
* <p>The numeric error code of the error.</p>
*/
inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
/**
* <p>The numeric error code of the error.</p>
*/
inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
/**
* <p>The numeric error code of the error.</p>
*/
inline BatchItemError& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
/**
* <p>The numeric error code of the error.</p>
*/
inline BatchItemError& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
/**
* <p>The numeric error code of the error.</p>
*/
inline BatchItemError& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
/**
* <p>A text description of the error.</p>
*/
inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
/**
* <p>A text description of the error.</p>
*/
inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
/**
* <p>A text description of the error.</p>
*/
inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
/**
* <p>A text description of the error.</p>
*/
inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
/**
* <p>A text description of the error.</p>
*/
inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
/**
* <p>A text description of the error.</p>
*/
inline BatchItemError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
/**
* <p>A text description of the error.</p>
*/
inline BatchItemError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
/**
* <p>A text description of the error.</p>
*/
inline BatchItemError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
private:
int m_index;
bool m_indexHasBeenSet;
Aws::String m_errorCode;
bool m_errorCodeHasBeenSet;
Aws::String m_errorMessage;
bool m_errorMessageHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,327 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehend/Comprehend_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Describes the result metrics for the test data associated with an
* documentation classifier.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ClassifierEvaluationMetrics">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API ClassifierEvaluationMetrics
{
public:
ClassifierEvaluationMetrics();
ClassifierEvaluationMetrics(Aws::Utils::Json::JsonView jsonValue);
ClassifierEvaluationMetrics& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The fraction of the labels that were correct recognized. It is computed by
* dividing the number of labels in the test documents that were correctly
* recognized by the total number of labels in the test documents.</p>
*/
inline double GetAccuracy() const{ return m_accuracy; }
/**
* <p>The fraction of the labels that were correct recognized. It is computed by
* dividing the number of labels in the test documents that were correctly
* recognized by the total number of labels in the test documents.</p>
*/
inline bool AccuracyHasBeenSet() const { return m_accuracyHasBeenSet; }
/**
* <p>The fraction of the labels that were correct recognized. It is computed by
* dividing the number of labels in the test documents that were correctly
* recognized by the total number of labels in the test documents.</p>
*/
inline void SetAccuracy(double value) { m_accuracyHasBeenSet = true; m_accuracy = value; }
/**
* <p>The fraction of the labels that were correct recognized. It is computed by
* dividing the number of labels in the test documents that were correctly
* recognized by the total number of labels in the test documents.</p>
*/
inline ClassifierEvaluationMetrics& WithAccuracy(double value) { SetAccuracy(value); return *this;}
/**
* <p>A measure of the usefulness of the classifier results in the test data. High
* precision means that the classifier returned substantially more relevant results
* than irrelevant ones.</p>
*/
inline double GetPrecision() const{ return m_precision; }
/**
* <p>A measure of the usefulness of the classifier results in the test data. High
* precision means that the classifier returned substantially more relevant results
* than irrelevant ones.</p>
*/
inline bool PrecisionHasBeenSet() const { return m_precisionHasBeenSet; }
/**
* <p>A measure of the usefulness of the classifier results in the test data. High
* precision means that the classifier returned substantially more relevant results
* than irrelevant ones.</p>
*/
inline void SetPrecision(double value) { m_precisionHasBeenSet = true; m_precision = value; }
/**
* <p>A measure of the usefulness of the classifier results in the test data. High
* precision means that the classifier returned substantially more relevant results
* than irrelevant ones.</p>
*/
inline ClassifierEvaluationMetrics& WithPrecision(double value) { SetPrecision(value); return *this;}
/**
* <p>A measure of how complete the classifier results are for the test data. High
* recall means that the classifier returned most of the relevant results. </p>
*/
inline double GetRecall() const{ return m_recall; }
/**
* <p>A measure of how complete the classifier results are for the test data. High
* recall means that the classifier returned most of the relevant results. </p>
*/
inline bool RecallHasBeenSet() const { return m_recallHasBeenSet; }
/**
* <p>A measure of how complete the classifier results are for the test data. High
* recall means that the classifier returned most of the relevant results. </p>
*/
inline void SetRecall(double value) { m_recallHasBeenSet = true; m_recall = value; }
/**
* <p>A measure of how complete the classifier results are for the test data. High
* recall means that the classifier returned most of the relevant results. </p>
*/
inline ClassifierEvaluationMetrics& WithRecall(double value) { SetRecall(value); return *this;}
/**
* <p>A measure of how accurate the classifier results are for the test data. It is
* derived from the <code>Precision</code> and <code>Recall</code> values. The
* <code>F1Score</code> is the harmonic average of the two scores. The highest
* score is 1, and the worst score is 0. </p>
*/
inline double GetF1Score() const{ return m_f1Score; }
/**
* <p>A measure of how accurate the classifier results are for the test data. It is
* derived from the <code>Precision</code> and <code>Recall</code> values. The
* <code>F1Score</code> is the harmonic average of the two scores. The highest
* score is 1, and the worst score is 0. </p>
*/
inline bool F1ScoreHasBeenSet() const { return m_f1ScoreHasBeenSet; }
/**
* <p>A measure of how accurate the classifier results are for the test data. It is
* derived from the <code>Precision</code> and <code>Recall</code> values. The
* <code>F1Score</code> is the harmonic average of the two scores. The highest
* score is 1, and the worst score is 0. </p>
*/
inline void SetF1Score(double value) { m_f1ScoreHasBeenSet = true; m_f1Score = value; }
/**
* <p>A measure of how accurate the classifier results are for the test data. It is
* derived from the <code>Precision</code> and <code>Recall</code> values. The
* <code>F1Score</code> is the harmonic average of the two scores. The highest
* score is 1, and the worst score is 0. </p>
*/
inline ClassifierEvaluationMetrics& WithF1Score(double value) { SetF1Score(value); return *this;}
/**
* <p>A measure of the usefulness of the recognizer results in the test data. High
* precision means that the recognizer returned substantially more relevant results
* than irrelevant ones. Unlike the Precision metric which comes from averaging the
* precision of all available labels, this is based on the overall score of all
* precision scores added together.</p>
*/
inline double GetMicroPrecision() const{ return m_microPrecision; }
/**
* <p>A measure of the usefulness of the recognizer results in the test data. High
* precision means that the recognizer returned substantially more relevant results
* than irrelevant ones. Unlike the Precision metric which comes from averaging the
* precision of all available labels, this is based on the overall score of all
* precision scores added together.</p>
*/
inline bool MicroPrecisionHasBeenSet() const { return m_microPrecisionHasBeenSet; }
/**
* <p>A measure of the usefulness of the recognizer results in the test data. High
* precision means that the recognizer returned substantially more relevant results
* than irrelevant ones. Unlike the Precision metric which comes from averaging the
* precision of all available labels, this is based on the overall score of all
* precision scores added together.</p>
*/
inline void SetMicroPrecision(double value) { m_microPrecisionHasBeenSet = true; m_microPrecision = value; }
/**
* <p>A measure of the usefulness of the recognizer results in the test data. High
* precision means that the recognizer returned substantially more relevant results
* than irrelevant ones. Unlike the Precision metric which comes from averaging the
* precision of all available labels, this is based on the overall score of all
* precision scores added together.</p>
*/
inline ClassifierEvaluationMetrics& WithMicroPrecision(double value) { SetMicroPrecision(value); return *this;}
/**
* <p>A measure of how complete the classifier results are for the test data. High
* recall means that the classifier returned most of the relevant results.
* Specifically, this indicates how many of the correct categories in the text that
* the model can predict. It is a percentage of correct categories in the text that
* can found. Instead of averaging the recall scores of all labels (as with
* Recall), micro Recall is based on the overall score of all recall scores added
* together.</p>
*/
inline double GetMicroRecall() const{ return m_microRecall; }
/**
* <p>A measure of how complete the classifier results are for the test data. High
* recall means that the classifier returned most of the relevant results.
* Specifically, this indicates how many of the correct categories in the text that
* the model can predict. It is a percentage of correct categories in the text that
* can found. Instead of averaging the recall scores of all labels (as with
* Recall), micro Recall is based on the overall score of all recall scores added
* together.</p>
*/
inline bool MicroRecallHasBeenSet() const { return m_microRecallHasBeenSet; }
/**
* <p>A measure of how complete the classifier results are for the test data. High
* recall means that the classifier returned most of the relevant results.
* Specifically, this indicates how many of the correct categories in the text that
* the model can predict. It is a percentage of correct categories in the text that
* can found. Instead of averaging the recall scores of all labels (as with
* Recall), micro Recall is based on the overall score of all recall scores added
* together.</p>
*/
inline void SetMicroRecall(double value) { m_microRecallHasBeenSet = true; m_microRecall = value; }
/**
* <p>A measure of how complete the classifier results are for the test data. High
* recall means that the classifier returned most of the relevant results.
* Specifically, this indicates how many of the correct categories in the text that
* the model can predict. It is a percentage of correct categories in the text that
* can found. Instead of averaging the recall scores of all labels (as with
* Recall), micro Recall is based on the overall score of all recall scores added
* together.</p>
*/
inline ClassifierEvaluationMetrics& WithMicroRecall(double value) { SetMicroRecall(value); return *this;}
/**
* <p>A measure of how accurate the classifier results are for the test data. It is
* a combination of the <code>Micro Precision</code> and <code>Micro Recall</code>
* values. The <code>Micro F1Score</code> is the harmonic mean of the two scores.
* The highest score is 1, and the worst score is 0.</p>
*/
inline double GetMicroF1Score() const{ return m_microF1Score; }
/**
* <p>A measure of how accurate the classifier results are for the test data. It is
* a combination of the <code>Micro Precision</code> and <code>Micro Recall</code>
* values. The <code>Micro F1Score</code> is the harmonic mean of the two scores.
* The highest score is 1, and the worst score is 0.</p>
*/
inline bool MicroF1ScoreHasBeenSet() const { return m_microF1ScoreHasBeenSet; }
/**
* <p>A measure of how accurate the classifier results are for the test data. It is
* a combination of the <code>Micro Precision</code> and <code>Micro Recall</code>
* values. The <code>Micro F1Score</code> is the harmonic mean of the two scores.
* The highest score is 1, and the worst score is 0.</p>
*/
inline void SetMicroF1Score(double value) { m_microF1ScoreHasBeenSet = true; m_microF1Score = value; }
/**
* <p>A measure of how accurate the classifier results are for the test data. It is
* a combination of the <code>Micro Precision</code> and <code>Micro Recall</code>
* values. The <code>Micro F1Score</code> is the harmonic mean of the two scores.
* The highest score is 1, and the worst score is 0.</p>
*/
inline ClassifierEvaluationMetrics& WithMicroF1Score(double value) { SetMicroF1Score(value); return *this;}
/**
* <p>Indicates the fraction of labels that are incorrectly predicted. Also seen as
* the fraction of wrong labels compared to the total number of labels. Scores
* closer to zero are better.</p>
*/
inline double GetHammingLoss() const{ return m_hammingLoss; }
/**
* <p>Indicates the fraction of labels that are incorrectly predicted. Also seen as
* the fraction of wrong labels compared to the total number of labels. Scores
* closer to zero are better.</p>
*/
inline bool HammingLossHasBeenSet() const { return m_hammingLossHasBeenSet; }
/**
* <p>Indicates the fraction of labels that are incorrectly predicted. Also seen as
* the fraction of wrong labels compared to the total number of labels. Scores
* closer to zero are better.</p>
*/
inline void SetHammingLoss(double value) { m_hammingLossHasBeenSet = true; m_hammingLoss = value; }
/**
* <p>Indicates the fraction of labels that are incorrectly predicted. Also seen as
* the fraction of wrong labels compared to the total number of labels. Scores
* closer to zero are better.</p>
*/
inline ClassifierEvaluationMetrics& WithHammingLoss(double value) { SetHammingLoss(value); return *this;}
private:
double m_accuracy;
bool m_accuracyHasBeenSet;
double m_precision;
bool m_precisionHasBeenSet;
double m_recall;
bool m_recallHasBeenSet;
double m_f1Score;
bool m_f1ScoreHasBeenSet;
double m_microPrecision;
bool m_microPrecisionHasBeenSet;
double m_microRecall;
bool m_microRecallHasBeenSet;
double m_microF1Score;
bool m_microF1ScoreHasBeenSet;
double m_hammingLoss;
bool m_hammingLossHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,169 @@
/**
* 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/model/ClassifierEvaluationMetrics.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Provides information about a document classifier.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ClassifierMetadata">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API ClassifierMetadata
{
public:
ClassifierMetadata();
ClassifierMetadata(Aws::Utils::Json::JsonView jsonValue);
ClassifierMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The number of labels in the input data. </p>
*/
inline int GetNumberOfLabels() const{ return m_numberOfLabels; }
/**
* <p>The number of labels in the input data. </p>
*/
inline bool NumberOfLabelsHasBeenSet() const { return m_numberOfLabelsHasBeenSet; }
/**
* <p>The number of labels in the input data. </p>
*/
inline void SetNumberOfLabels(int value) { m_numberOfLabelsHasBeenSet = true; m_numberOfLabels = value; }
/**
* <p>The number of labels in the input data. </p>
*/
inline ClassifierMetadata& WithNumberOfLabels(int value) { SetNumberOfLabels(value); return *this;}
/**
* <p>The number of documents in the input data that were used to train the
* classifier. Typically this is 80 to 90 percent of the input documents.</p>
*/
inline int GetNumberOfTrainedDocuments() const{ return m_numberOfTrainedDocuments; }
/**
* <p>The number of documents in the input data that were used to train the
* classifier. Typically this is 80 to 90 percent of the input documents.</p>
*/
inline bool NumberOfTrainedDocumentsHasBeenSet() const { return m_numberOfTrainedDocumentsHasBeenSet; }
/**
* <p>The number of documents in the input data that were used to train the
* classifier. Typically this is 80 to 90 percent of the input documents.</p>
*/
inline void SetNumberOfTrainedDocuments(int value) { m_numberOfTrainedDocumentsHasBeenSet = true; m_numberOfTrainedDocuments = value; }
/**
* <p>The number of documents in the input data that were used to train the
* classifier. Typically this is 80 to 90 percent of the input documents.</p>
*/
inline ClassifierMetadata& WithNumberOfTrainedDocuments(int value) { SetNumberOfTrainedDocuments(value); return *this;}
/**
* <p>The number of documents in the input data that were used to test the
* classifier. Typically this is 10 to 20 percent of the input documents, up to
* 10,000 documents.</p>
*/
inline int GetNumberOfTestDocuments() const{ return m_numberOfTestDocuments; }
/**
* <p>The number of documents in the input data that were used to test the
* classifier. Typically this is 10 to 20 percent of the input documents, up to
* 10,000 documents.</p>
*/
inline bool NumberOfTestDocumentsHasBeenSet() const { return m_numberOfTestDocumentsHasBeenSet; }
/**
* <p>The number of documents in the input data that were used to test the
* classifier. Typically this is 10 to 20 percent of the input documents, up to
* 10,000 documents.</p>
*/
inline void SetNumberOfTestDocuments(int value) { m_numberOfTestDocumentsHasBeenSet = true; m_numberOfTestDocuments = value; }
/**
* <p>The number of documents in the input data that were used to test the
* classifier. Typically this is 10 to 20 percent of the input documents, up to
* 10,000 documents.</p>
*/
inline ClassifierMetadata& WithNumberOfTestDocuments(int value) { SetNumberOfTestDocuments(value); return *this;}
/**
* <p> Describes the result metrics for the test data associated with an
* documentation classifier.</p>
*/
inline const ClassifierEvaluationMetrics& GetEvaluationMetrics() const{ return m_evaluationMetrics; }
/**
* <p> Describes the result metrics for the test data associated with an
* documentation classifier.</p>
*/
inline bool EvaluationMetricsHasBeenSet() const { return m_evaluationMetricsHasBeenSet; }
/**
* <p> Describes the result metrics for the test data associated with an
* documentation classifier.</p>
*/
inline void SetEvaluationMetrics(const ClassifierEvaluationMetrics& value) { m_evaluationMetricsHasBeenSet = true; m_evaluationMetrics = value; }
/**
* <p> Describes the result metrics for the test data associated with an
* documentation classifier.</p>
*/
inline void SetEvaluationMetrics(ClassifierEvaluationMetrics&& value) { m_evaluationMetricsHasBeenSet = true; m_evaluationMetrics = std::move(value); }
/**
* <p> Describes the result metrics for the test data associated with an
* documentation classifier.</p>
*/
inline ClassifierMetadata& WithEvaluationMetrics(const ClassifierEvaluationMetrics& value) { SetEvaluationMetrics(value); return *this;}
/**
* <p> Describes the result metrics for the test data associated with an
* documentation classifier.</p>
*/
inline ClassifierMetadata& WithEvaluationMetrics(ClassifierEvaluationMetrics&& value) { SetEvaluationMetrics(std::move(value)); return *this;}
private:
int m_numberOfLabels;
bool m_numberOfLabelsHasBeenSet;
int m_numberOfTrainedDocuments;
bool m_numberOfTrainedDocumentsHasBeenSet;
int m_numberOfTestDocuments;
bool m_numberOfTestDocumentsHasBeenSet;
ClassifierEvaluationMetrics m_evaluationMetrics;
bool m_evaluationMetricsHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,129 @@
/**
* 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

View File

@@ -0,0 +1,166 @@
/**
* 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/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehend/model/DocumentClass.h>
#include <aws/comprehend/model/DocumentLabel.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API ClassifyDocumentResult
{
public:
ClassifyDocumentResult();
ClassifyDocumentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ClassifyDocumentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The classes used by the document being analyzed. These are used for
* multi-class trained models. Individual classes are mutually exclusive and each
* document is expected to have only a single class assigned to it. For example, an
* animal can be a dog or a cat, but not both at the same time. </p>
*/
inline const Aws::Vector<DocumentClass>& GetClasses() const{ return m_classes; }
/**
* <p>The classes used by the document being analyzed. These are used for
* multi-class trained models. Individual classes are mutually exclusive and each
* document is expected to have only a single class assigned to it. For example, an
* animal can be a dog or a cat, but not both at the same time. </p>
*/
inline void SetClasses(const Aws::Vector<DocumentClass>& value) { m_classes = value; }
/**
* <p>The classes used by the document being analyzed. These are used for
* multi-class trained models. Individual classes are mutually exclusive and each
* document is expected to have only a single class assigned to it. For example, an
* animal can be a dog or a cat, but not both at the same time. </p>
*/
inline void SetClasses(Aws::Vector<DocumentClass>&& value) { m_classes = std::move(value); }
/**
* <p>The classes used by the document being analyzed. These are used for
* multi-class trained models. Individual classes are mutually exclusive and each
* document is expected to have only a single class assigned to it. For example, an
* animal can be a dog or a cat, but not both at the same time. </p>
*/
inline ClassifyDocumentResult& WithClasses(const Aws::Vector<DocumentClass>& value) { SetClasses(value); return *this;}
/**
* <p>The classes used by the document being analyzed. These are used for
* multi-class trained models. Individual classes are mutually exclusive and each
* document is expected to have only a single class assigned to it. For example, an
* animal can be a dog or a cat, but not both at the same time. </p>
*/
inline ClassifyDocumentResult& WithClasses(Aws::Vector<DocumentClass>&& value) { SetClasses(std::move(value)); return *this;}
/**
* <p>The classes used by the document being analyzed. These are used for
* multi-class trained models. Individual classes are mutually exclusive and each
* document is expected to have only a single class assigned to it. For example, an
* animal can be a dog or a cat, but not both at the same time. </p>
*/
inline ClassifyDocumentResult& AddClasses(const DocumentClass& value) { m_classes.push_back(value); return *this; }
/**
* <p>The classes used by the document being analyzed. These are used for
* multi-class trained models. Individual classes are mutually exclusive and each
* document is expected to have only a single class assigned to it. For example, an
* animal can be a dog or a cat, but not both at the same time. </p>
*/
inline ClassifyDocumentResult& AddClasses(DocumentClass&& value) { m_classes.push_back(std::move(value)); return *this; }
/**
* <p>The labels used the document being analyzed. These are used for multi-label
* trained models. Individual labels represent different categories that are
* related in some manner and are not multually exclusive. For example, a movie can
* be just an action movie, or it can be an action movie, a science fiction movie,
* and a comedy, all at the same time. </p>
*/
inline const Aws::Vector<DocumentLabel>& GetLabels() const{ return m_labels; }
/**
* <p>The labels used the document being analyzed. These are used for multi-label
* trained models. Individual labels represent different categories that are
* related in some manner and are not multually exclusive. For example, a movie can
* be just an action movie, or it can be an action movie, a science fiction movie,
* and a comedy, all at the same time. </p>
*/
inline void SetLabels(const Aws::Vector<DocumentLabel>& value) { m_labels = value; }
/**
* <p>The labels used the document being analyzed. These are used for multi-label
* trained models. Individual labels represent different categories that are
* related in some manner and are not multually exclusive. For example, a movie can
* be just an action movie, or it can be an action movie, a science fiction movie,
* and a comedy, all at the same time. </p>
*/
inline void SetLabels(Aws::Vector<DocumentLabel>&& value) { m_labels = std::move(value); }
/**
* <p>The labels used the document being analyzed. These are used for multi-label
* trained models. Individual labels represent different categories that are
* related in some manner and are not multually exclusive. For example, a movie can
* be just an action movie, or it can be an action movie, a science fiction movie,
* and a comedy, all at the same time. </p>
*/
inline ClassifyDocumentResult& WithLabels(const Aws::Vector<DocumentLabel>& value) { SetLabels(value); return *this;}
/**
* <p>The labels used the document being analyzed. These are used for multi-label
* trained models. Individual labels represent different categories that are
* related in some manner and are not multually exclusive. For example, a movie can
* be just an action movie, or it can be an action movie, a science fiction movie,
* and a comedy, all at the same time. </p>
*/
inline ClassifyDocumentResult& WithLabels(Aws::Vector<DocumentLabel>&& value) { SetLabels(std::move(value)); return *this;}
/**
* <p>The labels used the document being analyzed. These are used for multi-label
* trained models. Individual labels represent different categories that are
* related in some manner and are not multually exclusive. For example, a movie can
* be just an action movie, or it can be an action movie, a science fiction movie,
* and a comedy, all at the same time. </p>
*/
inline ClassifyDocumentResult& AddLabels(const DocumentLabel& value) { m_labels.push_back(value); return *this; }
/**
* <p>The labels used the document being analyzed. These are used for multi-label
* trained models. Individual labels represent different categories that are
* related in some manner and are not multually exclusive. For example, a movie can
* be just an action movie, or it can be an action movie, a science fiction movie,
* and a comedy, all at the same time. </p>
*/
inline ClassifyDocumentResult& AddLabels(DocumentLabel&& value) { m_labels.push_back(std::move(value)); return *this; }
private:
Aws::Vector<DocumentClass> m_classes;
Aws::Vector<DocumentLabel> m_labels;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,613 @@
/**
* 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 <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehend/model/DocumentClassifierInputDataConfig.h>
#include <aws/comprehend/model/DocumentClassifierOutputDataConfig.h>
#include <aws/comprehend/model/LanguageCode.h>
#include <aws/comprehend/model/VpcConfig.h>
#include <aws/comprehend/model/DocumentClassifierMode.h>
#include <aws/comprehend/model/Tag.h>
#include <utility>
#include <aws/core/utils/UUID.h>
namespace Aws
{
namespace Comprehend
{
namespace Model
{
/**
*/
class AWS_COMPREHEND_API CreateDocumentClassifierRequest : public ComprehendRequest
{
public:
CreateDocumentClassifierRequest();
// 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 "CreateDocumentClassifier"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the document classifier.</p>
*/
inline const Aws::String& GetDocumentClassifierName() const{ return m_documentClassifierName; }
/**
* <p>The name of the document classifier.</p>
*/
inline bool DocumentClassifierNameHasBeenSet() const { return m_documentClassifierNameHasBeenSet; }
/**
* <p>The name of the document classifier.</p>
*/
inline void SetDocumentClassifierName(const Aws::String& value) { m_documentClassifierNameHasBeenSet = true; m_documentClassifierName = value; }
/**
* <p>The name of the document classifier.</p>
*/
inline void SetDocumentClassifierName(Aws::String&& value) { m_documentClassifierNameHasBeenSet = true; m_documentClassifierName = std::move(value); }
/**
* <p>The name of the document classifier.</p>
*/
inline void SetDocumentClassifierName(const char* value) { m_documentClassifierNameHasBeenSet = true; m_documentClassifierName.assign(value); }
/**
* <p>The name of the document classifier.</p>
*/
inline CreateDocumentClassifierRequest& WithDocumentClassifierName(const Aws::String& value) { SetDocumentClassifierName(value); return *this;}
/**
* <p>The name of the document classifier.</p>
*/
inline CreateDocumentClassifierRequest& WithDocumentClassifierName(Aws::String&& value) { SetDocumentClassifierName(std::move(value)); return *this;}
/**
* <p>The name of the document classifier.</p>
*/
inline CreateDocumentClassifierRequest& WithDocumentClassifierName(const char* value) { SetDocumentClassifierName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline const Aws::String& GetDataAccessRoleArn() const{ return m_dataAccessRoleArn; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline void SetDataAccessRoleArn(const Aws::String& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline void SetDataAccessRoleArn(Aws::String&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline void SetDataAccessRoleArn(const char* value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline CreateDocumentClassifierRequest& WithDataAccessRoleArn(const Aws::String& value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline CreateDocumentClassifierRequest& WithDataAccessRoleArn(Aws::String&& value) { SetDataAccessRoleArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline CreateDocumentClassifierRequest& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p>Tags to be associated with the document classifier being created. A tag is a
* key-value pair that adds as a metadata to a resource used by Amazon Comprehend.
* For example, a tag with "Sales" as the key might be added to a resource to
* indicate its use by the sales department. </p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>Tags to be associated with the document classifier being created. A tag is a
* key-value pair that adds as a metadata to a resource used by Amazon Comprehend.
* For example, a tag with "Sales" as the key might be added to a resource to
* indicate its use by the sales department. </p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>Tags to be associated with the document classifier being created. A tag is a
* key-value pair that adds as a metadata to a resource used by Amazon Comprehend.
* For example, a tag with "Sales" as the key might be added to a resource to
* indicate its use by the sales department. </p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>Tags to be associated with the document classifier being created. A tag is a
* key-value pair that adds as a metadata to a resource used by Amazon Comprehend.
* For example, a tag with "Sales" as the key might be added to a resource to
* indicate its use by the sales department. </p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>Tags to be associated with the document classifier being created. A tag is a
* key-value pair that adds as a metadata to a resource used by Amazon Comprehend.
* For example, a tag with "Sales" as the key might be added to a resource to
* indicate its use by the sales department. </p>
*/
inline CreateDocumentClassifierRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>Tags to be associated with the document classifier being created. A tag is a
* key-value pair that adds as a metadata to a resource used by Amazon Comprehend.
* For example, a tag with "Sales" as the key might be added to a resource to
* indicate its use by the sales department. </p>
*/
inline CreateDocumentClassifierRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>Tags to be associated with the document classifier being created. A tag is a
* key-value pair that adds as a metadata to a resource used by Amazon Comprehend.
* For example, a tag with "Sales" as the key might be added to a resource to
* indicate its use by the sales department. </p>
*/
inline CreateDocumentClassifierRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>Tags to be associated with the document classifier being created. A tag is a
* key-value pair that adds as a metadata to a resource used by Amazon Comprehend.
* For example, a tag with "Sales" as the key might be added to a resource to
* indicate its use by the sales department. </p>
*/
inline CreateDocumentClassifierRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline const DocumentClassifierInputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline void SetInputDataConfig(const DocumentClassifierInputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline void SetInputDataConfig(DocumentClassifierInputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline CreateDocumentClassifierRequest& WithInputDataConfig(const DocumentClassifierInputDataConfig& value) { SetInputDataConfig(value); return *this;}
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline CreateDocumentClassifierRequest& WithInputDataConfig(DocumentClassifierInputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;}
/**
* <p>Enables the addition of output results configuration parameters for custom
* classifier jobs.</p>
*/
inline const DocumentClassifierOutputDataConfig& GetOutputDataConfig() const{ return m_outputDataConfig; }
/**
* <p>Enables the addition of output results configuration parameters for custom
* classifier jobs.</p>
*/
inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
/**
* <p>Enables the addition of output results configuration parameters for custom
* classifier jobs.</p>
*/
inline void SetOutputDataConfig(const DocumentClassifierOutputDataConfig& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = value; }
/**
* <p>Enables the addition of output results configuration parameters for custom
* classifier jobs.</p>
*/
inline void SetOutputDataConfig(DocumentClassifierOutputDataConfig&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::move(value); }
/**
* <p>Enables the addition of output results configuration parameters for custom
* classifier jobs.</p>
*/
inline CreateDocumentClassifierRequest& WithOutputDataConfig(const DocumentClassifierOutputDataConfig& value) { SetOutputDataConfig(value); return *this;}
/**
* <p>Enables the addition of output results configuration parameters for custom
* classifier jobs.</p>
*/
inline CreateDocumentClassifierRequest& WithOutputDataConfig(DocumentClassifierOutputDataConfig&& value) { SetOutputDataConfig(std::move(value)); return *this;}
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend generates one.</p>
*/
inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend generates one.</p>
*/
inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend generates one.</p>
*/
inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend generates one.</p>
*/
inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend generates one.</p>
*/
inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend generates one.</p>
*/
inline CreateDocumentClassifierRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend generates one.</p>
*/
inline CreateDocumentClassifierRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend generates one.</p>
*/
inline CreateDocumentClassifierRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
/**
* <p>The language of the input documents. You can specify any of the following
* languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish
* ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must
* be in the same language.</p>
*/
inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
/**
* <p>The language of the input documents. You can specify any of the following
* languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish
* ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must
* be in the same language.</p>
*/
inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
/**
* <p>The language of the input documents. You can specify any of the following
* languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish
* ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must
* be in the same language.</p>
*/
inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
/**
* <p>The language of the input documents. You can specify any of the following
* languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish
* ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must
* be in the same language.</p>
*/
inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
/**
* <p>The language of the input documents. You can specify any of the following
* languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish
* ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must
* be in the same language.</p>
*/
inline CreateDocumentClassifierRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
/**
* <p>The language of the input documents. You can specify any of the following
* languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish
* ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must
* be in the same language.</p>
*/
inline CreateDocumentClassifierRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline const Aws::String& GetVolumeKmsKeyId() const{ return m_volumeKmsKeyId; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline void SetVolumeKmsKeyId(const Aws::String& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = value; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline void SetVolumeKmsKeyId(Aws::String&& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = std::move(value); }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline void SetVolumeKmsKeyId(const char* value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId.assign(value); }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline CreateDocumentClassifierRequest& WithVolumeKmsKeyId(const Aws::String& value) { SetVolumeKmsKeyId(value); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline CreateDocumentClassifierRequest& WithVolumeKmsKeyId(Aws::String&& value) { SetVolumeKmsKeyId(std::move(value)); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline CreateDocumentClassifierRequest& WithVolumeKmsKeyId(const char* value) { SetVolumeKmsKeyId(value); return *this;}
/**
* <p>Configuration parameters for an optional private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom classifier. For more
* information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
/**
* <p>Configuration parameters for an optional private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom classifier. For more
* information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
/**
* <p>Configuration parameters for an optional private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom classifier. For more
* information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
/**
* <p>Configuration parameters for an optional private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom classifier. For more
* information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
/**
* <p>Configuration parameters for an optional private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom classifier. For more
* information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline CreateDocumentClassifierRequest& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
/**
* <p>Configuration parameters for an optional private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom classifier. For more
* information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline CreateDocumentClassifierRequest& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
/**
* <p>Indicates the mode in which the classifier will be trained. The classifier
* can be trained in multi-class mode, which identifies one and only one class for
* each document, or multi-label mode, which identifies one or more labels for each
* document. In multi-label mode, multiple labels for an individual document are
* separated by a delimiter. The default delimiter between labels is a pipe
* (|).</p>
*/
inline const DocumentClassifierMode& GetMode() const{ return m_mode; }
/**
* <p>Indicates the mode in which the classifier will be trained. The classifier
* can be trained in multi-class mode, which identifies one and only one class for
* each document, or multi-label mode, which identifies one or more labels for each
* document. In multi-label mode, multiple labels for an individual document are
* separated by a delimiter. The default delimiter between labels is a pipe
* (|).</p>
*/
inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
/**
* <p>Indicates the mode in which the classifier will be trained. The classifier
* can be trained in multi-class mode, which identifies one and only one class for
* each document, or multi-label mode, which identifies one or more labels for each
* document. In multi-label mode, multiple labels for an individual document are
* separated by a delimiter. The default delimiter between labels is a pipe
* (|).</p>
*/
inline void SetMode(const DocumentClassifierMode& value) { m_modeHasBeenSet = true; m_mode = value; }
/**
* <p>Indicates the mode in which the classifier will be trained. The classifier
* can be trained in multi-class mode, which identifies one and only one class for
* each document, or multi-label mode, which identifies one or more labels for each
* document. In multi-label mode, multiple labels for an individual document are
* separated by a delimiter. The default delimiter between labels is a pipe
* (|).</p>
*/
inline void SetMode(DocumentClassifierMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
/**
* <p>Indicates the mode in which the classifier will be trained. The classifier
* can be trained in multi-class mode, which identifies one and only one class for
* each document, or multi-label mode, which identifies one or more labels for each
* document. In multi-label mode, multiple labels for an individual document are
* separated by a delimiter. The default delimiter between labels is a pipe
* (|).</p>
*/
inline CreateDocumentClassifierRequest& WithMode(const DocumentClassifierMode& value) { SetMode(value); return *this;}
/**
* <p>Indicates the mode in which the classifier will be trained. The classifier
* can be trained in multi-class mode, which identifies one and only one class for
* each document, or multi-label mode, which identifies one or more labels for each
* document. In multi-label mode, multiple labels for an individual document are
* separated by a delimiter. The default delimiter between labels is a pipe
* (|).</p>
*/
inline CreateDocumentClassifierRequest& WithMode(DocumentClassifierMode&& value) { SetMode(std::move(value)); return *this;}
private:
Aws::String m_documentClassifierName;
bool m_documentClassifierNameHasBeenSet;
Aws::String m_dataAccessRoleArn;
bool m_dataAccessRoleArnHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
DocumentClassifierInputDataConfig m_inputDataConfig;
bool m_inputDataConfigHasBeenSet;
DocumentClassifierOutputDataConfig m_outputDataConfig;
bool m_outputDataConfigHasBeenSet;
Aws::String m_clientRequestToken;
bool m_clientRequestTokenHasBeenSet;
LanguageCode m_languageCode;
bool m_languageCodeHasBeenSet;
Aws::String m_volumeKmsKeyId;
bool m_volumeKmsKeyIdHasBeenSet;
VpcConfig m_vpcConfig;
bool m_vpcConfigHasBeenSet;
DocumentClassifierMode m_mode;
bool m_modeHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API CreateDocumentClassifierResult
{
public:
CreateDocumentClassifierResult();
CreateDocumentClassifierResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateDocumentClassifierResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier.</p>
*/
inline const Aws::String& GetDocumentClassifierArn() const{ return m_documentClassifierArn; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier.</p>
*/
inline void SetDocumentClassifierArn(const Aws::String& value) { m_documentClassifierArn = value; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier.</p>
*/
inline void SetDocumentClassifierArn(Aws::String&& value) { m_documentClassifierArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier.</p>
*/
inline void SetDocumentClassifierArn(const char* value) { m_documentClassifierArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier.</p>
*/
inline CreateDocumentClassifierResult& WithDocumentClassifierArn(const Aws::String& value) { SetDocumentClassifierArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier.</p>
*/
inline CreateDocumentClassifierResult& WithDocumentClassifierArn(Aws::String&& value) { SetDocumentClassifierArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier.</p>
*/
inline CreateDocumentClassifierResult& WithDocumentClassifierArn(const char* value) { SetDocumentClassifierArn(value); return *this;}
private:
Aws::String m_documentClassifierArn;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,300 @@
/**
* 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 <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehend/model/Tag.h>
#include <utility>
#include <aws/core/utils/UUID.h>
namespace Aws
{
namespace Comprehend
{
namespace Model
{
/**
*/
class AWS_COMPREHEND_API CreateEndpointRequest : public ComprehendRequest
{
public:
CreateEndpointRequest();
// 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 "CreateEndpoint"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>This is the descriptive suffix that becomes part of the
* <code>EndpointArn</code> used for all subsequent requests to this resource. </p>
*/
inline const Aws::String& GetEndpointName() const{ return m_endpointName; }
/**
* <p>This is the descriptive suffix that becomes part of the
* <code>EndpointArn</code> used for all subsequent requests to this resource. </p>
*/
inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
/**
* <p>This is the descriptive suffix that becomes part of the
* <code>EndpointArn</code> used for all subsequent requests to this resource. </p>
*/
inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; }
/**
* <p>This is the descriptive suffix that becomes part of the
* <code>EndpointArn</code> used for all subsequent requests to this resource. </p>
*/
inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); }
/**
* <p>This is the descriptive suffix that becomes part of the
* <code>EndpointArn</code> used for all subsequent requests to this resource. </p>
*/
inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); }
/**
* <p>This is the descriptive suffix that becomes part of the
* <code>EndpointArn</code> used for all subsequent requests to this resource. </p>
*/
inline CreateEndpointRequest& WithEndpointName(const Aws::String& value) { SetEndpointName(value); return *this;}
/**
* <p>This is the descriptive suffix that becomes part of the
* <code>EndpointArn</code> used for all subsequent requests to this resource. </p>
*/
inline CreateEndpointRequest& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;}
/**
* <p>This is the descriptive suffix that becomes part of the
* <code>EndpointArn</code> used for all subsequent requests to this resource. </p>
*/
inline CreateEndpointRequest& WithEndpointName(const char* value) { SetEndpointName(value); return *this;}
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint will be
* attached.</p>
*/
inline const Aws::String& GetModelArn() const{ return m_modelArn; }
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint will be
* attached.</p>
*/
inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; }
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint will be
* attached.</p>
*/
inline void SetModelArn(const Aws::String& value) { m_modelArnHasBeenSet = true; m_modelArn = value; }
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint will be
* attached.</p>
*/
inline void SetModelArn(Aws::String&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::move(value); }
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint will be
* attached.</p>
*/
inline void SetModelArn(const char* value) { m_modelArnHasBeenSet = true; m_modelArn.assign(value); }
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint will be
* attached.</p>
*/
inline CreateEndpointRequest& WithModelArn(const Aws::String& value) { SetModelArn(value); return *this;}
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint will be
* attached.</p>
*/
inline CreateEndpointRequest& WithModelArn(Aws::String&& value) { SetModelArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint will be
* attached.</p>
*/
inline CreateEndpointRequest& WithModelArn(const char* value) { SetModelArn(value); return *this;}
/**
* <p> The desired number of inference units to be used by the model using this
* endpoint. Each inference unit represents of a throughput of 100 characters per
* second.</p>
*/
inline int GetDesiredInferenceUnits() const{ return m_desiredInferenceUnits; }
/**
* <p> The desired number of inference units to be used by the model using this
* endpoint. Each inference unit represents of a throughput of 100 characters per
* second.</p>
*/
inline bool DesiredInferenceUnitsHasBeenSet() const { return m_desiredInferenceUnitsHasBeenSet; }
/**
* <p> The desired number of inference units to be used by the model using this
* endpoint. Each inference unit represents of a throughput of 100 characters per
* second.</p>
*/
inline void SetDesiredInferenceUnits(int value) { m_desiredInferenceUnitsHasBeenSet = true; m_desiredInferenceUnits = value; }
/**
* <p> The desired number of inference units to be used by the model using this
* endpoint. Each inference unit represents of a throughput of 100 characters per
* second.</p>
*/
inline CreateEndpointRequest& WithDesiredInferenceUnits(int value) { SetDesiredInferenceUnits(value); return *this;}
/**
* <p>An idempotency token provided by the customer. If this token matches a
* previous endpoint creation request, Amazon Comprehend will not return a
* <code>ResourceInUseException</code>. </p>
*/
inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
/**
* <p>An idempotency token provided by the customer. If this token matches a
* previous endpoint creation request, Amazon Comprehend will not return a
* <code>ResourceInUseException</code>. </p>
*/
inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
/**
* <p>An idempotency token provided by the customer. If this token matches a
* previous endpoint creation request, Amazon Comprehend will not return a
* <code>ResourceInUseException</code>. </p>
*/
inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
/**
* <p>An idempotency token provided by the customer. If this token matches a
* previous endpoint creation request, Amazon Comprehend will not return a
* <code>ResourceInUseException</code>. </p>
*/
inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
/**
* <p>An idempotency token provided by the customer. If this token matches a
* previous endpoint creation request, Amazon Comprehend will not return a
* <code>ResourceInUseException</code>. </p>
*/
inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
/**
* <p>An idempotency token provided by the customer. If this token matches a
* previous endpoint creation request, Amazon Comprehend will not return a
* <code>ResourceInUseException</code>. </p>
*/
inline CreateEndpointRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
/**
* <p>An idempotency token provided by the customer. If this token matches a
* previous endpoint creation request, Amazon Comprehend will not return a
* <code>ResourceInUseException</code>. </p>
*/
inline CreateEndpointRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
/**
* <p>An idempotency token provided by the customer. If this token matches a
* previous endpoint creation request, Amazon Comprehend will not return a
* <code>ResourceInUseException</code>. </p>
*/
inline CreateEndpointRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
/**
* <p>Tags associated with the endpoint being created. A tag is a key-value pair
* that adds metadata to the endpoint. For example, a tag with "Sales" as the key
* might be added to an endpoint to indicate its use by the sales department. </p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>Tags associated with the endpoint being created. A tag is a key-value pair
* that adds metadata to the endpoint. For example, a tag with "Sales" as the key
* might be added to an endpoint to indicate its use by the sales department. </p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>Tags associated with the endpoint being created. A tag is a key-value pair
* that adds metadata to the endpoint. For example, a tag with "Sales" as the key
* might be added to an endpoint to indicate its use by the sales department. </p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>Tags associated with the endpoint being created. A tag is a key-value pair
* that adds metadata to the endpoint. For example, a tag with "Sales" as the key
* might be added to an endpoint to indicate its use by the sales department. </p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>Tags associated with the endpoint being created. A tag is a key-value pair
* that adds metadata to the endpoint. For example, a tag with "Sales" as the key
* might be added to an endpoint to indicate its use by the sales department. </p>
*/
inline CreateEndpointRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>Tags associated with the endpoint being created. A tag is a key-value pair
* that adds metadata to the endpoint. For example, a tag with "Sales" as the key
* might be added to an endpoint to indicate its use by the sales department. </p>
*/
inline CreateEndpointRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>Tags associated with the endpoint being created. A tag is a key-value pair
* that adds metadata to the endpoint. For example, a tag with "Sales" as the key
* might be added to an endpoint to indicate its use by the sales department. </p>
*/
inline CreateEndpointRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>Tags associated with the endpoint being created. A tag is a key-value pair
* that adds metadata to the endpoint. For example, a tag with "Sales" as the key
* might be added to an endpoint to indicate its use by the sales department. </p>
*/
inline CreateEndpointRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_endpointName;
bool m_endpointNameHasBeenSet;
Aws::String m_modelArn;
bool m_modelArnHasBeenSet;
int m_desiredInferenceUnits;
bool m_desiredInferenceUnitsHasBeenSet;
Aws::String m_clientRequestToken;
bool m_clientRequestTokenHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API CreateEndpointResult
{
public:
CreateEndpointResult();
CreateEndpointResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateEndpointResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Number (ARN) of the endpoint being created.</p>
*/
inline const Aws::String& GetEndpointArn() const{ return m_endpointArn; }
/**
* <p>The Amazon Resource Number (ARN) of the endpoint being created.</p>
*/
inline void SetEndpointArn(const Aws::String& value) { m_endpointArn = value; }
/**
* <p>The Amazon Resource Number (ARN) of the endpoint being created.</p>
*/
inline void SetEndpointArn(Aws::String&& value) { m_endpointArn = std::move(value); }
/**
* <p>The Amazon Resource Number (ARN) of the endpoint being created.</p>
*/
inline void SetEndpointArn(const char* value) { m_endpointArn.assign(value); }
/**
* <p>The Amazon Resource Number (ARN) of the endpoint being created.</p>
*/
inline CreateEndpointResult& WithEndpointArn(const Aws::String& value) { SetEndpointArn(value); return *this;}
/**
* <p>The Amazon Resource Number (ARN) of the endpoint being created.</p>
*/
inline CreateEndpointResult& WithEndpointArn(Aws::String&& value) { SetEndpointArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Number (ARN) of the endpoint being created.</p>
*/
inline CreateEndpointResult& WithEndpointArn(const char* value) { SetEndpointArn(value); return *this;}
private:
Aws::String m_endpointArn;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,535 @@
/**
* 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 <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehend/model/EntityRecognizerInputDataConfig.h>
#include <aws/comprehend/model/LanguageCode.h>
#include <aws/comprehend/model/VpcConfig.h>
#include <aws/comprehend/model/Tag.h>
#include <utility>
#include <aws/core/utils/UUID.h>
namespace Aws
{
namespace Comprehend
{
namespace Model
{
/**
*/
class AWS_COMPREHEND_API CreateEntityRecognizerRequest : public ComprehendRequest
{
public:
CreateEntityRecognizerRequest();
// 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 "CreateEntityRecognizer"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name given to the newly created recognizer. Recognizer names can be a
* maximum of 256 characters. Alphanumeric characters, hyphens (-) and underscores
* (_) are allowed. The name must be unique in the account/region.</p>
*/
inline const Aws::String& GetRecognizerName() const{ return m_recognizerName; }
/**
* <p>The name given to the newly created recognizer. Recognizer names can be a
* maximum of 256 characters. Alphanumeric characters, hyphens (-) and underscores
* (_) are allowed. The name must be unique in the account/region.</p>
*/
inline bool RecognizerNameHasBeenSet() const { return m_recognizerNameHasBeenSet; }
/**
* <p>The name given to the newly created recognizer. Recognizer names can be a
* maximum of 256 characters. Alphanumeric characters, hyphens (-) and underscores
* (_) are allowed. The name must be unique in the account/region.</p>
*/
inline void SetRecognizerName(const Aws::String& value) { m_recognizerNameHasBeenSet = true; m_recognizerName = value; }
/**
* <p>The name given to the newly created recognizer. Recognizer names can be a
* maximum of 256 characters. Alphanumeric characters, hyphens (-) and underscores
* (_) are allowed. The name must be unique in the account/region.</p>
*/
inline void SetRecognizerName(Aws::String&& value) { m_recognizerNameHasBeenSet = true; m_recognizerName = std::move(value); }
/**
* <p>The name given to the newly created recognizer. Recognizer names can be a
* maximum of 256 characters. Alphanumeric characters, hyphens (-) and underscores
* (_) are allowed. The name must be unique in the account/region.</p>
*/
inline void SetRecognizerName(const char* value) { m_recognizerNameHasBeenSet = true; m_recognizerName.assign(value); }
/**
* <p>The name given to the newly created recognizer. Recognizer names can be a
* maximum of 256 characters. Alphanumeric characters, hyphens (-) and underscores
* (_) are allowed. The name must be unique in the account/region.</p>
*/
inline CreateEntityRecognizerRequest& WithRecognizerName(const Aws::String& value) { SetRecognizerName(value); return *this;}
/**
* <p>The name given to the newly created recognizer. Recognizer names can be a
* maximum of 256 characters. Alphanumeric characters, hyphens (-) and underscores
* (_) are allowed. The name must be unique in the account/region.</p>
*/
inline CreateEntityRecognizerRequest& WithRecognizerName(Aws::String&& value) { SetRecognizerName(std::move(value)); return *this;}
/**
* <p>The name given to the newly created recognizer. Recognizer names can be a
* maximum of 256 characters. Alphanumeric characters, hyphens (-) and underscores
* (_) are allowed. The name must be unique in the account/region.</p>
*/
inline CreateEntityRecognizerRequest& WithRecognizerName(const char* value) { SetRecognizerName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline const Aws::String& GetDataAccessRoleArn() const{ return m_dataAccessRoleArn; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline void SetDataAccessRoleArn(const Aws::String& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline void SetDataAccessRoleArn(Aws::String&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline void SetDataAccessRoleArn(const char* value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline CreateEntityRecognizerRequest& WithDataAccessRoleArn(const Aws::String& value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline CreateEntityRecognizerRequest& WithDataAccessRoleArn(Aws::String&& value) { SetDataAccessRoleArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline CreateEntityRecognizerRequest& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p>Tags to be associated with the entity recognizer being created. A tag is a
* key-value pair that adds as a metadata to a resource used by Amazon Comprehend.
* For example, a tag with "Sales" as the key might be added to a resource to
* indicate its use by the sales department. </p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>Tags to be associated with the entity recognizer being created. A tag is a
* key-value pair that adds as a metadata to a resource used by Amazon Comprehend.
* For example, a tag with "Sales" as the key might be added to a resource to
* indicate its use by the sales department. </p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>Tags to be associated with the entity recognizer being created. A tag is a
* key-value pair that adds as a metadata to a resource used by Amazon Comprehend.
* For example, a tag with "Sales" as the key might be added to a resource to
* indicate its use by the sales department. </p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>Tags to be associated with the entity recognizer being created. A tag is a
* key-value pair that adds as a metadata to a resource used by Amazon Comprehend.
* For example, a tag with "Sales" as the key might be added to a resource to
* indicate its use by the sales department. </p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>Tags to be associated with the entity recognizer being created. A tag is a
* key-value pair that adds as a metadata to a resource used by Amazon Comprehend.
* For example, a tag with "Sales" as the key might be added to a resource to
* indicate its use by the sales department. </p>
*/
inline CreateEntityRecognizerRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>Tags to be associated with the entity recognizer being created. A tag is a
* key-value pair that adds as a metadata to a resource used by Amazon Comprehend.
* For example, a tag with "Sales" as the key might be added to a resource to
* indicate its use by the sales department. </p>
*/
inline CreateEntityRecognizerRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>Tags to be associated with the entity recognizer being created. A tag is a
* key-value pair that adds as a metadata to a resource used by Amazon Comprehend.
* For example, a tag with "Sales" as the key might be added to a resource to
* indicate its use by the sales department. </p>
*/
inline CreateEntityRecognizerRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>Tags to be associated with the entity recognizer being created. A tag is a
* key-value pair that adds as a metadata to a resource used by Amazon Comprehend.
* For example, a tag with "Sales" as the key might be added to a resource to
* indicate its use by the sales department. </p>
*/
inline CreateEntityRecognizerRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
/**
* <p>Specifies the format and location of the input data. The S3 bucket containing
* the input data must be located in the same region as the entity recognizer being
* created. </p>
*/
inline const EntityRecognizerInputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
/**
* <p>Specifies the format and location of the input data. The S3 bucket containing
* the input data must be located in the same region as the entity recognizer being
* created. </p>
*/
inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
/**
* <p>Specifies the format and location of the input data. The S3 bucket containing
* the input data must be located in the same region as the entity recognizer being
* created. </p>
*/
inline void SetInputDataConfig(const EntityRecognizerInputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
/**
* <p>Specifies the format and location of the input data. The S3 bucket containing
* the input data must be located in the same region as the entity recognizer being
* created. </p>
*/
inline void SetInputDataConfig(EntityRecognizerInputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
/**
* <p>Specifies the format and location of the input data. The S3 bucket containing
* the input data must be located in the same region as the entity recognizer being
* created. </p>
*/
inline CreateEntityRecognizerRequest& WithInputDataConfig(const EntityRecognizerInputDataConfig& value) { SetInputDataConfig(value); return *this;}
/**
* <p>Specifies the format and location of the input data. The S3 bucket containing
* the input data must be located in the same region as the entity recognizer being
* created. </p>
*/
inline CreateEntityRecognizerRequest& WithInputDataConfig(EntityRecognizerInputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;}
/**
* <p> A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend generates one.</p>
*/
inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
/**
* <p> A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend generates one.</p>
*/
inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
/**
* <p> A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend generates one.</p>
*/
inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
/**
* <p> A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend generates one.</p>
*/
inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
/**
* <p> A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend generates one.</p>
*/
inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
/**
* <p> A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend generates one.</p>
*/
inline CreateEntityRecognizerRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
/**
* <p> A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend generates one.</p>
*/
inline CreateEntityRecognizerRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
/**
* <p> A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend generates one.</p>
*/
inline CreateEntityRecognizerRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
/**
* <p> You can specify any of the following languages supported by Amazon
* Comprehend: English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
* German ("de"), or Portuguese ("pt"). All documents must be in the same
* language.</p>
*/
inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
/**
* <p> You can specify any of the following languages supported by Amazon
* Comprehend: English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
* German ("de"), or Portuguese ("pt"). All documents must be in the same
* language.</p>
*/
inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
/**
* <p> You can specify any of the following languages supported by Amazon
* Comprehend: English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
* German ("de"), or Portuguese ("pt"). All documents must be in the same
* language.</p>
*/
inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
/**
* <p> You can specify any of the following languages supported by Amazon
* Comprehend: English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
* German ("de"), or Portuguese ("pt"). All documents must be in the same
* language.</p>
*/
inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
/**
* <p> You can specify any of the following languages supported by Amazon
* Comprehend: English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
* German ("de"), or Portuguese ("pt"). All documents must be in the same
* language.</p>
*/
inline CreateEntityRecognizerRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
/**
* <p> You can specify any of the following languages supported by Amazon
* Comprehend: English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
* German ("de"), or Portuguese ("pt"). All documents must be in the same
* language.</p>
*/
inline CreateEntityRecognizerRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline const Aws::String& GetVolumeKmsKeyId() const{ return m_volumeKmsKeyId; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline void SetVolumeKmsKeyId(const Aws::String& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = value; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline void SetVolumeKmsKeyId(Aws::String&& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = std::move(value); }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline void SetVolumeKmsKeyId(const char* value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId.assign(value); }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline CreateEntityRecognizerRequest& WithVolumeKmsKeyId(const Aws::String& value) { SetVolumeKmsKeyId(value); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline CreateEntityRecognizerRequest& WithVolumeKmsKeyId(Aws::String&& value) { SetVolumeKmsKeyId(std::move(value)); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline CreateEntityRecognizerRequest& WithVolumeKmsKeyId(const char* value) { SetVolumeKmsKeyId(value); return *this;}
/**
* <p>Configuration parameters for an optional private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom entity recognizer. For
* more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
/**
* <p>Configuration parameters for an optional private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom entity recognizer. For
* more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
/**
* <p>Configuration parameters for an optional private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom entity recognizer. For
* more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
/**
* <p>Configuration parameters for an optional private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom entity recognizer. For
* more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
/**
* <p>Configuration parameters for an optional private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom entity recognizer. For
* more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline CreateEntityRecognizerRequest& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
/**
* <p>Configuration parameters for an optional private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom entity recognizer. For
* more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline CreateEntityRecognizerRequest& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
private:
Aws::String m_recognizerName;
bool m_recognizerNameHasBeenSet;
Aws::String m_dataAccessRoleArn;
bool m_dataAccessRoleArnHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
EntityRecognizerInputDataConfig m_inputDataConfig;
bool m_inputDataConfigHasBeenSet;
Aws::String m_clientRequestToken;
bool m_clientRequestTokenHasBeenSet;
LanguageCode m_languageCode;
bool m_languageCodeHasBeenSet;
Aws::String m_volumeKmsKeyId;
bool m_volumeKmsKeyIdHasBeenSet;
VpcConfig m_vpcConfig;
bool m_vpcConfigHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API CreateEntityRecognizerResult
{
public:
CreateEntityRecognizerResult();
CreateEntityRecognizerResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateEntityRecognizerResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline const Aws::String& GetEntityRecognizerArn() const{ return m_entityRecognizerArn; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline void SetEntityRecognizerArn(const Aws::String& value) { m_entityRecognizerArn = value; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline void SetEntityRecognizerArn(Aws::String&& value) { m_entityRecognizerArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline void SetEntityRecognizerArn(const char* value) { m_entityRecognizerArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline CreateEntityRecognizerResult& WithEntityRecognizerArn(const Aws::String& value) { SetEntityRecognizerArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline CreateEntityRecognizerResult& WithEntityRecognizerArn(Aws::String&& value) { SetEntityRecognizerArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline CreateEntityRecognizerResult& WithEntityRecognizerArn(const char* value) { SetEntityRecognizerArn(value); return *this;}
private:
Aws::String m_entityRecognizerArn;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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 DeleteDocumentClassifierRequest : public ComprehendRequest
{
public:
DeleteDocumentClassifierRequest();
// 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 "DeleteDocumentClassifier"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. </p>
*/
inline const Aws::String& GetDocumentClassifierArn() const{ return m_documentClassifierArn; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. </p>
*/
inline bool DocumentClassifierArnHasBeenSet() const { return m_documentClassifierArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. </p>
*/
inline void SetDocumentClassifierArn(const Aws::String& value) { m_documentClassifierArnHasBeenSet = true; m_documentClassifierArn = value; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. </p>
*/
inline void SetDocumentClassifierArn(Aws::String&& value) { m_documentClassifierArnHasBeenSet = true; m_documentClassifierArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. </p>
*/
inline void SetDocumentClassifierArn(const char* value) { m_documentClassifierArnHasBeenSet = true; m_documentClassifierArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. </p>
*/
inline DeleteDocumentClassifierRequest& WithDocumentClassifierArn(const Aws::String& value) { SetDocumentClassifierArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. </p>
*/
inline DeleteDocumentClassifierRequest& WithDocumentClassifierArn(Aws::String&& value) { SetDocumentClassifierArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. </p>
*/
inline DeleteDocumentClassifierRequest& WithDocumentClassifierArn(const char* value) { SetDocumentClassifierArn(value); return *this;}
private:
Aws::String m_documentClassifierArn;
bool m_documentClassifierArnHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehend/Comprehend_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API DeleteDocumentClassifierResult
{
public:
DeleteDocumentClassifierResult();
DeleteDocumentClassifierResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteDocumentClassifierResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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 DeleteEndpointRequest : public ComprehendRequest
{
public:
DeleteEndpointRequest();
// 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 "DeleteEndpoint"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Number (ARN) of the endpoint being deleted.</p>
*/
inline const Aws::String& GetEndpointArn() const{ return m_endpointArn; }
/**
* <p>The Amazon Resource Number (ARN) of the endpoint being deleted.</p>
*/
inline bool EndpointArnHasBeenSet() const { return m_endpointArnHasBeenSet; }
/**
* <p>The Amazon Resource Number (ARN) of the endpoint being deleted.</p>
*/
inline void SetEndpointArn(const Aws::String& value) { m_endpointArnHasBeenSet = true; m_endpointArn = value; }
/**
* <p>The Amazon Resource Number (ARN) of the endpoint being deleted.</p>
*/
inline void SetEndpointArn(Aws::String&& value) { m_endpointArnHasBeenSet = true; m_endpointArn = std::move(value); }
/**
* <p>The Amazon Resource Number (ARN) of the endpoint being deleted.</p>
*/
inline void SetEndpointArn(const char* value) { m_endpointArnHasBeenSet = true; m_endpointArn.assign(value); }
/**
* <p>The Amazon Resource Number (ARN) of the endpoint being deleted.</p>
*/
inline DeleteEndpointRequest& WithEndpointArn(const Aws::String& value) { SetEndpointArn(value); return *this;}
/**
* <p>The Amazon Resource Number (ARN) of the endpoint being deleted.</p>
*/
inline DeleteEndpointRequest& WithEndpointArn(Aws::String&& value) { SetEndpointArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Number (ARN) of the endpoint being deleted.</p>
*/
inline DeleteEndpointRequest& WithEndpointArn(const char* value) { SetEndpointArn(value); return *this;}
private:
Aws::String m_endpointArn;
bool m_endpointArnHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehend/Comprehend_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API DeleteEndpointResult
{
public:
DeleteEndpointResult();
DeleteEndpointResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteEndpointResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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 DeleteEntityRecognizerRequest : public ComprehendRequest
{
public:
DeleteEntityRecognizerRequest();
// 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 "DeleteEntityRecognizer"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline const Aws::String& GetEntityRecognizerArn() const{ return m_entityRecognizerArn; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline bool EntityRecognizerArnHasBeenSet() const { return m_entityRecognizerArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline void SetEntityRecognizerArn(const Aws::String& value) { m_entityRecognizerArnHasBeenSet = true; m_entityRecognizerArn = value; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline void SetEntityRecognizerArn(Aws::String&& value) { m_entityRecognizerArnHasBeenSet = true; m_entityRecognizerArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline void SetEntityRecognizerArn(const char* value) { m_entityRecognizerArnHasBeenSet = true; m_entityRecognizerArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline DeleteEntityRecognizerRequest& WithEntityRecognizerArn(const Aws::String& value) { SetEntityRecognizerArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline DeleteEntityRecognizerRequest& WithEntityRecognizerArn(Aws::String&& value) { SetEntityRecognizerArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline DeleteEntityRecognizerRequest& WithEntityRecognizerArn(const char* value) { SetEntityRecognizerArn(value); return *this;}
private:
Aws::String m_entityRecognizerArn;
bool m_entityRecognizerArnHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehend/Comprehend_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API DeleteEntityRecognizerResult
{
public:
DeleteEntityRecognizerResult();
DeleteEntityRecognizerResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteEntityRecognizerResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,93 @@
/**
* 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 DescribeDocumentClassificationJobRequest : public ComprehendRequest
{
public:
DescribeDocumentClassificationJobRequest();
// 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 "DescribeDocumentClassificationJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline DescribeDocumentClassificationJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline DescribeDocumentClassificationJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline DescribeDocumentClassificationJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
bool m_jobIdHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* 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/model/DocumentClassificationJobProperties.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API DescribeDocumentClassificationJobResult
{
public:
DescribeDocumentClassificationJobResult();
DescribeDocumentClassificationJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeDocumentClassificationJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An object that describes the properties associated with the document
* classification job.</p>
*/
inline const DocumentClassificationJobProperties& GetDocumentClassificationJobProperties() const{ return m_documentClassificationJobProperties; }
/**
* <p>An object that describes the properties associated with the document
* classification job.</p>
*/
inline void SetDocumentClassificationJobProperties(const DocumentClassificationJobProperties& value) { m_documentClassificationJobProperties = value; }
/**
* <p>An object that describes the properties associated with the document
* classification job.</p>
*/
inline void SetDocumentClassificationJobProperties(DocumentClassificationJobProperties&& value) { m_documentClassificationJobProperties = std::move(value); }
/**
* <p>An object that describes the properties associated with the document
* classification job.</p>
*/
inline DescribeDocumentClassificationJobResult& WithDocumentClassificationJobProperties(const DocumentClassificationJobProperties& value) { SetDocumentClassificationJobProperties(value); return *this;}
/**
* <p>An object that describes the properties associated with the document
* classification job.</p>
*/
inline DescribeDocumentClassificationJobResult& WithDocumentClassificationJobProperties(DocumentClassificationJobProperties&& value) { SetDocumentClassificationJobProperties(std::move(value)); return *this;}
private:
DocumentClassificationJobProperties m_documentClassificationJobProperties;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,93 @@
/**
* 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 DescribeDocumentClassifierRequest : public ComprehendRequest
{
public:
DescribeDocumentClassifierRequest();
// 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 "DescribeDocumentClassifier"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. The
* operation returns this identifier in its response.</p>
*/
inline const Aws::String& GetDocumentClassifierArn() const{ return m_documentClassifierArn; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. The
* operation returns this identifier in its response.</p>
*/
inline bool DocumentClassifierArnHasBeenSet() const { return m_documentClassifierArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. The
* operation returns this identifier in its response.</p>
*/
inline void SetDocumentClassifierArn(const Aws::String& value) { m_documentClassifierArnHasBeenSet = true; m_documentClassifierArn = value; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. The
* operation returns this identifier in its response.</p>
*/
inline void SetDocumentClassifierArn(Aws::String&& value) { m_documentClassifierArnHasBeenSet = true; m_documentClassifierArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. The
* operation returns this identifier in its response.</p>
*/
inline void SetDocumentClassifierArn(const char* value) { m_documentClassifierArnHasBeenSet = true; m_documentClassifierArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. The
* operation returns this identifier in its response.</p>
*/
inline DescribeDocumentClassifierRequest& WithDocumentClassifierArn(const Aws::String& value) { SetDocumentClassifierArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. The
* operation returns this identifier in its response.</p>
*/
inline DescribeDocumentClassifierRequest& WithDocumentClassifierArn(Aws::String&& value) { SetDocumentClassifierArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. The
* operation returns this identifier in its response.</p>
*/
inline DescribeDocumentClassifierRequest& WithDocumentClassifierArn(const char* value) { SetDocumentClassifierArn(value); return *this;}
private:
Aws::String m_documentClassifierArn;
bool m_documentClassifierArnHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* 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/model/DocumentClassifierProperties.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API DescribeDocumentClassifierResult
{
public:
DescribeDocumentClassifierResult();
DescribeDocumentClassifierResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeDocumentClassifierResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An object that contains the properties associated with a document
* classifier.</p>
*/
inline const DocumentClassifierProperties& GetDocumentClassifierProperties() const{ return m_documentClassifierProperties; }
/**
* <p>An object that contains the properties associated with a document
* classifier.</p>
*/
inline void SetDocumentClassifierProperties(const DocumentClassifierProperties& value) { m_documentClassifierProperties = value; }
/**
* <p>An object that contains the properties associated with a document
* classifier.</p>
*/
inline void SetDocumentClassifierProperties(DocumentClassifierProperties&& value) { m_documentClassifierProperties = std::move(value); }
/**
* <p>An object that contains the properties associated with a document
* classifier.</p>
*/
inline DescribeDocumentClassifierResult& WithDocumentClassifierProperties(const DocumentClassifierProperties& value) { SetDocumentClassifierProperties(value); return *this;}
/**
* <p>An object that contains the properties associated with a document
* classifier.</p>
*/
inline DescribeDocumentClassifierResult& WithDocumentClassifierProperties(DocumentClassifierProperties&& value) { SetDocumentClassifierProperties(std::move(value)); return *this;}
private:
DocumentClassifierProperties m_documentClassifierProperties;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,93 @@
/**
* 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 DescribeDominantLanguageDetectionJobRequest : public ComprehendRequest
{
public:
DescribeDominantLanguageDetectionJobRequest();
// 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 "DescribeDominantLanguageDetectionJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline DescribeDominantLanguageDetectionJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline DescribeDominantLanguageDetectionJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline DescribeDominantLanguageDetectionJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
bool m_jobIdHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* 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/model/DominantLanguageDetectionJobProperties.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API DescribeDominantLanguageDetectionJobResult
{
public:
DescribeDominantLanguageDetectionJobResult();
DescribeDominantLanguageDetectionJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeDominantLanguageDetectionJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An object that contains the properties associated with a dominant language
* detection job.</p>
*/
inline const DominantLanguageDetectionJobProperties& GetDominantLanguageDetectionJobProperties() const{ return m_dominantLanguageDetectionJobProperties; }
/**
* <p>An object that contains the properties associated with a dominant language
* detection job.</p>
*/
inline void SetDominantLanguageDetectionJobProperties(const DominantLanguageDetectionJobProperties& value) { m_dominantLanguageDetectionJobProperties = value; }
/**
* <p>An object that contains the properties associated with a dominant language
* detection job.</p>
*/
inline void SetDominantLanguageDetectionJobProperties(DominantLanguageDetectionJobProperties&& value) { m_dominantLanguageDetectionJobProperties = std::move(value); }
/**
* <p>An object that contains the properties associated with a dominant language
* detection job.</p>
*/
inline DescribeDominantLanguageDetectionJobResult& WithDominantLanguageDetectionJobProperties(const DominantLanguageDetectionJobProperties& value) { SetDominantLanguageDetectionJobProperties(value); return *this;}
/**
* <p>An object that contains the properties associated with a dominant language
* detection job.</p>
*/
inline DescribeDominantLanguageDetectionJobResult& WithDominantLanguageDetectionJobProperties(DominantLanguageDetectionJobProperties&& value) { SetDominantLanguageDetectionJobProperties(std::move(value)); return *this;}
private:
DominantLanguageDetectionJobProperties m_dominantLanguageDetectionJobProperties;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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 DescribeEndpointRequest : public ComprehendRequest
{
public:
DescribeEndpointRequest();
// 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 "DescribeEndpoint"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Number (ARN) of the endpoint being described.</p>
*/
inline const Aws::String& GetEndpointArn() const{ return m_endpointArn; }
/**
* <p>The Amazon Resource Number (ARN) of the endpoint being described.</p>
*/
inline bool EndpointArnHasBeenSet() const { return m_endpointArnHasBeenSet; }
/**
* <p>The Amazon Resource Number (ARN) of the endpoint being described.</p>
*/
inline void SetEndpointArn(const Aws::String& value) { m_endpointArnHasBeenSet = true; m_endpointArn = value; }
/**
* <p>The Amazon Resource Number (ARN) of the endpoint being described.</p>
*/
inline void SetEndpointArn(Aws::String&& value) { m_endpointArnHasBeenSet = true; m_endpointArn = std::move(value); }
/**
* <p>The Amazon Resource Number (ARN) of the endpoint being described.</p>
*/
inline void SetEndpointArn(const char* value) { m_endpointArnHasBeenSet = true; m_endpointArn.assign(value); }
/**
* <p>The Amazon Resource Number (ARN) of the endpoint being described.</p>
*/
inline DescribeEndpointRequest& WithEndpointArn(const Aws::String& value) { SetEndpointArn(value); return *this;}
/**
* <p>The Amazon Resource Number (ARN) of the endpoint being described.</p>
*/
inline DescribeEndpointRequest& WithEndpointArn(Aws::String&& value) { SetEndpointArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Number (ARN) of the endpoint being described.</p>
*/
inline DescribeEndpointRequest& WithEndpointArn(const char* value) { SetEndpointArn(value); return *this;}
private:
Aws::String m_endpointArn;
bool m_endpointArnHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* 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/model/EndpointProperties.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API DescribeEndpointResult
{
public:
DescribeEndpointResult();
DescribeEndpointResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeEndpointResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Describes information associated with the specific endpoint.</p>
*/
inline const EndpointProperties& GetEndpointProperties() const{ return m_endpointProperties; }
/**
* <p>Describes information associated with the specific endpoint.</p>
*/
inline void SetEndpointProperties(const EndpointProperties& value) { m_endpointProperties = value; }
/**
* <p>Describes information associated with the specific endpoint.</p>
*/
inline void SetEndpointProperties(EndpointProperties&& value) { m_endpointProperties = std::move(value); }
/**
* <p>Describes information associated with the specific endpoint.</p>
*/
inline DescribeEndpointResult& WithEndpointProperties(const EndpointProperties& value) { SetEndpointProperties(value); return *this;}
/**
* <p>Describes information associated with the specific endpoint.</p>
*/
inline DescribeEndpointResult& WithEndpointProperties(EndpointProperties&& value) { SetEndpointProperties(std::move(value)); return *this;}
private:
EndpointProperties m_endpointProperties;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,93 @@
/**
* 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 DescribeEntitiesDetectionJobRequest : public ComprehendRequest
{
public:
DescribeEntitiesDetectionJobRequest();
// 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 "DescribeEntitiesDetectionJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline DescribeEntitiesDetectionJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline DescribeEntitiesDetectionJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline DescribeEntitiesDetectionJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
bool m_jobIdHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* 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/model/EntitiesDetectionJobProperties.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API DescribeEntitiesDetectionJobResult
{
public:
DescribeEntitiesDetectionJobResult();
DescribeEntitiesDetectionJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeEntitiesDetectionJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An object that contains the properties associated with an entities detection
* job.</p>
*/
inline const EntitiesDetectionJobProperties& GetEntitiesDetectionJobProperties() const{ return m_entitiesDetectionJobProperties; }
/**
* <p>An object that contains the properties associated with an entities detection
* job.</p>
*/
inline void SetEntitiesDetectionJobProperties(const EntitiesDetectionJobProperties& value) { m_entitiesDetectionJobProperties = value; }
/**
* <p>An object that contains the properties associated with an entities detection
* job.</p>
*/
inline void SetEntitiesDetectionJobProperties(EntitiesDetectionJobProperties&& value) { m_entitiesDetectionJobProperties = std::move(value); }
/**
* <p>An object that contains the properties associated with an entities detection
* job.</p>
*/
inline DescribeEntitiesDetectionJobResult& WithEntitiesDetectionJobProperties(const EntitiesDetectionJobProperties& value) { SetEntitiesDetectionJobProperties(value); return *this;}
/**
* <p>An object that contains the properties associated with an entities detection
* job.</p>
*/
inline DescribeEntitiesDetectionJobResult& WithEntitiesDetectionJobProperties(EntitiesDetectionJobProperties&& value) { SetEntitiesDetectionJobProperties(std::move(value)); return *this;}
private:
EntitiesDetectionJobProperties m_entitiesDetectionJobProperties;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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 DescribeEntityRecognizerRequest : public ComprehendRequest
{
public:
DescribeEntityRecognizerRequest();
// 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 "DescribeEntityRecognizer"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline const Aws::String& GetEntityRecognizerArn() const{ return m_entityRecognizerArn; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline bool EntityRecognizerArnHasBeenSet() const { return m_entityRecognizerArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline void SetEntityRecognizerArn(const Aws::String& value) { m_entityRecognizerArnHasBeenSet = true; m_entityRecognizerArn = value; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline void SetEntityRecognizerArn(Aws::String&& value) { m_entityRecognizerArnHasBeenSet = true; m_entityRecognizerArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline void SetEntityRecognizerArn(const char* value) { m_entityRecognizerArnHasBeenSet = true; m_entityRecognizerArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline DescribeEntityRecognizerRequest& WithEntityRecognizerArn(const Aws::String& value) { SetEntityRecognizerArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline DescribeEntityRecognizerRequest& WithEntityRecognizerArn(Aws::String&& value) { SetEntityRecognizerArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline DescribeEntityRecognizerRequest& WithEntityRecognizerArn(const char* value) { SetEntityRecognizerArn(value); return *this;}
private:
Aws::String m_entityRecognizerArn;
bool m_entityRecognizerArnHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* 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/model/EntityRecognizerProperties.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API DescribeEntityRecognizerResult
{
public:
DescribeEntityRecognizerResult();
DescribeEntityRecognizerResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeEntityRecognizerResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Describes information associated with an entity recognizer.</p>
*/
inline const EntityRecognizerProperties& GetEntityRecognizerProperties() const{ return m_entityRecognizerProperties; }
/**
* <p>Describes information associated with an entity recognizer.</p>
*/
inline void SetEntityRecognizerProperties(const EntityRecognizerProperties& value) { m_entityRecognizerProperties = value; }
/**
* <p>Describes information associated with an entity recognizer.</p>
*/
inline void SetEntityRecognizerProperties(EntityRecognizerProperties&& value) { m_entityRecognizerProperties = std::move(value); }
/**
* <p>Describes information associated with an entity recognizer.</p>
*/
inline DescribeEntityRecognizerResult& WithEntityRecognizerProperties(const EntityRecognizerProperties& value) { SetEntityRecognizerProperties(value); return *this;}
/**
* <p>Describes information associated with an entity recognizer.</p>
*/
inline DescribeEntityRecognizerResult& WithEntityRecognizerProperties(EntityRecognizerProperties&& value) { SetEntityRecognizerProperties(std::move(value)); return *this;}
private:
EntityRecognizerProperties m_entityRecognizerProperties;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,93 @@
/**
* 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 DescribeKeyPhrasesDetectionJobRequest : public ComprehendRequest
{
public:
DescribeKeyPhrasesDetectionJobRequest();
// 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 "DescribeKeyPhrasesDetectionJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline DescribeKeyPhrasesDetectionJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline DescribeKeyPhrasesDetectionJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline DescribeKeyPhrasesDetectionJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
bool m_jobIdHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* 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/model/KeyPhrasesDetectionJobProperties.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API DescribeKeyPhrasesDetectionJobResult
{
public:
DescribeKeyPhrasesDetectionJobResult();
DescribeKeyPhrasesDetectionJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeKeyPhrasesDetectionJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An object that contains the properties associated with a key phrases
* detection job. </p>
*/
inline const KeyPhrasesDetectionJobProperties& GetKeyPhrasesDetectionJobProperties() const{ return m_keyPhrasesDetectionJobProperties; }
/**
* <p>An object that contains the properties associated with a key phrases
* detection job. </p>
*/
inline void SetKeyPhrasesDetectionJobProperties(const KeyPhrasesDetectionJobProperties& value) { m_keyPhrasesDetectionJobProperties = value; }
/**
* <p>An object that contains the properties associated with a key phrases
* detection job. </p>
*/
inline void SetKeyPhrasesDetectionJobProperties(KeyPhrasesDetectionJobProperties&& value) { m_keyPhrasesDetectionJobProperties = std::move(value); }
/**
* <p>An object that contains the properties associated with a key phrases
* detection job. </p>
*/
inline DescribeKeyPhrasesDetectionJobResult& WithKeyPhrasesDetectionJobProperties(const KeyPhrasesDetectionJobProperties& value) { SetKeyPhrasesDetectionJobProperties(value); return *this;}
/**
* <p>An object that contains the properties associated with a key phrases
* detection job. </p>
*/
inline DescribeKeyPhrasesDetectionJobResult& WithKeyPhrasesDetectionJobProperties(KeyPhrasesDetectionJobProperties&& value) { SetKeyPhrasesDetectionJobProperties(std::move(value)); return *this;}
private:
KeyPhrasesDetectionJobProperties m_keyPhrasesDetectionJobProperties;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,93 @@
/**
* 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 DescribeSentimentDetectionJobRequest : public ComprehendRequest
{
public:
DescribeSentimentDetectionJobRequest();
// 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 "DescribeSentimentDetectionJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline DescribeSentimentDetectionJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline DescribeSentimentDetectionJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier that Amazon Comprehend generated for the job. The operation
* returns this identifier in its response.</p>
*/
inline DescribeSentimentDetectionJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
bool m_jobIdHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* 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/model/SentimentDetectionJobProperties.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API DescribeSentimentDetectionJobResult
{
public:
DescribeSentimentDetectionJobResult();
DescribeSentimentDetectionJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeSentimentDetectionJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An object that contains the properties associated with a sentiment detection
* job.</p>
*/
inline const SentimentDetectionJobProperties& GetSentimentDetectionJobProperties() const{ return m_sentimentDetectionJobProperties; }
/**
* <p>An object that contains the properties associated with a sentiment detection
* job.</p>
*/
inline void SetSentimentDetectionJobProperties(const SentimentDetectionJobProperties& value) { m_sentimentDetectionJobProperties = value; }
/**
* <p>An object that contains the properties associated with a sentiment detection
* job.</p>
*/
inline void SetSentimentDetectionJobProperties(SentimentDetectionJobProperties&& value) { m_sentimentDetectionJobProperties = std::move(value); }
/**
* <p>An object that contains the properties associated with a sentiment detection
* job.</p>
*/
inline DescribeSentimentDetectionJobResult& WithSentimentDetectionJobProperties(const SentimentDetectionJobProperties& value) { SetSentimentDetectionJobProperties(value); return *this;}
/**
* <p>An object that contains the properties associated with a sentiment detection
* job.</p>
*/
inline DescribeSentimentDetectionJobResult& WithSentimentDetectionJobProperties(SentimentDetectionJobProperties&& value) { SetSentimentDetectionJobProperties(std::move(value)); return *this;}
private:
SentimentDetectionJobProperties m_sentimentDetectionJobProperties;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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 DescribeTopicsDetectionJobRequest : public ComprehendRequest
{
public:
DescribeTopicsDetectionJobRequest();
// 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 "DescribeTopicsDetectionJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier assigned by the user to the detection job.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier assigned by the user to the detection job.</p>
*/
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
/**
* <p>The identifier assigned by the user to the detection job.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
/**
* <p>The identifier assigned by the user to the detection job.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
/**
* <p>The identifier assigned by the user to the detection job.</p>
*/
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
/**
* <p>The identifier assigned by the user to the detection job.</p>
*/
inline DescribeTopicsDetectionJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier assigned by the user to the detection job.</p>
*/
inline DescribeTopicsDetectionJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier assigned by the user to the detection job.</p>
*/
inline DescribeTopicsDetectionJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
bool m_jobIdHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* 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/model/TopicsDetectionJobProperties.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API DescribeTopicsDetectionJobResult
{
public:
DescribeTopicsDetectionJobResult();
DescribeTopicsDetectionJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeTopicsDetectionJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The list of properties for the requested job.</p>
*/
inline const TopicsDetectionJobProperties& GetTopicsDetectionJobProperties() const{ return m_topicsDetectionJobProperties; }
/**
* <p>The list of properties for the requested job.</p>
*/
inline void SetTopicsDetectionJobProperties(const TopicsDetectionJobProperties& value) { m_topicsDetectionJobProperties = value; }
/**
* <p>The list of properties for the requested job.</p>
*/
inline void SetTopicsDetectionJobProperties(TopicsDetectionJobProperties&& value) { m_topicsDetectionJobProperties = std::move(value); }
/**
* <p>The list of properties for the requested job.</p>
*/
inline DescribeTopicsDetectionJobResult& WithTopicsDetectionJobProperties(const TopicsDetectionJobProperties& value) { SetTopicsDetectionJobProperties(value); return *this;}
/**
* <p>The list of properties for the requested job.</p>
*/
inline DescribeTopicsDetectionJobResult& WithTopicsDetectionJobProperties(TopicsDetectionJobProperties&& value) { SetTopicsDetectionJobProperties(std::move(value)); return *this;}
private:
TopicsDetectionJobProperties m_topicsDetectionJobProperties;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,93 @@
/**
* 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 DetectDominantLanguageRequest : public ComprehendRequest
{
public:
DetectDominantLanguageRequest();
// 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 "DetectDominantLanguage"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A UTF-8 text string. Each string should contain at least 20 characters and
* must contain fewer that 5,000 bytes of UTF-8 encoded characters.</p>
*/
inline const Aws::String& GetText() const{ return m_text; }
/**
* <p>A UTF-8 text string. Each string should contain at least 20 characters and
* must contain fewer that 5,000 bytes of UTF-8 encoded characters.</p>
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
* <p>A UTF-8 text string. Each string should contain at least 20 characters and
* must contain fewer that 5,000 bytes of UTF-8 encoded characters.</p>
*/
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
/**
* <p>A UTF-8 text string. Each string should contain at least 20 characters and
* must contain fewer that 5,000 bytes of UTF-8 encoded characters.</p>
*/
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
* <p>A UTF-8 text string. Each string should contain at least 20 characters and
* must contain fewer that 5,000 bytes of UTF-8 encoded characters.</p>
*/
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
/**
* <p>A UTF-8 text string. Each string should contain at least 20 characters and
* must contain fewer that 5,000 bytes of UTF-8 encoded characters.</p>
*/
inline DetectDominantLanguageRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
/**
* <p>A UTF-8 text string. Each string should contain at least 20 characters and
* must contain fewer that 5,000 bytes of UTF-8 encoded characters.</p>
*/
inline DetectDominantLanguageRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
/**
* <p>A UTF-8 text string. Each string should contain at least 20 characters and
* must contain fewer that 5,000 bytes of UTF-8 encoded characters.</p>
*/
inline DetectDominantLanguageRequest& WithText(const char* value) { SetText(value); return *this;}
private:
Aws::String m_text;
bool m_textHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,113 @@
/**
* 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/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehend/model/DominantLanguage.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API DetectDominantLanguageResult
{
public:
DetectDominantLanguageResult();
DetectDominantLanguageResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DetectDominantLanguageResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The languages that Amazon Comprehend detected in the input text. For each
* language, the response returns the RFC 5646 language code and the level of
* confidence that Amazon Comprehend has in the accuracy of its inference. For more
* information about RFC 5646, see <a
* href="https://tools.ietf.org/html/rfc5646">Tags for Identifying Languages</a> on
* the <i>IETF Tools</i> web site.</p>
*/
inline const Aws::Vector<DominantLanguage>& GetLanguages() const{ return m_languages; }
/**
* <p>The languages that Amazon Comprehend detected in the input text. For each
* language, the response returns the RFC 5646 language code and the level of
* confidence that Amazon Comprehend has in the accuracy of its inference. For more
* information about RFC 5646, see <a
* href="https://tools.ietf.org/html/rfc5646">Tags for Identifying Languages</a> on
* the <i>IETF Tools</i> web site.</p>
*/
inline void SetLanguages(const Aws::Vector<DominantLanguage>& value) { m_languages = value; }
/**
* <p>The languages that Amazon Comprehend detected in the input text. For each
* language, the response returns the RFC 5646 language code and the level of
* confidence that Amazon Comprehend has in the accuracy of its inference. For more
* information about RFC 5646, see <a
* href="https://tools.ietf.org/html/rfc5646">Tags for Identifying Languages</a> on
* the <i>IETF Tools</i> web site.</p>
*/
inline void SetLanguages(Aws::Vector<DominantLanguage>&& value) { m_languages = std::move(value); }
/**
* <p>The languages that Amazon Comprehend detected in the input text. For each
* language, the response returns the RFC 5646 language code and the level of
* confidence that Amazon Comprehend has in the accuracy of its inference. For more
* information about RFC 5646, see <a
* href="https://tools.ietf.org/html/rfc5646">Tags for Identifying Languages</a> on
* the <i>IETF Tools</i> web site.</p>
*/
inline DetectDominantLanguageResult& WithLanguages(const Aws::Vector<DominantLanguage>& value) { SetLanguages(value); return *this;}
/**
* <p>The languages that Amazon Comprehend detected in the input text. For each
* language, the response returns the RFC 5646 language code and the level of
* confidence that Amazon Comprehend has in the accuracy of its inference. For more
* information about RFC 5646, see <a
* href="https://tools.ietf.org/html/rfc5646">Tags for Identifying Languages</a> on
* the <i>IETF Tools</i> web site.</p>
*/
inline DetectDominantLanguageResult& WithLanguages(Aws::Vector<DominantLanguage>&& value) { SetLanguages(std::move(value)); return *this;}
/**
* <p>The languages that Amazon Comprehend detected in the input text. For each
* language, the response returns the RFC 5646 language code and the level of
* confidence that Amazon Comprehend has in the accuracy of its inference. For more
* information about RFC 5646, see <a
* href="https://tools.ietf.org/html/rfc5646">Tags for Identifying Languages</a> on
* the <i>IETF Tools</i> web site.</p>
*/
inline DetectDominantLanguageResult& AddLanguages(const DominantLanguage& value) { m_languages.push_back(value); return *this; }
/**
* <p>The languages that Amazon Comprehend detected in the input text. For each
* language, the response returns the RFC 5646 language code and the level of
* confidence that Amazon Comprehend has in the accuracy of its inference. For more
* information about RFC 5646, see <a
* href="https://tools.ietf.org/html/rfc5646">Tags for Identifying Languages</a> on
* the <i>IETF Tools</i> web site.</p>
*/
inline DetectDominantLanguageResult& AddLanguages(DominantLanguage&& value) { m_languages.push_back(std::move(value)); return *this; }
private:
Aws::Vector<DominantLanguage> m_languages;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,236 @@
/**
* 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 <aws/comprehend/model/LanguageCode.h>
#include <utility>
namespace Aws
{
namespace Comprehend
{
namespace Model
{
/**
*/
class AWS_COMPREHEND_API DetectEntitiesRequest : public ComprehendRequest
{
public:
DetectEntitiesRequest();
// 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 "DetectEntities"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline const Aws::String& GetText() const{ return m_text; }
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline DetectEntitiesRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline DetectEntitiesRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline DetectEntitiesRequest& WithText(const char* value) { SetText(value); return *this;}
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p> <p>If your request includes the endpoint for a custom entity
* recognition model, Amazon Comprehend uses the language of your custom model, and
* it ignores any language code that you specify here.</p>
*/
inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p> <p>If your request includes the endpoint for a custom entity
* recognition model, Amazon Comprehend uses the language of your custom model, and
* it ignores any language code that you specify here.</p>
*/
inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p> <p>If your request includes the endpoint for a custom entity
* recognition model, Amazon Comprehend uses the language of your custom model, and
* it ignores any language code that you specify here.</p>
*/
inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p> <p>If your request includes the endpoint for a custom entity
* recognition model, Amazon Comprehend uses the language of your custom model, and
* it ignores any language code that you specify here.</p>
*/
inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p> <p>If your request includes the endpoint for a custom entity
* recognition model, Amazon Comprehend uses the language of your custom model, and
* it ignores any language code that you specify here.</p>
*/
inline DetectEntitiesRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p> <p>If your request includes the endpoint for a custom entity
* recognition model, Amazon Comprehend uses the language of your custom model, and
* it ignores any language code that you specify here.</p>
*/
inline DetectEntitiesRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name of an endpoint that is associated with a custom
* entity recognition model. Provide an endpoint if you want to detect entities by
* using your own custom model instead of the default model that is used by Amazon
* Comprehend.</p> <p>If you specify an endpoint, Amazon Comprehend uses the
* language of your custom model, and it ignores any language code that you provide
* in your request.</p>
*/
inline const Aws::String& GetEndpointArn() const{ return m_endpointArn; }
/**
* <p>The Amazon Resource Name of an endpoint that is associated with a custom
* entity recognition model. Provide an endpoint if you want to detect entities by
* using your own custom model instead of the default model that is used by Amazon
* Comprehend.</p> <p>If you specify an endpoint, Amazon Comprehend uses the
* language of your custom model, and it ignores any language code that you provide
* in your request.</p>
*/
inline bool EndpointArnHasBeenSet() const { return m_endpointArnHasBeenSet; }
/**
* <p>The Amazon Resource Name of an endpoint that is associated with a custom
* entity recognition model. Provide an endpoint if you want to detect entities by
* using your own custom model instead of the default model that is used by Amazon
* Comprehend.</p> <p>If you specify an endpoint, Amazon Comprehend uses the
* language of your custom model, and it ignores any language code that you provide
* in your request.</p>
*/
inline void SetEndpointArn(const Aws::String& value) { m_endpointArnHasBeenSet = true; m_endpointArn = value; }
/**
* <p>The Amazon Resource Name of an endpoint that is associated with a custom
* entity recognition model. Provide an endpoint if you want to detect entities by
* using your own custom model instead of the default model that is used by Amazon
* Comprehend.</p> <p>If you specify an endpoint, Amazon Comprehend uses the
* language of your custom model, and it ignores any language code that you provide
* in your request.</p>
*/
inline void SetEndpointArn(Aws::String&& value) { m_endpointArnHasBeenSet = true; m_endpointArn = std::move(value); }
/**
* <p>The Amazon Resource Name of an endpoint that is associated with a custom
* entity recognition model. Provide an endpoint if you want to detect entities by
* using your own custom model instead of the default model that is used by Amazon
* Comprehend.</p> <p>If you specify an endpoint, Amazon Comprehend uses the
* language of your custom model, and it ignores any language code that you provide
* in your request.</p>
*/
inline void SetEndpointArn(const char* value) { m_endpointArnHasBeenSet = true; m_endpointArn.assign(value); }
/**
* <p>The Amazon Resource Name of an endpoint that is associated with a custom
* entity recognition model. Provide an endpoint if you want to detect entities by
* using your own custom model instead of the default model that is used by Amazon
* Comprehend.</p> <p>If you specify an endpoint, Amazon Comprehend uses the
* language of your custom model, and it ignores any language code that you provide
* in your request.</p>
*/
inline DetectEntitiesRequest& WithEndpointArn(const Aws::String& value) { SetEndpointArn(value); return *this;}
/**
* <p>The Amazon Resource Name of an endpoint that is associated with a custom
* entity recognition model. Provide an endpoint if you want to detect entities by
* using your own custom model instead of the default model that is used by Amazon
* Comprehend.</p> <p>If you specify an endpoint, Amazon Comprehend uses the
* language of your custom model, and it ignores any language code that you provide
* in your request.</p>
*/
inline DetectEntitiesRequest& WithEndpointArn(Aws::String&& value) { SetEndpointArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name of an endpoint that is associated with a custom
* entity recognition model. Provide an endpoint if you want to detect entities by
* using your own custom model instead of the default model that is used by Amazon
* Comprehend.</p> <p>If you specify an endpoint, Amazon Comprehend uses the
* language of your custom model, and it ignores any language code that you provide
* in your request.</p>
*/
inline DetectEntitiesRequest& WithEndpointArn(const char* value) { SetEndpointArn(value); return *this;}
private:
Aws::String m_text;
bool m_textHasBeenSet;
LanguageCode m_languageCode;
bool m_languageCodeHasBeenSet;
Aws::String m_endpointArn;
bool m_endpointArnHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,120 @@
/**
* 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/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehend/model/Entity.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API DetectEntitiesResult
{
public:
DetectEntitiesResult();
DetectEntitiesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DetectEntitiesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A collection of entities identified in the input text. For each entity, the
* response provides the entity text, entity type, where the entity text begins and
* ends, and the level of confidence that Amazon Comprehend has in the detection.
* </p> <p>If your request uses a custom entity recognition model, Amazon
* Comprehend detects the entities that the model is trained to recognize.
* Otherwise, it detects the default entity types. For a list of default entity
* types, see <a>how-entities</a>.</p>
*/
inline const Aws::Vector<Entity>& GetEntities() const{ return m_entities; }
/**
* <p>A collection of entities identified in the input text. For each entity, the
* response provides the entity text, entity type, where the entity text begins and
* ends, and the level of confidence that Amazon Comprehend has in the detection.
* </p> <p>If your request uses a custom entity recognition model, Amazon
* Comprehend detects the entities that the model is trained to recognize.
* Otherwise, it detects the default entity types. For a list of default entity
* types, see <a>how-entities</a>.</p>
*/
inline void SetEntities(const Aws::Vector<Entity>& value) { m_entities = value; }
/**
* <p>A collection of entities identified in the input text. For each entity, the
* response provides the entity text, entity type, where the entity text begins and
* ends, and the level of confidence that Amazon Comprehend has in the detection.
* </p> <p>If your request uses a custom entity recognition model, Amazon
* Comprehend detects the entities that the model is trained to recognize.
* Otherwise, it detects the default entity types. For a list of default entity
* types, see <a>how-entities</a>.</p>
*/
inline void SetEntities(Aws::Vector<Entity>&& value) { m_entities = std::move(value); }
/**
* <p>A collection of entities identified in the input text. For each entity, the
* response provides the entity text, entity type, where the entity text begins and
* ends, and the level of confidence that Amazon Comprehend has in the detection.
* </p> <p>If your request uses a custom entity recognition model, Amazon
* Comprehend detects the entities that the model is trained to recognize.
* Otherwise, it detects the default entity types. For a list of default entity
* types, see <a>how-entities</a>.</p>
*/
inline DetectEntitiesResult& WithEntities(const Aws::Vector<Entity>& value) { SetEntities(value); return *this;}
/**
* <p>A collection of entities identified in the input text. For each entity, the
* response provides the entity text, entity type, where the entity text begins and
* ends, and the level of confidence that Amazon Comprehend has in the detection.
* </p> <p>If your request uses a custom entity recognition model, Amazon
* Comprehend detects the entities that the model is trained to recognize.
* Otherwise, it detects the default entity types. For a list of default entity
* types, see <a>how-entities</a>.</p>
*/
inline DetectEntitiesResult& WithEntities(Aws::Vector<Entity>&& value) { SetEntities(std::move(value)); return *this;}
/**
* <p>A collection of entities identified in the input text. For each entity, the
* response provides the entity text, entity type, where the entity text begins and
* ends, and the level of confidence that Amazon Comprehend has in the detection.
* </p> <p>If your request uses a custom entity recognition model, Amazon
* Comprehend detects the entities that the model is trained to recognize.
* Otherwise, it detects the default entity types. For a list of default entity
* types, see <a>how-entities</a>.</p>
*/
inline DetectEntitiesResult& AddEntities(const Entity& value) { m_entities.push_back(value); return *this; }
/**
* <p>A collection of entities identified in the input text. For each entity, the
* response provides the entity text, entity type, where the entity text begins and
* ends, and the level of confidence that Amazon Comprehend has in the detection.
* </p> <p>If your request uses a custom entity recognition model, Amazon
* Comprehend detects the entities that the model is trained to recognize.
* Otherwise, it detects the default entity types. For a list of default entity
* types, see <a>how-entities</a>.</p>
*/
inline DetectEntitiesResult& AddEntities(Entity&& value) { m_entities.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Entity> m_entities;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,140 @@
/**
* 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 <aws/comprehend/model/LanguageCode.h>
#include <utility>
namespace Aws
{
namespace Comprehend
{
namespace Model
{
/**
*/
class AWS_COMPREHEND_API DetectKeyPhrasesRequest : public ComprehendRequest
{
public:
DetectKeyPhrasesRequest();
// 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 "DetectKeyPhrases"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline const Aws::String& GetText() const{ return m_text; }
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline DetectKeyPhrasesRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline DetectKeyPhrasesRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline DetectKeyPhrasesRequest& WithText(const char* value) { SetText(value); return *this;}
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline DetectKeyPhrasesRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline DetectKeyPhrasesRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
private:
Aws::String m_text;
bool m_textHasBeenSet;
LanguageCode m_languageCode;
bool m_languageCodeHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,99 @@
/**
* 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/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehend/model/KeyPhrase.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API DetectKeyPhrasesResult
{
public:
DetectKeyPhrasesResult();
DetectKeyPhrasesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DetectKeyPhrasesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A collection of key phrases that Amazon Comprehend identified in the input
* text. For each key phrase, the response provides the text of the key phrase,
* where the key phrase begins and ends, and the level of confidence that Amazon
* Comprehend has in the accuracy of the detection. </p>
*/
inline const Aws::Vector<KeyPhrase>& GetKeyPhrases() const{ return m_keyPhrases; }
/**
* <p>A collection of key phrases that Amazon Comprehend identified in the input
* text. For each key phrase, the response provides the text of the key phrase,
* where the key phrase begins and ends, and the level of confidence that Amazon
* Comprehend has in the accuracy of the detection. </p>
*/
inline void SetKeyPhrases(const Aws::Vector<KeyPhrase>& value) { m_keyPhrases = value; }
/**
* <p>A collection of key phrases that Amazon Comprehend identified in the input
* text. For each key phrase, the response provides the text of the key phrase,
* where the key phrase begins and ends, and the level of confidence that Amazon
* Comprehend has in the accuracy of the detection. </p>
*/
inline void SetKeyPhrases(Aws::Vector<KeyPhrase>&& value) { m_keyPhrases = std::move(value); }
/**
* <p>A collection of key phrases that Amazon Comprehend identified in the input
* text. For each key phrase, the response provides the text of the key phrase,
* where the key phrase begins and ends, and the level of confidence that Amazon
* Comprehend has in the accuracy of the detection. </p>
*/
inline DetectKeyPhrasesResult& WithKeyPhrases(const Aws::Vector<KeyPhrase>& value) { SetKeyPhrases(value); return *this;}
/**
* <p>A collection of key phrases that Amazon Comprehend identified in the input
* text. For each key phrase, the response provides the text of the key phrase,
* where the key phrase begins and ends, and the level of confidence that Amazon
* Comprehend has in the accuracy of the detection. </p>
*/
inline DetectKeyPhrasesResult& WithKeyPhrases(Aws::Vector<KeyPhrase>&& value) { SetKeyPhrases(std::move(value)); return *this;}
/**
* <p>A collection of key phrases that Amazon Comprehend identified in the input
* text. For each key phrase, the response provides the text of the key phrase,
* where the key phrase begins and ends, and the level of confidence that Amazon
* Comprehend has in the accuracy of the detection. </p>
*/
inline DetectKeyPhrasesResult& AddKeyPhrases(const KeyPhrase& value) { m_keyPhrases.push_back(value); return *this; }
/**
* <p>A collection of key phrases that Amazon Comprehend identified in the input
* text. For each key phrase, the response provides the text of the key phrase,
* where the key phrase begins and ends, and the level of confidence that Amazon
* Comprehend has in the accuracy of the detection. </p>
*/
inline DetectKeyPhrasesResult& AddKeyPhrases(KeyPhrase&& value) { m_keyPhrases.push_back(std::move(value)); return *this; }
private:
Aws::Vector<KeyPhrase> m_keyPhrases;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,140 @@
/**
* 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 <aws/comprehend/model/LanguageCode.h>
#include <utility>
namespace Aws
{
namespace Comprehend
{
namespace Model
{
/**
*/
class AWS_COMPREHEND_API DetectSentimentRequest : public ComprehendRequest
{
public:
DetectSentimentRequest();
// 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 "DetectSentiment"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline const Aws::String& GetText() const{ return m_text; }
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline DetectSentimentRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline DetectSentimentRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
/**
* <p>A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
* encoded characters.</p>
*/
inline DetectSentimentRequest& WithText(const char* value) { SetText(value); return *this;}
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline DetectSentimentRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
/**
* <p>The language of the input documents. You can specify any of the primary
* languages supported by Amazon Comprehend. All documents must be in the same
* language.</p>
*/
inline DetectSentimentRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
private:
Aws::String m_text;
bool m_textHasBeenSet;
LanguageCode m_languageCode;
bool m_languageCodeHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,106 @@
/**
* 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/model/SentimentType.h>
#include <aws/comprehend/model/SentimentScore.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API DetectSentimentResult
{
public:
DetectSentimentResult();
DetectSentimentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DetectSentimentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The inferred sentiment that Amazon Comprehend has the highest level of
* confidence in.</p>
*/
inline const SentimentType& GetSentiment() const{ return m_sentiment; }
/**
* <p>The inferred sentiment that Amazon Comprehend has the highest level of
* confidence in.</p>
*/
inline void SetSentiment(const SentimentType& value) { m_sentiment = value; }
/**
* <p>The inferred sentiment that Amazon Comprehend has the highest level of
* confidence in.</p>
*/
inline void SetSentiment(SentimentType&& value) { m_sentiment = std::move(value); }
/**
* <p>The inferred sentiment that Amazon Comprehend has the highest level of
* confidence in.</p>
*/
inline DetectSentimentResult& WithSentiment(const SentimentType& value) { SetSentiment(value); return *this;}
/**
* <p>The inferred sentiment that Amazon Comprehend has the highest level of
* confidence in.</p>
*/
inline DetectSentimentResult& WithSentiment(SentimentType&& value) { SetSentiment(std::move(value)); return *this;}
/**
* <p>An object that lists the sentiments, and their corresponding confidence
* levels.</p>
*/
inline const SentimentScore& GetSentimentScore() const{ return m_sentimentScore; }
/**
* <p>An object that lists the sentiments, and their corresponding confidence
* levels.</p>
*/
inline void SetSentimentScore(const SentimentScore& value) { m_sentimentScore = value; }
/**
* <p>An object that lists the sentiments, and their corresponding confidence
* levels.</p>
*/
inline void SetSentimentScore(SentimentScore&& value) { m_sentimentScore = std::move(value); }
/**
* <p>An object that lists the sentiments, and their corresponding confidence
* levels.</p>
*/
inline DetectSentimentResult& WithSentimentScore(const SentimentScore& value) { SetSentimentScore(value); return *this;}
/**
* <p>An object that lists the sentiments, and their corresponding confidence
* levels.</p>
*/
inline DetectSentimentResult& WithSentimentScore(SentimentScore&& value) { SetSentimentScore(std::move(value)); return *this;}
private:
SentimentType m_sentiment;
SentimentScore m_sentimentScore;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,140 @@
/**
* 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 <aws/comprehend/model/SyntaxLanguageCode.h>
#include <utility>
namespace Aws
{
namespace Comprehend
{
namespace Model
{
/**
*/
class AWS_COMPREHEND_API DetectSyntaxRequest : public ComprehendRequest
{
public:
DetectSyntaxRequest();
// 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 "DetectSyntax"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF
* encoded characters.</p>
*/
inline const Aws::String& GetText() const{ return m_text; }
/**
* <p>A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF
* encoded characters.</p>
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
* <p>A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF
* encoded characters.</p>
*/
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
/**
* <p>A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF
* encoded characters.</p>
*/
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
* <p>A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF
* encoded characters.</p>
*/
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
/**
* <p>A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF
* encoded characters.</p>
*/
inline DetectSyntaxRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
/**
* <p>A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF
* encoded characters.</p>
*/
inline DetectSyntaxRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
/**
* <p>A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF
* encoded characters.</p>
*/
inline DetectSyntaxRequest& WithText(const char* value) { SetText(value); return *this;}
/**
* <p>The language code of the input documents. You can specify any of the
* following languages supported by Amazon Comprehend: German ("de"), English
* ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").</p>
*/
inline const SyntaxLanguageCode& GetLanguageCode() const{ return m_languageCode; }
/**
* <p>The language code of the input documents. You can specify any of the
* following languages supported by Amazon Comprehend: German ("de"), English
* ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").</p>
*/
inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
/**
* <p>The language code of the input documents. You can specify any of the
* following languages supported by Amazon Comprehend: German ("de"), English
* ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").</p>
*/
inline void SetLanguageCode(const SyntaxLanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
/**
* <p>The language code of the input documents. You can specify any of the
* following languages supported by Amazon Comprehend: German ("de"), English
* ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").</p>
*/
inline void SetLanguageCode(SyntaxLanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
/**
* <p>The language code of the input documents. You can specify any of the
* following languages supported by Amazon Comprehend: German ("de"), English
* ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").</p>
*/
inline DetectSyntaxRequest& WithLanguageCode(const SyntaxLanguageCode& value) { SetLanguageCode(value); return *this;}
/**
* <p>The language code of the input documents. You can specify any of the
* following languages supported by Amazon Comprehend: German ("de"), English
* ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").</p>
*/
inline DetectSyntaxRequest& WithLanguageCode(SyntaxLanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
private:
Aws::String m_text;
bool m_textHasBeenSet;
SyntaxLanguageCode m_languageCode;
bool m_languageCodeHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,99 @@
/**
* 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/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehend/model/SyntaxToken.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
class AWS_COMPREHEND_API DetectSyntaxResult
{
public:
DetectSyntaxResult();
DetectSyntaxResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DetectSyntaxResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A collection of syntax tokens describing the text. For each token, the
* response provides the text, the token type, where the text begins and ends, and
* the level of confidence that Amazon Comprehend has that the token is correct.
* For a list of token types, see <a>how-syntax</a>.</p>
*/
inline const Aws::Vector<SyntaxToken>& GetSyntaxTokens() const{ return m_syntaxTokens; }
/**
* <p>A collection of syntax tokens describing the text. For each token, the
* response provides the text, the token type, where the text begins and ends, and
* the level of confidence that Amazon Comprehend has that the token is correct.
* For a list of token types, see <a>how-syntax</a>.</p>
*/
inline void SetSyntaxTokens(const Aws::Vector<SyntaxToken>& value) { m_syntaxTokens = value; }
/**
* <p>A collection of syntax tokens describing the text. For each token, the
* response provides the text, the token type, where the text begins and ends, and
* the level of confidence that Amazon Comprehend has that the token is correct.
* For a list of token types, see <a>how-syntax</a>.</p>
*/
inline void SetSyntaxTokens(Aws::Vector<SyntaxToken>&& value) { m_syntaxTokens = std::move(value); }
/**
* <p>A collection of syntax tokens describing the text. For each token, the
* response provides the text, the token type, where the text begins and ends, and
* the level of confidence that Amazon Comprehend has that the token is correct.
* For a list of token types, see <a>how-syntax</a>.</p>
*/
inline DetectSyntaxResult& WithSyntaxTokens(const Aws::Vector<SyntaxToken>& value) { SetSyntaxTokens(value); return *this;}
/**
* <p>A collection of syntax tokens describing the text. For each token, the
* response provides the text, the token type, where the text begins and ends, and
* the level of confidence that Amazon Comprehend has that the token is correct.
* For a list of token types, see <a>how-syntax</a>.</p>
*/
inline DetectSyntaxResult& WithSyntaxTokens(Aws::Vector<SyntaxToken>&& value) { SetSyntaxTokens(std::move(value)); return *this;}
/**
* <p>A collection of syntax tokens describing the text. For each token, the
* response provides the text, the token type, where the text begins and ends, and
* the level of confidence that Amazon Comprehend has that the token is correct.
* For a list of token types, see <a>how-syntax</a>.</p>
*/
inline DetectSyntaxResult& AddSyntaxTokens(const SyntaxToken& value) { m_syntaxTokens.push_back(value); return *this; }
/**
* <p>A collection of syntax tokens describing the text. For each token, the
* response provides the text, the token type, where the text begins and ends, and
* the level of confidence that Amazon Comprehend has that the token is correct.
* For a list of token types, see <a>how-syntax</a>.</p>
*/
inline DetectSyntaxResult& AddSyntaxTokens(SyntaxToken&& value) { m_syntaxTokens.push_back(std::move(value)); return *this; }
private:
Aws::Vector<SyntaxToken> m_syntaxTokens;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Specifies the class that categorizes the document being
* analyzed</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DocumentClass">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API DocumentClass
{
public:
DocumentClass();
DocumentClass(Aws::Utils::Json::JsonView jsonValue);
DocumentClass& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the class.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the class.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the class.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the class.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the class.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the class.</p>
*/
inline DocumentClass& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the class.</p>
*/
inline DocumentClass& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the class.</p>
*/
inline DocumentClass& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The confidence score that Amazon Comprehend has this class correctly
* attributed.</p>
*/
inline double GetScore() const{ return m_score; }
/**
* <p>The confidence score that Amazon Comprehend has this class correctly
* attributed.</p>
*/
inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
/**
* <p>The confidence score that Amazon Comprehend has this class correctly
* attributed.</p>
*/
inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
/**
* <p>The confidence score that Amazon Comprehend has this class correctly
* attributed.</p>
*/
inline DocumentClass& WithScore(double value) { SetScore(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
double m_score;
bool m_scoreHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,224 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/comprehend/model/JobStatus.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Provides information for filtering a list of document classification jobs.
* For more information, see the operation. You can provide only one filter
* parameter in each request.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DocumentClassificationJobFilter">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API DocumentClassificationJobFilter
{
public:
DocumentClassificationJobFilter();
DocumentClassificationJobFilter(Aws::Utils::Json::JsonView jsonValue);
DocumentClassificationJobFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Filters on the name of the job.</p>
*/
inline const Aws::String& GetJobName() const{ return m_jobName; }
/**
* <p>Filters on the name of the job.</p>
*/
inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
/**
* <p>Filters on the name of the job.</p>
*/
inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
/**
* <p>Filters on the name of the job.</p>
*/
inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
/**
* <p>Filters on the name of the job.</p>
*/
inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
/**
* <p>Filters on the name of the job.</p>
*/
inline DocumentClassificationJobFilter& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
/**
* <p>Filters on the name of the job.</p>
*/
inline DocumentClassificationJobFilter& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
/**
* <p>Filters on the name of the job.</p>
*/
inline DocumentClassificationJobFilter& WithJobName(const char* value) { SetJobName(value); return *this;}
/**
* <p>Filters the list based on job status. Returns only jobs with the specified
* status.</p>
*/
inline const JobStatus& GetJobStatus() const{ return m_jobStatus; }
/**
* <p>Filters the list based on job status. Returns only jobs with the specified
* status.</p>
*/
inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
/**
* <p>Filters the list based on job status. Returns only jobs with the specified
* status.</p>
*/
inline void SetJobStatus(const JobStatus& value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; }
/**
* <p>Filters the list based on job status. Returns only jobs with the specified
* status.</p>
*/
inline void SetJobStatus(JobStatus&& value) { m_jobStatusHasBeenSet = true; m_jobStatus = std::move(value); }
/**
* <p>Filters the list based on job status. Returns only jobs with the specified
* status.</p>
*/
inline DocumentClassificationJobFilter& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;}
/**
* <p>Filters the list based on job status. Returns only jobs with the specified
* status.</p>
*/
inline DocumentClassificationJobFilter& WithJobStatus(JobStatus&& value) { SetJobStatus(std::move(value)); return *this;}
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline const Aws::Utils::DateTime& GetSubmitTimeBefore() const{ return m_submitTimeBefore; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline bool SubmitTimeBeforeHasBeenSet() const { return m_submitTimeBeforeHasBeenSet; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline void SetSubmitTimeBefore(const Aws::Utils::DateTime& value) { m_submitTimeBeforeHasBeenSet = true; m_submitTimeBefore = value; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline void SetSubmitTimeBefore(Aws::Utils::DateTime&& value) { m_submitTimeBeforeHasBeenSet = true; m_submitTimeBefore = std::move(value); }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline DocumentClassificationJobFilter& WithSubmitTimeBefore(const Aws::Utils::DateTime& value) { SetSubmitTimeBefore(value); return *this;}
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline DocumentClassificationJobFilter& WithSubmitTimeBefore(Aws::Utils::DateTime&& value) { SetSubmitTimeBefore(std::move(value)); return *this;}
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline const Aws::Utils::DateTime& GetSubmitTimeAfter() const{ return m_submitTimeAfter; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline bool SubmitTimeAfterHasBeenSet() const { return m_submitTimeAfterHasBeenSet; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline void SetSubmitTimeAfter(const Aws::Utils::DateTime& value) { m_submitTimeAfterHasBeenSet = true; m_submitTimeAfter = value; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline void SetSubmitTimeAfter(Aws::Utils::DateTime&& value) { m_submitTimeAfterHasBeenSet = true; m_submitTimeAfter = std::move(value); }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline DocumentClassificationJobFilter& WithSubmitTimeAfter(const Aws::Utils::DateTime& value) { SetSubmitTimeAfter(value); return *this;}
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline DocumentClassificationJobFilter& WithSubmitTimeAfter(Aws::Utils::DateTime&& value) { SetSubmitTimeAfter(std::move(value)); return *this;}
private:
Aws::String m_jobName;
bool m_jobNameHasBeenSet;
JobStatus m_jobStatus;
bool m_jobStatusHasBeenSet;
Aws::Utils::DateTime m_submitTimeBefore;
bool m_submitTimeBeforeHasBeenSet;
Aws::Utils::DateTime m_submitTimeAfter;
bool m_submitTimeAfterHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,636 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/comprehend/model/JobStatus.h>
#include <aws/core/utils/DateTime.h>
#include <aws/comprehend/model/InputDataConfig.h>
#include <aws/comprehend/model/OutputDataConfig.h>
#include <aws/comprehend/model/VpcConfig.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Provides information about a document classification job.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DocumentClassificationJobProperties">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API DocumentClassificationJobProperties
{
public:
DocumentClassificationJobProperties();
DocumentClassificationJobProperties(Aws::Utils::Json::JsonView jsonValue);
DocumentClassificationJobProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The identifier assigned to the document classification job.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier assigned to the document classification job.</p>
*/
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
/**
* <p>The identifier assigned to the document classification job.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
/**
* <p>The identifier assigned to the document classification job.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
/**
* <p>The identifier assigned to the document classification job.</p>
*/
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
/**
* <p>The identifier assigned to the document classification job.</p>
*/
inline DocumentClassificationJobProperties& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier assigned to the document classification job.</p>
*/
inline DocumentClassificationJobProperties& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier assigned to the document classification job.</p>
*/
inline DocumentClassificationJobProperties& WithJobId(const char* value) { SetJobId(value); return *this;}
/**
* <p>The name that you assigned to the document classification job.</p>
*/
inline const Aws::String& GetJobName() const{ return m_jobName; }
/**
* <p>The name that you assigned to the document classification job.</p>
*/
inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
/**
* <p>The name that you assigned to the document classification job.</p>
*/
inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
/**
* <p>The name that you assigned to the document classification job.</p>
*/
inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
/**
* <p>The name that you assigned to the document classification job.</p>
*/
inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
/**
* <p>The name that you assigned to the document classification job.</p>
*/
inline DocumentClassificationJobProperties& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
/**
* <p>The name that you assigned to the document classification job.</p>
*/
inline DocumentClassificationJobProperties& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
/**
* <p>The name that you assigned to the document classification job.</p>
*/
inline DocumentClassificationJobProperties& WithJobName(const char* value) { SetJobName(value); return *this;}
/**
* <p>The current status of the document classification job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline const JobStatus& GetJobStatus() const{ return m_jobStatus; }
/**
* <p>The current status of the document classification job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
/**
* <p>The current status of the document classification job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline void SetJobStatus(const JobStatus& value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; }
/**
* <p>The current status of the document classification job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline void SetJobStatus(JobStatus&& value) { m_jobStatusHasBeenSet = true; m_jobStatus = std::move(value); }
/**
* <p>The current status of the document classification job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline DocumentClassificationJobProperties& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;}
/**
* <p>The current status of the document classification job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline DocumentClassificationJobProperties& WithJobStatus(JobStatus&& value) { SetJobStatus(std::move(value)); return *this;}
/**
* <p>A description of the status of the job.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>A description of the status of the job.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>A description of the status of the job.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>A description of the status of the job.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>A description of the status of the job.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>A description of the status of the job.</p>
*/
inline DocumentClassificationJobProperties& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>A description of the status of the job.</p>
*/
inline DocumentClassificationJobProperties& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>A description of the status of the job.</p>
*/
inline DocumentClassificationJobProperties& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>The time that the document classification job was submitted for
* processing.</p>
*/
inline const Aws::Utils::DateTime& GetSubmitTime() const{ return m_submitTime; }
/**
* <p>The time that the document classification job was submitted for
* processing.</p>
*/
inline bool SubmitTimeHasBeenSet() const { return m_submitTimeHasBeenSet; }
/**
* <p>The time that the document classification job was submitted for
* processing.</p>
*/
inline void SetSubmitTime(const Aws::Utils::DateTime& value) { m_submitTimeHasBeenSet = true; m_submitTime = value; }
/**
* <p>The time that the document classification job was submitted for
* processing.</p>
*/
inline void SetSubmitTime(Aws::Utils::DateTime&& value) { m_submitTimeHasBeenSet = true; m_submitTime = std::move(value); }
/**
* <p>The time that the document classification job was submitted for
* processing.</p>
*/
inline DocumentClassificationJobProperties& WithSubmitTime(const Aws::Utils::DateTime& value) { SetSubmitTime(value); return *this;}
/**
* <p>The time that the document classification job was submitted for
* processing.</p>
*/
inline DocumentClassificationJobProperties& WithSubmitTime(Aws::Utils::DateTime&& value) { SetSubmitTime(std::move(value)); return *this;}
/**
* <p>The time that the document classification job completed.</p>
*/
inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
/**
* <p>The time that the document classification job completed.</p>
*/
inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
/**
* <p>The time that the document classification job completed.</p>
*/
inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
/**
* <p>The time that the document classification job completed.</p>
*/
inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
/**
* <p>The time that the document classification job completed.</p>
*/
inline DocumentClassificationJobProperties& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
/**
* <p>The time that the document classification job completed.</p>
*/
inline DocumentClassificationJobProperties& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. </p>
*/
inline const Aws::String& GetDocumentClassifierArn() const{ return m_documentClassifierArn; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. </p>
*/
inline bool DocumentClassifierArnHasBeenSet() const { return m_documentClassifierArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. </p>
*/
inline void SetDocumentClassifierArn(const Aws::String& value) { m_documentClassifierArnHasBeenSet = true; m_documentClassifierArn = value; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. </p>
*/
inline void SetDocumentClassifierArn(Aws::String&& value) { m_documentClassifierArnHasBeenSet = true; m_documentClassifierArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. </p>
*/
inline void SetDocumentClassifierArn(const char* value) { m_documentClassifierArnHasBeenSet = true; m_documentClassifierArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. </p>
*/
inline DocumentClassificationJobProperties& WithDocumentClassifierArn(const Aws::String& value) { SetDocumentClassifierArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. </p>
*/
inline DocumentClassificationJobProperties& WithDocumentClassifierArn(Aws::String&& value) { SetDocumentClassifierArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier. </p>
*/
inline DocumentClassificationJobProperties& WithDocumentClassifierArn(const char* value) { SetDocumentClassifierArn(value); return *this;}
/**
* <p>The input data configuration that you supplied when you created the document
* classification job.</p>
*/
inline const InputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
/**
* <p>The input data configuration that you supplied when you created the document
* classification job.</p>
*/
inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
/**
* <p>The input data configuration that you supplied when you created the document
* classification job.</p>
*/
inline void SetInputDataConfig(const InputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
/**
* <p>The input data configuration that you supplied when you created the document
* classification job.</p>
*/
inline void SetInputDataConfig(InputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
/**
* <p>The input data configuration that you supplied when you created the document
* classification job.</p>
*/
inline DocumentClassificationJobProperties& WithInputDataConfig(const InputDataConfig& value) { SetInputDataConfig(value); return *this;}
/**
* <p>The input data configuration that you supplied when you created the document
* classification job.</p>
*/
inline DocumentClassificationJobProperties& WithInputDataConfig(InputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;}
/**
* <p>The output data configuration that you supplied when you created the document
* classification job.</p>
*/
inline const OutputDataConfig& GetOutputDataConfig() const{ return m_outputDataConfig; }
/**
* <p>The output data configuration that you supplied when you created the document
* classification job.</p>
*/
inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
/**
* <p>The output data configuration that you supplied when you created the document
* classification job.</p>
*/
inline void SetOutputDataConfig(const OutputDataConfig& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = value; }
/**
* <p>The output data configuration that you supplied when you created the document
* classification job.</p>
*/
inline void SetOutputDataConfig(OutputDataConfig&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::move(value); }
/**
* <p>The output data configuration that you supplied when you created the document
* classification job.</p>
*/
inline DocumentClassificationJobProperties& WithOutputDataConfig(const OutputDataConfig& value) { SetOutputDataConfig(value); return *this;}
/**
* <p>The output data configuration that you supplied when you created the document
* classification job.</p>
*/
inline DocumentClassificationJobProperties& WithOutputDataConfig(OutputDataConfig&& value) { SetOutputDataConfig(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS identity and Access Management
* (IAM) role that grants Amazon Comprehend read access to your input data.</p>
*/
inline const Aws::String& GetDataAccessRoleArn() const{ return m_dataAccessRoleArn; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS identity and Access Management
* (IAM) role that grants Amazon Comprehend read access to your input data.</p>
*/
inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS identity and Access Management
* (IAM) role that grants Amazon Comprehend read access to your input data.</p>
*/
inline void SetDataAccessRoleArn(const Aws::String& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS identity and Access Management
* (IAM) role that grants Amazon Comprehend read access to your input data.</p>
*/
inline void SetDataAccessRoleArn(Aws::String&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the AWS identity and Access Management
* (IAM) role that grants Amazon Comprehend read access to your input data.</p>
*/
inline void SetDataAccessRoleArn(const char* value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the AWS identity and Access Management
* (IAM) role that grants Amazon Comprehend read access to your input data.</p>
*/
inline DocumentClassificationJobProperties& WithDataAccessRoleArn(const Aws::String& value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS identity and Access Management
* (IAM) role that grants Amazon Comprehend read access to your input data.</p>
*/
inline DocumentClassificationJobProperties& WithDataAccessRoleArn(Aws::String&& value) { SetDataAccessRoleArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS identity and Access Management
* (IAM) role that grants Amazon Comprehend read access to your input data.</p>
*/
inline DocumentClassificationJobProperties& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline const Aws::String& GetVolumeKmsKeyId() const{ return m_volumeKmsKeyId; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline void SetVolumeKmsKeyId(const Aws::String& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = value; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline void SetVolumeKmsKeyId(Aws::String&& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = std::move(value); }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline void SetVolumeKmsKeyId(const char* value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId.assign(value); }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline DocumentClassificationJobProperties& WithVolumeKmsKeyId(const Aws::String& value) { SetVolumeKmsKeyId(value); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline DocumentClassificationJobProperties& WithVolumeKmsKeyId(Aws::String&& value) { SetVolumeKmsKeyId(std::move(value)); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline DocumentClassificationJobProperties& WithVolumeKmsKeyId(const char* value) { SetVolumeKmsKeyId(value); return *this;}
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your document classification job. For
* more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your document classification job. For
* more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your document classification job. For
* more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your document classification job. For
* more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your document classification job. For
* more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline DocumentClassificationJobProperties& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your document classification job. For
* more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline DocumentClassificationJobProperties& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
private:
Aws::String m_jobId;
bool m_jobIdHasBeenSet;
Aws::String m_jobName;
bool m_jobNameHasBeenSet;
JobStatus m_jobStatus;
bool m_jobStatusHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::Utils::DateTime m_submitTime;
bool m_submitTimeHasBeenSet;
Aws::Utils::DateTime m_endTime;
bool m_endTimeHasBeenSet;
Aws::String m_documentClassifierArn;
bool m_documentClassifierArnHasBeenSet;
InputDataConfig m_inputDataConfig;
bool m_inputDataConfigHasBeenSet;
OutputDataConfig m_outputDataConfig;
bool m_outputDataConfigHasBeenSet;
Aws::String m_dataAccessRoleArn;
bool m_dataAccessRoleArnHasBeenSet;
Aws::String m_volumeKmsKeyId;
bool m_volumeKmsKeyIdHasBeenSet;
VpcConfig m_vpcConfig;
bool m_vpcConfigHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,179 @@
/**
* 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/model/ModelStatus.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Provides information for filtering a list of document classifiers. You can
* only specify one filtering parameter in a request. For more information, see the
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DocumentClassifierFilter">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API DocumentClassifierFilter
{
public:
DocumentClassifierFilter();
DocumentClassifierFilter(Aws::Utils::Json::JsonView jsonValue);
DocumentClassifierFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Filters the list of classifiers based on status. </p>
*/
inline const ModelStatus& GetStatus() const{ return m_status; }
/**
* <p>Filters the list of classifiers based on status. </p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>Filters the list of classifiers based on status. </p>
*/
inline void SetStatus(const ModelStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>Filters the list of classifiers based on status. </p>
*/
inline void SetStatus(ModelStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>Filters the list of classifiers based on status. </p>
*/
inline DocumentClassifierFilter& WithStatus(const ModelStatus& value) { SetStatus(value); return *this;}
/**
* <p>Filters the list of classifiers based on status. </p>
*/
inline DocumentClassifierFilter& WithStatus(ModelStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>Filters the list of classifiers based on the time that the classifier was
* submitted for processing. Returns only classifiers submitted before the
* specified time. Classifiers are returned in ascending order, oldest to
* newest.</p>
*/
inline const Aws::Utils::DateTime& GetSubmitTimeBefore() const{ return m_submitTimeBefore; }
/**
* <p>Filters the list of classifiers based on the time that the classifier was
* submitted for processing. Returns only classifiers submitted before the
* specified time. Classifiers are returned in ascending order, oldest to
* newest.</p>
*/
inline bool SubmitTimeBeforeHasBeenSet() const { return m_submitTimeBeforeHasBeenSet; }
/**
* <p>Filters the list of classifiers based on the time that the classifier was
* submitted for processing. Returns only classifiers submitted before the
* specified time. Classifiers are returned in ascending order, oldest to
* newest.</p>
*/
inline void SetSubmitTimeBefore(const Aws::Utils::DateTime& value) { m_submitTimeBeforeHasBeenSet = true; m_submitTimeBefore = value; }
/**
* <p>Filters the list of classifiers based on the time that the classifier was
* submitted for processing. Returns only classifiers submitted before the
* specified time. Classifiers are returned in ascending order, oldest to
* newest.</p>
*/
inline void SetSubmitTimeBefore(Aws::Utils::DateTime&& value) { m_submitTimeBeforeHasBeenSet = true; m_submitTimeBefore = std::move(value); }
/**
* <p>Filters the list of classifiers based on the time that the classifier was
* submitted for processing. Returns only classifiers submitted before the
* specified time. Classifiers are returned in ascending order, oldest to
* newest.</p>
*/
inline DocumentClassifierFilter& WithSubmitTimeBefore(const Aws::Utils::DateTime& value) { SetSubmitTimeBefore(value); return *this;}
/**
* <p>Filters the list of classifiers based on the time that the classifier was
* submitted for processing. Returns only classifiers submitted before the
* specified time. Classifiers are returned in ascending order, oldest to
* newest.</p>
*/
inline DocumentClassifierFilter& WithSubmitTimeBefore(Aws::Utils::DateTime&& value) { SetSubmitTimeBefore(std::move(value)); return *this;}
/**
* <p>Filters the list of classifiers based on the time that the classifier was
* submitted for processing. Returns only classifiers submitted after the specified
* time. Classifiers are returned in descending order, newest to oldest.</p>
*/
inline const Aws::Utils::DateTime& GetSubmitTimeAfter() const{ return m_submitTimeAfter; }
/**
* <p>Filters the list of classifiers based on the time that the classifier was
* submitted for processing. Returns only classifiers submitted after the specified
* time. Classifiers are returned in descending order, newest to oldest.</p>
*/
inline bool SubmitTimeAfterHasBeenSet() const { return m_submitTimeAfterHasBeenSet; }
/**
* <p>Filters the list of classifiers based on the time that the classifier was
* submitted for processing. Returns only classifiers submitted after the specified
* time. Classifiers are returned in descending order, newest to oldest.</p>
*/
inline void SetSubmitTimeAfter(const Aws::Utils::DateTime& value) { m_submitTimeAfterHasBeenSet = true; m_submitTimeAfter = value; }
/**
* <p>Filters the list of classifiers based on the time that the classifier was
* submitted for processing. Returns only classifiers submitted after the specified
* time. Classifiers are returned in descending order, newest to oldest.</p>
*/
inline void SetSubmitTimeAfter(Aws::Utils::DateTime&& value) { m_submitTimeAfterHasBeenSet = true; m_submitTimeAfter = std::move(value); }
/**
* <p>Filters the list of classifiers based on the time that the classifier was
* submitted for processing. Returns only classifiers submitted after the specified
* time. Classifiers are returned in descending order, newest to oldest.</p>
*/
inline DocumentClassifierFilter& WithSubmitTimeAfter(const Aws::Utils::DateTime& value) { SetSubmitTimeAfter(value); return *this;}
/**
* <p>Filters the list of classifiers based on the time that the classifier was
* submitted for processing. Returns only classifiers submitted after the specified
* time. Classifiers are returned in descending order, newest to oldest.</p>
*/
inline DocumentClassifierFilter& WithSubmitTimeAfter(Aws::Utils::DateTime&& value) { SetSubmitTimeAfter(std::move(value)); return *this;}
private:
ModelStatus m_status;
bool m_statusHasBeenSet;
Aws::Utils::DateTime m_submitTimeBefore;
bool m_submitTimeBeforeHasBeenSet;
Aws::Utils::DateTime m_submitTimeAfter;
bool m_submitTimeAfterHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,230 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>The input properties for training a document classifier. </p> <p>For more
* information on how the input file is formatted, see
* <a>how-document-classification-training-data</a>. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DocumentClassifierInputDataConfig">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API DocumentClassifierInputDataConfig
{
public:
DocumentClassifierInputDataConfig();
DocumentClassifierInputDataConfig(Aws::Utils::Json::JsonView jsonValue);
DocumentClassifierInputDataConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon S3 URI for the input data. The S3 bucket must be in the same
* region as the API endpoint that you are calling. The URI can point to a single
* input file or it can provide the prefix for a collection of input files.</p>
* <p>For example, if you use the URI <code>S3://bucketName/prefix</code>, if the
* prefix is a single file, Amazon Comprehend uses that file as input. If more than
* one file begins with the prefix, Amazon Comprehend uses all of them as
* input.</p>
*/
inline const Aws::String& GetS3Uri() const{ return m_s3Uri; }
/**
* <p>The Amazon S3 URI for the input data. The S3 bucket must be in the same
* region as the API endpoint that you are calling. The URI can point to a single
* input file or it can provide the prefix for a collection of input files.</p>
* <p>For example, if you use the URI <code>S3://bucketName/prefix</code>, if the
* prefix is a single file, Amazon Comprehend uses that file as input. If more than
* one file begins with the prefix, Amazon Comprehend uses all of them as
* input.</p>
*/
inline bool S3UriHasBeenSet() const { return m_s3UriHasBeenSet; }
/**
* <p>The Amazon S3 URI for the input data. The S3 bucket must be in the same
* region as the API endpoint that you are calling. The URI can point to a single
* input file or it can provide the prefix for a collection of input files.</p>
* <p>For example, if you use the URI <code>S3://bucketName/prefix</code>, if the
* prefix is a single file, Amazon Comprehend uses that file as input. If more than
* one file begins with the prefix, Amazon Comprehend uses all of them as
* input.</p>
*/
inline void SetS3Uri(const Aws::String& value) { m_s3UriHasBeenSet = true; m_s3Uri = value; }
/**
* <p>The Amazon S3 URI for the input data. The S3 bucket must be in the same
* region as the API endpoint that you are calling. The URI can point to a single
* input file or it can provide the prefix for a collection of input files.</p>
* <p>For example, if you use the URI <code>S3://bucketName/prefix</code>, if the
* prefix is a single file, Amazon Comprehend uses that file as input. If more than
* one file begins with the prefix, Amazon Comprehend uses all of them as
* input.</p>
*/
inline void SetS3Uri(Aws::String&& value) { m_s3UriHasBeenSet = true; m_s3Uri = std::move(value); }
/**
* <p>The Amazon S3 URI for the input data. The S3 bucket must be in the same
* region as the API endpoint that you are calling. The URI can point to a single
* input file or it can provide the prefix for a collection of input files.</p>
* <p>For example, if you use the URI <code>S3://bucketName/prefix</code>, if the
* prefix is a single file, Amazon Comprehend uses that file as input. If more than
* one file begins with the prefix, Amazon Comprehend uses all of them as
* input.</p>
*/
inline void SetS3Uri(const char* value) { m_s3UriHasBeenSet = true; m_s3Uri.assign(value); }
/**
* <p>The Amazon S3 URI for the input data. The S3 bucket must be in the same
* region as the API endpoint that you are calling. The URI can point to a single
* input file or it can provide the prefix for a collection of input files.</p>
* <p>For example, if you use the URI <code>S3://bucketName/prefix</code>, if the
* prefix is a single file, Amazon Comprehend uses that file as input. If more than
* one file begins with the prefix, Amazon Comprehend uses all of them as
* input.</p>
*/
inline DocumentClassifierInputDataConfig& WithS3Uri(const Aws::String& value) { SetS3Uri(value); return *this;}
/**
* <p>The Amazon S3 URI for the input data. The S3 bucket must be in the same
* region as the API endpoint that you are calling. The URI can point to a single
* input file or it can provide the prefix for a collection of input files.</p>
* <p>For example, if you use the URI <code>S3://bucketName/prefix</code>, if the
* prefix is a single file, Amazon Comprehend uses that file as input. If more than
* one file begins with the prefix, Amazon Comprehend uses all of them as
* input.</p>
*/
inline DocumentClassifierInputDataConfig& WithS3Uri(Aws::String&& value) { SetS3Uri(std::move(value)); return *this;}
/**
* <p>The Amazon S3 URI for the input data. The S3 bucket must be in the same
* region as the API endpoint that you are calling. The URI can point to a single
* input file or it can provide the prefix for a collection of input files.</p>
* <p>For example, if you use the URI <code>S3://bucketName/prefix</code>, if the
* prefix is a single file, Amazon Comprehend uses that file as input. If more than
* one file begins with the prefix, Amazon Comprehend uses all of them as
* input.</p>
*/
inline DocumentClassifierInputDataConfig& WithS3Uri(const char* value) { SetS3Uri(value); return *this;}
/**
* <p>Indicates the delimiter used to separate each label for training a
* multi-label classifier. The default delimiter between labels is a pipe (|). You
* can use a different character as a delimiter (if it's an allowed character) by
* specifying it under Delimiter for labels. If the training documents use a
* delimiter other than the default or the delimiter you specify, the labels on
* that line will be combined to make a single unique label, such as
* LABELLABELLABEL.</p>
*/
inline const Aws::String& GetLabelDelimiter() const{ return m_labelDelimiter; }
/**
* <p>Indicates the delimiter used to separate each label for training a
* multi-label classifier. The default delimiter between labels is a pipe (|). You
* can use a different character as a delimiter (if it's an allowed character) by
* specifying it under Delimiter for labels. If the training documents use a
* delimiter other than the default or the delimiter you specify, the labels on
* that line will be combined to make a single unique label, such as
* LABELLABELLABEL.</p>
*/
inline bool LabelDelimiterHasBeenSet() const { return m_labelDelimiterHasBeenSet; }
/**
* <p>Indicates the delimiter used to separate each label for training a
* multi-label classifier. The default delimiter between labels is a pipe (|). You
* can use a different character as a delimiter (if it's an allowed character) by
* specifying it under Delimiter for labels. If the training documents use a
* delimiter other than the default or the delimiter you specify, the labels on
* that line will be combined to make a single unique label, such as
* LABELLABELLABEL.</p>
*/
inline void SetLabelDelimiter(const Aws::String& value) { m_labelDelimiterHasBeenSet = true; m_labelDelimiter = value; }
/**
* <p>Indicates the delimiter used to separate each label for training a
* multi-label classifier. The default delimiter between labels is a pipe (|). You
* can use a different character as a delimiter (if it's an allowed character) by
* specifying it under Delimiter for labels. If the training documents use a
* delimiter other than the default or the delimiter you specify, the labels on
* that line will be combined to make a single unique label, such as
* LABELLABELLABEL.</p>
*/
inline void SetLabelDelimiter(Aws::String&& value) { m_labelDelimiterHasBeenSet = true; m_labelDelimiter = std::move(value); }
/**
* <p>Indicates the delimiter used to separate each label for training a
* multi-label classifier. The default delimiter between labels is a pipe (|). You
* can use a different character as a delimiter (if it's an allowed character) by
* specifying it under Delimiter for labels. If the training documents use a
* delimiter other than the default or the delimiter you specify, the labels on
* that line will be combined to make a single unique label, such as
* LABELLABELLABEL.</p>
*/
inline void SetLabelDelimiter(const char* value) { m_labelDelimiterHasBeenSet = true; m_labelDelimiter.assign(value); }
/**
* <p>Indicates the delimiter used to separate each label for training a
* multi-label classifier. The default delimiter between labels is a pipe (|). You
* can use a different character as a delimiter (if it's an allowed character) by
* specifying it under Delimiter for labels. If the training documents use a
* delimiter other than the default or the delimiter you specify, the labels on
* that line will be combined to make a single unique label, such as
* LABELLABELLABEL.</p>
*/
inline DocumentClassifierInputDataConfig& WithLabelDelimiter(const Aws::String& value) { SetLabelDelimiter(value); return *this;}
/**
* <p>Indicates the delimiter used to separate each label for training a
* multi-label classifier. The default delimiter between labels is a pipe (|). You
* can use a different character as a delimiter (if it's an allowed character) by
* specifying it under Delimiter for labels. If the training documents use a
* delimiter other than the default or the delimiter you specify, the labels on
* that line will be combined to make a single unique label, such as
* LABELLABELLABEL.</p>
*/
inline DocumentClassifierInputDataConfig& WithLabelDelimiter(Aws::String&& value) { SetLabelDelimiter(std::move(value)); return *this;}
/**
* <p>Indicates the delimiter used to separate each label for training a
* multi-label classifier. The default delimiter between labels is a pipe (|). You
* can use a different character as a delimiter (if it's an allowed character) by
* specifying it under Delimiter for labels. If the training documents use a
* delimiter other than the default or the delimiter you specify, the labels on
* that line will be combined to make a single unique label, such as
* LABELLABELLABEL.</p>
*/
inline DocumentClassifierInputDataConfig& WithLabelDelimiter(const char* value) { SetLabelDelimiter(value); return *this;}
private:
Aws::String m_s3Uri;
bool m_s3UriHasBeenSet;
Aws::String m_labelDelimiter;
bool m_labelDelimiterHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Comprehend
{
namespace Model
{
enum class DocumentClassifierMode
{
NOT_SET,
MULTI_CLASS,
MULTI_LABEL
};
namespace DocumentClassifierModeMapper
{
AWS_COMPREHEND_API DocumentClassifierMode GetDocumentClassifierModeForName(const Aws::String& name);
AWS_COMPREHEND_API Aws::String GetNameForDocumentClassifierMode(DocumentClassifierMode value);
} // namespace DocumentClassifierModeMapper
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,269 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Provides output results configuration parameters for custom classifier jobs.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DocumentClassifierOutputDataConfig">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API DocumentClassifierOutputDataConfig
{
public:
DocumentClassifierOutputDataConfig();
DocumentClassifierOutputDataConfig(Aws::Utils::Json::JsonView jsonValue);
DocumentClassifierOutputDataConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>When you use the <code>OutputDataConfig</code> object while creating a custom
* classifier, you specify the Amazon S3 location where you want to write the
* confusion matrix. The URI must be in the same region as the API endpoint that
* you are calling. The location is used as the prefix for the actual location of
* this output file.</p> <p>When the custom classifier job is finished, the service
* creates the output file in a directory specific to the job. The
* <code>S3Uri</code> field contains the location of the output file, called
* <code>output.tar.gz</code>. It is a compressed archive that contains the
* confusion matrix.</p>
*/
inline const Aws::String& GetS3Uri() const{ return m_s3Uri; }
/**
* <p>When you use the <code>OutputDataConfig</code> object while creating a custom
* classifier, you specify the Amazon S3 location where you want to write the
* confusion matrix. The URI must be in the same region as the API endpoint that
* you are calling. The location is used as the prefix for the actual location of
* this output file.</p> <p>When the custom classifier job is finished, the service
* creates the output file in a directory specific to the job. The
* <code>S3Uri</code> field contains the location of the output file, called
* <code>output.tar.gz</code>. It is a compressed archive that contains the
* confusion matrix.</p>
*/
inline bool S3UriHasBeenSet() const { return m_s3UriHasBeenSet; }
/**
* <p>When you use the <code>OutputDataConfig</code> object while creating a custom
* classifier, you specify the Amazon S3 location where you want to write the
* confusion matrix. The URI must be in the same region as the API endpoint that
* you are calling. The location is used as the prefix for the actual location of
* this output file.</p> <p>When the custom classifier job is finished, the service
* creates the output file in a directory specific to the job. The
* <code>S3Uri</code> field contains the location of the output file, called
* <code>output.tar.gz</code>. It is a compressed archive that contains the
* confusion matrix.</p>
*/
inline void SetS3Uri(const Aws::String& value) { m_s3UriHasBeenSet = true; m_s3Uri = value; }
/**
* <p>When you use the <code>OutputDataConfig</code> object while creating a custom
* classifier, you specify the Amazon S3 location where you want to write the
* confusion matrix. The URI must be in the same region as the API endpoint that
* you are calling. The location is used as the prefix for the actual location of
* this output file.</p> <p>When the custom classifier job is finished, the service
* creates the output file in a directory specific to the job. The
* <code>S3Uri</code> field contains the location of the output file, called
* <code>output.tar.gz</code>. It is a compressed archive that contains the
* confusion matrix.</p>
*/
inline void SetS3Uri(Aws::String&& value) { m_s3UriHasBeenSet = true; m_s3Uri = std::move(value); }
/**
* <p>When you use the <code>OutputDataConfig</code> object while creating a custom
* classifier, you specify the Amazon S3 location where you want to write the
* confusion matrix. The URI must be in the same region as the API endpoint that
* you are calling. The location is used as the prefix for the actual location of
* this output file.</p> <p>When the custom classifier job is finished, the service
* creates the output file in a directory specific to the job. The
* <code>S3Uri</code> field contains the location of the output file, called
* <code>output.tar.gz</code>. It is a compressed archive that contains the
* confusion matrix.</p>
*/
inline void SetS3Uri(const char* value) { m_s3UriHasBeenSet = true; m_s3Uri.assign(value); }
/**
* <p>When you use the <code>OutputDataConfig</code> object while creating a custom
* classifier, you specify the Amazon S3 location where you want to write the
* confusion matrix. The URI must be in the same region as the API endpoint that
* you are calling. The location is used as the prefix for the actual location of
* this output file.</p> <p>When the custom classifier job is finished, the service
* creates the output file in a directory specific to the job. The
* <code>S3Uri</code> field contains the location of the output file, called
* <code>output.tar.gz</code>. It is a compressed archive that contains the
* confusion matrix.</p>
*/
inline DocumentClassifierOutputDataConfig& WithS3Uri(const Aws::String& value) { SetS3Uri(value); return *this;}
/**
* <p>When you use the <code>OutputDataConfig</code> object while creating a custom
* classifier, you specify the Amazon S3 location where you want to write the
* confusion matrix. The URI must be in the same region as the API endpoint that
* you are calling. The location is used as the prefix for the actual location of
* this output file.</p> <p>When the custom classifier job is finished, the service
* creates the output file in a directory specific to the job. The
* <code>S3Uri</code> field contains the location of the output file, called
* <code>output.tar.gz</code>. It is a compressed archive that contains the
* confusion matrix.</p>
*/
inline DocumentClassifierOutputDataConfig& WithS3Uri(Aws::String&& value) { SetS3Uri(std::move(value)); return *this;}
/**
* <p>When you use the <code>OutputDataConfig</code> object while creating a custom
* classifier, you specify the Amazon S3 location where you want to write the
* confusion matrix. The URI must be in the same region as the API endpoint that
* you are calling. The location is used as the prefix for the actual location of
* this output file.</p> <p>When the custom classifier job is finished, the service
* creates the output file in a directory specific to the job. The
* <code>S3Uri</code> field contains the location of the output file, called
* <code>output.tar.gz</code>. It is a compressed archive that contains the
* confusion matrix.</p>
*/
inline DocumentClassifierOutputDataConfig& WithS3Uri(const char* value) { SetS3Uri(value); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt the output results from an analysis job. The KmsKeyId can be one of
* the following formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> <li> <p>KMS Key Alias: <code>"alias/ExampleAlias"</code> </p> </li>
* <li> <p>ARN of a KMS Key Alias:
* <code>"arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"</code> </p> </li>
* </ul>
*/
inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt the output results from an analysis job. The KmsKeyId can be one of
* the following formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> <li> <p>KMS Key Alias: <code>"alias/ExampleAlias"</code> </p> </li>
* <li> <p>ARN of a KMS Key Alias:
* <code>"arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"</code> </p> </li>
* </ul>
*/
inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt the output results from an analysis job. The KmsKeyId can be one of
* the following formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> <li> <p>KMS Key Alias: <code>"alias/ExampleAlias"</code> </p> </li>
* <li> <p>ARN of a KMS Key Alias:
* <code>"arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"</code> </p> </li>
* </ul>
*/
inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt the output results from an analysis job. The KmsKeyId can be one of
* the following formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> <li> <p>KMS Key Alias: <code>"alias/ExampleAlias"</code> </p> </li>
* <li> <p>ARN of a KMS Key Alias:
* <code>"arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"</code> </p> </li>
* </ul>
*/
inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt the output results from an analysis job. The KmsKeyId can be one of
* the following formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> <li> <p>KMS Key Alias: <code>"alias/ExampleAlias"</code> </p> </li>
* <li> <p>ARN of a KMS Key Alias:
* <code>"arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"</code> </p> </li>
* </ul>
*/
inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt the output results from an analysis job. The KmsKeyId can be one of
* the following formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> <li> <p>KMS Key Alias: <code>"alias/ExampleAlias"</code> </p> </li>
* <li> <p>ARN of a KMS Key Alias:
* <code>"arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"</code> </p> </li>
* </ul>
*/
inline DocumentClassifierOutputDataConfig& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt the output results from an analysis job. The KmsKeyId can be one of
* the following formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> <li> <p>KMS Key Alias: <code>"alias/ExampleAlias"</code> </p> </li>
* <li> <p>ARN of a KMS Key Alias:
* <code>"arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"</code> </p> </li>
* </ul>
*/
inline DocumentClassifierOutputDataConfig& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt the output results from an analysis job. The KmsKeyId can be one of
* the following formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> <li> <p>KMS Key Alias: <code>"alias/ExampleAlias"</code> </p> </li>
* <li> <p>ARN of a KMS Key Alias:
* <code>"arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"</code> </p> </li>
* </ul>
*/
inline DocumentClassifierOutputDataConfig& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
private:
Aws::String m_s3Uri;
bool m_s3UriHasBeenSet;
Aws::String m_kmsKeyId;
bool m_kmsKeyIdHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,787 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/comprehend/model/LanguageCode.h>
#include <aws/comprehend/model/ModelStatus.h>
#include <aws/core/utils/DateTime.h>
#include <aws/comprehend/model/DocumentClassifierInputDataConfig.h>
#include <aws/comprehend/model/DocumentClassifierOutputDataConfig.h>
#include <aws/comprehend/model/ClassifierMetadata.h>
#include <aws/comprehend/model/VpcConfig.h>
#include <aws/comprehend/model/DocumentClassifierMode.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Provides information about a document classifier.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DocumentClassifierProperties">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API DocumentClassifierProperties
{
public:
DocumentClassifierProperties();
DocumentClassifierProperties(Aws::Utils::Json::JsonView jsonValue);
DocumentClassifierProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier.</p>
*/
inline const Aws::String& GetDocumentClassifierArn() const{ return m_documentClassifierArn; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier.</p>
*/
inline bool DocumentClassifierArnHasBeenSet() const { return m_documentClassifierArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier.</p>
*/
inline void SetDocumentClassifierArn(const Aws::String& value) { m_documentClassifierArnHasBeenSet = true; m_documentClassifierArn = value; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier.</p>
*/
inline void SetDocumentClassifierArn(Aws::String&& value) { m_documentClassifierArnHasBeenSet = true; m_documentClassifierArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier.</p>
*/
inline void SetDocumentClassifierArn(const char* value) { m_documentClassifierArnHasBeenSet = true; m_documentClassifierArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier.</p>
*/
inline DocumentClassifierProperties& WithDocumentClassifierArn(const Aws::String& value) { SetDocumentClassifierArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier.</p>
*/
inline DocumentClassifierProperties& WithDocumentClassifierArn(Aws::String&& value) { SetDocumentClassifierArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the document classifier.</p>
*/
inline DocumentClassifierProperties& WithDocumentClassifierArn(const char* value) { SetDocumentClassifierArn(value); return *this;}
/**
* <p>The language code for the language of the documents that the classifier was
* trained on.</p>
*/
inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
/**
* <p>The language code for the language of the documents that the classifier was
* trained on.</p>
*/
inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
/**
* <p>The language code for the language of the documents that the classifier was
* trained on.</p>
*/
inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
/**
* <p>The language code for the language of the documents that the classifier was
* trained on.</p>
*/
inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
/**
* <p>The language code for the language of the documents that the classifier was
* trained on.</p>
*/
inline DocumentClassifierProperties& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
/**
* <p>The language code for the language of the documents that the classifier was
* trained on.</p>
*/
inline DocumentClassifierProperties& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
/**
* <p>The status of the document classifier. If the status is <code>TRAINED</code>
* the classifier is ready to use. If the status is <code>FAILED</code> you can see
* additional information about why the classifier wasn't trained in the
* <code>Message</code> field.</p>
*/
inline const ModelStatus& GetStatus() const{ return m_status; }
/**
* <p>The status of the document classifier. If the status is <code>TRAINED</code>
* the classifier is ready to use. If the status is <code>FAILED</code> you can see
* additional information about why the classifier wasn't trained in the
* <code>Message</code> field.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the document classifier. If the status is <code>TRAINED</code>
* the classifier is ready to use. If the status is <code>FAILED</code> you can see
* additional information about why the classifier wasn't trained in the
* <code>Message</code> field.</p>
*/
inline void SetStatus(const ModelStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the document classifier. If the status is <code>TRAINED</code>
* the classifier is ready to use. If the status is <code>FAILED</code> you can see
* additional information about why the classifier wasn't trained in the
* <code>Message</code> field.</p>
*/
inline void SetStatus(ModelStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the document classifier. If the status is <code>TRAINED</code>
* the classifier is ready to use. If the status is <code>FAILED</code> you can see
* additional information about why the classifier wasn't trained in the
* <code>Message</code> field.</p>
*/
inline DocumentClassifierProperties& WithStatus(const ModelStatus& value) { SetStatus(value); return *this;}
/**
* <p>The status of the document classifier. If the status is <code>TRAINED</code>
* the classifier is ready to use. If the status is <code>FAILED</code> you can see
* additional information about why the classifier wasn't trained in the
* <code>Message</code> field.</p>
*/
inline DocumentClassifierProperties& WithStatus(ModelStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>Additional information about the status of the classifier.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>Additional information about the status of the classifier.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>Additional information about the status of the classifier.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>Additional information about the status of the classifier.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>Additional information about the status of the classifier.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>Additional information about the status of the classifier.</p>
*/
inline DocumentClassifierProperties& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>Additional information about the status of the classifier.</p>
*/
inline DocumentClassifierProperties& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>Additional information about the status of the classifier.</p>
*/
inline DocumentClassifierProperties& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>The time that the document classifier was submitted for training.</p>
*/
inline const Aws::Utils::DateTime& GetSubmitTime() const{ return m_submitTime; }
/**
* <p>The time that the document classifier was submitted for training.</p>
*/
inline bool SubmitTimeHasBeenSet() const { return m_submitTimeHasBeenSet; }
/**
* <p>The time that the document classifier was submitted for training.</p>
*/
inline void SetSubmitTime(const Aws::Utils::DateTime& value) { m_submitTimeHasBeenSet = true; m_submitTime = value; }
/**
* <p>The time that the document classifier was submitted for training.</p>
*/
inline void SetSubmitTime(Aws::Utils::DateTime&& value) { m_submitTimeHasBeenSet = true; m_submitTime = std::move(value); }
/**
* <p>The time that the document classifier was submitted for training.</p>
*/
inline DocumentClassifierProperties& WithSubmitTime(const Aws::Utils::DateTime& value) { SetSubmitTime(value); return *this;}
/**
* <p>The time that the document classifier was submitted for training.</p>
*/
inline DocumentClassifierProperties& WithSubmitTime(Aws::Utils::DateTime&& value) { SetSubmitTime(std::move(value)); return *this;}
/**
* <p>The time that training the document classifier completed.</p>
*/
inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
/**
* <p>The time that training the document classifier completed.</p>
*/
inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
/**
* <p>The time that training the document classifier completed.</p>
*/
inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
/**
* <p>The time that training the document classifier completed.</p>
*/
inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
/**
* <p>The time that training the document classifier completed.</p>
*/
inline DocumentClassifierProperties& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
/**
* <p>The time that training the document classifier completed.</p>
*/
inline DocumentClassifierProperties& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
/**
* <p>Indicates the time when the training starts on documentation classifiers. You
* are billed for the time interval between this time and the value of
* TrainingEndTime. </p>
*/
inline const Aws::Utils::DateTime& GetTrainingStartTime() const{ return m_trainingStartTime; }
/**
* <p>Indicates the time when the training starts on documentation classifiers. You
* are billed for the time interval between this time and the value of
* TrainingEndTime. </p>
*/
inline bool TrainingStartTimeHasBeenSet() const { return m_trainingStartTimeHasBeenSet; }
/**
* <p>Indicates the time when the training starts on documentation classifiers. You
* are billed for the time interval between this time and the value of
* TrainingEndTime. </p>
*/
inline void SetTrainingStartTime(const Aws::Utils::DateTime& value) { m_trainingStartTimeHasBeenSet = true; m_trainingStartTime = value; }
/**
* <p>Indicates the time when the training starts on documentation classifiers. You
* are billed for the time interval between this time and the value of
* TrainingEndTime. </p>
*/
inline void SetTrainingStartTime(Aws::Utils::DateTime&& value) { m_trainingStartTimeHasBeenSet = true; m_trainingStartTime = std::move(value); }
/**
* <p>Indicates the time when the training starts on documentation classifiers. You
* are billed for the time interval between this time and the value of
* TrainingEndTime. </p>
*/
inline DocumentClassifierProperties& WithTrainingStartTime(const Aws::Utils::DateTime& value) { SetTrainingStartTime(value); return *this;}
/**
* <p>Indicates the time when the training starts on documentation classifiers. You
* are billed for the time interval between this time and the value of
* TrainingEndTime. </p>
*/
inline DocumentClassifierProperties& WithTrainingStartTime(Aws::Utils::DateTime&& value) { SetTrainingStartTime(std::move(value)); return *this;}
/**
* <p>The time that training of the document classifier was completed. Indicates
* the time when the training completes on documentation classifiers. You are
* billed for the time interval between this time and the value of
* TrainingStartTime.</p>
*/
inline const Aws::Utils::DateTime& GetTrainingEndTime() const{ return m_trainingEndTime; }
/**
* <p>The time that training of the document classifier was completed. Indicates
* the time when the training completes on documentation classifiers. You are
* billed for the time interval between this time and the value of
* TrainingStartTime.</p>
*/
inline bool TrainingEndTimeHasBeenSet() const { return m_trainingEndTimeHasBeenSet; }
/**
* <p>The time that training of the document classifier was completed. Indicates
* the time when the training completes on documentation classifiers. You are
* billed for the time interval between this time and the value of
* TrainingStartTime.</p>
*/
inline void SetTrainingEndTime(const Aws::Utils::DateTime& value) { m_trainingEndTimeHasBeenSet = true; m_trainingEndTime = value; }
/**
* <p>The time that training of the document classifier was completed. Indicates
* the time when the training completes on documentation classifiers. You are
* billed for the time interval between this time and the value of
* TrainingStartTime.</p>
*/
inline void SetTrainingEndTime(Aws::Utils::DateTime&& value) { m_trainingEndTimeHasBeenSet = true; m_trainingEndTime = std::move(value); }
/**
* <p>The time that training of the document classifier was completed. Indicates
* the time when the training completes on documentation classifiers. You are
* billed for the time interval between this time and the value of
* TrainingStartTime.</p>
*/
inline DocumentClassifierProperties& WithTrainingEndTime(const Aws::Utils::DateTime& value) { SetTrainingEndTime(value); return *this;}
/**
* <p>The time that training of the document classifier was completed. Indicates
* the time when the training completes on documentation classifiers. You are
* billed for the time interval between this time and the value of
* TrainingStartTime.</p>
*/
inline DocumentClassifierProperties& WithTrainingEndTime(Aws::Utils::DateTime&& value) { SetTrainingEndTime(std::move(value)); return *this;}
/**
* <p>The input data configuration that you supplied when you created the document
* classifier for training.</p>
*/
inline const DocumentClassifierInputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
/**
* <p>The input data configuration that you supplied when you created the document
* classifier for training.</p>
*/
inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
/**
* <p>The input data configuration that you supplied when you created the document
* classifier for training.</p>
*/
inline void SetInputDataConfig(const DocumentClassifierInputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
/**
* <p>The input data configuration that you supplied when you created the document
* classifier for training.</p>
*/
inline void SetInputDataConfig(DocumentClassifierInputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
/**
* <p>The input data configuration that you supplied when you created the document
* classifier for training.</p>
*/
inline DocumentClassifierProperties& WithInputDataConfig(const DocumentClassifierInputDataConfig& value) { SetInputDataConfig(value); return *this;}
/**
* <p>The input data configuration that you supplied when you created the document
* classifier for training.</p>
*/
inline DocumentClassifierProperties& WithInputDataConfig(DocumentClassifierInputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;}
/**
* <p> Provides output results configuration parameters for custom classifier
* jobs.</p>
*/
inline const DocumentClassifierOutputDataConfig& GetOutputDataConfig() const{ return m_outputDataConfig; }
/**
* <p> Provides output results configuration parameters for custom classifier
* jobs.</p>
*/
inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
/**
* <p> Provides output results configuration parameters for custom classifier
* jobs.</p>
*/
inline void SetOutputDataConfig(const DocumentClassifierOutputDataConfig& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = value; }
/**
* <p> Provides output results configuration parameters for custom classifier
* jobs.</p>
*/
inline void SetOutputDataConfig(DocumentClassifierOutputDataConfig&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::move(value); }
/**
* <p> Provides output results configuration parameters for custom classifier
* jobs.</p>
*/
inline DocumentClassifierProperties& WithOutputDataConfig(const DocumentClassifierOutputDataConfig& value) { SetOutputDataConfig(value); return *this;}
/**
* <p> Provides output results configuration parameters for custom classifier
* jobs.</p>
*/
inline DocumentClassifierProperties& WithOutputDataConfig(DocumentClassifierOutputDataConfig&& value) { SetOutputDataConfig(std::move(value)); return *this;}
/**
* <p>Information about the document classifier, including the number of documents
* used for training the classifier, the number of documents used for test the
* classifier, and an accuracy rating.</p>
*/
inline const ClassifierMetadata& GetClassifierMetadata() const{ return m_classifierMetadata; }
/**
* <p>Information about the document classifier, including the number of documents
* used for training the classifier, the number of documents used for test the
* classifier, and an accuracy rating.</p>
*/
inline bool ClassifierMetadataHasBeenSet() const { return m_classifierMetadataHasBeenSet; }
/**
* <p>Information about the document classifier, including the number of documents
* used for training the classifier, the number of documents used for test the
* classifier, and an accuracy rating.</p>
*/
inline void SetClassifierMetadata(const ClassifierMetadata& value) { m_classifierMetadataHasBeenSet = true; m_classifierMetadata = value; }
/**
* <p>Information about the document classifier, including the number of documents
* used for training the classifier, the number of documents used for test the
* classifier, and an accuracy rating.</p>
*/
inline void SetClassifierMetadata(ClassifierMetadata&& value) { m_classifierMetadataHasBeenSet = true; m_classifierMetadata = std::move(value); }
/**
* <p>Information about the document classifier, including the number of documents
* used for training the classifier, the number of documents used for test the
* classifier, and an accuracy rating.</p>
*/
inline DocumentClassifierProperties& WithClassifierMetadata(const ClassifierMetadata& value) { SetClassifierMetadata(value); return *this;}
/**
* <p>Information about the document classifier, including the number of documents
* used for training the classifier, the number of documents used for test the
* classifier, and an accuracy rating.</p>
*/
inline DocumentClassifierProperties& WithClassifierMetadata(ClassifierMetadata&& value) { SetClassifierMetadata(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline const Aws::String& GetDataAccessRoleArn() const{ return m_dataAccessRoleArn; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline void SetDataAccessRoleArn(const Aws::String& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline void SetDataAccessRoleArn(Aws::String&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline void SetDataAccessRoleArn(const char* value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline DocumentClassifierProperties& WithDataAccessRoleArn(const Aws::String& value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline DocumentClassifierProperties& WithDataAccessRoleArn(Aws::String&& value) { SetDataAccessRoleArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline DocumentClassifierProperties& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline const Aws::String& GetVolumeKmsKeyId() const{ return m_volumeKmsKeyId; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline void SetVolumeKmsKeyId(const Aws::String& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = value; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline void SetVolumeKmsKeyId(Aws::String&& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = std::move(value); }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline void SetVolumeKmsKeyId(const char* value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId.assign(value); }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline DocumentClassifierProperties& WithVolumeKmsKeyId(const Aws::String& value) { SetVolumeKmsKeyId(value); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline DocumentClassifierProperties& WithVolumeKmsKeyId(Aws::String&& value) { SetVolumeKmsKeyId(std::move(value)); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline DocumentClassifierProperties& WithVolumeKmsKeyId(const char* value) { SetVolumeKmsKeyId(value); return *this;}
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom classifier. For more
* information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom classifier. For more
* information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom classifier. For more
* information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom classifier. For more
* information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom classifier. For more
* information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline DocumentClassifierProperties& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom classifier. For more
* information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline DocumentClassifierProperties& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
/**
* <p>Indicates the mode in which the specific classifier was trained. This also
* indicates the format of input documents and the format of the confusion matrix.
* Each classifier can only be trained in one mode and this cannot be changed once
* the classifier is trained.</p>
*/
inline const DocumentClassifierMode& GetMode() const{ return m_mode; }
/**
* <p>Indicates the mode in which the specific classifier was trained. This also
* indicates the format of input documents and the format of the confusion matrix.
* Each classifier can only be trained in one mode and this cannot be changed once
* the classifier is trained.</p>
*/
inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
/**
* <p>Indicates the mode in which the specific classifier was trained. This also
* indicates the format of input documents and the format of the confusion matrix.
* Each classifier can only be trained in one mode and this cannot be changed once
* the classifier is trained.</p>
*/
inline void SetMode(const DocumentClassifierMode& value) { m_modeHasBeenSet = true; m_mode = value; }
/**
* <p>Indicates the mode in which the specific classifier was trained. This also
* indicates the format of input documents and the format of the confusion matrix.
* Each classifier can only be trained in one mode and this cannot be changed once
* the classifier is trained.</p>
*/
inline void SetMode(DocumentClassifierMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
/**
* <p>Indicates the mode in which the specific classifier was trained. This also
* indicates the format of input documents and the format of the confusion matrix.
* Each classifier can only be trained in one mode and this cannot be changed once
* the classifier is trained.</p>
*/
inline DocumentClassifierProperties& WithMode(const DocumentClassifierMode& value) { SetMode(value); return *this;}
/**
* <p>Indicates the mode in which the specific classifier was trained. This also
* indicates the format of input documents and the format of the confusion matrix.
* Each classifier can only be trained in one mode and this cannot be changed once
* the classifier is trained.</p>
*/
inline DocumentClassifierProperties& WithMode(DocumentClassifierMode&& value) { SetMode(std::move(value)); return *this;}
private:
Aws::String m_documentClassifierArn;
bool m_documentClassifierArnHasBeenSet;
LanguageCode m_languageCode;
bool m_languageCodeHasBeenSet;
ModelStatus m_status;
bool m_statusHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::Utils::DateTime m_submitTime;
bool m_submitTimeHasBeenSet;
Aws::Utils::DateTime m_endTime;
bool m_endTimeHasBeenSet;
Aws::Utils::DateTime m_trainingStartTime;
bool m_trainingStartTimeHasBeenSet;
Aws::Utils::DateTime m_trainingEndTime;
bool m_trainingEndTimeHasBeenSet;
DocumentClassifierInputDataConfig m_inputDataConfig;
bool m_inputDataConfigHasBeenSet;
DocumentClassifierOutputDataConfig m_outputDataConfig;
bool m_outputDataConfigHasBeenSet;
ClassifierMetadata m_classifierMetadata;
bool m_classifierMetadataHasBeenSet;
Aws::String m_dataAccessRoleArn;
bool m_dataAccessRoleArnHasBeenSet;
Aws::String m_volumeKmsKeyId;
bool m_volumeKmsKeyIdHasBeenSet;
VpcConfig m_vpcConfig;
bool m_vpcConfigHasBeenSet;
DocumentClassifierMode m_mode;
bool m_modeHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Specifies one of the label or labels that categorize the document being
* analyzed.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DocumentLabel">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API DocumentLabel
{
public:
DocumentLabel();
DocumentLabel(Aws::Utils::Json::JsonView jsonValue);
DocumentLabel& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the label.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the label.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the label.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the label.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the label.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the label.</p>
*/
inline DocumentLabel& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the label.</p>
*/
inline DocumentLabel& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the label.</p>
*/
inline DocumentLabel& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The confidence score that Amazon Comprehend has this label correctly
* attributed.</p>
*/
inline double GetScore() const{ return m_score; }
/**
* <p>The confidence score that Amazon Comprehend has this label correctly
* attributed.</p>
*/
inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
/**
* <p>The confidence score that Amazon Comprehend has this label correctly
* attributed.</p>
*/
inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
/**
* <p>The confidence score that Amazon Comprehend has this label correctly
* attributed.</p>
*/
inline DocumentLabel& WithScore(double value) { SetScore(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
double m_score;
bool m_scoreHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,134 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Returns the code for the dominant language in the input text and the level of
* confidence that Amazon Comprehend has in the accuracy of the
* detection.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DominantLanguage">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API DominantLanguage
{
public:
DominantLanguage();
DominantLanguage(Aws::Utils::Json::JsonView jsonValue);
DominantLanguage& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The RFC 5646 language code for the dominant language. For more information
* about RFC 5646, see <a href="https://tools.ietf.org/html/rfc5646">Tags for
* Identifying Languages</a> on the <i>IETF Tools</i> web site.</p>
*/
inline const Aws::String& GetLanguageCode() const{ return m_languageCode; }
/**
* <p>The RFC 5646 language code for the dominant language. For more information
* about RFC 5646, see <a href="https://tools.ietf.org/html/rfc5646">Tags for
* Identifying Languages</a> on the <i>IETF Tools</i> web site.</p>
*/
inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
/**
* <p>The RFC 5646 language code for the dominant language. For more information
* about RFC 5646, see <a href="https://tools.ietf.org/html/rfc5646">Tags for
* Identifying Languages</a> on the <i>IETF Tools</i> web site.</p>
*/
inline void SetLanguageCode(const Aws::String& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
/**
* <p>The RFC 5646 language code for the dominant language. For more information
* about RFC 5646, see <a href="https://tools.ietf.org/html/rfc5646">Tags for
* Identifying Languages</a> on the <i>IETF Tools</i> web site.</p>
*/
inline void SetLanguageCode(Aws::String&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
/**
* <p>The RFC 5646 language code for the dominant language. For more information
* about RFC 5646, see <a href="https://tools.ietf.org/html/rfc5646">Tags for
* Identifying Languages</a> on the <i>IETF Tools</i> web site.</p>
*/
inline void SetLanguageCode(const char* value) { m_languageCodeHasBeenSet = true; m_languageCode.assign(value); }
/**
* <p>The RFC 5646 language code for the dominant language. For more information
* about RFC 5646, see <a href="https://tools.ietf.org/html/rfc5646">Tags for
* Identifying Languages</a> on the <i>IETF Tools</i> web site.</p>
*/
inline DominantLanguage& WithLanguageCode(const Aws::String& value) { SetLanguageCode(value); return *this;}
/**
* <p>The RFC 5646 language code for the dominant language. For more information
* about RFC 5646, see <a href="https://tools.ietf.org/html/rfc5646">Tags for
* Identifying Languages</a> on the <i>IETF Tools</i> web site.</p>
*/
inline DominantLanguage& WithLanguageCode(Aws::String&& value) { SetLanguageCode(std::move(value)); return *this;}
/**
* <p>The RFC 5646 language code for the dominant language. For more information
* about RFC 5646, see <a href="https://tools.ietf.org/html/rfc5646">Tags for
* Identifying Languages</a> on the <i>IETF Tools</i> web site.</p>
*/
inline DominantLanguage& WithLanguageCode(const char* value) { SetLanguageCode(value); return *this;}
/**
* <p>The level of confidence that Amazon Comprehend has in the accuracy of the
* detection.</p>
*/
inline double GetScore() const{ return m_score; }
/**
* <p>The level of confidence that Amazon Comprehend has in the accuracy of the
* detection.</p>
*/
inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
/**
* <p>The level of confidence that Amazon Comprehend has in the accuracy of the
* detection.</p>
*/
inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
/**
* <p>The level of confidence that Amazon Comprehend has in the accuracy of the
* detection.</p>
*/
inline DominantLanguage& WithScore(double value) { SetScore(value); return *this;}
private:
Aws::String m_languageCode;
bool m_languageCodeHasBeenSet;
double m_score;
bool m_scoreHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,223 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/comprehend/model/JobStatus.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Provides information for filtering a list of dominant language detection
* jobs. For more information, see the operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DominantLanguageDetectionJobFilter">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API DominantLanguageDetectionJobFilter
{
public:
DominantLanguageDetectionJobFilter();
DominantLanguageDetectionJobFilter(Aws::Utils::Json::JsonView jsonValue);
DominantLanguageDetectionJobFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Filters on the name of the job.</p>
*/
inline const Aws::String& GetJobName() const{ return m_jobName; }
/**
* <p>Filters on the name of the job.</p>
*/
inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
/**
* <p>Filters on the name of the job.</p>
*/
inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
/**
* <p>Filters on the name of the job.</p>
*/
inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
/**
* <p>Filters on the name of the job.</p>
*/
inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
/**
* <p>Filters on the name of the job.</p>
*/
inline DominantLanguageDetectionJobFilter& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
/**
* <p>Filters on the name of the job.</p>
*/
inline DominantLanguageDetectionJobFilter& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
/**
* <p>Filters on the name of the job.</p>
*/
inline DominantLanguageDetectionJobFilter& WithJobName(const char* value) { SetJobName(value); return *this;}
/**
* <p>Filters the list of jobs based on job status. Returns only jobs with the
* specified status.</p>
*/
inline const JobStatus& GetJobStatus() const{ return m_jobStatus; }
/**
* <p>Filters the list of jobs based on job status. Returns only jobs with the
* specified status.</p>
*/
inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
/**
* <p>Filters the list of jobs based on job status. Returns only jobs with the
* specified status.</p>
*/
inline void SetJobStatus(const JobStatus& value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; }
/**
* <p>Filters the list of jobs based on job status. Returns only jobs with the
* specified status.</p>
*/
inline void SetJobStatus(JobStatus&& value) { m_jobStatusHasBeenSet = true; m_jobStatus = std::move(value); }
/**
* <p>Filters the list of jobs based on job status. Returns only jobs with the
* specified status.</p>
*/
inline DominantLanguageDetectionJobFilter& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;}
/**
* <p>Filters the list of jobs based on job status. Returns only jobs with the
* specified status.</p>
*/
inline DominantLanguageDetectionJobFilter& WithJobStatus(JobStatus&& value) { SetJobStatus(std::move(value)); return *this;}
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline const Aws::Utils::DateTime& GetSubmitTimeBefore() const{ return m_submitTimeBefore; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline bool SubmitTimeBeforeHasBeenSet() const { return m_submitTimeBeforeHasBeenSet; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline void SetSubmitTimeBefore(const Aws::Utils::DateTime& value) { m_submitTimeBeforeHasBeenSet = true; m_submitTimeBefore = value; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline void SetSubmitTimeBefore(Aws::Utils::DateTime&& value) { m_submitTimeBeforeHasBeenSet = true; m_submitTimeBefore = std::move(value); }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline DominantLanguageDetectionJobFilter& WithSubmitTimeBefore(const Aws::Utils::DateTime& value) { SetSubmitTimeBefore(value); return *this;}
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline DominantLanguageDetectionJobFilter& WithSubmitTimeBefore(Aws::Utils::DateTime&& value) { SetSubmitTimeBefore(std::move(value)); return *this;}
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline const Aws::Utils::DateTime& GetSubmitTimeAfter() const{ return m_submitTimeAfter; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline bool SubmitTimeAfterHasBeenSet() const { return m_submitTimeAfterHasBeenSet; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline void SetSubmitTimeAfter(const Aws::Utils::DateTime& value) { m_submitTimeAfterHasBeenSet = true; m_submitTimeAfter = value; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline void SetSubmitTimeAfter(Aws::Utils::DateTime&& value) { m_submitTimeAfterHasBeenSet = true; m_submitTimeAfter = std::move(value); }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline DominantLanguageDetectionJobFilter& WithSubmitTimeAfter(const Aws::Utils::DateTime& value) { SetSubmitTimeAfter(value); return *this;}
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline DominantLanguageDetectionJobFilter& WithSubmitTimeAfter(Aws::Utils::DateTime&& value) { SetSubmitTimeAfter(std::move(value)); return *this;}
private:
Aws::String m_jobName;
bool m_jobNameHasBeenSet;
JobStatus m_jobStatus;
bool m_jobStatusHasBeenSet;
Aws::Utils::DateTime m_submitTimeBefore;
bool m_submitTimeBeforeHasBeenSet;
Aws::Utils::DateTime m_submitTimeAfter;
bool m_submitTimeAfterHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,592 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/comprehend/model/JobStatus.h>
#include <aws/core/utils/DateTime.h>
#include <aws/comprehend/model/InputDataConfig.h>
#include <aws/comprehend/model/OutputDataConfig.h>
#include <aws/comprehend/model/VpcConfig.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Provides information about a dominant language detection job.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DominantLanguageDetectionJobProperties">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API DominantLanguageDetectionJobProperties
{
public:
DominantLanguageDetectionJobProperties();
DominantLanguageDetectionJobProperties(Aws::Utils::Json::JsonView jsonValue);
DominantLanguageDetectionJobProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The identifier assigned to the dominant language detection job.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier assigned to the dominant language detection job.</p>
*/
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
/**
* <p>The identifier assigned to the dominant language detection job.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
/**
* <p>The identifier assigned to the dominant language detection job.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
/**
* <p>The identifier assigned to the dominant language detection job.</p>
*/
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
/**
* <p>The identifier assigned to the dominant language detection job.</p>
*/
inline DominantLanguageDetectionJobProperties& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier assigned to the dominant language detection job.</p>
*/
inline DominantLanguageDetectionJobProperties& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier assigned to the dominant language detection job.</p>
*/
inline DominantLanguageDetectionJobProperties& WithJobId(const char* value) { SetJobId(value); return *this;}
/**
* <p>The name that you assigned to the dominant language detection job.</p>
*/
inline const Aws::String& GetJobName() const{ return m_jobName; }
/**
* <p>The name that you assigned to the dominant language detection job.</p>
*/
inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
/**
* <p>The name that you assigned to the dominant language detection job.</p>
*/
inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
/**
* <p>The name that you assigned to the dominant language detection job.</p>
*/
inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
/**
* <p>The name that you assigned to the dominant language detection job.</p>
*/
inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
/**
* <p>The name that you assigned to the dominant language detection job.</p>
*/
inline DominantLanguageDetectionJobProperties& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
/**
* <p>The name that you assigned to the dominant language detection job.</p>
*/
inline DominantLanguageDetectionJobProperties& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
/**
* <p>The name that you assigned to the dominant language detection job.</p>
*/
inline DominantLanguageDetectionJobProperties& WithJobName(const char* value) { SetJobName(value); return *this;}
/**
* <p>The current status of the dominant language detection job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline const JobStatus& GetJobStatus() const{ return m_jobStatus; }
/**
* <p>The current status of the dominant language detection job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
/**
* <p>The current status of the dominant language detection job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline void SetJobStatus(const JobStatus& value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; }
/**
* <p>The current status of the dominant language detection job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline void SetJobStatus(JobStatus&& value) { m_jobStatusHasBeenSet = true; m_jobStatus = std::move(value); }
/**
* <p>The current status of the dominant language detection job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline DominantLanguageDetectionJobProperties& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;}
/**
* <p>The current status of the dominant language detection job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline DominantLanguageDetectionJobProperties& WithJobStatus(JobStatus&& value) { SetJobStatus(std::move(value)); return *this;}
/**
* <p>A description for the status of a job.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>A description for the status of a job.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>A description for the status of a job.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>A description for the status of a job.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>A description for the status of a job.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>A description for the status of a job.</p>
*/
inline DominantLanguageDetectionJobProperties& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>A description for the status of a job.</p>
*/
inline DominantLanguageDetectionJobProperties& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>A description for the status of a job.</p>
*/
inline DominantLanguageDetectionJobProperties& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>The time that the dominant language detection job was submitted for
* processing.</p>
*/
inline const Aws::Utils::DateTime& GetSubmitTime() const{ return m_submitTime; }
/**
* <p>The time that the dominant language detection job was submitted for
* processing.</p>
*/
inline bool SubmitTimeHasBeenSet() const { return m_submitTimeHasBeenSet; }
/**
* <p>The time that the dominant language detection job was submitted for
* processing.</p>
*/
inline void SetSubmitTime(const Aws::Utils::DateTime& value) { m_submitTimeHasBeenSet = true; m_submitTime = value; }
/**
* <p>The time that the dominant language detection job was submitted for
* processing.</p>
*/
inline void SetSubmitTime(Aws::Utils::DateTime&& value) { m_submitTimeHasBeenSet = true; m_submitTime = std::move(value); }
/**
* <p>The time that the dominant language detection job was submitted for
* processing.</p>
*/
inline DominantLanguageDetectionJobProperties& WithSubmitTime(const Aws::Utils::DateTime& value) { SetSubmitTime(value); return *this;}
/**
* <p>The time that the dominant language detection job was submitted for
* processing.</p>
*/
inline DominantLanguageDetectionJobProperties& WithSubmitTime(Aws::Utils::DateTime&& value) { SetSubmitTime(std::move(value)); return *this;}
/**
* <p>The time that the dominant language detection job completed.</p>
*/
inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
/**
* <p>The time that the dominant language detection job completed.</p>
*/
inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
/**
* <p>The time that the dominant language detection job completed.</p>
*/
inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
/**
* <p>The time that the dominant language detection job completed.</p>
*/
inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
/**
* <p>The time that the dominant language detection job completed.</p>
*/
inline DominantLanguageDetectionJobProperties& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
/**
* <p>The time that the dominant language detection job completed.</p>
*/
inline DominantLanguageDetectionJobProperties& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
/**
* <p>The input data configuration that you supplied when you created the dominant
* language detection job.</p>
*/
inline const InputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
/**
* <p>The input data configuration that you supplied when you created the dominant
* language detection job.</p>
*/
inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
/**
* <p>The input data configuration that you supplied when you created the dominant
* language detection job.</p>
*/
inline void SetInputDataConfig(const InputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
/**
* <p>The input data configuration that you supplied when you created the dominant
* language detection job.</p>
*/
inline void SetInputDataConfig(InputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
/**
* <p>The input data configuration that you supplied when you created the dominant
* language detection job.</p>
*/
inline DominantLanguageDetectionJobProperties& WithInputDataConfig(const InputDataConfig& value) { SetInputDataConfig(value); return *this;}
/**
* <p>The input data configuration that you supplied when you created the dominant
* language detection job.</p>
*/
inline DominantLanguageDetectionJobProperties& WithInputDataConfig(InputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;}
/**
* <p>The output data configuration that you supplied when you created the dominant
* language detection job.</p>
*/
inline const OutputDataConfig& GetOutputDataConfig() const{ return m_outputDataConfig; }
/**
* <p>The output data configuration that you supplied when you created the dominant
* language detection job.</p>
*/
inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
/**
* <p>The output data configuration that you supplied when you created the dominant
* language detection job.</p>
*/
inline void SetOutputDataConfig(const OutputDataConfig& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = value; }
/**
* <p>The output data configuration that you supplied when you created the dominant
* language detection job.</p>
*/
inline void SetOutputDataConfig(OutputDataConfig&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::move(value); }
/**
* <p>The output data configuration that you supplied when you created the dominant
* language detection job.</p>
*/
inline DominantLanguageDetectionJobProperties& WithOutputDataConfig(const OutputDataConfig& value) { SetOutputDataConfig(value); return *this;}
/**
* <p>The output data configuration that you supplied when you created the dominant
* language detection job.</p>
*/
inline DominantLanguageDetectionJobProperties& WithOutputDataConfig(OutputDataConfig&& value) { SetOutputDataConfig(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to
* your input data.</p>
*/
inline const Aws::String& GetDataAccessRoleArn() const{ return m_dataAccessRoleArn; }
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to
* your input data.</p>
*/
inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to
* your input data.</p>
*/
inline void SetDataAccessRoleArn(const Aws::String& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = value; }
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to
* your input data.</p>
*/
inline void SetDataAccessRoleArn(Aws::String&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to
* your input data.</p>
*/
inline void SetDataAccessRoleArn(const char* value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to
* your input data.</p>
*/
inline DominantLanguageDetectionJobProperties& WithDataAccessRoleArn(const Aws::String& value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to
* your input data.</p>
*/
inline DominantLanguageDetectionJobProperties& WithDataAccessRoleArn(Aws::String&& value) { SetDataAccessRoleArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to
* your input data.</p>
*/
inline DominantLanguageDetectionJobProperties& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline const Aws::String& GetVolumeKmsKeyId() const{ return m_volumeKmsKeyId; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline void SetVolumeKmsKeyId(const Aws::String& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = value; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline void SetVolumeKmsKeyId(Aws::String&& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = std::move(value); }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline void SetVolumeKmsKeyId(const char* value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId.assign(value); }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline DominantLanguageDetectionJobProperties& WithVolumeKmsKeyId(const Aws::String& value) { SetVolumeKmsKeyId(value); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline DominantLanguageDetectionJobProperties& WithVolumeKmsKeyId(Aws::String&& value) { SetVolumeKmsKeyId(std::move(value)); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline DominantLanguageDetectionJobProperties& WithVolumeKmsKeyId(const char* value) { SetVolumeKmsKeyId(value); return *this;}
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your dominant language detection job.
* For more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your dominant language detection job.
* For more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your dominant language detection job.
* For more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your dominant language detection job.
* For more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your dominant language detection job.
* For more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline DominantLanguageDetectionJobProperties& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your dominant language detection job.
* For more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline DominantLanguageDetectionJobProperties& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
private:
Aws::String m_jobId;
bool m_jobIdHasBeenSet;
Aws::String m_jobName;
bool m_jobNameHasBeenSet;
JobStatus m_jobStatus;
bool m_jobStatusHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::Utils::DateTime m_submitTime;
bool m_submitTimeHasBeenSet;
Aws::Utils::DateTime m_endTime;
bool m_endTimeHasBeenSet;
InputDataConfig m_inputDataConfig;
bool m_inputDataConfigHasBeenSet;
OutputDataConfig m_outputDataConfig;
bool m_outputDataConfigHasBeenSet;
Aws::String m_dataAccessRoleArn;
bool m_dataAccessRoleArnHasBeenSet;
Aws::String m_volumeKmsKeyId;
bool m_volumeKmsKeyIdHasBeenSet;
VpcConfig m_vpcConfig;
bool m_vpcConfigHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,220 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/comprehend/model/EndpointStatus.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>The filter used to determine which endpoints are are returned. You can filter
* jobs on their name, model, status, or the date and time that they were created.
* You can only set one filter at a time. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EndpointFilter">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API EndpointFilter
{
public:
EndpointFilter();
EndpointFilter(Aws::Utils::Json::JsonView jsonValue);
EndpointFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint is
* attached.</p>
*/
inline const Aws::String& GetModelArn() const{ return m_modelArn; }
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint is
* attached.</p>
*/
inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; }
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint is
* attached.</p>
*/
inline void SetModelArn(const Aws::String& value) { m_modelArnHasBeenSet = true; m_modelArn = value; }
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint is
* attached.</p>
*/
inline void SetModelArn(Aws::String&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::move(value); }
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint is
* attached.</p>
*/
inline void SetModelArn(const char* value) { m_modelArnHasBeenSet = true; m_modelArn.assign(value); }
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint is
* attached.</p>
*/
inline EndpointFilter& WithModelArn(const Aws::String& value) { SetModelArn(value); return *this;}
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint is
* attached.</p>
*/
inline EndpointFilter& WithModelArn(Aws::String&& value) { SetModelArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint is
* attached.</p>
*/
inline EndpointFilter& WithModelArn(const char* value) { SetModelArn(value); return *this;}
/**
* <p>Specifies the status of the endpoint being returned. Possible values are:
* Creating, Ready, Updating, Deleting, Failed.</p>
*/
inline const EndpointStatus& GetStatus() const{ return m_status; }
/**
* <p>Specifies the status of the endpoint being returned. Possible values are:
* Creating, Ready, Updating, Deleting, Failed.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>Specifies the status of the endpoint being returned. Possible values are:
* Creating, Ready, Updating, Deleting, Failed.</p>
*/
inline void SetStatus(const EndpointStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>Specifies the status of the endpoint being returned. Possible values are:
* Creating, Ready, Updating, Deleting, Failed.</p>
*/
inline void SetStatus(EndpointStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>Specifies the status of the endpoint being returned. Possible values are:
* Creating, Ready, Updating, Deleting, Failed.</p>
*/
inline EndpointFilter& WithStatus(const EndpointStatus& value) { SetStatus(value); return *this;}
/**
* <p>Specifies the status of the endpoint being returned. Possible values are:
* Creating, Ready, Updating, Deleting, Failed.</p>
*/
inline EndpointFilter& WithStatus(EndpointStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>Specifies a date before which the returned endpoint or endpoints were
* created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTimeBefore() const{ return m_creationTimeBefore; }
/**
* <p>Specifies a date before which the returned endpoint or endpoints were
* created.</p>
*/
inline bool CreationTimeBeforeHasBeenSet() const { return m_creationTimeBeforeHasBeenSet; }
/**
* <p>Specifies a date before which the returned endpoint or endpoints were
* created.</p>
*/
inline void SetCreationTimeBefore(const Aws::Utils::DateTime& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = value; }
/**
* <p>Specifies a date before which the returned endpoint or endpoints were
* created.</p>
*/
inline void SetCreationTimeBefore(Aws::Utils::DateTime&& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = std::move(value); }
/**
* <p>Specifies a date before which the returned endpoint or endpoints were
* created.</p>
*/
inline EndpointFilter& WithCreationTimeBefore(const Aws::Utils::DateTime& value) { SetCreationTimeBefore(value); return *this;}
/**
* <p>Specifies a date before which the returned endpoint or endpoints were
* created.</p>
*/
inline EndpointFilter& WithCreationTimeBefore(Aws::Utils::DateTime&& value) { SetCreationTimeBefore(std::move(value)); return *this;}
/**
* <p>Specifies a date after which the returned endpoint or endpoints were
* created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTimeAfter() const{ return m_creationTimeAfter; }
/**
* <p>Specifies a date after which the returned endpoint or endpoints were
* created.</p>
*/
inline bool CreationTimeAfterHasBeenSet() const { return m_creationTimeAfterHasBeenSet; }
/**
* <p>Specifies a date after which the returned endpoint or endpoints were
* created.</p>
*/
inline void SetCreationTimeAfter(const Aws::Utils::DateTime& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = value; }
/**
* <p>Specifies a date after which the returned endpoint or endpoints were
* created.</p>
*/
inline void SetCreationTimeAfter(Aws::Utils::DateTime&& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = std::move(value); }
/**
* <p>Specifies a date after which the returned endpoint or endpoints were
* created.</p>
*/
inline EndpointFilter& WithCreationTimeAfter(const Aws::Utils::DateTime& value) { SetCreationTimeAfter(value); return *this;}
/**
* <p>Specifies a date after which the returned endpoint or endpoints were
* created.</p>
*/
inline EndpointFilter& WithCreationTimeAfter(Aws::Utils::DateTime&& value) { SetCreationTimeAfter(std::move(value)); return *this;}
private:
Aws::String m_modelArn;
bool m_modelArnHasBeenSet;
EndpointStatus m_status;
bool m_statusHasBeenSet;
Aws::Utils::DateTime m_creationTimeBefore;
bool m_creationTimeBeforeHasBeenSet;
Aws::Utils::DateTime m_creationTimeAfter;
bool m_creationTimeAfterHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,361 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/comprehend/model/EndpointStatus.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Specifies information about the specified endpoint.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EndpointProperties">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API EndpointProperties
{
public:
EndpointProperties();
EndpointProperties(Aws::Utils::Json::JsonView jsonValue);
EndpointProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <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 EndpointProperties& WithEndpointArn(const Aws::String& value) { SetEndpointArn(value); return *this;}
/**
* <p>The Amazon Resource Number (ARN) of the endpoint.</p>
*/
inline EndpointProperties& WithEndpointArn(Aws::String&& value) { SetEndpointArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Number (ARN) of the endpoint.</p>
*/
inline EndpointProperties& WithEndpointArn(const char* value) { SetEndpointArn(value); return *this;}
/**
* <p>Specifies the status of the endpoint. Because the endpoint updates and
* creation are asynchronous, so customers will need to wait for the endpoint to be
* <code>Ready</code> status before making inference requests.</p>
*/
inline const EndpointStatus& GetStatus() const{ return m_status; }
/**
* <p>Specifies the status of the endpoint. Because the endpoint updates and
* creation are asynchronous, so customers will need to wait for the endpoint to be
* <code>Ready</code> status before making inference requests.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>Specifies the status of the endpoint. Because the endpoint updates and
* creation are asynchronous, so customers will need to wait for the endpoint to be
* <code>Ready</code> status before making inference requests.</p>
*/
inline void SetStatus(const EndpointStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>Specifies the status of the endpoint. Because the endpoint updates and
* creation are asynchronous, so customers will need to wait for the endpoint to be
* <code>Ready</code> status before making inference requests.</p>
*/
inline void SetStatus(EndpointStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>Specifies the status of the endpoint. Because the endpoint updates and
* creation are asynchronous, so customers will need to wait for the endpoint to be
* <code>Ready</code> status before making inference requests.</p>
*/
inline EndpointProperties& WithStatus(const EndpointStatus& value) { SetStatus(value); return *this;}
/**
* <p>Specifies the status of the endpoint. Because the endpoint updates and
* creation are asynchronous, so customers will need to wait for the endpoint to be
* <code>Ready</code> status before making inference requests.</p>
*/
inline EndpointProperties& WithStatus(EndpointStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>Specifies a reason for failure in cases of <code>Failed</code> status.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>Specifies a reason for failure in cases of <code>Failed</code> status.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>Specifies a reason for failure in cases of <code>Failed</code> status.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>Specifies a reason for failure in cases of <code>Failed</code> status.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>Specifies a reason for failure in cases of <code>Failed</code> status.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>Specifies a reason for failure in cases of <code>Failed</code> status.</p>
*/
inline EndpointProperties& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>Specifies a reason for failure in cases of <code>Failed</code> status.</p>
*/
inline EndpointProperties& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>Specifies a reason for failure in cases of <code>Failed</code> status.</p>
*/
inline EndpointProperties& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint is
* attached.</p>
*/
inline const Aws::String& GetModelArn() const{ return m_modelArn; }
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint is
* attached.</p>
*/
inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; }
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint is
* attached.</p>
*/
inline void SetModelArn(const Aws::String& value) { m_modelArnHasBeenSet = true; m_modelArn = value; }
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint is
* attached.</p>
*/
inline void SetModelArn(Aws::String&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::move(value); }
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint is
* attached.</p>
*/
inline void SetModelArn(const char* value) { m_modelArnHasBeenSet = true; m_modelArn.assign(value); }
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint is
* attached.</p>
*/
inline EndpointProperties& WithModelArn(const Aws::String& value) { SetModelArn(value); return *this;}
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint is
* attached.</p>
*/
inline EndpointProperties& WithModelArn(Aws::String&& value) { SetModelArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Number (ARN) of the model to which the endpoint is
* attached.</p>
*/
inline EndpointProperties& WithModelArn(const char* value) { SetModelArn(value); return *this;}
/**
* <p>The desired number of inference units to be used by the model using this
* endpoint. Each inference unit represents of a throughput of 100 characters per
* second.</p>
*/
inline int GetDesiredInferenceUnits() const{ return m_desiredInferenceUnits; }
/**
* <p>The desired number of inference units to be used by the model using this
* endpoint. Each inference unit represents of a throughput of 100 characters per
* second.</p>
*/
inline bool DesiredInferenceUnitsHasBeenSet() const { return m_desiredInferenceUnitsHasBeenSet; }
/**
* <p>The desired number of inference units to be used by the model using this
* endpoint. Each inference unit represents of a throughput of 100 characters per
* second.</p>
*/
inline void SetDesiredInferenceUnits(int value) { m_desiredInferenceUnitsHasBeenSet = true; m_desiredInferenceUnits = value; }
/**
* <p>The desired number of inference units to be used by the model using this
* endpoint. Each inference unit represents of a throughput of 100 characters per
* second.</p>
*/
inline EndpointProperties& WithDesiredInferenceUnits(int value) { SetDesiredInferenceUnits(value); return *this;}
/**
* <p>The number of inference units currently used by the model using this
* endpoint.</p>
*/
inline int GetCurrentInferenceUnits() const{ return m_currentInferenceUnits; }
/**
* <p>The number of inference units currently used by the model using this
* endpoint.</p>
*/
inline bool CurrentInferenceUnitsHasBeenSet() const { return m_currentInferenceUnitsHasBeenSet; }
/**
* <p>The number of inference units currently used by the model using this
* endpoint.</p>
*/
inline void SetCurrentInferenceUnits(int value) { m_currentInferenceUnitsHasBeenSet = true; m_currentInferenceUnits = value; }
/**
* <p>The number of inference units currently used by the model using this
* endpoint.</p>
*/
inline EndpointProperties& WithCurrentInferenceUnits(int value) { SetCurrentInferenceUnits(value); return *this;}
/**
* <p>The creation date and time of the endpoint.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>The creation date and time of the endpoint.</p>
*/
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
/**
* <p>The creation date and time of the endpoint.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
/**
* <p>The creation date and time of the endpoint.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
/**
* <p>The creation date and time of the endpoint.</p>
*/
inline EndpointProperties& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>The creation date and time of the endpoint.</p>
*/
inline EndpointProperties& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>The date and time that the endpoint was last modified.</p>
*/
inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
/**
* <p>The date and time that the endpoint was last modified.</p>
*/
inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
/**
* <p>The date and time that the endpoint was last modified.</p>
*/
inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
/**
* <p>The date and time that the endpoint was last modified.</p>
*/
inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
/**
* <p>The date and time that the endpoint was last modified.</p>
*/
inline EndpointProperties& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
/**
* <p>The date and time that the endpoint was last modified.</p>
*/
inline EndpointProperties& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
private:
Aws::String m_endpointArn;
bool m_endpointArnHasBeenSet;
EndpointStatus m_status;
bool m_statusHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::String m_modelArn;
bool m_modelArnHasBeenSet;
int m_desiredInferenceUnits;
bool m_desiredInferenceUnitsHasBeenSet;
int m_currentInferenceUnits;
bool m_currentInferenceUnitsHasBeenSet;
Aws::Utils::DateTime m_creationTime;
bool m_creationTimeHasBeenSet;
Aws::Utils::DateTime m_lastModifiedTime;
bool m_lastModifiedTimeHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,34 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Comprehend
{
namespace Model
{
enum class EndpointStatus
{
NOT_SET,
CREATING,
DELETING,
FAILED,
IN_SERVICE,
UPDATING
};
namespace EndpointStatusMapper
{
AWS_COMPREHEND_API EndpointStatus GetEndpointStatusForName(const Aws::String& name);
AWS_COMPREHEND_API Aws::String GetNameForEndpointStatus(EndpointStatus value);
} // namespace EndpointStatusMapper
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,223 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/comprehend/model/JobStatus.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Provides information for filtering a list of dominant language detection
* jobs. For more information, see the operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntitiesDetectionJobFilter">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API EntitiesDetectionJobFilter
{
public:
EntitiesDetectionJobFilter();
EntitiesDetectionJobFilter(Aws::Utils::Json::JsonView jsonValue);
EntitiesDetectionJobFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Filters on the name of the job.</p>
*/
inline const Aws::String& GetJobName() const{ return m_jobName; }
/**
* <p>Filters on the name of the job.</p>
*/
inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
/**
* <p>Filters on the name of the job.</p>
*/
inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
/**
* <p>Filters on the name of the job.</p>
*/
inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
/**
* <p>Filters on the name of the job.</p>
*/
inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
/**
* <p>Filters on the name of the job.</p>
*/
inline EntitiesDetectionJobFilter& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
/**
* <p>Filters on the name of the job.</p>
*/
inline EntitiesDetectionJobFilter& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
/**
* <p>Filters on the name of the job.</p>
*/
inline EntitiesDetectionJobFilter& WithJobName(const char* value) { SetJobName(value); return *this;}
/**
* <p>Filters the list of jobs based on job status. Returns only jobs with the
* specified status.</p>
*/
inline const JobStatus& GetJobStatus() const{ return m_jobStatus; }
/**
* <p>Filters the list of jobs based on job status. Returns only jobs with the
* specified status.</p>
*/
inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
/**
* <p>Filters the list of jobs based on job status. Returns only jobs with the
* specified status.</p>
*/
inline void SetJobStatus(const JobStatus& value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; }
/**
* <p>Filters the list of jobs based on job status. Returns only jobs with the
* specified status.</p>
*/
inline void SetJobStatus(JobStatus&& value) { m_jobStatusHasBeenSet = true; m_jobStatus = std::move(value); }
/**
* <p>Filters the list of jobs based on job status. Returns only jobs with the
* specified status.</p>
*/
inline EntitiesDetectionJobFilter& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;}
/**
* <p>Filters the list of jobs based on job status. Returns only jobs with the
* specified status.</p>
*/
inline EntitiesDetectionJobFilter& WithJobStatus(JobStatus&& value) { SetJobStatus(std::move(value)); return *this;}
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline const Aws::Utils::DateTime& GetSubmitTimeBefore() const{ return m_submitTimeBefore; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline bool SubmitTimeBeforeHasBeenSet() const { return m_submitTimeBeforeHasBeenSet; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline void SetSubmitTimeBefore(const Aws::Utils::DateTime& value) { m_submitTimeBeforeHasBeenSet = true; m_submitTimeBefore = value; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline void SetSubmitTimeBefore(Aws::Utils::DateTime&& value) { m_submitTimeBeforeHasBeenSet = true; m_submitTimeBefore = std::move(value); }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline EntitiesDetectionJobFilter& WithSubmitTimeBefore(const Aws::Utils::DateTime& value) { SetSubmitTimeBefore(value); return *this;}
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline EntitiesDetectionJobFilter& WithSubmitTimeBefore(Aws::Utils::DateTime&& value) { SetSubmitTimeBefore(std::move(value)); return *this;}
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline const Aws::Utils::DateTime& GetSubmitTimeAfter() const{ return m_submitTimeAfter; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline bool SubmitTimeAfterHasBeenSet() const { return m_submitTimeAfterHasBeenSet; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline void SetSubmitTimeAfter(const Aws::Utils::DateTime& value) { m_submitTimeAfterHasBeenSet = true; m_submitTimeAfter = value; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline void SetSubmitTimeAfter(Aws::Utils::DateTime&& value) { m_submitTimeAfterHasBeenSet = true; m_submitTimeAfter = std::move(value); }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline EntitiesDetectionJobFilter& WithSubmitTimeAfter(const Aws::Utils::DateTime& value) { SetSubmitTimeAfter(value); return *this;}
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline EntitiesDetectionJobFilter& WithSubmitTimeAfter(Aws::Utils::DateTime&& value) { SetSubmitTimeAfter(std::move(value)); return *this;}
private:
Aws::String m_jobName;
bool m_jobNameHasBeenSet;
JobStatus m_jobStatus;
bool m_jobStatusHasBeenSet;
Aws::Utils::DateTime m_submitTimeBefore;
bool m_submitTimeBeforeHasBeenSet;
Aws::Utils::DateTime m_submitTimeAfter;
bool m_submitTimeAfterHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,665 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/comprehend/model/JobStatus.h>
#include <aws/core/utils/DateTime.h>
#include <aws/comprehend/model/InputDataConfig.h>
#include <aws/comprehend/model/OutputDataConfig.h>
#include <aws/comprehend/model/LanguageCode.h>
#include <aws/comprehend/model/VpcConfig.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Provides information about an entities detection job.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntitiesDetectionJobProperties">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API EntitiesDetectionJobProperties
{
public:
EntitiesDetectionJobProperties();
EntitiesDetectionJobProperties(Aws::Utils::Json::JsonView jsonValue);
EntitiesDetectionJobProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The identifier assigned to the entities detection job.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier assigned to the entities detection job.</p>
*/
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
/**
* <p>The identifier assigned to the entities detection job.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
/**
* <p>The identifier assigned to the entities detection job.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
/**
* <p>The identifier assigned to the entities detection job.</p>
*/
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
/**
* <p>The identifier assigned to the entities detection job.</p>
*/
inline EntitiesDetectionJobProperties& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier assigned to the entities detection job.</p>
*/
inline EntitiesDetectionJobProperties& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier assigned to the entities detection job.</p>
*/
inline EntitiesDetectionJobProperties& WithJobId(const char* value) { SetJobId(value); return *this;}
/**
* <p>The name that you assigned the entities detection job.</p>
*/
inline const Aws::String& GetJobName() const{ return m_jobName; }
/**
* <p>The name that you assigned the entities detection job.</p>
*/
inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
/**
* <p>The name that you assigned the entities detection job.</p>
*/
inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
/**
* <p>The name that you assigned the entities detection job.</p>
*/
inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
/**
* <p>The name that you assigned the entities detection job.</p>
*/
inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
/**
* <p>The name that you assigned the entities detection job.</p>
*/
inline EntitiesDetectionJobProperties& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
/**
* <p>The name that you assigned the entities detection job.</p>
*/
inline EntitiesDetectionJobProperties& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
/**
* <p>The name that you assigned the entities detection job.</p>
*/
inline EntitiesDetectionJobProperties& WithJobName(const char* value) { SetJobName(value); return *this;}
/**
* <p>The current status of the entities detection job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline const JobStatus& GetJobStatus() const{ return m_jobStatus; }
/**
* <p>The current status of the entities detection job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
/**
* <p>The current status of the entities detection job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline void SetJobStatus(const JobStatus& value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; }
/**
* <p>The current status of the entities detection job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline void SetJobStatus(JobStatus&& value) { m_jobStatusHasBeenSet = true; m_jobStatus = std::move(value); }
/**
* <p>The current status of the entities detection job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline EntitiesDetectionJobProperties& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;}
/**
* <p>The current status of the entities detection job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline EntitiesDetectionJobProperties& WithJobStatus(JobStatus&& value) { SetJobStatus(std::move(value)); return *this;}
/**
* <p>A description of the status of a job.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>A description of the status of a job.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>A description of the status of a job.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>A description of the status of a job.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>A description of the status of a job.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>A description of the status of a job.</p>
*/
inline EntitiesDetectionJobProperties& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>A description of the status of a job.</p>
*/
inline EntitiesDetectionJobProperties& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>A description of the status of a job.</p>
*/
inline EntitiesDetectionJobProperties& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>The time that the entities detection job was submitted for processing.</p>
*/
inline const Aws::Utils::DateTime& GetSubmitTime() const{ return m_submitTime; }
/**
* <p>The time that the entities detection job was submitted for processing.</p>
*/
inline bool SubmitTimeHasBeenSet() const { return m_submitTimeHasBeenSet; }
/**
* <p>The time that the entities detection job was submitted for processing.</p>
*/
inline void SetSubmitTime(const Aws::Utils::DateTime& value) { m_submitTimeHasBeenSet = true; m_submitTime = value; }
/**
* <p>The time that the entities detection job was submitted for processing.</p>
*/
inline void SetSubmitTime(Aws::Utils::DateTime&& value) { m_submitTimeHasBeenSet = true; m_submitTime = std::move(value); }
/**
* <p>The time that the entities detection job was submitted for processing.</p>
*/
inline EntitiesDetectionJobProperties& WithSubmitTime(const Aws::Utils::DateTime& value) { SetSubmitTime(value); return *this;}
/**
* <p>The time that the entities detection job was submitted for processing.</p>
*/
inline EntitiesDetectionJobProperties& WithSubmitTime(Aws::Utils::DateTime&& value) { SetSubmitTime(std::move(value)); return *this;}
/**
* <p>The time that the entities detection job completed</p>
*/
inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
/**
* <p>The time that the entities detection job completed</p>
*/
inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
/**
* <p>The time that the entities detection job completed</p>
*/
inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
/**
* <p>The time that the entities detection job completed</p>
*/
inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
/**
* <p>The time that the entities detection job completed</p>
*/
inline EntitiesDetectionJobProperties& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
/**
* <p>The time that the entities detection job completed</p>
*/
inline EntitiesDetectionJobProperties& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline const Aws::String& GetEntityRecognizerArn() const{ return m_entityRecognizerArn; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline bool EntityRecognizerArnHasBeenSet() const { return m_entityRecognizerArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline void SetEntityRecognizerArn(const Aws::String& value) { m_entityRecognizerArnHasBeenSet = true; m_entityRecognizerArn = value; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline void SetEntityRecognizerArn(Aws::String&& value) { m_entityRecognizerArnHasBeenSet = true; m_entityRecognizerArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline void SetEntityRecognizerArn(const char* value) { m_entityRecognizerArnHasBeenSet = true; m_entityRecognizerArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline EntitiesDetectionJobProperties& WithEntityRecognizerArn(const Aws::String& value) { SetEntityRecognizerArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline EntitiesDetectionJobProperties& WithEntityRecognizerArn(Aws::String&& value) { SetEntityRecognizerArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline EntitiesDetectionJobProperties& WithEntityRecognizerArn(const char* value) { SetEntityRecognizerArn(value); return *this;}
/**
* <p>The input data configuration that you supplied when you created the entities
* detection job.</p>
*/
inline const InputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
/**
* <p>The input data configuration that you supplied when you created the entities
* detection job.</p>
*/
inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
/**
* <p>The input data configuration that you supplied when you created the entities
* detection job.</p>
*/
inline void SetInputDataConfig(const InputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
/**
* <p>The input data configuration that you supplied when you created the entities
* detection job.</p>
*/
inline void SetInputDataConfig(InputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
/**
* <p>The input data configuration that you supplied when you created the entities
* detection job.</p>
*/
inline EntitiesDetectionJobProperties& WithInputDataConfig(const InputDataConfig& value) { SetInputDataConfig(value); return *this;}
/**
* <p>The input data configuration that you supplied when you created the entities
* detection job.</p>
*/
inline EntitiesDetectionJobProperties& WithInputDataConfig(InputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;}
/**
* <p>The output data configuration that you supplied when you created the entities
* detection job. </p>
*/
inline const OutputDataConfig& GetOutputDataConfig() const{ return m_outputDataConfig; }
/**
* <p>The output data configuration that you supplied when you created the entities
* detection job. </p>
*/
inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
/**
* <p>The output data configuration that you supplied when you created the entities
* detection job. </p>
*/
inline void SetOutputDataConfig(const OutputDataConfig& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = value; }
/**
* <p>The output data configuration that you supplied when you created the entities
* detection job. </p>
*/
inline void SetOutputDataConfig(OutputDataConfig&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::move(value); }
/**
* <p>The output data configuration that you supplied when you created the entities
* detection job. </p>
*/
inline EntitiesDetectionJobProperties& WithOutputDataConfig(const OutputDataConfig& value) { SetOutputDataConfig(value); return *this;}
/**
* <p>The output data configuration that you supplied when you created the entities
* detection job. </p>
*/
inline EntitiesDetectionJobProperties& WithOutputDataConfig(OutputDataConfig&& value) { SetOutputDataConfig(std::move(value)); return *this;}
/**
* <p>The language code of the input documents.</p>
*/
inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
/**
* <p>The language code of the input documents.</p>
*/
inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
/**
* <p>The language code of the input documents.</p>
*/
inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
/**
* <p>The language code of the input documents.</p>
*/
inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
/**
* <p>The language code of the input documents.</p>
*/
inline EntitiesDetectionJobProperties& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
/**
* <p>The language code of the input documents.</p>
*/
inline EntitiesDetectionJobProperties& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to
* your input data.</p>
*/
inline const Aws::String& GetDataAccessRoleArn() const{ return m_dataAccessRoleArn; }
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to
* your input data.</p>
*/
inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to
* your input data.</p>
*/
inline void SetDataAccessRoleArn(const Aws::String& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = value; }
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to
* your input data.</p>
*/
inline void SetDataAccessRoleArn(Aws::String&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to
* your input data.</p>
*/
inline void SetDataAccessRoleArn(const char* value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to
* your input data.</p>
*/
inline EntitiesDetectionJobProperties& WithDataAccessRoleArn(const Aws::String& value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to
* your input data.</p>
*/
inline EntitiesDetectionJobProperties& WithDataAccessRoleArn(Aws::String&& value) { SetDataAccessRoleArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to
* your input data.</p>
*/
inline EntitiesDetectionJobProperties& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline const Aws::String& GetVolumeKmsKeyId() const{ return m_volumeKmsKeyId; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline void SetVolumeKmsKeyId(const Aws::String& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = value; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline void SetVolumeKmsKeyId(Aws::String&& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = std::move(value); }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline void SetVolumeKmsKeyId(const char* value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId.assign(value); }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline EntitiesDetectionJobProperties& WithVolumeKmsKeyId(const Aws::String& value) { SetVolumeKmsKeyId(value); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline EntitiesDetectionJobProperties& WithVolumeKmsKeyId(Aws::String&& value) { SetVolumeKmsKeyId(std::move(value)); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline EntitiesDetectionJobProperties& WithVolumeKmsKeyId(const char* value) { SetVolumeKmsKeyId(value); return *this;}
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your entity detection job. For more
* information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your entity detection job. For more
* information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your entity detection job. For more
* information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your entity detection job. For more
* information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your entity detection job. For more
* information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline EntitiesDetectionJobProperties& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your entity detection job. For more
* information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline EntitiesDetectionJobProperties& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
private:
Aws::String m_jobId;
bool m_jobIdHasBeenSet;
Aws::String m_jobName;
bool m_jobNameHasBeenSet;
JobStatus m_jobStatus;
bool m_jobStatusHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::Utils::DateTime m_submitTime;
bool m_submitTimeHasBeenSet;
Aws::Utils::DateTime m_endTime;
bool m_endTimeHasBeenSet;
Aws::String m_entityRecognizerArn;
bool m_entityRecognizerArnHasBeenSet;
InputDataConfig m_inputDataConfig;
bool m_inputDataConfigHasBeenSet;
OutputDataConfig m_outputDataConfig;
bool m_outputDataConfigHasBeenSet;
LanguageCode m_languageCode;
bool m_languageCodeHasBeenSet;
Aws::String m_dataAccessRoleArn;
bool m_dataAccessRoleArnHasBeenSet;
Aws::String m_volumeKmsKeyId;
bool m_volumeKmsKeyIdHasBeenSet;
VpcConfig m_vpcConfig;
bool m_vpcConfigHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,227 @@
/**
* 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/model/EntityType.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Provides information about an entity. </p> <p> </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/Entity">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API Entity
{
public:
Entity();
Entity(Aws::Utils::Json::JsonView jsonValue);
Entity& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The level of confidence that Amazon Comprehend has in the accuracy of the
* detection.</p>
*/
inline double GetScore() const{ return m_score; }
/**
* <p>The level of confidence that Amazon Comprehend has in the accuracy of the
* detection.</p>
*/
inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
/**
* <p>The level of confidence that Amazon Comprehend has in the accuracy of the
* detection.</p>
*/
inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
/**
* <p>The level of confidence that Amazon Comprehend has in the accuracy of the
* detection.</p>
*/
inline Entity& WithScore(double value) { SetScore(value); return *this;}
/**
* <p>The entity's type.</p>
*/
inline const EntityType& GetType() const{ return m_type; }
/**
* <p>The entity's type.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The entity's type.</p>
*/
inline void SetType(const EntityType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The entity's type.</p>
*/
inline void SetType(EntityType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The entity's type.</p>
*/
inline Entity& WithType(const EntityType& value) { SetType(value); return *this;}
/**
* <p>The entity's type.</p>
*/
inline Entity& WithType(EntityType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The text of the entity.</p>
*/
inline const Aws::String& GetText() const{ return m_text; }
/**
* <p>The text of the entity.</p>
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
* <p>The text of the entity.</p>
*/
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
/**
* <p>The text of the entity.</p>
*/
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
* <p>The text of the entity.</p>
*/
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
/**
* <p>The text of the entity.</p>
*/
inline Entity& WithText(const Aws::String& value) { SetText(value); return *this;}
/**
* <p>The text of the entity.</p>
*/
inline Entity& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
/**
* <p>The text of the entity.</p>
*/
inline Entity& WithText(const char* value) { SetText(value); return *this;}
/**
* <p>A character offset in the input text that shows where the entity begins (the
* first character is at position 0). The offset returns the position of each UTF-8
* code point in the string. A <i>code point</i> is the abstract character from a
* particular graphical representation. For example, a multi-byte UTF-8 character
* maps to a single code point.</p>
*/
inline int GetBeginOffset() const{ return m_beginOffset; }
/**
* <p>A character offset in the input text that shows where the entity begins (the
* first character is at position 0). The offset returns the position of each UTF-8
* code point in the string. A <i>code point</i> is the abstract character from a
* particular graphical representation. For example, a multi-byte UTF-8 character
* maps to a single code point.</p>
*/
inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
/**
* <p>A character offset in the input text that shows where the entity begins (the
* first character is at position 0). The offset returns the position of each UTF-8
* code point in the string. A <i>code point</i> is the abstract character from a
* particular graphical representation. For example, a multi-byte UTF-8 character
* maps to a single code point.</p>
*/
inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
/**
* <p>A character offset in the input text that shows where the entity begins (the
* first character is at position 0). The offset returns the position of each UTF-8
* code point in the string. A <i>code point</i> is the abstract character from a
* particular graphical representation. For example, a multi-byte UTF-8 character
* maps to a single code point.</p>
*/
inline Entity& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
/**
* <p>A character offset in the input text that shows where the entity ends. The
* offset returns the position of each UTF-8 code point in the string. A <i>code
* point</i> is the abstract character from a particular graphical representation.
* For example, a multi-byte UTF-8 character maps to a single code point. </p>
*/
inline int GetEndOffset() const{ return m_endOffset; }
/**
* <p>A character offset in the input text that shows where the entity ends. The
* offset returns the position of each UTF-8 code point in the string. A <i>code
* point</i> is the abstract character from a particular graphical representation.
* For example, a multi-byte UTF-8 character maps to a single code point. </p>
*/
inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
/**
* <p>A character offset in the input text that shows where the entity ends. The
* offset returns the position of each UTF-8 code point in the string. A <i>code
* point</i> is the abstract character from a particular graphical representation.
* For example, a multi-byte UTF-8 character maps to a single code point. </p>
*/
inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
/**
* <p>A character offset in the input text that shows where the entity ends. The
* offset returns the position of each UTF-8 code point in the string. A <i>code
* point</i> is the abstract character from a particular graphical representation.
* For example, a multi-byte UTF-8 character maps to a single code point. </p>
*/
inline Entity& WithEndOffset(int value) { SetEndOffset(value); return *this;}
private:
double m_score;
bool m_scoreHasBeenSet;
EntityType m_type;
bool m_typeHasBeenSet;
Aws::String m_text;
bool m_textHasBeenSet;
int m_beginOffset;
bool m_beginOffsetHasBeenSet;
int m_endOffset;
bool m_endOffsetHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,105 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Describes the annotations associated with a entity recognizer.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntityRecognizerAnnotations">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API EntityRecognizerAnnotations
{
public:
EntityRecognizerAnnotations();
EntityRecognizerAnnotations(Aws::Utils::Json::JsonView jsonValue);
EntityRecognizerAnnotations& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> Specifies the Amazon S3 location where the annotations for an entity
* recognizer are located. The URI must be in the same region as the API endpoint
* that you are calling.</p>
*/
inline const Aws::String& GetS3Uri() const{ return m_s3Uri; }
/**
* <p> Specifies the Amazon S3 location where the annotations for an entity
* recognizer are located. The URI must be in the same region as the API endpoint
* that you are calling.</p>
*/
inline bool S3UriHasBeenSet() const { return m_s3UriHasBeenSet; }
/**
* <p> Specifies the Amazon S3 location where the annotations for an entity
* recognizer are located. The URI must be in the same region as the API endpoint
* that you are calling.</p>
*/
inline void SetS3Uri(const Aws::String& value) { m_s3UriHasBeenSet = true; m_s3Uri = value; }
/**
* <p> Specifies the Amazon S3 location where the annotations for an entity
* recognizer are located. The URI must be in the same region as the API endpoint
* that you are calling.</p>
*/
inline void SetS3Uri(Aws::String&& value) { m_s3UriHasBeenSet = true; m_s3Uri = std::move(value); }
/**
* <p> Specifies the Amazon S3 location where the annotations for an entity
* recognizer are located. The URI must be in the same region as the API endpoint
* that you are calling.</p>
*/
inline void SetS3Uri(const char* value) { m_s3UriHasBeenSet = true; m_s3Uri.assign(value); }
/**
* <p> Specifies the Amazon S3 location where the annotations for an entity
* recognizer are located. The URI must be in the same region as the API endpoint
* that you are calling.</p>
*/
inline EntityRecognizerAnnotations& WithS3Uri(const Aws::String& value) { SetS3Uri(value); return *this;}
/**
* <p> Specifies the Amazon S3 location where the annotations for an entity
* recognizer are located. The URI must be in the same region as the API endpoint
* that you are calling.</p>
*/
inline EntityRecognizerAnnotations& WithS3Uri(Aws::String&& value) { SetS3Uri(std::move(value)); return *this;}
/**
* <p> Specifies the Amazon S3 location where the annotations for an entity
* recognizer are located. The URI must be in the same region as the API endpoint
* that you are calling.</p>
*/
inline EntityRecognizerAnnotations& WithS3Uri(const char* value) { SetS3Uri(value); return *this;}
private:
Aws::String m_s3Uri;
bool m_s3UriHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,105 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Describes the training documents submitted with an entity
* recognizer.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntityRecognizerDocuments">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API EntityRecognizerDocuments
{
public:
EntityRecognizerDocuments();
EntityRecognizerDocuments(Aws::Utils::Json::JsonView jsonValue);
EntityRecognizerDocuments& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> Specifies the Amazon S3 location where the training documents for an entity
* recognizer are located. The URI must be in the same region as the API endpoint
* that you are calling.</p>
*/
inline const Aws::String& GetS3Uri() const{ return m_s3Uri; }
/**
* <p> Specifies the Amazon S3 location where the training documents for an entity
* recognizer are located. The URI must be in the same region as the API endpoint
* that you are calling.</p>
*/
inline bool S3UriHasBeenSet() const { return m_s3UriHasBeenSet; }
/**
* <p> Specifies the Amazon S3 location where the training documents for an entity
* recognizer are located. The URI must be in the same region as the API endpoint
* that you are calling.</p>
*/
inline void SetS3Uri(const Aws::String& value) { m_s3UriHasBeenSet = true; m_s3Uri = value; }
/**
* <p> Specifies the Amazon S3 location where the training documents for an entity
* recognizer are located. The URI must be in the same region as the API endpoint
* that you are calling.</p>
*/
inline void SetS3Uri(Aws::String&& value) { m_s3UriHasBeenSet = true; m_s3Uri = std::move(value); }
/**
* <p> Specifies the Amazon S3 location where the training documents for an entity
* recognizer are located. The URI must be in the same region as the API endpoint
* that you are calling.</p>
*/
inline void SetS3Uri(const char* value) { m_s3UriHasBeenSet = true; m_s3Uri.assign(value); }
/**
* <p> Specifies the Amazon S3 location where the training documents for an entity
* recognizer are located. The URI must be in the same region as the API endpoint
* that you are calling.</p>
*/
inline EntityRecognizerDocuments& WithS3Uri(const Aws::String& value) { SetS3Uri(value); return *this;}
/**
* <p> Specifies the Amazon S3 location where the training documents for an entity
* recognizer are located. The URI must be in the same region as the API endpoint
* that you are calling.</p>
*/
inline EntityRecognizerDocuments& WithS3Uri(Aws::String&& value) { SetS3Uri(std::move(value)); return *this;}
/**
* <p> Specifies the Amazon S3 location where the training documents for an entity
* recognizer are located. The URI must be in the same region as the API endpoint
* that you are calling.</p>
*/
inline EntityRecognizerDocuments& WithS3Uri(const char* value) { SetS3Uri(value); return *this;}
private:
Aws::String m_s3Uri;
bool m_s3UriHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,97 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Describes the entity recognizer submitted with an entity
* recognizer.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntityRecognizerEntityList">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API EntityRecognizerEntityList
{
public:
EntityRecognizerEntityList();
EntityRecognizerEntityList(Aws::Utils::Json::JsonView jsonValue);
EntityRecognizerEntityList& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies the Amazon S3 location where the entity list is located. The URI
* must be in the same region as the API endpoint that you are calling.</p>
*/
inline const Aws::String& GetS3Uri() const{ return m_s3Uri; }
/**
* <p>Specifies the Amazon S3 location where the entity list is located. The URI
* must be in the same region as the API endpoint that you are calling.</p>
*/
inline bool S3UriHasBeenSet() const { return m_s3UriHasBeenSet; }
/**
* <p>Specifies the Amazon S3 location where the entity list is located. The URI
* must be in the same region as the API endpoint that you are calling.</p>
*/
inline void SetS3Uri(const Aws::String& value) { m_s3UriHasBeenSet = true; m_s3Uri = value; }
/**
* <p>Specifies the Amazon S3 location where the entity list is located. The URI
* must be in the same region as the API endpoint that you are calling.</p>
*/
inline void SetS3Uri(Aws::String&& value) { m_s3UriHasBeenSet = true; m_s3Uri = std::move(value); }
/**
* <p>Specifies the Amazon S3 location where the entity list is located. The URI
* must be in the same region as the API endpoint that you are calling.</p>
*/
inline void SetS3Uri(const char* value) { m_s3UriHasBeenSet = true; m_s3Uri.assign(value); }
/**
* <p>Specifies the Amazon S3 location where the entity list is located. The URI
* must be in the same region as the API endpoint that you are calling.</p>
*/
inline EntityRecognizerEntityList& WithS3Uri(const Aws::String& value) { SetS3Uri(value); return *this;}
/**
* <p>Specifies the Amazon S3 location where the entity list is located. The URI
* must be in the same region as the API endpoint that you are calling.</p>
*/
inline EntityRecognizerEntityList& WithS3Uri(Aws::String&& value) { SetS3Uri(std::move(value)); return *this;}
/**
* <p>Specifies the Amazon S3 location where the entity list is located. The URI
* must be in the same region as the API endpoint that you are calling.</p>
*/
inline EntityRecognizerEntityList& WithS3Uri(const char* value) { SetS3Uri(value); return *this;}
private:
Aws::String m_s3Uri;
bool m_s3UriHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,139 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehend/Comprehend_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Detailed information about the accuracy of an entity recognizer.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntityRecognizerEvaluationMetrics">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API EntityRecognizerEvaluationMetrics
{
public:
EntityRecognizerEvaluationMetrics();
EntityRecognizerEvaluationMetrics(Aws::Utils::Json::JsonView jsonValue);
EntityRecognizerEvaluationMetrics& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A measure of the usefulness of the recognizer results in the test data. High
* precision means that the recognizer returned substantially more relevant results
* than irrelevant ones. </p>
*/
inline double GetPrecision() const{ return m_precision; }
/**
* <p>A measure of the usefulness of the recognizer results in the test data. High
* precision means that the recognizer returned substantially more relevant results
* than irrelevant ones. </p>
*/
inline bool PrecisionHasBeenSet() const { return m_precisionHasBeenSet; }
/**
* <p>A measure of the usefulness of the recognizer results in the test data. High
* precision means that the recognizer returned substantially more relevant results
* than irrelevant ones. </p>
*/
inline void SetPrecision(double value) { m_precisionHasBeenSet = true; m_precision = value; }
/**
* <p>A measure of the usefulness of the recognizer results in the test data. High
* precision means that the recognizer returned substantially more relevant results
* than irrelevant ones. </p>
*/
inline EntityRecognizerEvaluationMetrics& WithPrecision(double value) { SetPrecision(value); return *this;}
/**
* <p>A measure of how complete the recognizer results are for the test data. High
* recall means that the recognizer returned most of the relevant results.</p>
*/
inline double GetRecall() const{ return m_recall; }
/**
* <p>A measure of how complete the recognizer results are for the test data. High
* recall means that the recognizer returned most of the relevant results.</p>
*/
inline bool RecallHasBeenSet() const { return m_recallHasBeenSet; }
/**
* <p>A measure of how complete the recognizer results are for the test data. High
* recall means that the recognizer returned most of the relevant results.</p>
*/
inline void SetRecall(double value) { m_recallHasBeenSet = true; m_recall = value; }
/**
* <p>A measure of how complete the recognizer results are for the test data. High
* recall means that the recognizer returned most of the relevant results.</p>
*/
inline EntityRecognizerEvaluationMetrics& WithRecall(double value) { SetRecall(value); return *this;}
/**
* <p>A measure of how accurate the recognizer results are for the test data. It is
* derived from the <code>Precision</code> and <code>Recall</code> values. The
* <code>F1Score</code> is the harmonic average of the two scores. The highest
* score is 1, and the worst score is 0. </p>
*/
inline double GetF1Score() const{ return m_f1Score; }
/**
* <p>A measure of how accurate the recognizer results are for the test data. It is
* derived from the <code>Precision</code> and <code>Recall</code> values. The
* <code>F1Score</code> is the harmonic average of the two scores. The highest
* score is 1, and the worst score is 0. </p>
*/
inline bool F1ScoreHasBeenSet() const { return m_f1ScoreHasBeenSet; }
/**
* <p>A measure of how accurate the recognizer results are for the test data. It is
* derived from the <code>Precision</code> and <code>Recall</code> values. The
* <code>F1Score</code> is the harmonic average of the two scores. The highest
* score is 1, and the worst score is 0. </p>
*/
inline void SetF1Score(double value) { m_f1ScoreHasBeenSet = true; m_f1Score = value; }
/**
* <p>A measure of how accurate the recognizer results are for the test data. It is
* derived from the <code>Precision</code> and <code>Recall</code> values. The
* <code>F1Score</code> is the harmonic average of the two scores. The highest
* score is 1, and the worst score is 0. </p>
*/
inline EntityRecognizerEvaluationMetrics& WithF1Score(double value) { SetF1Score(value); return *this;}
private:
double m_precision;
bool m_precisionHasBeenSet;
double m_recall;
bool m_recallHasBeenSet;
double m_f1Score;
bool m_f1ScoreHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,173 @@
/**
* 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/model/ModelStatus.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Provides information for filtering a list of entity recognizers. You can only
* specify one filtering parameter in a request. For more information, see the
* operation./&gt;</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntityRecognizerFilter">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API EntityRecognizerFilter
{
public:
EntityRecognizerFilter();
EntityRecognizerFilter(Aws::Utils::Json::JsonView jsonValue);
EntityRecognizerFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The status of an entity recognizer.</p>
*/
inline const ModelStatus& GetStatus() const{ return m_status; }
/**
* <p>The status of an entity recognizer.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of an entity recognizer.</p>
*/
inline void SetStatus(const ModelStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of an entity recognizer.</p>
*/
inline void SetStatus(ModelStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of an entity recognizer.</p>
*/
inline EntityRecognizerFilter& WithStatus(const ModelStatus& value) { SetStatus(value); return *this;}
/**
* <p>The status of an entity recognizer.</p>
*/
inline EntityRecognizerFilter& WithStatus(ModelStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>Filters the list of entities based on the time that the list was submitted
* for processing. Returns only jobs submitted before the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline const Aws::Utils::DateTime& GetSubmitTimeBefore() const{ return m_submitTimeBefore; }
/**
* <p>Filters the list of entities based on the time that the list was submitted
* for processing. Returns only jobs submitted before the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline bool SubmitTimeBeforeHasBeenSet() const { return m_submitTimeBeforeHasBeenSet; }
/**
* <p>Filters the list of entities based on the time that the list was submitted
* for processing. Returns only jobs submitted before the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline void SetSubmitTimeBefore(const Aws::Utils::DateTime& value) { m_submitTimeBeforeHasBeenSet = true; m_submitTimeBefore = value; }
/**
* <p>Filters the list of entities based on the time that the list was submitted
* for processing. Returns only jobs submitted before the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline void SetSubmitTimeBefore(Aws::Utils::DateTime&& value) { m_submitTimeBeforeHasBeenSet = true; m_submitTimeBefore = std::move(value); }
/**
* <p>Filters the list of entities based on the time that the list was submitted
* for processing. Returns only jobs submitted before the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline EntityRecognizerFilter& WithSubmitTimeBefore(const Aws::Utils::DateTime& value) { SetSubmitTimeBefore(value); return *this;}
/**
* <p>Filters the list of entities based on the time that the list was submitted
* for processing. Returns only jobs submitted before the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline EntityRecognizerFilter& WithSubmitTimeBefore(Aws::Utils::DateTime&& value) { SetSubmitTimeBefore(std::move(value)); return *this;}
/**
* <p>Filters the list of entities based on the time that the list was submitted
* for processing. Returns only jobs submitted after the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline const Aws::Utils::DateTime& GetSubmitTimeAfter() const{ return m_submitTimeAfter; }
/**
* <p>Filters the list of entities based on the time that the list was submitted
* for processing. Returns only jobs submitted after the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline bool SubmitTimeAfterHasBeenSet() const { return m_submitTimeAfterHasBeenSet; }
/**
* <p>Filters the list of entities based on the time that the list was submitted
* for processing. Returns only jobs submitted after the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline void SetSubmitTimeAfter(const Aws::Utils::DateTime& value) { m_submitTimeAfterHasBeenSet = true; m_submitTimeAfter = value; }
/**
* <p>Filters the list of entities based on the time that the list was submitted
* for processing. Returns only jobs submitted after the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline void SetSubmitTimeAfter(Aws::Utils::DateTime&& value) { m_submitTimeAfterHasBeenSet = true; m_submitTimeAfter = std::move(value); }
/**
* <p>Filters the list of entities based on the time that the list was submitted
* for processing. Returns only jobs submitted after the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline EntityRecognizerFilter& WithSubmitTimeAfter(const Aws::Utils::DateTime& value) { SetSubmitTimeAfter(value); return *this;}
/**
* <p>Filters the list of entities based on the time that the list was submitted
* for processing. Returns only jobs submitted after the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline EntityRecognizerFilter& WithSubmitTimeAfter(Aws::Utils::DateTime&& value) { SetSubmitTimeAfter(std::move(value)); return *this;}
private:
ModelStatus m_status;
bool m_statusHasBeenSet;
Aws::Utils::DateTime m_submitTimeBefore;
bool m_submitTimeBeforeHasBeenSet;
Aws::Utils::DateTime m_submitTimeAfter;
bool m_submitTimeAfterHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,203 @@
/**
* 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/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehend/model/EntityRecognizerDocuments.h>
#include <aws/comprehend/model/EntityRecognizerAnnotations.h>
#include <aws/comprehend/model/EntityRecognizerEntityList.h>
#include <aws/comprehend/model/EntityTypesListItem.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Specifies the format and location of the input data.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntityRecognizerInputDataConfig">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API EntityRecognizerInputDataConfig
{
public:
EntityRecognizerInputDataConfig();
EntityRecognizerInputDataConfig(Aws::Utils::Json::JsonView jsonValue);
EntityRecognizerInputDataConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The entity types in the input data for an entity recognizer. A maximum of 25
* entity types can be used at one time to train an entity recognizer.</p>
*/
inline const Aws::Vector<EntityTypesListItem>& GetEntityTypes() const{ return m_entityTypes; }
/**
* <p>The entity types in the input data for an entity recognizer. A maximum of 25
* entity types can be used at one time to train an entity recognizer.</p>
*/
inline bool EntityTypesHasBeenSet() const { return m_entityTypesHasBeenSet; }
/**
* <p>The entity types in the input data for an entity recognizer. A maximum of 25
* entity types can be used at one time to train an entity recognizer.</p>
*/
inline void SetEntityTypes(const Aws::Vector<EntityTypesListItem>& value) { m_entityTypesHasBeenSet = true; m_entityTypes = value; }
/**
* <p>The entity types in the input data for an entity recognizer. A maximum of 25
* entity types can be used at one time to train an entity recognizer.</p>
*/
inline void SetEntityTypes(Aws::Vector<EntityTypesListItem>&& value) { m_entityTypesHasBeenSet = true; m_entityTypes = std::move(value); }
/**
* <p>The entity types in the input data for an entity recognizer. A maximum of 25
* entity types can be used at one time to train an entity recognizer.</p>
*/
inline EntityRecognizerInputDataConfig& WithEntityTypes(const Aws::Vector<EntityTypesListItem>& value) { SetEntityTypes(value); return *this;}
/**
* <p>The entity types in the input data for an entity recognizer. A maximum of 25
* entity types can be used at one time to train an entity recognizer.</p>
*/
inline EntityRecognizerInputDataConfig& WithEntityTypes(Aws::Vector<EntityTypesListItem>&& value) { SetEntityTypes(std::move(value)); return *this;}
/**
* <p>The entity types in the input data for an entity recognizer. A maximum of 25
* entity types can be used at one time to train an entity recognizer.</p>
*/
inline EntityRecognizerInputDataConfig& AddEntityTypes(const EntityTypesListItem& value) { m_entityTypesHasBeenSet = true; m_entityTypes.push_back(value); return *this; }
/**
* <p>The entity types in the input data for an entity recognizer. A maximum of 25
* entity types can be used at one time to train an entity recognizer.</p>
*/
inline EntityRecognizerInputDataConfig& AddEntityTypes(EntityTypesListItem&& value) { m_entityTypesHasBeenSet = true; m_entityTypes.push_back(std::move(value)); return *this; }
/**
* <p>S3 location of the documents folder for an entity recognizer</p>
*/
inline const EntityRecognizerDocuments& GetDocuments() const{ return m_documents; }
/**
* <p>S3 location of the documents folder for an entity recognizer</p>
*/
inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
/**
* <p>S3 location of the documents folder for an entity recognizer</p>
*/
inline void SetDocuments(const EntityRecognizerDocuments& value) { m_documentsHasBeenSet = true; m_documents = value; }
/**
* <p>S3 location of the documents folder for an entity recognizer</p>
*/
inline void SetDocuments(EntityRecognizerDocuments&& value) { m_documentsHasBeenSet = true; m_documents = std::move(value); }
/**
* <p>S3 location of the documents folder for an entity recognizer</p>
*/
inline EntityRecognizerInputDataConfig& WithDocuments(const EntityRecognizerDocuments& value) { SetDocuments(value); return *this;}
/**
* <p>S3 location of the documents folder for an entity recognizer</p>
*/
inline EntityRecognizerInputDataConfig& WithDocuments(EntityRecognizerDocuments&& value) { SetDocuments(std::move(value)); return *this;}
/**
* <p>S3 location of the annotations file for an entity recognizer.</p>
*/
inline const EntityRecognizerAnnotations& GetAnnotations() const{ return m_annotations; }
/**
* <p>S3 location of the annotations file for an entity recognizer.</p>
*/
inline bool AnnotationsHasBeenSet() const { return m_annotationsHasBeenSet; }
/**
* <p>S3 location of the annotations file for an entity recognizer.</p>
*/
inline void SetAnnotations(const EntityRecognizerAnnotations& value) { m_annotationsHasBeenSet = true; m_annotations = value; }
/**
* <p>S3 location of the annotations file for an entity recognizer.</p>
*/
inline void SetAnnotations(EntityRecognizerAnnotations&& value) { m_annotationsHasBeenSet = true; m_annotations = std::move(value); }
/**
* <p>S3 location of the annotations file for an entity recognizer.</p>
*/
inline EntityRecognizerInputDataConfig& WithAnnotations(const EntityRecognizerAnnotations& value) { SetAnnotations(value); return *this;}
/**
* <p>S3 location of the annotations file for an entity recognizer.</p>
*/
inline EntityRecognizerInputDataConfig& WithAnnotations(EntityRecognizerAnnotations&& value) { SetAnnotations(std::move(value)); return *this;}
/**
* <p>S3 location of the entity list for an entity recognizer.</p>
*/
inline const EntityRecognizerEntityList& GetEntityList() const{ return m_entityList; }
/**
* <p>S3 location of the entity list for an entity recognizer.</p>
*/
inline bool EntityListHasBeenSet() const { return m_entityListHasBeenSet; }
/**
* <p>S3 location of the entity list for an entity recognizer.</p>
*/
inline void SetEntityList(const EntityRecognizerEntityList& value) { m_entityListHasBeenSet = true; m_entityList = value; }
/**
* <p>S3 location of the entity list for an entity recognizer.</p>
*/
inline void SetEntityList(EntityRecognizerEntityList&& value) { m_entityListHasBeenSet = true; m_entityList = std::move(value); }
/**
* <p>S3 location of the entity list for an entity recognizer.</p>
*/
inline EntityRecognizerInputDataConfig& WithEntityList(const EntityRecognizerEntityList& value) { SetEntityList(value); return *this;}
/**
* <p>S3 location of the entity list for an entity recognizer.</p>
*/
inline EntityRecognizerInputDataConfig& WithEntityList(EntityRecognizerEntityList&& value) { SetEntityList(std::move(value)); return *this;}
private:
Aws::Vector<EntityTypesListItem> m_entityTypes;
bool m_entityTypesHasBeenSet;
EntityRecognizerDocuments m_documents;
bool m_documentsHasBeenSet;
EntityRecognizerAnnotations m_annotations;
bool m_annotationsHasBeenSet;
EntityRecognizerEntityList m_entityList;
bool m_entityListHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,181 @@
/**
* 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/model/EntityRecognizerEvaluationMetrics.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehend/model/EntityRecognizerMetadataEntityTypesListItem.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Detailed information about an entity recognizer.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntityRecognizerMetadata">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API EntityRecognizerMetadata
{
public:
EntityRecognizerMetadata();
EntityRecognizerMetadata(Aws::Utils::Json::JsonView jsonValue);
EntityRecognizerMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The number of documents in the input data that were used to train the entity
* recognizer. Typically this is 80 to 90 percent of the input documents.</p>
*/
inline int GetNumberOfTrainedDocuments() const{ return m_numberOfTrainedDocuments; }
/**
* <p> The number of documents in the input data that were used to train the entity
* recognizer. Typically this is 80 to 90 percent of the input documents.</p>
*/
inline bool NumberOfTrainedDocumentsHasBeenSet() const { return m_numberOfTrainedDocumentsHasBeenSet; }
/**
* <p> The number of documents in the input data that were used to train the entity
* recognizer. Typically this is 80 to 90 percent of the input documents.</p>
*/
inline void SetNumberOfTrainedDocuments(int value) { m_numberOfTrainedDocumentsHasBeenSet = true; m_numberOfTrainedDocuments = value; }
/**
* <p> The number of documents in the input data that were used to train the entity
* recognizer. Typically this is 80 to 90 percent of the input documents.</p>
*/
inline EntityRecognizerMetadata& WithNumberOfTrainedDocuments(int value) { SetNumberOfTrainedDocuments(value); return *this;}
/**
* <p> The number of documents in the input data that were used to test the entity
* recognizer. Typically this is 10 to 20 percent of the input documents.</p>
*/
inline int GetNumberOfTestDocuments() const{ return m_numberOfTestDocuments; }
/**
* <p> The number of documents in the input data that were used to test the entity
* recognizer. Typically this is 10 to 20 percent of the input documents.</p>
*/
inline bool NumberOfTestDocumentsHasBeenSet() const { return m_numberOfTestDocumentsHasBeenSet; }
/**
* <p> The number of documents in the input data that were used to test the entity
* recognizer. Typically this is 10 to 20 percent of the input documents.</p>
*/
inline void SetNumberOfTestDocuments(int value) { m_numberOfTestDocumentsHasBeenSet = true; m_numberOfTestDocuments = value; }
/**
* <p> The number of documents in the input data that were used to test the entity
* recognizer. Typically this is 10 to 20 percent of the input documents.</p>
*/
inline EntityRecognizerMetadata& WithNumberOfTestDocuments(int value) { SetNumberOfTestDocuments(value); return *this;}
/**
* <p>Detailed information about the accuracy of an entity recognizer.</p>
*/
inline const EntityRecognizerEvaluationMetrics& GetEvaluationMetrics() const{ return m_evaluationMetrics; }
/**
* <p>Detailed information about the accuracy of an entity recognizer.</p>
*/
inline bool EvaluationMetricsHasBeenSet() const { return m_evaluationMetricsHasBeenSet; }
/**
* <p>Detailed information about the accuracy of an entity recognizer.</p>
*/
inline void SetEvaluationMetrics(const EntityRecognizerEvaluationMetrics& value) { m_evaluationMetricsHasBeenSet = true; m_evaluationMetrics = value; }
/**
* <p>Detailed information about the accuracy of an entity recognizer.</p>
*/
inline void SetEvaluationMetrics(EntityRecognizerEvaluationMetrics&& value) { m_evaluationMetricsHasBeenSet = true; m_evaluationMetrics = std::move(value); }
/**
* <p>Detailed information about the accuracy of an entity recognizer.</p>
*/
inline EntityRecognizerMetadata& WithEvaluationMetrics(const EntityRecognizerEvaluationMetrics& value) { SetEvaluationMetrics(value); return *this;}
/**
* <p>Detailed information about the accuracy of an entity recognizer.</p>
*/
inline EntityRecognizerMetadata& WithEvaluationMetrics(EntityRecognizerEvaluationMetrics&& value) { SetEvaluationMetrics(std::move(value)); return *this;}
/**
* <p>Entity types from the metadata of an entity recognizer.</p>
*/
inline const Aws::Vector<EntityRecognizerMetadataEntityTypesListItem>& GetEntityTypes() const{ return m_entityTypes; }
/**
* <p>Entity types from the metadata of an entity recognizer.</p>
*/
inline bool EntityTypesHasBeenSet() const { return m_entityTypesHasBeenSet; }
/**
* <p>Entity types from the metadata of an entity recognizer.</p>
*/
inline void SetEntityTypes(const Aws::Vector<EntityRecognizerMetadataEntityTypesListItem>& value) { m_entityTypesHasBeenSet = true; m_entityTypes = value; }
/**
* <p>Entity types from the metadata of an entity recognizer.</p>
*/
inline void SetEntityTypes(Aws::Vector<EntityRecognizerMetadataEntityTypesListItem>&& value) { m_entityTypesHasBeenSet = true; m_entityTypes = std::move(value); }
/**
* <p>Entity types from the metadata of an entity recognizer.</p>
*/
inline EntityRecognizerMetadata& WithEntityTypes(const Aws::Vector<EntityRecognizerMetadataEntityTypesListItem>& value) { SetEntityTypes(value); return *this;}
/**
* <p>Entity types from the metadata of an entity recognizer.</p>
*/
inline EntityRecognizerMetadata& WithEntityTypes(Aws::Vector<EntityRecognizerMetadataEntityTypesListItem>&& value) { SetEntityTypes(std::move(value)); return *this;}
/**
* <p>Entity types from the metadata of an entity recognizer.</p>
*/
inline EntityRecognizerMetadata& AddEntityTypes(const EntityRecognizerMetadataEntityTypesListItem& value) { m_entityTypesHasBeenSet = true; m_entityTypes.push_back(value); return *this; }
/**
* <p>Entity types from the metadata of an entity recognizer.</p>
*/
inline EntityRecognizerMetadata& AddEntityTypes(EntityRecognizerMetadataEntityTypesListItem&& value) { m_entityTypesHasBeenSet = true; m_entityTypes.push_back(std::move(value)); return *this; }
private:
int m_numberOfTrainedDocuments;
bool m_numberOfTrainedDocumentsHasBeenSet;
int m_numberOfTestDocuments;
bool m_numberOfTestDocumentsHasBeenSet;
EntityRecognizerEvaluationMetrics m_evaluationMetrics;
bool m_evaluationMetricsHasBeenSet;
Aws::Vector<EntityRecognizerMetadataEntityTypesListItem> m_entityTypes;
bool m_entityTypesHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,166 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/comprehend/model/EntityTypesEvaluationMetrics.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Individual item from the list of entity types in the metadata of an entity
* recognizer.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntityRecognizerMetadataEntityTypesListItem">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API EntityRecognizerMetadataEntityTypesListItem
{
public:
EntityRecognizerMetadataEntityTypesListItem();
EntityRecognizerMetadataEntityTypesListItem(Aws::Utils::Json::JsonView jsonValue);
EntityRecognizerMetadataEntityTypesListItem& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Type of entity from the list of entity types in the metadata of an entity
* recognizer. </p>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p>Type of entity from the list of entity types in the metadata of an entity
* recognizer. </p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>Type of entity from the list of entity types in the metadata of an entity
* recognizer. </p>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>Type of entity from the list of entity types in the metadata of an entity
* recognizer. </p>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>Type of entity from the list of entity types in the metadata of an entity
* recognizer. </p>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p>Type of entity from the list of entity types in the metadata of an entity
* recognizer. </p>
*/
inline EntityRecognizerMetadataEntityTypesListItem& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p>Type of entity from the list of entity types in the metadata of an entity
* recognizer. </p>
*/
inline EntityRecognizerMetadataEntityTypesListItem& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p>Type of entity from the list of entity types in the metadata of an entity
* recognizer. </p>
*/
inline EntityRecognizerMetadataEntityTypesListItem& WithType(const char* value) { SetType(value); return *this;}
/**
* <p>Detailed information about the accuracy of the entity recognizer for a
* specific item on the list of entity types. </p>
*/
inline const EntityTypesEvaluationMetrics& GetEvaluationMetrics() const{ return m_evaluationMetrics; }
/**
* <p>Detailed information about the accuracy of the entity recognizer for a
* specific item on the list of entity types. </p>
*/
inline bool EvaluationMetricsHasBeenSet() const { return m_evaluationMetricsHasBeenSet; }
/**
* <p>Detailed information about the accuracy of the entity recognizer for a
* specific item on the list of entity types. </p>
*/
inline void SetEvaluationMetrics(const EntityTypesEvaluationMetrics& value) { m_evaluationMetricsHasBeenSet = true; m_evaluationMetrics = value; }
/**
* <p>Detailed information about the accuracy of the entity recognizer for a
* specific item on the list of entity types. </p>
*/
inline void SetEvaluationMetrics(EntityTypesEvaluationMetrics&& value) { m_evaluationMetricsHasBeenSet = true; m_evaluationMetrics = std::move(value); }
/**
* <p>Detailed information about the accuracy of the entity recognizer for a
* specific item on the list of entity types. </p>
*/
inline EntityRecognizerMetadataEntityTypesListItem& WithEvaluationMetrics(const EntityTypesEvaluationMetrics& value) { SetEvaluationMetrics(value); return *this;}
/**
* <p>Detailed information about the accuracy of the entity recognizer for a
* specific item on the list of entity types. </p>
*/
inline EntityRecognizerMetadataEntityTypesListItem& WithEvaluationMetrics(EntityTypesEvaluationMetrics&& value) { SetEvaluationMetrics(std::move(value)); return *this;}
/**
* <p>Indicates the number of times the given entity type was seen in the training
* data. </p>
*/
inline int GetNumberOfTrainMentions() const{ return m_numberOfTrainMentions; }
/**
* <p>Indicates the number of times the given entity type was seen in the training
* data. </p>
*/
inline bool NumberOfTrainMentionsHasBeenSet() const { return m_numberOfTrainMentionsHasBeenSet; }
/**
* <p>Indicates the number of times the given entity type was seen in the training
* data. </p>
*/
inline void SetNumberOfTrainMentions(int value) { m_numberOfTrainMentionsHasBeenSet = true; m_numberOfTrainMentions = value; }
/**
* <p>Indicates the number of times the given entity type was seen in the training
* data. </p>
*/
inline EntityRecognizerMetadataEntityTypesListItem& WithNumberOfTrainMentions(int value) { SetNumberOfTrainMentions(value); return *this;}
private:
Aws::String m_type;
bool m_typeHasBeenSet;
EntityTypesEvaluationMetrics m_evaluationMetrics;
bool m_evaluationMetricsHasBeenSet;
int m_numberOfTrainMentions;
bool m_numberOfTrainMentionsHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,627 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/comprehend/model/LanguageCode.h>
#include <aws/comprehend/model/ModelStatus.h>
#include <aws/core/utils/DateTime.h>
#include <aws/comprehend/model/EntityRecognizerInputDataConfig.h>
#include <aws/comprehend/model/EntityRecognizerMetadata.h>
#include <aws/comprehend/model/VpcConfig.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Describes information about an entity recognizer.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntityRecognizerProperties">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API EntityRecognizerProperties
{
public:
EntityRecognizerProperties();
EntityRecognizerProperties(Aws::Utils::Json::JsonView jsonValue);
EntityRecognizerProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline const Aws::String& GetEntityRecognizerArn() const{ return m_entityRecognizerArn; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline bool EntityRecognizerArnHasBeenSet() const { return m_entityRecognizerArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline void SetEntityRecognizerArn(const Aws::String& value) { m_entityRecognizerArnHasBeenSet = true; m_entityRecognizerArn = value; }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline void SetEntityRecognizerArn(Aws::String&& value) { m_entityRecognizerArnHasBeenSet = true; m_entityRecognizerArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline void SetEntityRecognizerArn(const char* value) { m_entityRecognizerArnHasBeenSet = true; m_entityRecognizerArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline EntityRecognizerProperties& WithEntityRecognizerArn(const Aws::String& value) { SetEntityRecognizerArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline EntityRecognizerProperties& WithEntityRecognizerArn(Aws::String&& value) { SetEntityRecognizerArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that identifies the entity recognizer.</p>
*/
inline EntityRecognizerProperties& WithEntityRecognizerArn(const char* value) { SetEntityRecognizerArn(value); return *this;}
/**
* <p> The language of the input documents. All documents must be in the same
* language. Only English ("en") is currently supported.</p>
*/
inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
/**
* <p> The language of the input documents. All documents must be in the same
* language. Only English ("en") is currently supported.</p>
*/
inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
/**
* <p> The language of the input documents. All documents must be in the same
* language. Only English ("en") is currently supported.</p>
*/
inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
/**
* <p> The language of the input documents. All documents must be in the same
* language. Only English ("en") is currently supported.</p>
*/
inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
/**
* <p> The language of the input documents. All documents must be in the same
* language. Only English ("en") is currently supported.</p>
*/
inline EntityRecognizerProperties& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
/**
* <p> The language of the input documents. All documents must be in the same
* language. Only English ("en") is currently supported.</p>
*/
inline EntityRecognizerProperties& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
/**
* <p>Provides the status of the entity recognizer.</p>
*/
inline const ModelStatus& GetStatus() const{ return m_status; }
/**
* <p>Provides the status of the entity recognizer.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>Provides the status of the entity recognizer.</p>
*/
inline void SetStatus(const ModelStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>Provides the status of the entity recognizer.</p>
*/
inline void SetStatus(ModelStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>Provides the status of the entity recognizer.</p>
*/
inline EntityRecognizerProperties& WithStatus(const ModelStatus& value) { SetStatus(value); return *this;}
/**
* <p>Provides the status of the entity recognizer.</p>
*/
inline EntityRecognizerProperties& WithStatus(ModelStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p> A description of the status of the recognizer.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p> A description of the status of the recognizer.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p> A description of the status of the recognizer.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p> A description of the status of the recognizer.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p> A description of the status of the recognizer.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p> A description of the status of the recognizer.</p>
*/
inline EntityRecognizerProperties& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p> A description of the status of the recognizer.</p>
*/
inline EntityRecognizerProperties& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p> A description of the status of the recognizer.</p>
*/
inline EntityRecognizerProperties& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>The time that the recognizer was submitted for processing.</p>
*/
inline const Aws::Utils::DateTime& GetSubmitTime() const{ return m_submitTime; }
/**
* <p>The time that the recognizer was submitted for processing.</p>
*/
inline bool SubmitTimeHasBeenSet() const { return m_submitTimeHasBeenSet; }
/**
* <p>The time that the recognizer was submitted for processing.</p>
*/
inline void SetSubmitTime(const Aws::Utils::DateTime& value) { m_submitTimeHasBeenSet = true; m_submitTime = value; }
/**
* <p>The time that the recognizer was submitted for processing.</p>
*/
inline void SetSubmitTime(Aws::Utils::DateTime&& value) { m_submitTimeHasBeenSet = true; m_submitTime = std::move(value); }
/**
* <p>The time that the recognizer was submitted for processing.</p>
*/
inline EntityRecognizerProperties& WithSubmitTime(const Aws::Utils::DateTime& value) { SetSubmitTime(value); return *this;}
/**
* <p>The time that the recognizer was submitted for processing.</p>
*/
inline EntityRecognizerProperties& WithSubmitTime(Aws::Utils::DateTime&& value) { SetSubmitTime(std::move(value)); return *this;}
/**
* <p>The time that the recognizer creation completed.</p>
*/
inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
/**
* <p>The time that the recognizer creation completed.</p>
*/
inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
/**
* <p>The time that the recognizer creation completed.</p>
*/
inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
/**
* <p>The time that the recognizer creation completed.</p>
*/
inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
/**
* <p>The time that the recognizer creation completed.</p>
*/
inline EntityRecognizerProperties& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
/**
* <p>The time that the recognizer creation completed.</p>
*/
inline EntityRecognizerProperties& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
/**
* <p>The time that training of the entity recognizer started.</p>
*/
inline const Aws::Utils::DateTime& GetTrainingStartTime() const{ return m_trainingStartTime; }
/**
* <p>The time that training of the entity recognizer started.</p>
*/
inline bool TrainingStartTimeHasBeenSet() const { return m_trainingStartTimeHasBeenSet; }
/**
* <p>The time that training of the entity recognizer started.</p>
*/
inline void SetTrainingStartTime(const Aws::Utils::DateTime& value) { m_trainingStartTimeHasBeenSet = true; m_trainingStartTime = value; }
/**
* <p>The time that training of the entity recognizer started.</p>
*/
inline void SetTrainingStartTime(Aws::Utils::DateTime&& value) { m_trainingStartTimeHasBeenSet = true; m_trainingStartTime = std::move(value); }
/**
* <p>The time that training of the entity recognizer started.</p>
*/
inline EntityRecognizerProperties& WithTrainingStartTime(const Aws::Utils::DateTime& value) { SetTrainingStartTime(value); return *this;}
/**
* <p>The time that training of the entity recognizer started.</p>
*/
inline EntityRecognizerProperties& WithTrainingStartTime(Aws::Utils::DateTime&& value) { SetTrainingStartTime(std::move(value)); return *this;}
/**
* <p>The time that training of the entity recognizer was completed.</p>
*/
inline const Aws::Utils::DateTime& GetTrainingEndTime() const{ return m_trainingEndTime; }
/**
* <p>The time that training of the entity recognizer was completed.</p>
*/
inline bool TrainingEndTimeHasBeenSet() const { return m_trainingEndTimeHasBeenSet; }
/**
* <p>The time that training of the entity recognizer was completed.</p>
*/
inline void SetTrainingEndTime(const Aws::Utils::DateTime& value) { m_trainingEndTimeHasBeenSet = true; m_trainingEndTime = value; }
/**
* <p>The time that training of the entity recognizer was completed.</p>
*/
inline void SetTrainingEndTime(Aws::Utils::DateTime&& value) { m_trainingEndTimeHasBeenSet = true; m_trainingEndTime = std::move(value); }
/**
* <p>The time that training of the entity recognizer was completed.</p>
*/
inline EntityRecognizerProperties& WithTrainingEndTime(const Aws::Utils::DateTime& value) { SetTrainingEndTime(value); return *this;}
/**
* <p>The time that training of the entity recognizer was completed.</p>
*/
inline EntityRecognizerProperties& WithTrainingEndTime(Aws::Utils::DateTime&& value) { SetTrainingEndTime(std::move(value)); return *this;}
/**
* <p>The input data properties of an entity recognizer.</p>
*/
inline const EntityRecognizerInputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
/**
* <p>The input data properties of an entity recognizer.</p>
*/
inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
/**
* <p>The input data properties of an entity recognizer.</p>
*/
inline void SetInputDataConfig(const EntityRecognizerInputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
/**
* <p>The input data properties of an entity recognizer.</p>
*/
inline void SetInputDataConfig(EntityRecognizerInputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
/**
* <p>The input data properties of an entity recognizer.</p>
*/
inline EntityRecognizerProperties& WithInputDataConfig(const EntityRecognizerInputDataConfig& value) { SetInputDataConfig(value); return *this;}
/**
* <p>The input data properties of an entity recognizer.</p>
*/
inline EntityRecognizerProperties& WithInputDataConfig(EntityRecognizerInputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;}
/**
* <p> Provides information about an entity recognizer.</p>
*/
inline const EntityRecognizerMetadata& GetRecognizerMetadata() const{ return m_recognizerMetadata; }
/**
* <p> Provides information about an entity recognizer.</p>
*/
inline bool RecognizerMetadataHasBeenSet() const { return m_recognizerMetadataHasBeenSet; }
/**
* <p> Provides information about an entity recognizer.</p>
*/
inline void SetRecognizerMetadata(const EntityRecognizerMetadata& value) { m_recognizerMetadataHasBeenSet = true; m_recognizerMetadata = value; }
/**
* <p> Provides information about an entity recognizer.</p>
*/
inline void SetRecognizerMetadata(EntityRecognizerMetadata&& value) { m_recognizerMetadataHasBeenSet = true; m_recognizerMetadata = std::move(value); }
/**
* <p> Provides information about an entity recognizer.</p>
*/
inline EntityRecognizerProperties& WithRecognizerMetadata(const EntityRecognizerMetadata& value) { SetRecognizerMetadata(value); return *this;}
/**
* <p> Provides information about an entity recognizer.</p>
*/
inline EntityRecognizerProperties& WithRecognizerMetadata(EntityRecognizerMetadata&& value) { SetRecognizerMetadata(std::move(value)); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline const Aws::String& GetDataAccessRoleArn() const{ return m_dataAccessRoleArn; }
/**
* <p> The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
/**
* <p> The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline void SetDataAccessRoleArn(const Aws::String& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = value; }
/**
* <p> The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline void SetDataAccessRoleArn(Aws::String&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::move(value); }
/**
* <p> The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline void SetDataAccessRoleArn(const char* value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn.assign(value); }
/**
* <p> The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline EntityRecognizerProperties& WithDataAccessRoleArn(const Aws::String& value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline EntityRecognizerProperties& WithDataAccessRoleArn(Aws::String&& value) { SetDataAccessRoleArn(std::move(value)); return *this;}
/**
* <p> The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role
* that grants Amazon Comprehend read access to your input data.</p>
*/
inline EntityRecognizerProperties& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline const Aws::String& GetVolumeKmsKeyId() const{ return m_volumeKmsKeyId; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline void SetVolumeKmsKeyId(const Aws::String& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = value; }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline void SetVolumeKmsKeyId(Aws::String&& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = std::move(value); }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline void SetVolumeKmsKeyId(const char* value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId.assign(value); }
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline EntityRecognizerProperties& WithVolumeKmsKeyId(const Aws::String& value) { SetVolumeKmsKeyId(value); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline EntityRecognizerProperties& WithVolumeKmsKeyId(Aws::String&& value) { SetVolumeKmsKeyId(std::move(value)); return *this;}
/**
* <p>ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses
* to encrypt data on the storage volume attached to the ML compute instance(s)
* that process the analysis job. The VolumeKmsKeyId can be either of the following
* formats:</p> <ul> <li> <p>KMS Key ID:
* <code>"1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> <li> <p>Amazon
* Resource Name (ARN) of a KMS Key:
* <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code>
* </p> </li> </ul>
*/
inline EntityRecognizerProperties& WithVolumeKmsKeyId(const char* value) { SetVolumeKmsKeyId(value); return *this;}
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom entity recognizer. For
* more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom entity recognizer. For
* more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom entity recognizer. For
* more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom entity recognizer. For
* more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom entity recognizer. For
* more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline EntityRecognizerProperties& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC)
* containing the resources you are using for your custom entity recognizer. For
* more information, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">Amazon
* VPC</a>. </p>
*/
inline EntityRecognizerProperties& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
private:
Aws::String m_entityRecognizerArn;
bool m_entityRecognizerArnHasBeenSet;
LanguageCode m_languageCode;
bool m_languageCodeHasBeenSet;
ModelStatus m_status;
bool m_statusHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::Utils::DateTime m_submitTime;
bool m_submitTimeHasBeenSet;
Aws::Utils::DateTime m_endTime;
bool m_endTimeHasBeenSet;
Aws::Utils::DateTime m_trainingStartTime;
bool m_trainingStartTimeHasBeenSet;
Aws::Utils::DateTime m_trainingEndTime;
bool m_trainingEndTimeHasBeenSet;
EntityRecognizerInputDataConfig m_inputDataConfig;
bool m_inputDataConfigHasBeenSet;
EntityRecognizerMetadata m_recognizerMetadata;
bool m_recognizerMetadataHasBeenSet;
Aws::String m_dataAccessRoleArn;
bool m_dataAccessRoleArnHasBeenSet;
Aws::String m_volumeKmsKeyId;
bool m_volumeKmsKeyIdHasBeenSet;
VpcConfig m_vpcConfig;
bool m_vpcConfigHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,38 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Comprehend
{
namespace Model
{
enum class EntityType
{
NOT_SET,
PERSON,
LOCATION,
ORGANIZATION,
COMMERCIAL_ITEM,
EVENT,
DATE,
QUANTITY,
TITLE,
OTHER
};
namespace EntityTypeMapper
{
AWS_COMPREHEND_API EntityType GetEntityTypeForName(const Aws::String& name);
AWS_COMPREHEND_API Aws::String GetNameForEntityType(EntityType value);
} // namespace EntityTypeMapper
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,143 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehend/Comprehend_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Detailed information about the accuracy of an entity recognizer for a
* specific entity type. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntityTypesEvaluationMetrics">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API EntityTypesEvaluationMetrics
{
public:
EntityTypesEvaluationMetrics();
EntityTypesEvaluationMetrics(Aws::Utils::Json::JsonView jsonValue);
EntityTypesEvaluationMetrics& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A measure of the usefulness of the recognizer results for a specific entity
* type in the test data. High precision means that the recognizer returned
* substantially more relevant results than irrelevant ones. </p>
*/
inline double GetPrecision() const{ return m_precision; }
/**
* <p>A measure of the usefulness of the recognizer results for a specific entity
* type in the test data. High precision means that the recognizer returned
* substantially more relevant results than irrelevant ones. </p>
*/
inline bool PrecisionHasBeenSet() const { return m_precisionHasBeenSet; }
/**
* <p>A measure of the usefulness of the recognizer results for a specific entity
* type in the test data. High precision means that the recognizer returned
* substantially more relevant results than irrelevant ones. </p>
*/
inline void SetPrecision(double value) { m_precisionHasBeenSet = true; m_precision = value; }
/**
* <p>A measure of the usefulness of the recognizer results for a specific entity
* type in the test data. High precision means that the recognizer returned
* substantially more relevant results than irrelevant ones. </p>
*/
inline EntityTypesEvaluationMetrics& WithPrecision(double value) { SetPrecision(value); return *this;}
/**
* <p>A measure of how complete the recognizer results are for a specific entity
* type in the test data. High recall means that the recognizer returned most of
* the relevant results.</p>
*/
inline double GetRecall() const{ return m_recall; }
/**
* <p>A measure of how complete the recognizer results are for a specific entity
* type in the test data. High recall means that the recognizer returned most of
* the relevant results.</p>
*/
inline bool RecallHasBeenSet() const { return m_recallHasBeenSet; }
/**
* <p>A measure of how complete the recognizer results are for a specific entity
* type in the test data. High recall means that the recognizer returned most of
* the relevant results.</p>
*/
inline void SetRecall(double value) { m_recallHasBeenSet = true; m_recall = value; }
/**
* <p>A measure of how complete the recognizer results are for a specific entity
* type in the test data. High recall means that the recognizer returned most of
* the relevant results.</p>
*/
inline EntityTypesEvaluationMetrics& WithRecall(double value) { SetRecall(value); return *this;}
/**
* <p>A measure of how accurate the recognizer results are for for a specific
* entity type in the test data. It is derived from the <code>Precision</code> and
* <code>Recall</code> values. The <code>F1Score</code> is the harmonic average of
* the two scores. The highest score is 1, and the worst score is 0. </p>
*/
inline double GetF1Score() const{ return m_f1Score; }
/**
* <p>A measure of how accurate the recognizer results are for for a specific
* entity type in the test data. It is derived from the <code>Precision</code> and
* <code>Recall</code> values. The <code>F1Score</code> is the harmonic average of
* the two scores. The highest score is 1, and the worst score is 0. </p>
*/
inline bool F1ScoreHasBeenSet() const { return m_f1ScoreHasBeenSet; }
/**
* <p>A measure of how accurate the recognizer results are for for a specific
* entity type in the test data. It is derived from the <code>Precision</code> and
* <code>Recall</code> values. The <code>F1Score</code> is the harmonic average of
* the two scores. The highest score is 1, and the worst score is 0. </p>
*/
inline void SetF1Score(double value) { m_f1ScoreHasBeenSet = true; m_f1Score = value; }
/**
* <p>A measure of how accurate the recognizer results are for for a specific
* entity type in the test data. It is derived from the <code>Precision</code> and
* <code>Recall</code> values. The <code>F1Score</code> is the harmonic average of
* the two scores. The highest score is 1, and the worst score is 0. </p>
*/
inline EntityTypesEvaluationMetrics& WithF1Score(double value) { SetF1Score(value); return *this;}
private:
double m_precision;
bool m_precisionHasBeenSet;
double m_recall;
bool m_recallHasBeenSet;
double m_f1Score;
bool m_f1ScoreHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,89 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Information about an individual item on a list of entity types.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntityTypesListItem">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API EntityTypesListItem
{
public:
EntityTypesListItem();
EntityTypesListItem(Aws::Utils::Json::JsonView jsonValue);
EntityTypesListItem& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Entity type of an item on an entity type list.</p>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p>Entity type of an item on an entity type list.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>Entity type of an item on an entity type list.</p>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>Entity type of an item on an entity type list.</p>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>Entity type of an item on an entity type list.</p>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p>Entity type of an item on an entity type list.</p>
*/
inline EntityTypesListItem& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p>Entity type of an item on an entity type list.</p>
*/
inline EntityTypesListItem& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p>Entity type of an item on an entity type list.</p>
*/
inline EntityTypesListItem& WithType(const char* value) { SetType(value); return *this;}
private:
Aws::String m_type;
bool m_typeHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,193 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/comprehend/model/InputFormat.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>The input properties for a topic detection job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/InputDataConfig">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API InputDataConfig
{
public:
InputDataConfig();
InputDataConfig(Aws::Utils::Json::JsonView jsonValue);
InputDataConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon S3 URI for the input data. The URI must be in same region as the
* API endpoint that you are calling. The URI can point to a single input file or
* it can provide the prefix for a collection of data files. </p> <p>For example,
* if you use the URI <code>S3://bucketName/prefix</code>, if the prefix is a
* single file, Amazon Comprehend uses that file as input. If more than one file
* begins with the prefix, Amazon Comprehend uses all of them as input.</p>
*/
inline const Aws::String& GetS3Uri() const{ return m_s3Uri; }
/**
* <p>The Amazon S3 URI for the input data. The URI must be in same region as the
* API endpoint that you are calling. The URI can point to a single input file or
* it can provide the prefix for a collection of data files. </p> <p>For example,
* if you use the URI <code>S3://bucketName/prefix</code>, if the prefix is a
* single file, Amazon Comprehend uses that file as input. If more than one file
* begins with the prefix, Amazon Comprehend uses all of them as input.</p>
*/
inline bool S3UriHasBeenSet() const { return m_s3UriHasBeenSet; }
/**
* <p>The Amazon S3 URI for the input data. The URI must be in same region as the
* API endpoint that you are calling. The URI can point to a single input file or
* it can provide the prefix for a collection of data files. </p> <p>For example,
* if you use the URI <code>S3://bucketName/prefix</code>, if the prefix is a
* single file, Amazon Comprehend uses that file as input. If more than one file
* begins with the prefix, Amazon Comprehend uses all of them as input.</p>
*/
inline void SetS3Uri(const Aws::String& value) { m_s3UriHasBeenSet = true; m_s3Uri = value; }
/**
* <p>The Amazon S3 URI for the input data. The URI must be in same region as the
* API endpoint that you are calling. The URI can point to a single input file or
* it can provide the prefix for a collection of data files. </p> <p>For example,
* if you use the URI <code>S3://bucketName/prefix</code>, if the prefix is a
* single file, Amazon Comprehend uses that file as input. If more than one file
* begins with the prefix, Amazon Comprehend uses all of them as input.</p>
*/
inline void SetS3Uri(Aws::String&& value) { m_s3UriHasBeenSet = true; m_s3Uri = std::move(value); }
/**
* <p>The Amazon S3 URI for the input data. The URI must be in same region as the
* API endpoint that you are calling. The URI can point to a single input file or
* it can provide the prefix for a collection of data files. </p> <p>For example,
* if you use the URI <code>S3://bucketName/prefix</code>, if the prefix is a
* single file, Amazon Comprehend uses that file as input. If more than one file
* begins with the prefix, Amazon Comprehend uses all of them as input.</p>
*/
inline void SetS3Uri(const char* value) { m_s3UriHasBeenSet = true; m_s3Uri.assign(value); }
/**
* <p>The Amazon S3 URI for the input data. The URI must be in same region as the
* API endpoint that you are calling. The URI can point to a single input file or
* it can provide the prefix for a collection of data files. </p> <p>For example,
* if you use the URI <code>S3://bucketName/prefix</code>, if the prefix is a
* single file, Amazon Comprehend uses that file as input. If more than one file
* begins with the prefix, Amazon Comprehend uses all of them as input.</p>
*/
inline InputDataConfig& WithS3Uri(const Aws::String& value) { SetS3Uri(value); return *this;}
/**
* <p>The Amazon S3 URI for the input data. The URI must be in same region as the
* API endpoint that you are calling. The URI can point to a single input file or
* it can provide the prefix for a collection of data files. </p> <p>For example,
* if you use the URI <code>S3://bucketName/prefix</code>, if the prefix is a
* single file, Amazon Comprehend uses that file as input. If more than one file
* begins with the prefix, Amazon Comprehend uses all of them as input.</p>
*/
inline InputDataConfig& WithS3Uri(Aws::String&& value) { SetS3Uri(std::move(value)); return *this;}
/**
* <p>The Amazon S3 URI for the input data. The URI must be in same region as the
* API endpoint that you are calling. The URI can point to a single input file or
* it can provide the prefix for a collection of data files. </p> <p>For example,
* if you use the URI <code>S3://bucketName/prefix</code>, if the prefix is a
* single file, Amazon Comprehend uses that file as input. If more than one file
* begins with the prefix, Amazon Comprehend uses all of them as input.</p>
*/
inline InputDataConfig& WithS3Uri(const char* value) { SetS3Uri(value); return *this;}
/**
* <p>Specifies how the text in an input file should be processed:</p> <ul> <li>
* <p> <code>ONE_DOC_PER_FILE</code> - Each file is considered a separate document.
* Use this option when you are processing large documents, such as newspaper
* articles or scientific papers.</p> </li> <li> <p> <code>ONE_DOC_PER_LINE</code>
* - Each line in a file is considered a separate document. Use this option when
* you are processing many short documents, such as text messages.</p> </li> </ul>
*/
inline const InputFormat& GetInputFormat() const{ return m_inputFormat; }
/**
* <p>Specifies how the text in an input file should be processed:</p> <ul> <li>
* <p> <code>ONE_DOC_PER_FILE</code> - Each file is considered a separate document.
* Use this option when you are processing large documents, such as newspaper
* articles or scientific papers.</p> </li> <li> <p> <code>ONE_DOC_PER_LINE</code>
* - Each line in a file is considered a separate document. Use this option when
* you are processing many short documents, such as text messages.</p> </li> </ul>
*/
inline bool InputFormatHasBeenSet() const { return m_inputFormatHasBeenSet; }
/**
* <p>Specifies how the text in an input file should be processed:</p> <ul> <li>
* <p> <code>ONE_DOC_PER_FILE</code> - Each file is considered a separate document.
* Use this option when you are processing large documents, such as newspaper
* articles or scientific papers.</p> </li> <li> <p> <code>ONE_DOC_PER_LINE</code>
* - Each line in a file is considered a separate document. Use this option when
* you are processing many short documents, such as text messages.</p> </li> </ul>
*/
inline void SetInputFormat(const InputFormat& value) { m_inputFormatHasBeenSet = true; m_inputFormat = value; }
/**
* <p>Specifies how the text in an input file should be processed:</p> <ul> <li>
* <p> <code>ONE_DOC_PER_FILE</code> - Each file is considered a separate document.
* Use this option when you are processing large documents, such as newspaper
* articles or scientific papers.</p> </li> <li> <p> <code>ONE_DOC_PER_LINE</code>
* - Each line in a file is considered a separate document. Use this option when
* you are processing many short documents, such as text messages.</p> </li> </ul>
*/
inline void SetInputFormat(InputFormat&& value) { m_inputFormatHasBeenSet = true; m_inputFormat = std::move(value); }
/**
* <p>Specifies how the text in an input file should be processed:</p> <ul> <li>
* <p> <code>ONE_DOC_PER_FILE</code> - Each file is considered a separate document.
* Use this option when you are processing large documents, such as newspaper
* articles or scientific papers.</p> </li> <li> <p> <code>ONE_DOC_PER_LINE</code>
* - Each line in a file is considered a separate document. Use this option when
* you are processing many short documents, such as text messages.</p> </li> </ul>
*/
inline InputDataConfig& WithInputFormat(const InputFormat& value) { SetInputFormat(value); return *this;}
/**
* <p>Specifies how the text in an input file should be processed:</p> <ul> <li>
* <p> <code>ONE_DOC_PER_FILE</code> - Each file is considered a separate document.
* Use this option when you are processing large documents, such as newspaper
* articles or scientific papers.</p> </li> <li> <p> <code>ONE_DOC_PER_LINE</code>
* - Each line in a file is considered a separate document. Use this option when
* you are processing many short documents, such as text messages.</p> </li> </ul>
*/
inline InputDataConfig& WithInputFormat(InputFormat&& value) { SetInputFormat(std::move(value)); return *this;}
private:
Aws::String m_s3Uri;
bool m_s3UriHasBeenSet;
InputFormat m_inputFormat;
bool m_inputFormatHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Comprehend
{
namespace Model
{
enum class InputFormat
{
NOT_SET,
ONE_DOC_PER_FILE,
ONE_DOC_PER_LINE
};
namespace InputFormatMapper
{
AWS_COMPREHEND_API InputFormat GetInputFormatForName(const Aws::String& name);
AWS_COMPREHEND_API Aws::String GetNameForInputFormat(InputFormat value);
} // namespace InputFormatMapper
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,35 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Comprehend
{
namespace Model
{
enum class JobStatus
{
NOT_SET,
SUBMITTED,
IN_PROGRESS,
COMPLETED,
FAILED,
STOP_REQUESTED,
STOPPED
};
namespace JobStatusMapper
{
AWS_COMPREHEND_API JobStatus GetJobStatusForName(const Aws::String& name);
AWS_COMPREHEND_API Aws::String GetNameForJobStatus(JobStatus value);
} // namespace JobStatusMapper
} // namespace Model
} // namespace Comprehend
} // namespace Aws

View File

@@ -0,0 +1,196 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Comprehend
{
namespace Model
{
/**
* <p>Describes a key noun phrase.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/KeyPhrase">AWS
* API Reference</a></p>
*/
class AWS_COMPREHEND_API KeyPhrase
{
public:
KeyPhrase();
KeyPhrase(Aws::Utils::Json::JsonView jsonValue);
KeyPhrase& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The level of confidence that Amazon Comprehend has in the accuracy of the
* detection.</p>
*/
inline double GetScore() const{ return m_score; }
/**
* <p>The level of confidence that Amazon Comprehend has in the accuracy of the
* detection.</p>
*/
inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
/**
* <p>The level of confidence that Amazon Comprehend has in the accuracy of the
* detection.</p>
*/
inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
/**
* <p>The level of confidence that Amazon Comprehend has in the accuracy of the
* detection.</p>
*/
inline KeyPhrase& WithScore(double value) { SetScore(value); return *this;}
/**
* <p>The text of a key noun phrase.</p>
*/
inline const Aws::String& GetText() const{ return m_text; }
/**
* <p>The text of a key noun phrase.</p>
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
* <p>The text of a key noun phrase.</p>
*/
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
/**
* <p>The text of a key noun phrase.</p>
*/
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
* <p>The text of a key noun phrase.</p>
*/
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
/**
* <p>The text of a key noun phrase.</p>
*/
inline KeyPhrase& WithText(const Aws::String& value) { SetText(value); return *this;}
/**
* <p>The text of a key noun phrase.</p>
*/
inline KeyPhrase& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
/**
* <p>The text of a key noun phrase.</p>
*/
inline KeyPhrase& WithText(const char* value) { SetText(value); return *this;}
/**
* <p>A character offset in the input text that shows where the key phrase begins
* (the first character is at position 0). The offset returns the position of each
* UTF-8 code point in the string. A <i>code point</i> is the abstract character
* from a particular graphical representation. For example, a multi-byte UTF-8
* character maps to a single code point.</p>
*/
inline int GetBeginOffset() const{ return m_beginOffset; }
/**
* <p>A character offset in the input text that shows where the key phrase begins
* (the first character is at position 0). The offset returns the position of each
* UTF-8 code point in the string. A <i>code point</i> is the abstract character
* from a particular graphical representation. For example, a multi-byte UTF-8
* character maps to a single code point.</p>
*/
inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
/**
* <p>A character offset in the input text that shows where the key phrase begins
* (the first character is at position 0). The offset returns the position of each
* UTF-8 code point in the string. A <i>code point</i> is the abstract character
* from a particular graphical representation. For example, a multi-byte UTF-8
* character maps to a single code point.</p>
*/
inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
/**
* <p>A character offset in the input text that shows where the key phrase begins
* (the first character is at position 0). The offset returns the position of each
* UTF-8 code point in the string. A <i>code point</i> is the abstract character
* from a particular graphical representation. For example, a multi-byte UTF-8
* character maps to a single code point.</p>
*/
inline KeyPhrase& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
/**
* <p>A character offset in the input text where the key phrase ends. The offset
* returns the position of each UTF-8 code point in the string. A <code>code
* point</code> is the abstract character from a particular graphical
* representation. For example, a multi-byte UTF-8 character maps to a single code
* point.</p>
*/
inline int GetEndOffset() const{ return m_endOffset; }
/**
* <p>A character offset in the input text where the key phrase ends. The offset
* returns the position of each UTF-8 code point in the string. A <code>code
* point</code> is the abstract character from a particular graphical
* representation. For example, a multi-byte UTF-8 character maps to a single code
* point.</p>
*/
inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
/**
* <p>A character offset in the input text where the key phrase ends. The offset
* returns the position of each UTF-8 code point in the string. A <code>code
* point</code> is the abstract character from a particular graphical
* representation. For example, a multi-byte UTF-8 character maps to a single code
* point.</p>
*/
inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
/**
* <p>A character offset in the input text where the key phrase ends. The offset
* returns the position of each UTF-8 code point in the string. A <code>code
* point</code> is the abstract character from a particular graphical
* representation. For example, a multi-byte UTF-8 character maps to a single code
* point.</p>
*/
inline KeyPhrase& WithEndOffset(int value) { SetEndOffset(value); return *this;}
private:
double m_score;
bool m_scoreHasBeenSet;
Aws::String m_text;
bool m_textHasBeenSet;
int m_beginOffset;
bool m_beginOffsetHasBeenSet;
int m_endOffset;
bool m_endOffsetHasBeenSet;
};
} // namespace Model
} // namespace Comprehend
} // namespace Aws

Some files were not shown because too many files have changed in this diff Show More