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,76 @@
add_project(aws-cpp-sdk-glue "C++ SDK for the AWS glue service" aws-cpp-sdk-core)
file(GLOB AWS_GLUE_HEADERS
"include/aws/glue/*.h"
)
file(GLOB AWS_GLUE_MODEL_HEADERS
"include/aws/glue/model/*.h"
)
file(GLOB AWS_GLUE_SOURCE
"source/*.cpp"
)
file(GLOB AWS_GLUE_MODEL_SOURCE
"source/model/*.cpp"
)
file(GLOB GLUE_UNIFIED_HEADERS
${AWS_GLUE_HEADERS}
${AWS_GLUE_MODEL_HEADERS}
)
file(GLOB GLUE_UNITY_SRC
${AWS_GLUE_SOURCE}
${AWS_GLUE_MODEL_SOURCE}
)
if(ENABLE_UNITY_BUILD)
enable_unity_build("GLUE" GLUE_UNITY_SRC)
endif()
file(GLOB GLUE_SRC
${GLUE_UNIFIED_HEADERS}
${GLUE_UNITY_SRC}
)
if(WIN32)
#if we are compiling for visual studio, create a sane directory tree.
if(MSVC)
source_group("Header Files\\aws\\glue" FILES ${AWS_GLUE_HEADERS})
source_group("Header Files\\aws\\glue\\model" FILES ${AWS_GLUE_MODEL_HEADERS})
source_group("Source Files" FILES ${AWS_GLUE_SOURCE})
source_group("Source Files\\model" FILES ${AWS_GLUE_MODEL_SOURCE})
endif(MSVC)
endif()
set(GLUE_INCLUDES
"${CMAKE_CURRENT_SOURCE_DIR}/include/"
)
add_library(${PROJECT_NAME} ${GLUE_SRC})
add_library(AWS::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
set_compiler_flags(${PROJECT_NAME})
set_compiler_warnings(${PROJECT_NAME})
if(USE_WINDOWS_DLL_SEMANTICS AND BUILD_SHARED_LIBS)
target_compile_definitions(${PROJECT_NAME} PRIVATE "AWS_GLUE_EXPORTS")
endif()
target_include_directories(${PROJECT_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
target_link_libraries(${PROJECT_NAME} PRIVATE ${PLATFORM_DEP_LIBS} ${PROJECT_LIBS})
setup_install()
install (FILES ${AWS_GLUE_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/glue)
install (FILES ${AWS_GLUE_MODEL_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/glue/model)
do_packaging()

File diff suppressed because it is too large Load Diff

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/glue/Glue_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Glue
{
namespace GlueEndpoint
{
AWS_GLUE_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace GlueEndpoint
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_GLUE_API GlueErrorMarshaller : 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,92 @@
/**
* 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/glue/Glue_EXPORTS.h>
namespace Aws
{
namespace Glue
{
enum class GlueErrors
{
//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,
///////////////////////////////////////////////////////////////////////////////////////////
ALREADY_EXISTS= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
CONCURRENT_MODIFICATION,
CONCURRENT_RUNS_EXCEEDED,
CONDITION_CHECK_FAILURE,
CRAWLER_NOT_RUNNING,
CRAWLER_RUNNING,
CRAWLER_STOPPING,
ENTITY_NOT_FOUND,
GLUE_ENCRYPTION,
IDEMPOTENT_PARAMETER_MISMATCH,
ILLEGAL_WORKFLOW_STATE,
INTERNAL_SERVICE,
INVALID_INPUT,
M_L_TRANSFORM_NOT_READY,
NO_SCHEDULE,
OPERATION_TIMEOUT,
RESOURCE_NUMBER_LIMIT_EXCEEDED,
SCHEDULER_NOT_RUNNING,
SCHEDULER_RUNNING,
SCHEDULER_TRANSITIONING,
VERSION_MISMATCH
};
class AWS_GLUE_API GlueError : public Aws::Client::AWSError<GlueErrors>
{
public:
GlueError() {}
GlueError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<GlueErrors>(rhs) {}
GlueError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<GlueErrors>(rhs) {}
GlueError(const Aws::Client::AWSError<GlueErrors>& rhs) : Aws::Client::AWSError<GlueErrors>(rhs) {}
GlueError(Aws::Client::AWSError<GlueErrors>&& rhs) : Aws::Client::AWSError<GlueErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace GlueErrorMapper
{
AWS_GLUE_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace Glue
{
class AWS_GLUE_API GlueRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~GlueRequest () {}
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-03-31"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace Glue
} // 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_GLUE_EXPORTS
#define AWS_GLUE_API __declspec(dllexport)
#else
#define AWS_GLUE_API __declspec(dllimport)
#endif /* AWS_GLUE_EXPORTS */
#else
#define AWS_GLUE_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_GLUE_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

View File

@@ -0,0 +1,442 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/glue/model/NotificationProperty.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
/**
* <p>Defines an action to be initiated by a trigger.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/Action">AWS API
* Reference</a></p>
*/
class AWS_GLUE_API Action
{
public:
Action();
Action(Aws::Utils::Json::JsonView jsonValue);
Action& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of a job to be executed.</p>
*/
inline const Aws::String& GetJobName() const{ return m_jobName; }
/**
* <p>The name of a job to be executed.</p>
*/
inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
/**
* <p>The name of a job to be executed.</p>
*/
inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
/**
* <p>The name of a job to be executed.</p>
*/
inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
/**
* <p>The name of a job to be executed.</p>
*/
inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
/**
* <p>The name of a job to be executed.</p>
*/
inline Action& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
/**
* <p>The name of a job to be executed.</p>
*/
inline Action& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
/**
* <p>The name of a job to be executed.</p>
*/
inline Action& WithJobName(const char* value) { SetJobName(value); return *this;}
/**
* <p>The job arguments used when this trigger fires. For this job run, they
* replace the default arguments set in the job definition itself.</p> <p>You can
* specify arguments here that your own job-execution script consumes, as well as
* arguments that AWS Glue itself consumes.</p> <p>For information about how to
* specify and consume your own Job arguments, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html">Calling
* AWS Glue APIs in Python</a> topic in the developer guide.</p> <p>For information
* about the key-value pairs that AWS Glue consumes to set up your job, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html">Special
* Parameters Used by AWS Glue</a> topic in the developer guide.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetArguments() const{ return m_arguments; }
/**
* <p>The job arguments used when this trigger fires. For this job run, they
* replace the default arguments set in the job definition itself.</p> <p>You can
* specify arguments here that your own job-execution script consumes, as well as
* arguments that AWS Glue itself consumes.</p> <p>For information about how to
* specify and consume your own Job arguments, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html">Calling
* AWS Glue APIs in Python</a> topic in the developer guide.</p> <p>For information
* about the key-value pairs that AWS Glue consumes to set up your job, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html">Special
* Parameters Used by AWS Glue</a> topic in the developer guide.</p>
*/
inline bool ArgumentsHasBeenSet() const { return m_argumentsHasBeenSet; }
/**
* <p>The job arguments used when this trigger fires. For this job run, they
* replace the default arguments set in the job definition itself.</p> <p>You can
* specify arguments here that your own job-execution script consumes, as well as
* arguments that AWS Glue itself consumes.</p> <p>For information about how to
* specify and consume your own Job arguments, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html">Calling
* AWS Glue APIs in Python</a> topic in the developer guide.</p> <p>For information
* about the key-value pairs that AWS Glue consumes to set up your job, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html">Special
* Parameters Used by AWS Glue</a> topic in the developer guide.</p>
*/
inline void SetArguments(const Aws::Map<Aws::String, Aws::String>& value) { m_argumentsHasBeenSet = true; m_arguments = value; }
/**
* <p>The job arguments used when this trigger fires. For this job run, they
* replace the default arguments set in the job definition itself.</p> <p>You can
* specify arguments here that your own job-execution script consumes, as well as
* arguments that AWS Glue itself consumes.</p> <p>For information about how to
* specify and consume your own Job arguments, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html">Calling
* AWS Glue APIs in Python</a> topic in the developer guide.</p> <p>For information
* about the key-value pairs that AWS Glue consumes to set up your job, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html">Special
* Parameters Used by AWS Glue</a> topic in the developer guide.</p>
*/
inline void SetArguments(Aws::Map<Aws::String, Aws::String>&& value) { m_argumentsHasBeenSet = true; m_arguments = std::move(value); }
/**
* <p>The job arguments used when this trigger fires. For this job run, they
* replace the default arguments set in the job definition itself.</p> <p>You can
* specify arguments here that your own job-execution script consumes, as well as
* arguments that AWS Glue itself consumes.</p> <p>For information about how to
* specify and consume your own Job arguments, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html">Calling
* AWS Glue APIs in Python</a> topic in the developer guide.</p> <p>For information
* about the key-value pairs that AWS Glue consumes to set up your job, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html">Special
* Parameters Used by AWS Glue</a> topic in the developer guide.</p>
*/
inline Action& WithArguments(const Aws::Map<Aws::String, Aws::String>& value) { SetArguments(value); return *this;}
/**
* <p>The job arguments used when this trigger fires. For this job run, they
* replace the default arguments set in the job definition itself.</p> <p>You can
* specify arguments here that your own job-execution script consumes, as well as
* arguments that AWS Glue itself consumes.</p> <p>For information about how to
* specify and consume your own Job arguments, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html">Calling
* AWS Glue APIs in Python</a> topic in the developer guide.</p> <p>For information
* about the key-value pairs that AWS Glue consumes to set up your job, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html">Special
* Parameters Used by AWS Glue</a> topic in the developer guide.</p>
*/
inline Action& WithArguments(Aws::Map<Aws::String, Aws::String>&& value) { SetArguments(std::move(value)); return *this;}
/**
* <p>The job arguments used when this trigger fires. For this job run, they
* replace the default arguments set in the job definition itself.</p> <p>You can
* specify arguments here that your own job-execution script consumes, as well as
* arguments that AWS Glue itself consumes.</p> <p>For information about how to
* specify and consume your own Job arguments, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html">Calling
* AWS Glue APIs in Python</a> topic in the developer guide.</p> <p>For information
* about the key-value pairs that AWS Glue consumes to set up your job, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html">Special
* Parameters Used by AWS Glue</a> topic in the developer guide.</p>
*/
inline Action& AddArguments(const Aws::String& key, const Aws::String& value) { m_argumentsHasBeenSet = true; m_arguments.emplace(key, value); return *this; }
/**
* <p>The job arguments used when this trigger fires. For this job run, they
* replace the default arguments set in the job definition itself.</p> <p>You can
* specify arguments here that your own job-execution script consumes, as well as
* arguments that AWS Glue itself consumes.</p> <p>For information about how to
* specify and consume your own Job arguments, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html">Calling
* AWS Glue APIs in Python</a> topic in the developer guide.</p> <p>For information
* about the key-value pairs that AWS Glue consumes to set up your job, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html">Special
* Parameters Used by AWS Glue</a> topic in the developer guide.</p>
*/
inline Action& AddArguments(Aws::String&& key, const Aws::String& value) { m_argumentsHasBeenSet = true; m_arguments.emplace(std::move(key), value); return *this; }
/**
* <p>The job arguments used when this trigger fires. For this job run, they
* replace the default arguments set in the job definition itself.</p> <p>You can
* specify arguments here that your own job-execution script consumes, as well as
* arguments that AWS Glue itself consumes.</p> <p>For information about how to
* specify and consume your own Job arguments, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html">Calling
* AWS Glue APIs in Python</a> topic in the developer guide.</p> <p>For information
* about the key-value pairs that AWS Glue consumes to set up your job, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html">Special
* Parameters Used by AWS Glue</a> topic in the developer guide.</p>
*/
inline Action& AddArguments(const Aws::String& key, Aws::String&& value) { m_argumentsHasBeenSet = true; m_arguments.emplace(key, std::move(value)); return *this; }
/**
* <p>The job arguments used when this trigger fires. For this job run, they
* replace the default arguments set in the job definition itself.</p> <p>You can
* specify arguments here that your own job-execution script consumes, as well as
* arguments that AWS Glue itself consumes.</p> <p>For information about how to
* specify and consume your own Job arguments, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html">Calling
* AWS Glue APIs in Python</a> topic in the developer guide.</p> <p>For information
* about the key-value pairs that AWS Glue consumes to set up your job, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html">Special
* Parameters Used by AWS Glue</a> topic in the developer guide.</p>
*/
inline Action& AddArguments(Aws::String&& key, Aws::String&& value) { m_argumentsHasBeenSet = true; m_arguments.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The job arguments used when this trigger fires. For this job run, they
* replace the default arguments set in the job definition itself.</p> <p>You can
* specify arguments here that your own job-execution script consumes, as well as
* arguments that AWS Glue itself consumes.</p> <p>For information about how to
* specify and consume your own Job arguments, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html">Calling
* AWS Glue APIs in Python</a> topic in the developer guide.</p> <p>For information
* about the key-value pairs that AWS Glue consumes to set up your job, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html">Special
* Parameters Used by AWS Glue</a> topic in the developer guide.</p>
*/
inline Action& AddArguments(const char* key, Aws::String&& value) { m_argumentsHasBeenSet = true; m_arguments.emplace(key, std::move(value)); return *this; }
/**
* <p>The job arguments used when this trigger fires. For this job run, they
* replace the default arguments set in the job definition itself.</p> <p>You can
* specify arguments here that your own job-execution script consumes, as well as
* arguments that AWS Glue itself consumes.</p> <p>For information about how to
* specify and consume your own Job arguments, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html">Calling
* AWS Glue APIs in Python</a> topic in the developer guide.</p> <p>For information
* about the key-value pairs that AWS Glue consumes to set up your job, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html">Special
* Parameters Used by AWS Glue</a> topic in the developer guide.</p>
*/
inline Action& AddArguments(Aws::String&& key, const char* value) { m_argumentsHasBeenSet = true; m_arguments.emplace(std::move(key), value); return *this; }
/**
* <p>The job arguments used when this trigger fires. For this job run, they
* replace the default arguments set in the job definition itself.</p> <p>You can
* specify arguments here that your own job-execution script consumes, as well as
* arguments that AWS Glue itself consumes.</p> <p>For information about how to
* specify and consume your own Job arguments, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html">Calling
* AWS Glue APIs in Python</a> topic in the developer guide.</p> <p>For information
* about the key-value pairs that AWS Glue consumes to set up your job, see the <a
* href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html">Special
* Parameters Used by AWS Glue</a> topic in the developer guide.</p>
*/
inline Action& AddArguments(const char* key, const char* value) { m_argumentsHasBeenSet = true; m_arguments.emplace(key, value); return *this; }
/**
* <p>The <code>JobRun</code> timeout in minutes. This is the maximum time that a
* job run can consume resources before it is terminated and enters
* <code>TIMEOUT</code> status. The default is 2,880 minutes (48 hours). This
* overrides the timeout value set in the parent job.</p>
*/
inline int GetTimeout() const{ return m_timeout; }
/**
* <p>The <code>JobRun</code> timeout in minutes. This is the maximum time that a
* job run can consume resources before it is terminated and enters
* <code>TIMEOUT</code> status. The default is 2,880 minutes (48 hours). This
* overrides the timeout value set in the parent job.</p>
*/
inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
/**
* <p>The <code>JobRun</code> timeout in minutes. This is the maximum time that a
* job run can consume resources before it is terminated and enters
* <code>TIMEOUT</code> status. The default is 2,880 minutes (48 hours). This
* overrides the timeout value set in the parent job.</p>
*/
inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
/**
* <p>The <code>JobRun</code> timeout in minutes. This is the maximum time that a
* job run can consume resources before it is terminated and enters
* <code>TIMEOUT</code> status. The default is 2,880 minutes (48 hours). This
* overrides the timeout value set in the parent job.</p>
*/
inline Action& WithTimeout(int value) { SetTimeout(value); return *this;}
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used with
* this action.</p>
*/
inline const Aws::String& GetSecurityConfiguration() const{ return m_securityConfiguration; }
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used with
* this action.</p>
*/
inline bool SecurityConfigurationHasBeenSet() const { return m_securityConfigurationHasBeenSet; }
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used with
* this action.</p>
*/
inline void SetSecurityConfiguration(const Aws::String& value) { m_securityConfigurationHasBeenSet = true; m_securityConfiguration = value; }
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used with
* this action.</p>
*/
inline void SetSecurityConfiguration(Aws::String&& value) { m_securityConfigurationHasBeenSet = true; m_securityConfiguration = std::move(value); }
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used with
* this action.</p>
*/
inline void SetSecurityConfiguration(const char* value) { m_securityConfigurationHasBeenSet = true; m_securityConfiguration.assign(value); }
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used with
* this action.</p>
*/
inline Action& WithSecurityConfiguration(const Aws::String& value) { SetSecurityConfiguration(value); return *this;}
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used with
* this action.</p>
*/
inline Action& WithSecurityConfiguration(Aws::String&& value) { SetSecurityConfiguration(std::move(value)); return *this;}
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used with
* this action.</p>
*/
inline Action& WithSecurityConfiguration(const char* value) { SetSecurityConfiguration(value); return *this;}
/**
* <p>Specifies configuration properties of a job run notification.</p>
*/
inline const NotificationProperty& GetNotificationProperty() const{ return m_notificationProperty; }
/**
* <p>Specifies configuration properties of a job run notification.</p>
*/
inline bool NotificationPropertyHasBeenSet() const { return m_notificationPropertyHasBeenSet; }
/**
* <p>Specifies configuration properties of a job run notification.</p>
*/
inline void SetNotificationProperty(const NotificationProperty& value) { m_notificationPropertyHasBeenSet = true; m_notificationProperty = value; }
/**
* <p>Specifies configuration properties of a job run notification.</p>
*/
inline void SetNotificationProperty(NotificationProperty&& value) { m_notificationPropertyHasBeenSet = true; m_notificationProperty = std::move(value); }
/**
* <p>Specifies configuration properties of a job run notification.</p>
*/
inline Action& WithNotificationProperty(const NotificationProperty& value) { SetNotificationProperty(value); return *this;}
/**
* <p>Specifies configuration properties of a job run notification.</p>
*/
inline Action& WithNotificationProperty(NotificationProperty&& value) { SetNotificationProperty(std::move(value)); return *this;}
/**
* <p>The name of the crawler to be used with this action.</p>
*/
inline const Aws::String& GetCrawlerName() const{ return m_crawlerName; }
/**
* <p>The name of the crawler to be used with this action.</p>
*/
inline bool CrawlerNameHasBeenSet() const { return m_crawlerNameHasBeenSet; }
/**
* <p>The name of the crawler to be used with this action.</p>
*/
inline void SetCrawlerName(const Aws::String& value) { m_crawlerNameHasBeenSet = true; m_crawlerName = value; }
/**
* <p>The name of the crawler to be used with this action.</p>
*/
inline void SetCrawlerName(Aws::String&& value) { m_crawlerNameHasBeenSet = true; m_crawlerName = std::move(value); }
/**
* <p>The name of the crawler to be used with this action.</p>
*/
inline void SetCrawlerName(const char* value) { m_crawlerNameHasBeenSet = true; m_crawlerName.assign(value); }
/**
* <p>The name of the crawler to be used with this action.</p>
*/
inline Action& WithCrawlerName(const Aws::String& value) { SetCrawlerName(value); return *this;}
/**
* <p>The name of the crawler to be used with this action.</p>
*/
inline Action& WithCrawlerName(Aws::String&& value) { SetCrawlerName(std::move(value)); return *this;}
/**
* <p>The name of the crawler to be used with this action.</p>
*/
inline Action& WithCrawlerName(const char* value) { SetCrawlerName(value); return *this;}
private:
Aws::String m_jobName;
bool m_jobNameHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_arguments;
bool m_argumentsHasBeenSet;
int m_timeout;
bool m_timeoutHasBeenSet;
Aws::String m_securityConfiguration;
bool m_securityConfigurationHasBeenSet;
NotificationProperty m_notificationProperty;
bool m_notificationPropertyHasBeenSet;
Aws::String m_crawlerName;
bool m_crawlerNameHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,243 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glue/model/PartitionInput.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API BatchCreatePartitionRequest : public GlueRequest
{
public:
BatchCreatePartitionRequest();
// 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 "BatchCreatePartition"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the catalog in which the partition is to be created. Currently,
* this should be the AWS account ID.</p>
*/
inline const Aws::String& GetCatalogId() const{ return m_catalogId; }
/**
* <p>The ID of the catalog in which the partition is to be created. Currently,
* this should be the AWS account ID.</p>
*/
inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
/**
* <p>The ID of the catalog in which the partition is to be created. Currently,
* this should be the AWS account ID.</p>
*/
inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
/**
* <p>The ID of the catalog in which the partition is to be created. Currently,
* this should be the AWS account ID.</p>
*/
inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
/**
* <p>The ID of the catalog in which the partition is to be created. Currently,
* this should be the AWS account ID.</p>
*/
inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
/**
* <p>The ID of the catalog in which the partition is to be created. Currently,
* this should be the AWS account ID.</p>
*/
inline BatchCreatePartitionRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
/**
* <p>The ID of the catalog in which the partition is to be created. Currently,
* this should be the AWS account ID.</p>
*/
inline BatchCreatePartitionRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
/**
* <p>The ID of the catalog in which the partition is to be created. Currently,
* this should be the AWS account ID.</p>
*/
inline BatchCreatePartitionRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
/**
* <p>The name of the metadata database in which the partition is to be
* created.</p>
*/
inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
/**
* <p>The name of the metadata database in which the partition is to be
* created.</p>
*/
inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
/**
* <p>The name of the metadata database in which the partition is to be
* created.</p>
*/
inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
/**
* <p>The name of the metadata database in which the partition is to be
* created.</p>
*/
inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
/**
* <p>The name of the metadata database in which the partition is to be
* created.</p>
*/
inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
/**
* <p>The name of the metadata database in which the partition is to be
* created.</p>
*/
inline BatchCreatePartitionRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
/**
* <p>The name of the metadata database in which the partition is to be
* created.</p>
*/
inline BatchCreatePartitionRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
/**
* <p>The name of the metadata database in which the partition is to be
* created.</p>
*/
inline BatchCreatePartitionRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
/**
* <p>The name of the metadata table in which the partition is to be created.</p>
*/
inline const Aws::String& GetTableName() const{ return m_tableName; }
/**
* <p>The name of the metadata table in which the partition is to be created.</p>
*/
inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
/**
* <p>The name of the metadata table in which the partition is to be created.</p>
*/
inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
/**
* <p>The name of the metadata table in which the partition is to be created.</p>
*/
inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
/**
* <p>The name of the metadata table in which the partition is to be created.</p>
*/
inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
/**
* <p>The name of the metadata table in which the partition is to be created.</p>
*/
inline BatchCreatePartitionRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
/**
* <p>The name of the metadata table in which the partition is to be created.</p>
*/
inline BatchCreatePartitionRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
/**
* <p>The name of the metadata table in which the partition is to be created.</p>
*/
inline BatchCreatePartitionRequest& WithTableName(const char* value) { SetTableName(value); return *this;}
/**
* <p>A list of <code>PartitionInput</code> structures that define the partitions
* to be created.</p>
*/
inline const Aws::Vector<PartitionInput>& GetPartitionInputList() const{ return m_partitionInputList; }
/**
* <p>A list of <code>PartitionInput</code> structures that define the partitions
* to be created.</p>
*/
inline bool PartitionInputListHasBeenSet() const { return m_partitionInputListHasBeenSet; }
/**
* <p>A list of <code>PartitionInput</code> structures that define the partitions
* to be created.</p>
*/
inline void SetPartitionInputList(const Aws::Vector<PartitionInput>& value) { m_partitionInputListHasBeenSet = true; m_partitionInputList = value; }
/**
* <p>A list of <code>PartitionInput</code> structures that define the partitions
* to be created.</p>
*/
inline void SetPartitionInputList(Aws::Vector<PartitionInput>&& value) { m_partitionInputListHasBeenSet = true; m_partitionInputList = std::move(value); }
/**
* <p>A list of <code>PartitionInput</code> structures that define the partitions
* to be created.</p>
*/
inline BatchCreatePartitionRequest& WithPartitionInputList(const Aws::Vector<PartitionInput>& value) { SetPartitionInputList(value); return *this;}
/**
* <p>A list of <code>PartitionInput</code> structures that define the partitions
* to be created.</p>
*/
inline BatchCreatePartitionRequest& WithPartitionInputList(Aws::Vector<PartitionInput>&& value) { SetPartitionInputList(std::move(value)); return *this;}
/**
* <p>A list of <code>PartitionInput</code> structures that define the partitions
* to be created.</p>
*/
inline BatchCreatePartitionRequest& AddPartitionInputList(const PartitionInput& value) { m_partitionInputListHasBeenSet = true; m_partitionInputList.push_back(value); return *this; }
/**
* <p>A list of <code>PartitionInput</code> structures that define the partitions
* to be created.</p>
*/
inline BatchCreatePartitionRequest& AddPartitionInputList(PartitionInput&& value) { m_partitionInputListHasBeenSet = true; m_partitionInputList.push_back(std::move(value)); return *this; }
private:
Aws::String m_catalogId;
bool m_catalogIdHasBeenSet;
Aws::String m_databaseName;
bool m_databaseNameHasBeenSet;
Aws::String m_tableName;
bool m_tableNameHasBeenSet;
Aws::Vector<PartitionInput> m_partitionInputList;
bool m_partitionInputListHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,78 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glue/model/PartitionError.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
class AWS_GLUE_API BatchCreatePartitionResult
{
public:
BatchCreatePartitionResult();
BatchCreatePartitionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchCreatePartitionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The errors encountered when trying to create the requested partitions.</p>
*/
inline const Aws::Vector<PartitionError>& GetErrors() const{ return m_errors; }
/**
* <p>The errors encountered when trying to create the requested partitions.</p>
*/
inline void SetErrors(const Aws::Vector<PartitionError>& value) { m_errors = value; }
/**
* <p>The errors encountered when trying to create the requested partitions.</p>
*/
inline void SetErrors(Aws::Vector<PartitionError>&& value) { m_errors = std::move(value); }
/**
* <p>The errors encountered when trying to create the requested partitions.</p>
*/
inline BatchCreatePartitionResult& WithErrors(const Aws::Vector<PartitionError>& value) { SetErrors(value); return *this;}
/**
* <p>The errors encountered when trying to create the requested partitions.</p>
*/
inline BatchCreatePartitionResult& WithErrors(Aws::Vector<PartitionError>&& value) { SetErrors(std::move(value)); return *this;}
/**
* <p>The errors encountered when trying to create the requested partitions.</p>
*/
inline BatchCreatePartitionResult& AddErrors(const PartitionError& value) { m_errors.push_back(value); return *this; }
/**
* <p>The errors encountered when trying to create the requested partitions.</p>
*/
inline BatchCreatePartitionResult& AddErrors(PartitionError&& value) { m_errors.push_back(std::move(value)); return *this; }
private:
Aws::Vector<PartitionError> m_errors;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API BatchDeleteConnectionRequest : public GlueRequest
{
public:
BatchDeleteConnectionRequest();
// 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 "BatchDeleteConnection"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the Data Catalog in which the connections reside. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline const Aws::String& GetCatalogId() const{ return m_catalogId; }
/**
* <p>The ID of the Data Catalog in which the connections reside. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
/**
* <p>The ID of the Data Catalog in which the connections reside. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
/**
* <p>The ID of the Data Catalog in which the connections reside. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
/**
* <p>The ID of the Data Catalog in which the connections reside. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
/**
* <p>The ID of the Data Catalog in which the connections reside. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline BatchDeleteConnectionRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
/**
* <p>The ID of the Data Catalog in which the connections reside. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline BatchDeleteConnectionRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
/**
* <p>The ID of the Data Catalog in which the connections reside. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline BatchDeleteConnectionRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
/**
* <p>A list of names of the connections to delete.</p>
*/
inline const Aws::Vector<Aws::String>& GetConnectionNameList() const{ return m_connectionNameList; }
/**
* <p>A list of names of the connections to delete.</p>
*/
inline bool ConnectionNameListHasBeenSet() const { return m_connectionNameListHasBeenSet; }
/**
* <p>A list of names of the connections to delete.</p>
*/
inline void SetConnectionNameList(const Aws::Vector<Aws::String>& value) { m_connectionNameListHasBeenSet = true; m_connectionNameList = value; }
/**
* <p>A list of names of the connections to delete.</p>
*/
inline void SetConnectionNameList(Aws::Vector<Aws::String>&& value) { m_connectionNameListHasBeenSet = true; m_connectionNameList = std::move(value); }
/**
* <p>A list of names of the connections to delete.</p>
*/
inline BatchDeleteConnectionRequest& WithConnectionNameList(const Aws::Vector<Aws::String>& value) { SetConnectionNameList(value); return *this;}
/**
* <p>A list of names of the connections to delete.</p>
*/
inline BatchDeleteConnectionRequest& WithConnectionNameList(Aws::Vector<Aws::String>&& value) { SetConnectionNameList(std::move(value)); return *this;}
/**
* <p>A list of names of the connections to delete.</p>
*/
inline BatchDeleteConnectionRequest& AddConnectionNameList(const Aws::String& value) { m_connectionNameListHasBeenSet = true; m_connectionNameList.push_back(value); return *this; }
/**
* <p>A list of names of the connections to delete.</p>
*/
inline BatchDeleteConnectionRequest& AddConnectionNameList(Aws::String&& value) { m_connectionNameListHasBeenSet = true; m_connectionNameList.push_back(std::move(value)); return *this; }
/**
* <p>A list of names of the connections to delete.</p>
*/
inline BatchDeleteConnectionRequest& AddConnectionNameList(const char* value) { m_connectionNameListHasBeenSet = true; m_connectionNameList.push_back(value); return *this; }
private:
Aws::String m_catalogId;
bool m_catalogIdHasBeenSet;
Aws::Vector<Aws::String> m_connectionNameList;
bool m_connectionNameListHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glue/model/ErrorDetail.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
class AWS_GLUE_API BatchDeleteConnectionResult
{
public:
BatchDeleteConnectionResult();
BatchDeleteConnectionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchDeleteConnectionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of names of the connection definitions that were successfully
* deleted.</p>
*/
inline const Aws::Vector<Aws::String>& GetSucceeded() const{ return m_succeeded; }
/**
* <p>A list of names of the connection definitions that were successfully
* deleted.</p>
*/
inline void SetSucceeded(const Aws::Vector<Aws::String>& value) { m_succeeded = value; }
/**
* <p>A list of names of the connection definitions that were successfully
* deleted.</p>
*/
inline void SetSucceeded(Aws::Vector<Aws::String>&& value) { m_succeeded = std::move(value); }
/**
* <p>A list of names of the connection definitions that were successfully
* deleted.</p>
*/
inline BatchDeleteConnectionResult& WithSucceeded(const Aws::Vector<Aws::String>& value) { SetSucceeded(value); return *this;}
/**
* <p>A list of names of the connection definitions that were successfully
* deleted.</p>
*/
inline BatchDeleteConnectionResult& WithSucceeded(Aws::Vector<Aws::String>&& value) { SetSucceeded(std::move(value)); return *this;}
/**
* <p>A list of names of the connection definitions that were successfully
* deleted.</p>
*/
inline BatchDeleteConnectionResult& AddSucceeded(const Aws::String& value) { m_succeeded.push_back(value); return *this; }
/**
* <p>A list of names of the connection definitions that were successfully
* deleted.</p>
*/
inline BatchDeleteConnectionResult& AddSucceeded(Aws::String&& value) { m_succeeded.push_back(std::move(value)); return *this; }
/**
* <p>A list of names of the connection definitions that were successfully
* deleted.</p>
*/
inline BatchDeleteConnectionResult& AddSucceeded(const char* value) { m_succeeded.push_back(value); return *this; }
/**
* <p>A map of the names of connections that were not successfully deleted to error
* details.</p>
*/
inline const Aws::Map<Aws::String, ErrorDetail>& GetErrors() const{ return m_errors; }
/**
* <p>A map of the names of connections that were not successfully deleted to error
* details.</p>
*/
inline void SetErrors(const Aws::Map<Aws::String, ErrorDetail>& value) { m_errors = value; }
/**
* <p>A map of the names of connections that were not successfully deleted to error
* details.</p>
*/
inline void SetErrors(Aws::Map<Aws::String, ErrorDetail>&& value) { m_errors = std::move(value); }
/**
* <p>A map of the names of connections that were not successfully deleted to error
* details.</p>
*/
inline BatchDeleteConnectionResult& WithErrors(const Aws::Map<Aws::String, ErrorDetail>& value) { SetErrors(value); return *this;}
/**
* <p>A map of the names of connections that were not successfully deleted to error
* details.</p>
*/
inline BatchDeleteConnectionResult& WithErrors(Aws::Map<Aws::String, ErrorDetail>&& value) { SetErrors(std::move(value)); return *this;}
/**
* <p>A map of the names of connections that were not successfully deleted to error
* details.</p>
*/
inline BatchDeleteConnectionResult& AddErrors(const Aws::String& key, const ErrorDetail& value) { m_errors.emplace(key, value); return *this; }
/**
* <p>A map of the names of connections that were not successfully deleted to error
* details.</p>
*/
inline BatchDeleteConnectionResult& AddErrors(Aws::String&& key, const ErrorDetail& value) { m_errors.emplace(std::move(key), value); return *this; }
/**
* <p>A map of the names of connections that were not successfully deleted to error
* details.</p>
*/
inline BatchDeleteConnectionResult& AddErrors(const Aws::String& key, ErrorDetail&& value) { m_errors.emplace(key, std::move(value)); return *this; }
/**
* <p>A map of the names of connections that were not successfully deleted to error
* details.</p>
*/
inline BatchDeleteConnectionResult& AddErrors(Aws::String&& key, ErrorDetail&& value) { m_errors.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>A map of the names of connections that were not successfully deleted to error
* details.</p>
*/
inline BatchDeleteConnectionResult& AddErrors(const char* key, ErrorDetail&& value) { m_errors.emplace(key, std::move(value)); return *this; }
/**
* <p>A map of the names of connections that were not successfully deleted to error
* details.</p>
*/
inline BatchDeleteConnectionResult& AddErrors(const char* key, const ErrorDetail& value) { m_errors.emplace(key, value); return *this; }
private:
Aws::Vector<Aws::String> m_succeeded;
Aws::Map<Aws::String, ErrorDetail> m_errors;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,235 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glue/model/PartitionValueList.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API BatchDeletePartitionRequest : public GlueRequest
{
public:
BatchDeletePartitionRequest();
// 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 "BatchDeletePartition"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the Data Catalog where the partition to be deleted resides. If none
* is provided, the AWS account ID is used by default.</p>
*/
inline const Aws::String& GetCatalogId() const{ return m_catalogId; }
/**
* <p>The ID of the Data Catalog where the partition to be deleted resides. If none
* is provided, the AWS account ID is used by default.</p>
*/
inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
/**
* <p>The ID of the Data Catalog where the partition to be deleted resides. If none
* is provided, the AWS account ID is used by default.</p>
*/
inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
/**
* <p>The ID of the Data Catalog where the partition to be deleted resides. If none
* is provided, the AWS account ID is used by default.</p>
*/
inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
/**
* <p>The ID of the Data Catalog where the partition to be deleted resides. If none
* is provided, the AWS account ID is used by default.</p>
*/
inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
/**
* <p>The ID of the Data Catalog where the partition to be deleted resides. If none
* is provided, the AWS account ID is used by default.</p>
*/
inline BatchDeletePartitionRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
/**
* <p>The ID of the Data Catalog where the partition to be deleted resides. If none
* is provided, the AWS account ID is used by default.</p>
*/
inline BatchDeletePartitionRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
/**
* <p>The ID of the Data Catalog where the partition to be deleted resides. If none
* is provided, the AWS account ID is used by default.</p>
*/
inline BatchDeletePartitionRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
/**
* <p>The name of the catalog database in which the table in question resides.</p>
*/
inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
/**
* <p>The name of the catalog database in which the table in question resides.</p>
*/
inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
/**
* <p>The name of the catalog database in which the table in question resides.</p>
*/
inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
/**
* <p>The name of the catalog database in which the table in question resides.</p>
*/
inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
/**
* <p>The name of the catalog database in which the table in question resides.</p>
*/
inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
/**
* <p>The name of the catalog database in which the table in question resides.</p>
*/
inline BatchDeletePartitionRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
/**
* <p>The name of the catalog database in which the table in question resides.</p>
*/
inline BatchDeletePartitionRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
/**
* <p>The name of the catalog database in which the table in question resides.</p>
*/
inline BatchDeletePartitionRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
/**
* <p>The name of the table that contains the partitions to be deleted.</p>
*/
inline const Aws::String& GetTableName() const{ return m_tableName; }
/**
* <p>The name of the table that contains the partitions to be deleted.</p>
*/
inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
/**
* <p>The name of the table that contains the partitions to be deleted.</p>
*/
inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
/**
* <p>The name of the table that contains the partitions to be deleted.</p>
*/
inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
/**
* <p>The name of the table that contains the partitions to be deleted.</p>
*/
inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
/**
* <p>The name of the table that contains the partitions to be deleted.</p>
*/
inline BatchDeletePartitionRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
/**
* <p>The name of the table that contains the partitions to be deleted.</p>
*/
inline BatchDeletePartitionRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
/**
* <p>The name of the table that contains the partitions to be deleted.</p>
*/
inline BatchDeletePartitionRequest& WithTableName(const char* value) { SetTableName(value); return *this;}
/**
* <p>A list of <code>PartitionInput</code> structures that define the partitions
* to be deleted.</p>
*/
inline const Aws::Vector<PartitionValueList>& GetPartitionsToDelete() const{ return m_partitionsToDelete; }
/**
* <p>A list of <code>PartitionInput</code> structures that define the partitions
* to be deleted.</p>
*/
inline bool PartitionsToDeleteHasBeenSet() const { return m_partitionsToDeleteHasBeenSet; }
/**
* <p>A list of <code>PartitionInput</code> structures that define the partitions
* to be deleted.</p>
*/
inline void SetPartitionsToDelete(const Aws::Vector<PartitionValueList>& value) { m_partitionsToDeleteHasBeenSet = true; m_partitionsToDelete = value; }
/**
* <p>A list of <code>PartitionInput</code> structures that define the partitions
* to be deleted.</p>
*/
inline void SetPartitionsToDelete(Aws::Vector<PartitionValueList>&& value) { m_partitionsToDeleteHasBeenSet = true; m_partitionsToDelete = std::move(value); }
/**
* <p>A list of <code>PartitionInput</code> structures that define the partitions
* to be deleted.</p>
*/
inline BatchDeletePartitionRequest& WithPartitionsToDelete(const Aws::Vector<PartitionValueList>& value) { SetPartitionsToDelete(value); return *this;}
/**
* <p>A list of <code>PartitionInput</code> structures that define the partitions
* to be deleted.</p>
*/
inline BatchDeletePartitionRequest& WithPartitionsToDelete(Aws::Vector<PartitionValueList>&& value) { SetPartitionsToDelete(std::move(value)); return *this;}
/**
* <p>A list of <code>PartitionInput</code> structures that define the partitions
* to be deleted.</p>
*/
inline BatchDeletePartitionRequest& AddPartitionsToDelete(const PartitionValueList& value) { m_partitionsToDeleteHasBeenSet = true; m_partitionsToDelete.push_back(value); return *this; }
/**
* <p>A list of <code>PartitionInput</code> structures that define the partitions
* to be deleted.</p>
*/
inline BatchDeletePartitionRequest& AddPartitionsToDelete(PartitionValueList&& value) { m_partitionsToDeleteHasBeenSet = true; m_partitionsToDelete.push_back(std::move(value)); return *this; }
private:
Aws::String m_catalogId;
bool m_catalogIdHasBeenSet;
Aws::String m_databaseName;
bool m_databaseNameHasBeenSet;
Aws::String m_tableName;
bool m_tableNameHasBeenSet;
Aws::Vector<PartitionValueList> m_partitionsToDelete;
bool m_partitionsToDeleteHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,78 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glue/model/PartitionError.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
class AWS_GLUE_API BatchDeletePartitionResult
{
public:
BatchDeletePartitionResult();
BatchDeletePartitionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchDeletePartitionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The errors encountered when trying to delete the requested partitions.</p>
*/
inline const Aws::Vector<PartitionError>& GetErrors() const{ return m_errors; }
/**
* <p>The errors encountered when trying to delete the requested partitions.</p>
*/
inline void SetErrors(const Aws::Vector<PartitionError>& value) { m_errors = value; }
/**
* <p>The errors encountered when trying to delete the requested partitions.</p>
*/
inline void SetErrors(Aws::Vector<PartitionError>&& value) { m_errors = std::move(value); }
/**
* <p>The errors encountered when trying to delete the requested partitions.</p>
*/
inline BatchDeletePartitionResult& WithErrors(const Aws::Vector<PartitionError>& value) { SetErrors(value); return *this;}
/**
* <p>The errors encountered when trying to delete the requested partitions.</p>
*/
inline BatchDeletePartitionResult& WithErrors(Aws::Vector<PartitionError>&& value) { SetErrors(std::move(value)); return *this;}
/**
* <p>The errors encountered when trying to delete the requested partitions.</p>
*/
inline BatchDeletePartitionResult& AddErrors(const PartitionError& value) { m_errors.push_back(value); return *this; }
/**
* <p>The errors encountered when trying to delete the requested partitions.</p>
*/
inline BatchDeletePartitionResult& AddErrors(PartitionError&& value) { m_errors.push_back(std::move(value)); return *this; }
private:
Aws::Vector<PartitionError> m_errors;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,195 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API BatchDeleteTableRequest : public GlueRequest
{
public:
BatchDeleteTableRequest();
// 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 "BatchDeleteTable"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the Data Catalog where the table resides. If none is provided, the
* AWS account ID is used by default.</p>
*/
inline const Aws::String& GetCatalogId() const{ return m_catalogId; }
/**
* <p>The ID of the Data Catalog where the table resides. If none is provided, the
* AWS account ID is used by default.</p>
*/
inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
/**
* <p>The ID of the Data Catalog where the table resides. If none is provided, the
* AWS account ID is used by default.</p>
*/
inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
/**
* <p>The ID of the Data Catalog where the table resides. If none is provided, the
* AWS account ID is used by default.</p>
*/
inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
/**
* <p>The ID of the Data Catalog where the table resides. If none is provided, the
* AWS account ID is used by default.</p>
*/
inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
/**
* <p>The ID of the Data Catalog where the table resides. If none is provided, the
* AWS account ID is used by default.</p>
*/
inline BatchDeleteTableRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
/**
* <p>The ID of the Data Catalog where the table resides. If none is provided, the
* AWS account ID is used by default.</p>
*/
inline BatchDeleteTableRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
/**
* <p>The ID of the Data Catalog where the table resides. If none is provided, the
* AWS account ID is used by default.</p>
*/
inline BatchDeleteTableRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
/**
* <p>The name of the catalog database in which the tables to delete reside. For
* Hive compatibility, this name is entirely lowercase.</p>
*/
inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
/**
* <p>The name of the catalog database in which the tables to delete reside. For
* Hive compatibility, this name is entirely lowercase.</p>
*/
inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
/**
* <p>The name of the catalog database in which the tables to delete reside. For
* Hive compatibility, this name is entirely lowercase.</p>
*/
inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
/**
* <p>The name of the catalog database in which the tables to delete reside. For
* Hive compatibility, this name is entirely lowercase.</p>
*/
inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
/**
* <p>The name of the catalog database in which the tables to delete reside. For
* Hive compatibility, this name is entirely lowercase.</p>
*/
inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
/**
* <p>The name of the catalog database in which the tables to delete reside. For
* Hive compatibility, this name is entirely lowercase.</p>
*/
inline BatchDeleteTableRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
/**
* <p>The name of the catalog database in which the tables to delete reside. For
* Hive compatibility, this name is entirely lowercase.</p>
*/
inline BatchDeleteTableRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
/**
* <p>The name of the catalog database in which the tables to delete reside. For
* Hive compatibility, this name is entirely lowercase.</p>
*/
inline BatchDeleteTableRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
/**
* <p>A list of the table to delete.</p>
*/
inline const Aws::Vector<Aws::String>& GetTablesToDelete() const{ return m_tablesToDelete; }
/**
* <p>A list of the table to delete.</p>
*/
inline bool TablesToDeleteHasBeenSet() const { return m_tablesToDeleteHasBeenSet; }
/**
* <p>A list of the table to delete.</p>
*/
inline void SetTablesToDelete(const Aws::Vector<Aws::String>& value) { m_tablesToDeleteHasBeenSet = true; m_tablesToDelete = value; }
/**
* <p>A list of the table to delete.</p>
*/
inline void SetTablesToDelete(Aws::Vector<Aws::String>&& value) { m_tablesToDeleteHasBeenSet = true; m_tablesToDelete = std::move(value); }
/**
* <p>A list of the table to delete.</p>
*/
inline BatchDeleteTableRequest& WithTablesToDelete(const Aws::Vector<Aws::String>& value) { SetTablesToDelete(value); return *this;}
/**
* <p>A list of the table to delete.</p>
*/
inline BatchDeleteTableRequest& WithTablesToDelete(Aws::Vector<Aws::String>&& value) { SetTablesToDelete(std::move(value)); return *this;}
/**
* <p>A list of the table to delete.</p>
*/
inline BatchDeleteTableRequest& AddTablesToDelete(const Aws::String& value) { m_tablesToDeleteHasBeenSet = true; m_tablesToDelete.push_back(value); return *this; }
/**
* <p>A list of the table to delete.</p>
*/
inline BatchDeleteTableRequest& AddTablesToDelete(Aws::String&& value) { m_tablesToDeleteHasBeenSet = true; m_tablesToDelete.push_back(std::move(value)); return *this; }
/**
* <p>A list of the table to delete.</p>
*/
inline BatchDeleteTableRequest& AddTablesToDelete(const char* value) { m_tablesToDeleteHasBeenSet = true; m_tablesToDelete.push_back(value); return *this; }
private:
Aws::String m_catalogId;
bool m_catalogIdHasBeenSet;
Aws::String m_databaseName;
bool m_databaseNameHasBeenSet;
Aws::Vector<Aws::String> m_tablesToDelete;
bool m_tablesToDeleteHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glue/model/TableError.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
class AWS_GLUE_API BatchDeleteTableResult
{
public:
BatchDeleteTableResult();
BatchDeleteTableResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchDeleteTableResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of errors encountered in attempting to delete the specified
* tables.</p>
*/
inline const Aws::Vector<TableError>& GetErrors() const{ return m_errors; }
/**
* <p>A list of errors encountered in attempting to delete the specified
* tables.</p>
*/
inline void SetErrors(const Aws::Vector<TableError>& value) { m_errors = value; }
/**
* <p>A list of errors encountered in attempting to delete the specified
* tables.</p>
*/
inline void SetErrors(Aws::Vector<TableError>&& value) { m_errors = std::move(value); }
/**
* <p>A list of errors encountered in attempting to delete the specified
* tables.</p>
*/
inline BatchDeleteTableResult& WithErrors(const Aws::Vector<TableError>& value) { SetErrors(value); return *this;}
/**
* <p>A list of errors encountered in attempting to delete the specified
* tables.</p>
*/
inline BatchDeleteTableResult& WithErrors(Aws::Vector<TableError>&& value) { SetErrors(std::move(value)); return *this;}
/**
* <p>A list of errors encountered in attempting to delete the specified
* tables.</p>
*/
inline BatchDeleteTableResult& AddErrors(const TableError& value) { m_errors.push_back(value); return *this; }
/**
* <p>A list of errors encountered in attempting to delete the specified
* tables.</p>
*/
inline BatchDeleteTableResult& AddErrors(TableError&& value) { m_errors.push_back(std::move(value)); return *this; }
private:
Aws::Vector<TableError> m_errors;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,256 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API BatchDeleteTableVersionRequest : public GlueRequest
{
public:
BatchDeleteTableVersionRequest();
// 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 "BatchDeleteTableVersion"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the Data Catalog where the tables reside. If none is provided, the
* AWS account ID is used by default.</p>
*/
inline const Aws::String& GetCatalogId() const{ return m_catalogId; }
/**
* <p>The ID of the Data Catalog where the tables reside. If none is provided, the
* AWS account ID is used by default.</p>
*/
inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
/**
* <p>The ID of the Data Catalog where the tables reside. If none is provided, the
* AWS account ID is used by default.</p>
*/
inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
/**
* <p>The ID of the Data Catalog where the tables reside. If none is provided, the
* AWS account ID is used by default.</p>
*/
inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
/**
* <p>The ID of the Data Catalog where the tables reside. If none is provided, the
* AWS account ID is used by default.</p>
*/
inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
/**
* <p>The ID of the Data Catalog where the tables reside. If none is provided, the
* AWS account ID is used by default.</p>
*/
inline BatchDeleteTableVersionRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
/**
* <p>The ID of the Data Catalog where the tables reside. If none is provided, the
* AWS account ID is used by default.</p>
*/
inline BatchDeleteTableVersionRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
/**
* <p>The ID of the Data Catalog where the tables reside. If none is provided, the
* AWS account ID is used by default.</p>
*/
inline BatchDeleteTableVersionRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
/**
* <p>The database in the catalog in which the table resides. For Hive
* compatibility, this name is entirely lowercase.</p>
*/
inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
/**
* <p>The database in the catalog in which the table resides. For Hive
* compatibility, this name is entirely lowercase.</p>
*/
inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
/**
* <p>The database in the catalog in which the table resides. For Hive
* compatibility, this name is entirely lowercase.</p>
*/
inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
/**
* <p>The database in the catalog in which the table resides. For Hive
* compatibility, this name is entirely lowercase.</p>
*/
inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
/**
* <p>The database in the catalog in which the table resides. For Hive
* compatibility, this name is entirely lowercase.</p>
*/
inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
/**
* <p>The database in the catalog in which the table resides. For Hive
* compatibility, this name is entirely lowercase.</p>
*/
inline BatchDeleteTableVersionRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
/**
* <p>The database in the catalog in which the table resides. For Hive
* compatibility, this name is entirely lowercase.</p>
*/
inline BatchDeleteTableVersionRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
/**
* <p>The database in the catalog in which the table resides. For Hive
* compatibility, this name is entirely lowercase.</p>
*/
inline BatchDeleteTableVersionRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
/**
* <p>The name of the table. For Hive compatibility, this name is entirely
* lowercase.</p>
*/
inline const Aws::String& GetTableName() const{ return m_tableName; }
/**
* <p>The name of the table. For Hive compatibility, this name is entirely
* lowercase.</p>
*/
inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
/**
* <p>The name of the table. For Hive compatibility, this name is entirely
* lowercase.</p>
*/
inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
/**
* <p>The name of the table. For Hive compatibility, this name is entirely
* lowercase.</p>
*/
inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
/**
* <p>The name of the table. For Hive compatibility, this name is entirely
* lowercase.</p>
*/
inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
/**
* <p>The name of the table. For Hive compatibility, this name is entirely
* lowercase.</p>
*/
inline BatchDeleteTableVersionRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
/**
* <p>The name of the table. For Hive compatibility, this name is entirely
* lowercase.</p>
*/
inline BatchDeleteTableVersionRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
/**
* <p>The name of the table. For Hive compatibility, this name is entirely
* lowercase.</p>
*/
inline BatchDeleteTableVersionRequest& WithTableName(const char* value) { SetTableName(value); return *this;}
/**
* <p>A list of the IDs of versions to be deleted. A <code>VersionId</code> is a
* string representation of an integer. Each version is incremented by 1.</p>
*/
inline const Aws::Vector<Aws::String>& GetVersionIds() const{ return m_versionIds; }
/**
* <p>A list of the IDs of versions to be deleted. A <code>VersionId</code> is a
* string representation of an integer. Each version is incremented by 1.</p>
*/
inline bool VersionIdsHasBeenSet() const { return m_versionIdsHasBeenSet; }
/**
* <p>A list of the IDs of versions to be deleted. A <code>VersionId</code> is a
* string representation of an integer. Each version is incremented by 1.</p>
*/
inline void SetVersionIds(const Aws::Vector<Aws::String>& value) { m_versionIdsHasBeenSet = true; m_versionIds = value; }
/**
* <p>A list of the IDs of versions to be deleted. A <code>VersionId</code> is a
* string representation of an integer. Each version is incremented by 1.</p>
*/
inline void SetVersionIds(Aws::Vector<Aws::String>&& value) { m_versionIdsHasBeenSet = true; m_versionIds = std::move(value); }
/**
* <p>A list of the IDs of versions to be deleted. A <code>VersionId</code> is a
* string representation of an integer. Each version is incremented by 1.</p>
*/
inline BatchDeleteTableVersionRequest& WithVersionIds(const Aws::Vector<Aws::String>& value) { SetVersionIds(value); return *this;}
/**
* <p>A list of the IDs of versions to be deleted. A <code>VersionId</code> is a
* string representation of an integer. Each version is incremented by 1.</p>
*/
inline BatchDeleteTableVersionRequest& WithVersionIds(Aws::Vector<Aws::String>&& value) { SetVersionIds(std::move(value)); return *this;}
/**
* <p>A list of the IDs of versions to be deleted. A <code>VersionId</code> is a
* string representation of an integer. Each version is incremented by 1.</p>
*/
inline BatchDeleteTableVersionRequest& AddVersionIds(const Aws::String& value) { m_versionIdsHasBeenSet = true; m_versionIds.push_back(value); return *this; }
/**
* <p>A list of the IDs of versions to be deleted. A <code>VersionId</code> is a
* string representation of an integer. Each version is incremented by 1.</p>
*/
inline BatchDeleteTableVersionRequest& AddVersionIds(Aws::String&& value) { m_versionIdsHasBeenSet = true; m_versionIds.push_back(std::move(value)); return *this; }
/**
* <p>A list of the IDs of versions to be deleted. A <code>VersionId</code> is a
* string representation of an integer. Each version is incremented by 1.</p>
*/
inline BatchDeleteTableVersionRequest& AddVersionIds(const char* value) { m_versionIdsHasBeenSet = true; m_versionIds.push_back(value); return *this; }
private:
Aws::String m_catalogId;
bool m_catalogIdHasBeenSet;
Aws::String m_databaseName;
bool m_databaseNameHasBeenSet;
Aws::String m_tableName;
bool m_tableNameHasBeenSet;
Aws::Vector<Aws::String> m_versionIds;
bool m_versionIdsHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glue/model/TableVersionError.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
class AWS_GLUE_API BatchDeleteTableVersionResult
{
public:
BatchDeleteTableVersionResult();
BatchDeleteTableVersionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchDeleteTableVersionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of errors encountered while trying to delete the specified table
* versions.</p>
*/
inline const Aws::Vector<TableVersionError>& GetErrors() const{ return m_errors; }
/**
* <p>A list of errors encountered while trying to delete the specified table
* versions.</p>
*/
inline void SetErrors(const Aws::Vector<TableVersionError>& value) { m_errors = value; }
/**
* <p>A list of errors encountered while trying to delete the specified table
* versions.</p>
*/
inline void SetErrors(Aws::Vector<TableVersionError>&& value) { m_errors = std::move(value); }
/**
* <p>A list of errors encountered while trying to delete the specified table
* versions.</p>
*/
inline BatchDeleteTableVersionResult& WithErrors(const Aws::Vector<TableVersionError>& value) { SetErrors(value); return *this;}
/**
* <p>A list of errors encountered while trying to delete the specified table
* versions.</p>
*/
inline BatchDeleteTableVersionResult& WithErrors(Aws::Vector<TableVersionError>&& value) { SetErrors(std::move(value)); return *this;}
/**
* <p>A list of errors encountered while trying to delete the specified table
* versions.</p>
*/
inline BatchDeleteTableVersionResult& AddErrors(const TableVersionError& value) { m_errors.push_back(value); return *this; }
/**
* <p>A list of errors encountered while trying to delete the specified table
* versions.</p>
*/
inline BatchDeleteTableVersionResult& AddErrors(TableVersionError&& value) { m_errors.push_back(std::move(value)); return *this; }
private:
Aws::Vector<TableVersionError> m_errors;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,100 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API BatchGetCrawlersRequest : public GlueRequest
{
public:
BatchGetCrawlersRequest();
// 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 "BatchGetCrawlers"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A list of crawler names, which might be the names returned from the
* <code>ListCrawlers</code> operation.</p>
*/
inline const Aws::Vector<Aws::String>& GetCrawlerNames() const{ return m_crawlerNames; }
/**
* <p>A list of crawler names, which might be the names returned from the
* <code>ListCrawlers</code> operation.</p>
*/
inline bool CrawlerNamesHasBeenSet() const { return m_crawlerNamesHasBeenSet; }
/**
* <p>A list of crawler names, which might be the names returned from the
* <code>ListCrawlers</code> operation.</p>
*/
inline void SetCrawlerNames(const Aws::Vector<Aws::String>& value) { m_crawlerNamesHasBeenSet = true; m_crawlerNames = value; }
/**
* <p>A list of crawler names, which might be the names returned from the
* <code>ListCrawlers</code> operation.</p>
*/
inline void SetCrawlerNames(Aws::Vector<Aws::String>&& value) { m_crawlerNamesHasBeenSet = true; m_crawlerNames = std::move(value); }
/**
* <p>A list of crawler names, which might be the names returned from the
* <code>ListCrawlers</code> operation.</p>
*/
inline BatchGetCrawlersRequest& WithCrawlerNames(const Aws::Vector<Aws::String>& value) { SetCrawlerNames(value); return *this;}
/**
* <p>A list of crawler names, which might be the names returned from the
* <code>ListCrawlers</code> operation.</p>
*/
inline BatchGetCrawlersRequest& WithCrawlerNames(Aws::Vector<Aws::String>&& value) { SetCrawlerNames(std::move(value)); return *this;}
/**
* <p>A list of crawler names, which might be the names returned from the
* <code>ListCrawlers</code> operation.</p>
*/
inline BatchGetCrawlersRequest& AddCrawlerNames(const Aws::String& value) { m_crawlerNamesHasBeenSet = true; m_crawlerNames.push_back(value); return *this; }
/**
* <p>A list of crawler names, which might be the names returned from the
* <code>ListCrawlers</code> operation.</p>
*/
inline BatchGetCrawlersRequest& AddCrawlerNames(Aws::String&& value) { m_crawlerNamesHasBeenSet = true; m_crawlerNames.push_back(std::move(value)); return *this; }
/**
* <p>A list of crawler names, which might be the names returned from the
* <code>ListCrawlers</code> operation.</p>
*/
inline BatchGetCrawlersRequest& AddCrawlerNames(const char* value) { m_crawlerNamesHasBeenSet = true; m_crawlerNames.push_back(value); return *this; }
private:
Aws::Vector<Aws::String> m_crawlerNames;
bool m_crawlerNamesHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,122 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glue/model/Crawler.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 Glue
{
namespace Model
{
class AWS_GLUE_API BatchGetCrawlersResult
{
public:
BatchGetCrawlersResult();
BatchGetCrawlersResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchGetCrawlersResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of crawler definitions.</p>
*/
inline const Aws::Vector<Crawler>& GetCrawlers() const{ return m_crawlers; }
/**
* <p>A list of crawler definitions.</p>
*/
inline void SetCrawlers(const Aws::Vector<Crawler>& value) { m_crawlers = value; }
/**
* <p>A list of crawler definitions.</p>
*/
inline void SetCrawlers(Aws::Vector<Crawler>&& value) { m_crawlers = std::move(value); }
/**
* <p>A list of crawler definitions.</p>
*/
inline BatchGetCrawlersResult& WithCrawlers(const Aws::Vector<Crawler>& value) { SetCrawlers(value); return *this;}
/**
* <p>A list of crawler definitions.</p>
*/
inline BatchGetCrawlersResult& WithCrawlers(Aws::Vector<Crawler>&& value) { SetCrawlers(std::move(value)); return *this;}
/**
* <p>A list of crawler definitions.</p>
*/
inline BatchGetCrawlersResult& AddCrawlers(const Crawler& value) { m_crawlers.push_back(value); return *this; }
/**
* <p>A list of crawler definitions.</p>
*/
inline BatchGetCrawlersResult& AddCrawlers(Crawler&& value) { m_crawlers.push_back(std::move(value)); return *this; }
/**
* <p>A list of names of crawlers that were not found.</p>
*/
inline const Aws::Vector<Aws::String>& GetCrawlersNotFound() const{ return m_crawlersNotFound; }
/**
* <p>A list of names of crawlers that were not found.</p>
*/
inline void SetCrawlersNotFound(const Aws::Vector<Aws::String>& value) { m_crawlersNotFound = value; }
/**
* <p>A list of names of crawlers that were not found.</p>
*/
inline void SetCrawlersNotFound(Aws::Vector<Aws::String>&& value) { m_crawlersNotFound = std::move(value); }
/**
* <p>A list of names of crawlers that were not found.</p>
*/
inline BatchGetCrawlersResult& WithCrawlersNotFound(const Aws::Vector<Aws::String>& value) { SetCrawlersNotFound(value); return *this;}
/**
* <p>A list of names of crawlers that were not found.</p>
*/
inline BatchGetCrawlersResult& WithCrawlersNotFound(Aws::Vector<Aws::String>&& value) { SetCrawlersNotFound(std::move(value)); return *this;}
/**
* <p>A list of names of crawlers that were not found.</p>
*/
inline BatchGetCrawlersResult& AddCrawlersNotFound(const Aws::String& value) { m_crawlersNotFound.push_back(value); return *this; }
/**
* <p>A list of names of crawlers that were not found.</p>
*/
inline BatchGetCrawlersResult& AddCrawlersNotFound(Aws::String&& value) { m_crawlersNotFound.push_back(std::move(value)); return *this; }
/**
* <p>A list of names of crawlers that were not found.</p>
*/
inline BatchGetCrawlersResult& AddCrawlersNotFound(const char* value) { m_crawlersNotFound.push_back(value); return *this; }
private:
Aws::Vector<Crawler> m_crawlers;
Aws::Vector<Aws::String> m_crawlersNotFound;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,100 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API BatchGetDevEndpointsRequest : public GlueRequest
{
public:
BatchGetDevEndpointsRequest();
// 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 "BatchGetDevEndpoints"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The list of <code>DevEndpoint</code> names, which might be the names returned
* from the <code>ListDevEndpoint</code> operation.</p>
*/
inline const Aws::Vector<Aws::String>& GetDevEndpointNames() const{ return m_devEndpointNames; }
/**
* <p>The list of <code>DevEndpoint</code> names, which might be the names returned
* from the <code>ListDevEndpoint</code> operation.</p>
*/
inline bool DevEndpointNamesHasBeenSet() const { return m_devEndpointNamesHasBeenSet; }
/**
* <p>The list of <code>DevEndpoint</code> names, which might be the names returned
* from the <code>ListDevEndpoint</code> operation.</p>
*/
inline void SetDevEndpointNames(const Aws::Vector<Aws::String>& value) { m_devEndpointNamesHasBeenSet = true; m_devEndpointNames = value; }
/**
* <p>The list of <code>DevEndpoint</code> names, which might be the names returned
* from the <code>ListDevEndpoint</code> operation.</p>
*/
inline void SetDevEndpointNames(Aws::Vector<Aws::String>&& value) { m_devEndpointNamesHasBeenSet = true; m_devEndpointNames = std::move(value); }
/**
* <p>The list of <code>DevEndpoint</code> names, which might be the names returned
* from the <code>ListDevEndpoint</code> operation.</p>
*/
inline BatchGetDevEndpointsRequest& WithDevEndpointNames(const Aws::Vector<Aws::String>& value) { SetDevEndpointNames(value); return *this;}
/**
* <p>The list of <code>DevEndpoint</code> names, which might be the names returned
* from the <code>ListDevEndpoint</code> operation.</p>
*/
inline BatchGetDevEndpointsRequest& WithDevEndpointNames(Aws::Vector<Aws::String>&& value) { SetDevEndpointNames(std::move(value)); return *this;}
/**
* <p>The list of <code>DevEndpoint</code> names, which might be the names returned
* from the <code>ListDevEndpoint</code> operation.</p>
*/
inline BatchGetDevEndpointsRequest& AddDevEndpointNames(const Aws::String& value) { m_devEndpointNamesHasBeenSet = true; m_devEndpointNames.push_back(value); return *this; }
/**
* <p>The list of <code>DevEndpoint</code> names, which might be the names returned
* from the <code>ListDevEndpoint</code> operation.</p>
*/
inline BatchGetDevEndpointsRequest& AddDevEndpointNames(Aws::String&& value) { m_devEndpointNamesHasBeenSet = true; m_devEndpointNames.push_back(std::move(value)); return *this; }
/**
* <p>The list of <code>DevEndpoint</code> names, which might be the names returned
* from the <code>ListDevEndpoint</code> operation.</p>
*/
inline BatchGetDevEndpointsRequest& AddDevEndpointNames(const char* value) { m_devEndpointNamesHasBeenSet = true; m_devEndpointNames.push_back(value); return *this; }
private:
Aws::Vector<Aws::String> m_devEndpointNames;
bool m_devEndpointNamesHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,122 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glue/model/DevEndpoint.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 Glue
{
namespace Model
{
class AWS_GLUE_API BatchGetDevEndpointsResult
{
public:
BatchGetDevEndpointsResult();
BatchGetDevEndpointsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchGetDevEndpointsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of <code>DevEndpoint</code> definitions.</p>
*/
inline const Aws::Vector<DevEndpoint>& GetDevEndpoints() const{ return m_devEndpoints; }
/**
* <p>A list of <code>DevEndpoint</code> definitions.</p>
*/
inline void SetDevEndpoints(const Aws::Vector<DevEndpoint>& value) { m_devEndpoints = value; }
/**
* <p>A list of <code>DevEndpoint</code> definitions.</p>
*/
inline void SetDevEndpoints(Aws::Vector<DevEndpoint>&& value) { m_devEndpoints = std::move(value); }
/**
* <p>A list of <code>DevEndpoint</code> definitions.</p>
*/
inline BatchGetDevEndpointsResult& WithDevEndpoints(const Aws::Vector<DevEndpoint>& value) { SetDevEndpoints(value); return *this;}
/**
* <p>A list of <code>DevEndpoint</code> definitions.</p>
*/
inline BatchGetDevEndpointsResult& WithDevEndpoints(Aws::Vector<DevEndpoint>&& value) { SetDevEndpoints(std::move(value)); return *this;}
/**
* <p>A list of <code>DevEndpoint</code> definitions.</p>
*/
inline BatchGetDevEndpointsResult& AddDevEndpoints(const DevEndpoint& value) { m_devEndpoints.push_back(value); return *this; }
/**
* <p>A list of <code>DevEndpoint</code> definitions.</p>
*/
inline BatchGetDevEndpointsResult& AddDevEndpoints(DevEndpoint&& value) { m_devEndpoints.push_back(std::move(value)); return *this; }
/**
* <p>A list of <code>DevEndpoints</code> not found.</p>
*/
inline const Aws::Vector<Aws::String>& GetDevEndpointsNotFound() const{ return m_devEndpointsNotFound; }
/**
* <p>A list of <code>DevEndpoints</code> not found.</p>
*/
inline void SetDevEndpointsNotFound(const Aws::Vector<Aws::String>& value) { m_devEndpointsNotFound = value; }
/**
* <p>A list of <code>DevEndpoints</code> not found.</p>
*/
inline void SetDevEndpointsNotFound(Aws::Vector<Aws::String>&& value) { m_devEndpointsNotFound = std::move(value); }
/**
* <p>A list of <code>DevEndpoints</code> not found.</p>
*/
inline BatchGetDevEndpointsResult& WithDevEndpointsNotFound(const Aws::Vector<Aws::String>& value) { SetDevEndpointsNotFound(value); return *this;}
/**
* <p>A list of <code>DevEndpoints</code> not found.</p>
*/
inline BatchGetDevEndpointsResult& WithDevEndpointsNotFound(Aws::Vector<Aws::String>&& value) { SetDevEndpointsNotFound(std::move(value)); return *this;}
/**
* <p>A list of <code>DevEndpoints</code> not found.</p>
*/
inline BatchGetDevEndpointsResult& AddDevEndpointsNotFound(const Aws::String& value) { m_devEndpointsNotFound.push_back(value); return *this; }
/**
* <p>A list of <code>DevEndpoints</code> not found.</p>
*/
inline BatchGetDevEndpointsResult& AddDevEndpointsNotFound(Aws::String&& value) { m_devEndpointsNotFound.push_back(std::move(value)); return *this; }
/**
* <p>A list of <code>DevEndpoints</code> not found.</p>
*/
inline BatchGetDevEndpointsResult& AddDevEndpointsNotFound(const char* value) { m_devEndpointsNotFound.push_back(value); return *this; }
private:
Aws::Vector<DevEndpoint> m_devEndpoints;
Aws::Vector<Aws::String> m_devEndpointsNotFound;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,100 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API BatchGetJobsRequest : public GlueRequest
{
public:
BatchGetJobsRequest();
// 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 "BatchGetJobs"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A list of job names, which might be the names returned from the
* <code>ListJobs</code> operation.</p>
*/
inline const Aws::Vector<Aws::String>& GetJobNames() const{ return m_jobNames; }
/**
* <p>A list of job names, which might be the names returned from the
* <code>ListJobs</code> operation.</p>
*/
inline bool JobNamesHasBeenSet() const { return m_jobNamesHasBeenSet; }
/**
* <p>A list of job names, which might be the names returned from the
* <code>ListJobs</code> operation.</p>
*/
inline void SetJobNames(const Aws::Vector<Aws::String>& value) { m_jobNamesHasBeenSet = true; m_jobNames = value; }
/**
* <p>A list of job names, which might be the names returned from the
* <code>ListJobs</code> operation.</p>
*/
inline void SetJobNames(Aws::Vector<Aws::String>&& value) { m_jobNamesHasBeenSet = true; m_jobNames = std::move(value); }
/**
* <p>A list of job names, which might be the names returned from the
* <code>ListJobs</code> operation.</p>
*/
inline BatchGetJobsRequest& WithJobNames(const Aws::Vector<Aws::String>& value) { SetJobNames(value); return *this;}
/**
* <p>A list of job names, which might be the names returned from the
* <code>ListJobs</code> operation.</p>
*/
inline BatchGetJobsRequest& WithJobNames(Aws::Vector<Aws::String>&& value) { SetJobNames(std::move(value)); return *this;}
/**
* <p>A list of job names, which might be the names returned from the
* <code>ListJobs</code> operation.</p>
*/
inline BatchGetJobsRequest& AddJobNames(const Aws::String& value) { m_jobNamesHasBeenSet = true; m_jobNames.push_back(value); return *this; }
/**
* <p>A list of job names, which might be the names returned from the
* <code>ListJobs</code> operation.</p>
*/
inline BatchGetJobsRequest& AddJobNames(Aws::String&& value) { m_jobNamesHasBeenSet = true; m_jobNames.push_back(std::move(value)); return *this; }
/**
* <p>A list of job names, which might be the names returned from the
* <code>ListJobs</code> operation.</p>
*/
inline BatchGetJobsRequest& AddJobNames(const char* value) { m_jobNamesHasBeenSet = true; m_jobNames.push_back(value); return *this; }
private:
Aws::Vector<Aws::String> m_jobNames;
bool m_jobNamesHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,122 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glue/model/Job.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 Glue
{
namespace Model
{
class AWS_GLUE_API BatchGetJobsResult
{
public:
BatchGetJobsResult();
BatchGetJobsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchGetJobsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of job definitions.</p>
*/
inline const Aws::Vector<Job>& GetJobs() const{ return m_jobs; }
/**
* <p>A list of job definitions.</p>
*/
inline void SetJobs(const Aws::Vector<Job>& value) { m_jobs = value; }
/**
* <p>A list of job definitions.</p>
*/
inline void SetJobs(Aws::Vector<Job>&& value) { m_jobs = std::move(value); }
/**
* <p>A list of job definitions.</p>
*/
inline BatchGetJobsResult& WithJobs(const Aws::Vector<Job>& value) { SetJobs(value); return *this;}
/**
* <p>A list of job definitions.</p>
*/
inline BatchGetJobsResult& WithJobs(Aws::Vector<Job>&& value) { SetJobs(std::move(value)); return *this;}
/**
* <p>A list of job definitions.</p>
*/
inline BatchGetJobsResult& AddJobs(const Job& value) { m_jobs.push_back(value); return *this; }
/**
* <p>A list of job definitions.</p>
*/
inline BatchGetJobsResult& AddJobs(Job&& value) { m_jobs.push_back(std::move(value)); return *this; }
/**
* <p>A list of names of jobs not found.</p>
*/
inline const Aws::Vector<Aws::String>& GetJobsNotFound() const{ return m_jobsNotFound; }
/**
* <p>A list of names of jobs not found.</p>
*/
inline void SetJobsNotFound(const Aws::Vector<Aws::String>& value) { m_jobsNotFound = value; }
/**
* <p>A list of names of jobs not found.</p>
*/
inline void SetJobsNotFound(Aws::Vector<Aws::String>&& value) { m_jobsNotFound = std::move(value); }
/**
* <p>A list of names of jobs not found.</p>
*/
inline BatchGetJobsResult& WithJobsNotFound(const Aws::Vector<Aws::String>& value) { SetJobsNotFound(value); return *this;}
/**
* <p>A list of names of jobs not found.</p>
*/
inline BatchGetJobsResult& WithJobsNotFound(Aws::Vector<Aws::String>&& value) { SetJobsNotFound(std::move(value)); return *this;}
/**
* <p>A list of names of jobs not found.</p>
*/
inline BatchGetJobsResult& AddJobsNotFound(const Aws::String& value) { m_jobsNotFound.push_back(value); return *this; }
/**
* <p>A list of names of jobs not found.</p>
*/
inline BatchGetJobsResult& AddJobsNotFound(Aws::String&& value) { m_jobsNotFound.push_back(std::move(value)); return *this; }
/**
* <p>A list of names of jobs not found.</p>
*/
inline BatchGetJobsResult& AddJobsNotFound(const char* value) { m_jobsNotFound.push_back(value); return *this; }
private:
Aws::Vector<Job> m_jobs;
Aws::Vector<Aws::String> m_jobsNotFound;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glue/model/PartitionValueList.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API BatchGetPartitionRequest : public GlueRequest
{
public:
BatchGetPartitionRequest();
// 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 "BatchGetPartition"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the Data Catalog where the partitions in question reside. If none
* is supplied, the AWS account ID is used by default.</p>
*/
inline const Aws::String& GetCatalogId() const{ return m_catalogId; }
/**
* <p>The ID of the Data Catalog where the partitions in question reside. If none
* is supplied, the AWS account ID is used by default.</p>
*/
inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
/**
* <p>The ID of the Data Catalog where the partitions in question reside. If none
* is supplied, the AWS account ID is used by default.</p>
*/
inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
/**
* <p>The ID of the Data Catalog where the partitions in question reside. If none
* is supplied, the AWS account ID is used by default.</p>
*/
inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
/**
* <p>The ID of the Data Catalog where the partitions in question reside. If none
* is supplied, the AWS account ID is used by default.</p>
*/
inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
/**
* <p>The ID of the Data Catalog where the partitions in question reside. If none
* is supplied, the AWS account ID is used by default.</p>
*/
inline BatchGetPartitionRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
/**
* <p>The ID of the Data Catalog where the partitions in question reside. If none
* is supplied, the AWS account ID is used by default.</p>
*/
inline BatchGetPartitionRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
/**
* <p>The ID of the Data Catalog where the partitions in question reside. If none
* is supplied, the AWS account ID is used by default.</p>
*/
inline BatchGetPartitionRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
/**
* <p>The name of the catalog database where the partitions reside.</p>
*/
inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
/**
* <p>The name of the catalog database where the partitions reside.</p>
*/
inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
/**
* <p>The name of the catalog database where the partitions reside.</p>
*/
inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
/**
* <p>The name of the catalog database where the partitions reside.</p>
*/
inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
/**
* <p>The name of the catalog database where the partitions reside.</p>
*/
inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
/**
* <p>The name of the catalog database where the partitions reside.</p>
*/
inline BatchGetPartitionRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
/**
* <p>The name of the catalog database where the partitions reside.</p>
*/
inline BatchGetPartitionRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
/**
* <p>The name of the catalog database where the partitions reside.</p>
*/
inline BatchGetPartitionRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
/**
* <p>The name of the partitions' table.</p>
*/
inline const Aws::String& GetTableName() const{ return m_tableName; }
/**
* <p>The name of the partitions' table.</p>
*/
inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
/**
* <p>The name of the partitions' table.</p>
*/
inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
/**
* <p>The name of the partitions' table.</p>
*/
inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
/**
* <p>The name of the partitions' table.</p>
*/
inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
/**
* <p>The name of the partitions' table.</p>
*/
inline BatchGetPartitionRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
/**
* <p>The name of the partitions' table.</p>
*/
inline BatchGetPartitionRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
/**
* <p>The name of the partitions' table.</p>
*/
inline BatchGetPartitionRequest& WithTableName(const char* value) { SetTableName(value); return *this;}
/**
* <p>A list of partition values identifying the partitions to retrieve.</p>
*/
inline const Aws::Vector<PartitionValueList>& GetPartitionsToGet() const{ return m_partitionsToGet; }
/**
* <p>A list of partition values identifying the partitions to retrieve.</p>
*/
inline bool PartitionsToGetHasBeenSet() const { return m_partitionsToGetHasBeenSet; }
/**
* <p>A list of partition values identifying the partitions to retrieve.</p>
*/
inline void SetPartitionsToGet(const Aws::Vector<PartitionValueList>& value) { m_partitionsToGetHasBeenSet = true; m_partitionsToGet = value; }
/**
* <p>A list of partition values identifying the partitions to retrieve.</p>
*/
inline void SetPartitionsToGet(Aws::Vector<PartitionValueList>&& value) { m_partitionsToGetHasBeenSet = true; m_partitionsToGet = std::move(value); }
/**
* <p>A list of partition values identifying the partitions to retrieve.</p>
*/
inline BatchGetPartitionRequest& WithPartitionsToGet(const Aws::Vector<PartitionValueList>& value) { SetPartitionsToGet(value); return *this;}
/**
* <p>A list of partition values identifying the partitions to retrieve.</p>
*/
inline BatchGetPartitionRequest& WithPartitionsToGet(Aws::Vector<PartitionValueList>&& value) { SetPartitionsToGet(std::move(value)); return *this;}
/**
* <p>A list of partition values identifying the partitions to retrieve.</p>
*/
inline BatchGetPartitionRequest& AddPartitionsToGet(const PartitionValueList& value) { m_partitionsToGetHasBeenSet = true; m_partitionsToGet.push_back(value); return *this; }
/**
* <p>A list of partition values identifying the partitions to retrieve.</p>
*/
inline BatchGetPartitionRequest& AddPartitionsToGet(PartitionValueList&& value) { m_partitionsToGetHasBeenSet = true; m_partitionsToGet.push_back(std::move(value)); return *this; }
private:
Aws::String m_catalogId;
bool m_catalogIdHasBeenSet;
Aws::String m_databaseName;
bool m_databaseNameHasBeenSet;
Aws::String m_tableName;
bool m_tableNameHasBeenSet;
Aws::Vector<PartitionValueList> m_partitionsToGet;
bool m_partitionsToGetHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glue/model/Partition.h>
#include <aws/glue/model/PartitionValueList.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
class AWS_GLUE_API BatchGetPartitionResult
{
public:
BatchGetPartitionResult();
BatchGetPartitionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchGetPartitionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of the requested partitions.</p>
*/
inline const Aws::Vector<Partition>& GetPartitions() const{ return m_partitions; }
/**
* <p>A list of the requested partitions.</p>
*/
inline void SetPartitions(const Aws::Vector<Partition>& value) { m_partitions = value; }
/**
* <p>A list of the requested partitions.</p>
*/
inline void SetPartitions(Aws::Vector<Partition>&& value) { m_partitions = std::move(value); }
/**
* <p>A list of the requested partitions.</p>
*/
inline BatchGetPartitionResult& WithPartitions(const Aws::Vector<Partition>& value) { SetPartitions(value); return *this;}
/**
* <p>A list of the requested partitions.</p>
*/
inline BatchGetPartitionResult& WithPartitions(Aws::Vector<Partition>&& value) { SetPartitions(std::move(value)); return *this;}
/**
* <p>A list of the requested partitions.</p>
*/
inline BatchGetPartitionResult& AddPartitions(const Partition& value) { m_partitions.push_back(value); return *this; }
/**
* <p>A list of the requested partitions.</p>
*/
inline BatchGetPartitionResult& AddPartitions(Partition&& value) { m_partitions.push_back(std::move(value)); return *this; }
/**
* <p>A list of the partition values in the request for which partitions were not
* returned.</p>
*/
inline const Aws::Vector<PartitionValueList>& GetUnprocessedKeys() const{ return m_unprocessedKeys; }
/**
* <p>A list of the partition values in the request for which partitions were not
* returned.</p>
*/
inline void SetUnprocessedKeys(const Aws::Vector<PartitionValueList>& value) { m_unprocessedKeys = value; }
/**
* <p>A list of the partition values in the request for which partitions were not
* returned.</p>
*/
inline void SetUnprocessedKeys(Aws::Vector<PartitionValueList>&& value) { m_unprocessedKeys = std::move(value); }
/**
* <p>A list of the partition values in the request for which partitions were not
* returned.</p>
*/
inline BatchGetPartitionResult& WithUnprocessedKeys(const Aws::Vector<PartitionValueList>& value) { SetUnprocessedKeys(value); return *this;}
/**
* <p>A list of the partition values in the request for which partitions were not
* returned.</p>
*/
inline BatchGetPartitionResult& WithUnprocessedKeys(Aws::Vector<PartitionValueList>&& value) { SetUnprocessedKeys(std::move(value)); return *this;}
/**
* <p>A list of the partition values in the request for which partitions were not
* returned.</p>
*/
inline BatchGetPartitionResult& AddUnprocessedKeys(const PartitionValueList& value) { m_unprocessedKeys.push_back(value); return *this; }
/**
* <p>A list of the partition values in the request for which partitions were not
* returned.</p>
*/
inline BatchGetPartitionResult& AddUnprocessedKeys(PartitionValueList&& value) { m_unprocessedKeys.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Partition> m_partitions;
Aws::Vector<PartitionValueList> m_unprocessedKeys;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,100 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API BatchGetTriggersRequest : public GlueRequest
{
public:
BatchGetTriggersRequest();
// 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 "BatchGetTriggers"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A list of trigger names, which may be the names returned from the
* <code>ListTriggers</code> operation.</p>
*/
inline const Aws::Vector<Aws::String>& GetTriggerNames() const{ return m_triggerNames; }
/**
* <p>A list of trigger names, which may be the names returned from the
* <code>ListTriggers</code> operation.</p>
*/
inline bool TriggerNamesHasBeenSet() const { return m_triggerNamesHasBeenSet; }
/**
* <p>A list of trigger names, which may be the names returned from the
* <code>ListTriggers</code> operation.</p>
*/
inline void SetTriggerNames(const Aws::Vector<Aws::String>& value) { m_triggerNamesHasBeenSet = true; m_triggerNames = value; }
/**
* <p>A list of trigger names, which may be the names returned from the
* <code>ListTriggers</code> operation.</p>
*/
inline void SetTriggerNames(Aws::Vector<Aws::String>&& value) { m_triggerNamesHasBeenSet = true; m_triggerNames = std::move(value); }
/**
* <p>A list of trigger names, which may be the names returned from the
* <code>ListTriggers</code> operation.</p>
*/
inline BatchGetTriggersRequest& WithTriggerNames(const Aws::Vector<Aws::String>& value) { SetTriggerNames(value); return *this;}
/**
* <p>A list of trigger names, which may be the names returned from the
* <code>ListTriggers</code> operation.</p>
*/
inline BatchGetTriggersRequest& WithTriggerNames(Aws::Vector<Aws::String>&& value) { SetTriggerNames(std::move(value)); return *this;}
/**
* <p>A list of trigger names, which may be the names returned from the
* <code>ListTriggers</code> operation.</p>
*/
inline BatchGetTriggersRequest& AddTriggerNames(const Aws::String& value) { m_triggerNamesHasBeenSet = true; m_triggerNames.push_back(value); return *this; }
/**
* <p>A list of trigger names, which may be the names returned from the
* <code>ListTriggers</code> operation.</p>
*/
inline BatchGetTriggersRequest& AddTriggerNames(Aws::String&& value) { m_triggerNamesHasBeenSet = true; m_triggerNames.push_back(std::move(value)); return *this; }
/**
* <p>A list of trigger names, which may be the names returned from the
* <code>ListTriggers</code> operation.</p>
*/
inline BatchGetTriggersRequest& AddTriggerNames(const char* value) { m_triggerNamesHasBeenSet = true; m_triggerNames.push_back(value); return *this; }
private:
Aws::Vector<Aws::String> m_triggerNames;
bool m_triggerNamesHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,122 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glue/model/Trigger.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 Glue
{
namespace Model
{
class AWS_GLUE_API BatchGetTriggersResult
{
public:
BatchGetTriggersResult();
BatchGetTriggersResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchGetTriggersResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of trigger definitions.</p>
*/
inline const Aws::Vector<Trigger>& GetTriggers() const{ return m_triggers; }
/**
* <p>A list of trigger definitions.</p>
*/
inline void SetTriggers(const Aws::Vector<Trigger>& value) { m_triggers = value; }
/**
* <p>A list of trigger definitions.</p>
*/
inline void SetTriggers(Aws::Vector<Trigger>&& value) { m_triggers = std::move(value); }
/**
* <p>A list of trigger definitions.</p>
*/
inline BatchGetTriggersResult& WithTriggers(const Aws::Vector<Trigger>& value) { SetTriggers(value); return *this;}
/**
* <p>A list of trigger definitions.</p>
*/
inline BatchGetTriggersResult& WithTriggers(Aws::Vector<Trigger>&& value) { SetTriggers(std::move(value)); return *this;}
/**
* <p>A list of trigger definitions.</p>
*/
inline BatchGetTriggersResult& AddTriggers(const Trigger& value) { m_triggers.push_back(value); return *this; }
/**
* <p>A list of trigger definitions.</p>
*/
inline BatchGetTriggersResult& AddTriggers(Trigger&& value) { m_triggers.push_back(std::move(value)); return *this; }
/**
* <p>A list of names of triggers not found.</p>
*/
inline const Aws::Vector<Aws::String>& GetTriggersNotFound() const{ return m_triggersNotFound; }
/**
* <p>A list of names of triggers not found.</p>
*/
inline void SetTriggersNotFound(const Aws::Vector<Aws::String>& value) { m_triggersNotFound = value; }
/**
* <p>A list of names of triggers not found.</p>
*/
inline void SetTriggersNotFound(Aws::Vector<Aws::String>&& value) { m_triggersNotFound = std::move(value); }
/**
* <p>A list of names of triggers not found.</p>
*/
inline BatchGetTriggersResult& WithTriggersNotFound(const Aws::Vector<Aws::String>& value) { SetTriggersNotFound(value); return *this;}
/**
* <p>A list of names of triggers not found.</p>
*/
inline BatchGetTriggersResult& WithTriggersNotFound(Aws::Vector<Aws::String>&& value) { SetTriggersNotFound(std::move(value)); return *this;}
/**
* <p>A list of names of triggers not found.</p>
*/
inline BatchGetTriggersResult& AddTriggersNotFound(const Aws::String& value) { m_triggersNotFound.push_back(value); return *this; }
/**
* <p>A list of names of triggers not found.</p>
*/
inline BatchGetTriggersResult& AddTriggersNotFound(Aws::String&& value) { m_triggersNotFound.push_back(std::move(value)); return *this; }
/**
* <p>A list of names of triggers not found.</p>
*/
inline BatchGetTriggersResult& AddTriggersNotFound(const char* value) { m_triggersNotFound.push_back(value); return *this; }
private:
Aws::Vector<Trigger> m_triggers;
Aws::Vector<Aws::String> m_triggersNotFound;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,128 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API BatchGetWorkflowsRequest : public GlueRequest
{
public:
BatchGetWorkflowsRequest();
// 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 "BatchGetWorkflows"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A list of workflow names, which may be the names returned from the
* <code>ListWorkflows</code> operation.</p>
*/
inline const Aws::Vector<Aws::String>& GetNames() const{ return m_names; }
/**
* <p>A list of workflow names, which may be the names returned from the
* <code>ListWorkflows</code> operation.</p>
*/
inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
/**
* <p>A list of workflow names, which may be the names returned from the
* <code>ListWorkflows</code> operation.</p>
*/
inline void SetNames(const Aws::Vector<Aws::String>& value) { m_namesHasBeenSet = true; m_names = value; }
/**
* <p>A list of workflow names, which may be the names returned from the
* <code>ListWorkflows</code> operation.</p>
*/
inline void SetNames(Aws::Vector<Aws::String>&& value) { m_namesHasBeenSet = true; m_names = std::move(value); }
/**
* <p>A list of workflow names, which may be the names returned from the
* <code>ListWorkflows</code> operation.</p>
*/
inline BatchGetWorkflowsRequest& WithNames(const Aws::Vector<Aws::String>& value) { SetNames(value); return *this;}
/**
* <p>A list of workflow names, which may be the names returned from the
* <code>ListWorkflows</code> operation.</p>
*/
inline BatchGetWorkflowsRequest& WithNames(Aws::Vector<Aws::String>&& value) { SetNames(std::move(value)); return *this;}
/**
* <p>A list of workflow names, which may be the names returned from the
* <code>ListWorkflows</code> operation.</p>
*/
inline BatchGetWorkflowsRequest& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
/**
* <p>A list of workflow names, which may be the names returned from the
* <code>ListWorkflows</code> operation.</p>
*/
inline BatchGetWorkflowsRequest& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; }
/**
* <p>A list of workflow names, which may be the names returned from the
* <code>ListWorkflows</code> operation.</p>
*/
inline BatchGetWorkflowsRequest& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
/**
* <p>Specifies whether to include a graph when returning the workflow resource
* metadata.</p>
*/
inline bool GetIncludeGraph() const{ return m_includeGraph; }
/**
* <p>Specifies whether to include a graph when returning the workflow resource
* metadata.</p>
*/
inline bool IncludeGraphHasBeenSet() const { return m_includeGraphHasBeenSet; }
/**
* <p>Specifies whether to include a graph when returning the workflow resource
* metadata.</p>
*/
inline void SetIncludeGraph(bool value) { m_includeGraphHasBeenSet = true; m_includeGraph = value; }
/**
* <p>Specifies whether to include a graph when returning the workflow resource
* metadata.</p>
*/
inline BatchGetWorkflowsRequest& WithIncludeGraph(bool value) { SetIncludeGraph(value); return *this;}
private:
Aws::Vector<Aws::String> m_names;
bool m_namesHasBeenSet;
bool m_includeGraph;
bool m_includeGraphHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,122 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glue/model/Workflow.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 Glue
{
namespace Model
{
class AWS_GLUE_API BatchGetWorkflowsResult
{
public:
BatchGetWorkflowsResult();
BatchGetWorkflowsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchGetWorkflowsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of workflow resource metadata.</p>
*/
inline const Aws::Vector<Workflow>& GetWorkflows() const{ return m_workflows; }
/**
* <p>A list of workflow resource metadata.</p>
*/
inline void SetWorkflows(const Aws::Vector<Workflow>& value) { m_workflows = value; }
/**
* <p>A list of workflow resource metadata.</p>
*/
inline void SetWorkflows(Aws::Vector<Workflow>&& value) { m_workflows = std::move(value); }
/**
* <p>A list of workflow resource metadata.</p>
*/
inline BatchGetWorkflowsResult& WithWorkflows(const Aws::Vector<Workflow>& value) { SetWorkflows(value); return *this;}
/**
* <p>A list of workflow resource metadata.</p>
*/
inline BatchGetWorkflowsResult& WithWorkflows(Aws::Vector<Workflow>&& value) { SetWorkflows(std::move(value)); return *this;}
/**
* <p>A list of workflow resource metadata.</p>
*/
inline BatchGetWorkflowsResult& AddWorkflows(const Workflow& value) { m_workflows.push_back(value); return *this; }
/**
* <p>A list of workflow resource metadata.</p>
*/
inline BatchGetWorkflowsResult& AddWorkflows(Workflow&& value) { m_workflows.push_back(std::move(value)); return *this; }
/**
* <p>A list of names of workflows not found.</p>
*/
inline const Aws::Vector<Aws::String>& GetMissingWorkflows() const{ return m_missingWorkflows; }
/**
* <p>A list of names of workflows not found.</p>
*/
inline void SetMissingWorkflows(const Aws::Vector<Aws::String>& value) { m_missingWorkflows = value; }
/**
* <p>A list of names of workflows not found.</p>
*/
inline void SetMissingWorkflows(Aws::Vector<Aws::String>&& value) { m_missingWorkflows = std::move(value); }
/**
* <p>A list of names of workflows not found.</p>
*/
inline BatchGetWorkflowsResult& WithMissingWorkflows(const Aws::Vector<Aws::String>& value) { SetMissingWorkflows(value); return *this;}
/**
* <p>A list of names of workflows not found.</p>
*/
inline BatchGetWorkflowsResult& WithMissingWorkflows(Aws::Vector<Aws::String>&& value) { SetMissingWorkflows(std::move(value)); return *this;}
/**
* <p>A list of names of workflows not found.</p>
*/
inline BatchGetWorkflowsResult& AddMissingWorkflows(const Aws::String& value) { m_missingWorkflows.push_back(value); return *this; }
/**
* <p>A list of names of workflows not found.</p>
*/
inline BatchGetWorkflowsResult& AddMissingWorkflows(Aws::String&& value) { m_missingWorkflows.push_back(std::move(value)); return *this; }
/**
* <p>A list of names of workflows not found.</p>
*/
inline BatchGetWorkflowsResult& AddMissingWorkflows(const char* value) { m_missingWorkflows.push_back(value); return *this; }
private:
Aws::Vector<Workflow> m_workflows;
Aws::Vector<Aws::String> m_missingWorkflows;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,168 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glue/model/ErrorDetail.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
/**
* <p>Records an error that occurred when attempting to stop a specified job
* run.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/BatchStopJobRunError">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API BatchStopJobRunError
{
public:
BatchStopJobRunError();
BatchStopJobRunError(Aws::Utils::Json::JsonView jsonValue);
BatchStopJobRunError& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the job definition that is used in the job run in question.</p>
*/
inline const Aws::String& GetJobName() const{ return m_jobName; }
/**
* <p>The name of the job definition that is used in the job run in question.</p>
*/
inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
/**
* <p>The name of the job definition that is used in the job run in question.</p>
*/
inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
/**
* <p>The name of the job definition that is used in the job run in question.</p>
*/
inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
/**
* <p>The name of the job definition that is used in the job run in question.</p>
*/
inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
/**
* <p>The name of the job definition that is used in the job run in question.</p>
*/
inline BatchStopJobRunError& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
/**
* <p>The name of the job definition that is used in the job run in question.</p>
*/
inline BatchStopJobRunError& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
/**
* <p>The name of the job definition that is used in the job run in question.</p>
*/
inline BatchStopJobRunError& WithJobName(const char* value) { SetJobName(value); return *this;}
/**
* <p>The <code>JobRunId</code> of the job run in question.</p>
*/
inline const Aws::String& GetJobRunId() const{ return m_jobRunId; }
/**
* <p>The <code>JobRunId</code> of the job run in question.</p>
*/
inline bool JobRunIdHasBeenSet() const { return m_jobRunIdHasBeenSet; }
/**
* <p>The <code>JobRunId</code> of the job run in question.</p>
*/
inline void SetJobRunId(const Aws::String& value) { m_jobRunIdHasBeenSet = true; m_jobRunId = value; }
/**
* <p>The <code>JobRunId</code> of the job run in question.</p>
*/
inline void SetJobRunId(Aws::String&& value) { m_jobRunIdHasBeenSet = true; m_jobRunId = std::move(value); }
/**
* <p>The <code>JobRunId</code> of the job run in question.</p>
*/
inline void SetJobRunId(const char* value) { m_jobRunIdHasBeenSet = true; m_jobRunId.assign(value); }
/**
* <p>The <code>JobRunId</code> of the job run in question.</p>
*/
inline BatchStopJobRunError& WithJobRunId(const Aws::String& value) { SetJobRunId(value); return *this;}
/**
* <p>The <code>JobRunId</code> of the job run in question.</p>
*/
inline BatchStopJobRunError& WithJobRunId(Aws::String&& value) { SetJobRunId(std::move(value)); return *this;}
/**
* <p>The <code>JobRunId</code> of the job run in question.</p>
*/
inline BatchStopJobRunError& WithJobRunId(const char* value) { SetJobRunId(value); return *this;}
/**
* <p>Specifies details about the error that was encountered.</p>
*/
inline const ErrorDetail& GetErrorDetail() const{ return m_errorDetail; }
/**
* <p>Specifies details about the error that was encountered.</p>
*/
inline bool ErrorDetailHasBeenSet() const { return m_errorDetailHasBeenSet; }
/**
* <p>Specifies details about the error that was encountered.</p>
*/
inline void SetErrorDetail(const ErrorDetail& value) { m_errorDetailHasBeenSet = true; m_errorDetail = value; }
/**
* <p>Specifies details about the error that was encountered.</p>
*/
inline void SetErrorDetail(ErrorDetail&& value) { m_errorDetailHasBeenSet = true; m_errorDetail = std::move(value); }
/**
* <p>Specifies details about the error that was encountered.</p>
*/
inline BatchStopJobRunError& WithErrorDetail(const ErrorDetail& value) { SetErrorDetail(value); return *this;}
/**
* <p>Specifies details about the error that was encountered.</p>
*/
inline BatchStopJobRunError& WithErrorDetail(ErrorDetail&& value) { SetErrorDetail(std::move(value)); return *this;}
private:
Aws::String m_jobName;
bool m_jobNameHasBeenSet;
Aws::String m_jobRunId;
bool m_jobRunIdHasBeenSet;
ErrorDetail m_errorDetail;
bool m_errorDetailHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,144 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API BatchStopJobRunRequest : public GlueRequest
{
public:
BatchStopJobRunRequest();
// 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 "BatchStopJobRun"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the job definition for which to stop job runs.</p>
*/
inline const Aws::String& GetJobName() const{ return m_jobName; }
/**
* <p>The name of the job definition for which to stop job runs.</p>
*/
inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
/**
* <p>The name of the job definition for which to stop job runs.</p>
*/
inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
/**
* <p>The name of the job definition for which to stop job runs.</p>
*/
inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
/**
* <p>The name of the job definition for which to stop job runs.</p>
*/
inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
/**
* <p>The name of the job definition for which to stop job runs.</p>
*/
inline BatchStopJobRunRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
/**
* <p>The name of the job definition for which to stop job runs.</p>
*/
inline BatchStopJobRunRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
/**
* <p>The name of the job definition for which to stop job runs.</p>
*/
inline BatchStopJobRunRequest& WithJobName(const char* value) { SetJobName(value); return *this;}
/**
* <p>A list of the <code>JobRunIds</code> that should be stopped for that job
* definition.</p>
*/
inline const Aws::Vector<Aws::String>& GetJobRunIds() const{ return m_jobRunIds; }
/**
* <p>A list of the <code>JobRunIds</code> that should be stopped for that job
* definition.</p>
*/
inline bool JobRunIdsHasBeenSet() const { return m_jobRunIdsHasBeenSet; }
/**
* <p>A list of the <code>JobRunIds</code> that should be stopped for that job
* definition.</p>
*/
inline void SetJobRunIds(const Aws::Vector<Aws::String>& value) { m_jobRunIdsHasBeenSet = true; m_jobRunIds = value; }
/**
* <p>A list of the <code>JobRunIds</code> that should be stopped for that job
* definition.</p>
*/
inline void SetJobRunIds(Aws::Vector<Aws::String>&& value) { m_jobRunIdsHasBeenSet = true; m_jobRunIds = std::move(value); }
/**
* <p>A list of the <code>JobRunIds</code> that should be stopped for that job
* definition.</p>
*/
inline BatchStopJobRunRequest& WithJobRunIds(const Aws::Vector<Aws::String>& value) { SetJobRunIds(value); return *this;}
/**
* <p>A list of the <code>JobRunIds</code> that should be stopped for that job
* definition.</p>
*/
inline BatchStopJobRunRequest& WithJobRunIds(Aws::Vector<Aws::String>&& value) { SetJobRunIds(std::move(value)); return *this;}
/**
* <p>A list of the <code>JobRunIds</code> that should be stopped for that job
* definition.</p>
*/
inline BatchStopJobRunRequest& AddJobRunIds(const Aws::String& value) { m_jobRunIdsHasBeenSet = true; m_jobRunIds.push_back(value); return *this; }
/**
* <p>A list of the <code>JobRunIds</code> that should be stopped for that job
* definition.</p>
*/
inline BatchStopJobRunRequest& AddJobRunIds(Aws::String&& value) { m_jobRunIdsHasBeenSet = true; m_jobRunIds.push_back(std::move(value)); return *this; }
/**
* <p>A list of the <code>JobRunIds</code> that should be stopped for that job
* definition.</p>
*/
inline BatchStopJobRunRequest& AddJobRunIds(const char* value) { m_jobRunIdsHasBeenSet = true; m_jobRunIds.push_back(value); return *this; }
private:
Aws::String m_jobName;
bool m_jobNameHasBeenSet;
Aws::Vector<Aws::String> m_jobRunIds;
bool m_jobRunIdsHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,131 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glue/model/BatchStopJobRunSuccessfulSubmission.h>
#include <aws/glue/model/BatchStopJobRunError.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
class AWS_GLUE_API BatchStopJobRunResult
{
public:
BatchStopJobRunResult();
BatchStopJobRunResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchStopJobRunResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of the JobRuns that were successfully submitted for stopping.</p>
*/
inline const Aws::Vector<BatchStopJobRunSuccessfulSubmission>& GetSuccessfulSubmissions() const{ return m_successfulSubmissions; }
/**
* <p>A list of the JobRuns that were successfully submitted for stopping.</p>
*/
inline void SetSuccessfulSubmissions(const Aws::Vector<BatchStopJobRunSuccessfulSubmission>& value) { m_successfulSubmissions = value; }
/**
* <p>A list of the JobRuns that were successfully submitted for stopping.</p>
*/
inline void SetSuccessfulSubmissions(Aws::Vector<BatchStopJobRunSuccessfulSubmission>&& value) { m_successfulSubmissions = std::move(value); }
/**
* <p>A list of the JobRuns that were successfully submitted for stopping.</p>
*/
inline BatchStopJobRunResult& WithSuccessfulSubmissions(const Aws::Vector<BatchStopJobRunSuccessfulSubmission>& value) { SetSuccessfulSubmissions(value); return *this;}
/**
* <p>A list of the JobRuns that were successfully submitted for stopping.</p>
*/
inline BatchStopJobRunResult& WithSuccessfulSubmissions(Aws::Vector<BatchStopJobRunSuccessfulSubmission>&& value) { SetSuccessfulSubmissions(std::move(value)); return *this;}
/**
* <p>A list of the JobRuns that were successfully submitted for stopping.</p>
*/
inline BatchStopJobRunResult& AddSuccessfulSubmissions(const BatchStopJobRunSuccessfulSubmission& value) { m_successfulSubmissions.push_back(value); return *this; }
/**
* <p>A list of the JobRuns that were successfully submitted for stopping.</p>
*/
inline BatchStopJobRunResult& AddSuccessfulSubmissions(BatchStopJobRunSuccessfulSubmission&& value) { m_successfulSubmissions.push_back(std::move(value)); return *this; }
/**
* <p>A list of the errors that were encountered in trying to stop
* <code>JobRuns</code>, including the <code>JobRunId</code> for which each error
* was encountered and details about the error.</p>
*/
inline const Aws::Vector<BatchStopJobRunError>& GetErrors() const{ return m_errors; }
/**
* <p>A list of the errors that were encountered in trying to stop
* <code>JobRuns</code>, including the <code>JobRunId</code> for which each error
* was encountered and details about the error.</p>
*/
inline void SetErrors(const Aws::Vector<BatchStopJobRunError>& value) { m_errors = value; }
/**
* <p>A list of the errors that were encountered in trying to stop
* <code>JobRuns</code>, including the <code>JobRunId</code> for which each error
* was encountered and details about the error.</p>
*/
inline void SetErrors(Aws::Vector<BatchStopJobRunError>&& value) { m_errors = std::move(value); }
/**
* <p>A list of the errors that were encountered in trying to stop
* <code>JobRuns</code>, including the <code>JobRunId</code> for which each error
* was encountered and details about the error.</p>
*/
inline BatchStopJobRunResult& WithErrors(const Aws::Vector<BatchStopJobRunError>& value) { SetErrors(value); return *this;}
/**
* <p>A list of the errors that were encountered in trying to stop
* <code>JobRuns</code>, including the <code>JobRunId</code> for which each error
* was encountered and details about the error.</p>
*/
inline BatchStopJobRunResult& WithErrors(Aws::Vector<BatchStopJobRunError>&& value) { SetErrors(std::move(value)); return *this;}
/**
* <p>A list of the errors that were encountered in trying to stop
* <code>JobRuns</code>, including the <code>JobRunId</code> for which each error
* was encountered and details about the error.</p>
*/
inline BatchStopJobRunResult& AddErrors(const BatchStopJobRunError& value) { m_errors.push_back(value); return *this; }
/**
* <p>A list of the errors that were encountered in trying to stop
* <code>JobRuns</code>, including the <code>JobRunId</code> for which each error
* was encountered and details about the error.</p>
*/
inline BatchStopJobRunResult& AddErrors(BatchStopJobRunError&& value) { m_errors.push_back(std::move(value)); return *this; }
private:
Aws::Vector<BatchStopJobRunSuccessfulSubmission> m_successfulSubmissions;
Aws::Vector<BatchStopJobRunError> m_errors;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,133 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_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 Glue
{
namespace Model
{
/**
* <p>Records a successful request to stop a specified
* <code>JobRun</code>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/BatchStopJobRunSuccessfulSubmission">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API BatchStopJobRunSuccessfulSubmission
{
public:
BatchStopJobRunSuccessfulSubmission();
BatchStopJobRunSuccessfulSubmission(Aws::Utils::Json::JsonView jsonValue);
BatchStopJobRunSuccessfulSubmission& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the job definition used in the job run that was stopped.</p>
*/
inline const Aws::String& GetJobName() const{ return m_jobName; }
/**
* <p>The name of the job definition used in the job run that was stopped.</p>
*/
inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
/**
* <p>The name of the job definition used in the job run that was stopped.</p>
*/
inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
/**
* <p>The name of the job definition used in the job run that was stopped.</p>
*/
inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
/**
* <p>The name of the job definition used in the job run that was stopped.</p>
*/
inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
/**
* <p>The name of the job definition used in the job run that was stopped.</p>
*/
inline BatchStopJobRunSuccessfulSubmission& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
/**
* <p>The name of the job definition used in the job run that was stopped.</p>
*/
inline BatchStopJobRunSuccessfulSubmission& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
/**
* <p>The name of the job definition used in the job run that was stopped.</p>
*/
inline BatchStopJobRunSuccessfulSubmission& WithJobName(const char* value) { SetJobName(value); return *this;}
/**
* <p>The <code>JobRunId</code> of the job run that was stopped.</p>
*/
inline const Aws::String& GetJobRunId() const{ return m_jobRunId; }
/**
* <p>The <code>JobRunId</code> of the job run that was stopped.</p>
*/
inline bool JobRunIdHasBeenSet() const { return m_jobRunIdHasBeenSet; }
/**
* <p>The <code>JobRunId</code> of the job run that was stopped.</p>
*/
inline void SetJobRunId(const Aws::String& value) { m_jobRunIdHasBeenSet = true; m_jobRunId = value; }
/**
* <p>The <code>JobRunId</code> of the job run that was stopped.</p>
*/
inline void SetJobRunId(Aws::String&& value) { m_jobRunIdHasBeenSet = true; m_jobRunId = std::move(value); }
/**
* <p>The <code>JobRunId</code> of the job run that was stopped.</p>
*/
inline void SetJobRunId(const char* value) { m_jobRunIdHasBeenSet = true; m_jobRunId.assign(value); }
/**
* <p>The <code>JobRunId</code> of the job run that was stopped.</p>
*/
inline BatchStopJobRunSuccessfulSubmission& WithJobRunId(const Aws::String& value) { SetJobRunId(value); return *this;}
/**
* <p>The <code>JobRunId</code> of the job run that was stopped.</p>
*/
inline BatchStopJobRunSuccessfulSubmission& WithJobRunId(Aws::String&& value) { SetJobRunId(std::move(value)); return *this;}
/**
* <p>The <code>JobRunId</code> of the job run that was stopped.</p>
*/
inline BatchStopJobRunSuccessfulSubmission& WithJobRunId(const char* value) { SetJobRunId(value); return *this;}
private:
Aws::String m_jobName;
bool m_jobNameHasBeenSet;
Aws::String m_jobRunId;
bool m_jobRunIdHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
/**
* <p>Defines a binary column statistics data.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/BinaryColumnStatisticsData">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API BinaryColumnStatisticsData
{
public:
BinaryColumnStatisticsData();
BinaryColumnStatisticsData(Aws::Utils::Json::JsonView jsonValue);
BinaryColumnStatisticsData& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Maximum length of the column.</p>
*/
inline long long GetMaximumLength() const{ return m_maximumLength; }
/**
* <p>Maximum length of the column.</p>
*/
inline bool MaximumLengthHasBeenSet() const { return m_maximumLengthHasBeenSet; }
/**
* <p>Maximum length of the column.</p>
*/
inline void SetMaximumLength(long long value) { m_maximumLengthHasBeenSet = true; m_maximumLength = value; }
/**
* <p>Maximum length of the column.</p>
*/
inline BinaryColumnStatisticsData& WithMaximumLength(long long value) { SetMaximumLength(value); return *this;}
/**
* <p>Average length of the column.</p>
*/
inline double GetAverageLength() const{ return m_averageLength; }
/**
* <p>Average length of the column.</p>
*/
inline bool AverageLengthHasBeenSet() const { return m_averageLengthHasBeenSet; }
/**
* <p>Average length of the column.</p>
*/
inline void SetAverageLength(double value) { m_averageLengthHasBeenSet = true; m_averageLength = value; }
/**
* <p>Average length of the column.</p>
*/
inline BinaryColumnStatisticsData& WithAverageLength(double value) { SetAverageLength(value); return *this;}
/**
* <p>Number of nulls.</p>
*/
inline long long GetNumberOfNulls() const{ return m_numberOfNulls; }
/**
* <p>Number of nulls.</p>
*/
inline bool NumberOfNullsHasBeenSet() const { return m_numberOfNullsHasBeenSet; }
/**
* <p>Number of nulls.</p>
*/
inline void SetNumberOfNulls(long long value) { m_numberOfNullsHasBeenSet = true; m_numberOfNulls = value; }
/**
* <p>Number of nulls.</p>
*/
inline BinaryColumnStatisticsData& WithNumberOfNulls(long long value) { SetNumberOfNulls(value); return *this;}
private:
long long m_maximumLength;
bool m_maximumLengthHasBeenSet;
double m_averageLength;
bool m_averageLengthHasBeenSet;
long long m_numberOfNulls;
bool m_numberOfNullsHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
/**
* <p>Defines a boolean column statistics.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/BooleanColumnStatisticsData">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API BooleanColumnStatisticsData
{
public:
BooleanColumnStatisticsData();
BooleanColumnStatisticsData(Aws::Utils::Json::JsonView jsonValue);
BooleanColumnStatisticsData& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Number of true value.</p>
*/
inline long long GetNumberOfTrues() const{ return m_numberOfTrues; }
/**
* <p>Number of true value.</p>
*/
inline bool NumberOfTruesHasBeenSet() const { return m_numberOfTruesHasBeenSet; }
/**
* <p>Number of true value.</p>
*/
inline void SetNumberOfTrues(long long value) { m_numberOfTruesHasBeenSet = true; m_numberOfTrues = value; }
/**
* <p>Number of true value.</p>
*/
inline BooleanColumnStatisticsData& WithNumberOfTrues(long long value) { SetNumberOfTrues(value); return *this;}
/**
* <p>Number of false value.</p>
*/
inline long long GetNumberOfFalses() const{ return m_numberOfFalses; }
/**
* <p>Number of false value.</p>
*/
inline bool NumberOfFalsesHasBeenSet() const { return m_numberOfFalsesHasBeenSet; }
/**
* <p>Number of false value.</p>
*/
inline void SetNumberOfFalses(long long value) { m_numberOfFalsesHasBeenSet = true; m_numberOfFalses = value; }
/**
* <p>Number of false value.</p>
*/
inline BooleanColumnStatisticsData& WithNumberOfFalses(long long value) { SetNumberOfFalses(value); return *this;}
/**
* <p>Number of nulls.</p>
*/
inline long long GetNumberOfNulls() const{ return m_numberOfNulls; }
/**
* <p>Number of nulls.</p>
*/
inline bool NumberOfNullsHasBeenSet() const { return m_numberOfNullsHasBeenSet; }
/**
* <p>Number of nulls.</p>
*/
inline void SetNumberOfNulls(long long value) { m_numberOfNullsHasBeenSet = true; m_numberOfNulls = value; }
/**
* <p>Number of nulls.</p>
*/
inline BooleanColumnStatisticsData& WithNumberOfNulls(long long value) { SetNumberOfNulls(value); return *this;}
private:
long long m_numberOfTrues;
bool m_numberOfTruesHasBeenSet;
long long m_numberOfFalses;
bool m_numberOfFalsesHasBeenSet;
long long m_numberOfNulls;
bool m_numberOfNullsHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API CancelMLTaskRunRequest : public GlueRequest
{
public:
CancelMLTaskRunRequest();
// 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 "CancelMLTaskRun"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The unique identifier of the machine learning transform.</p>
*/
inline const Aws::String& GetTransformId() const{ return m_transformId; }
/**
* <p>The unique identifier of the machine learning transform.</p>
*/
inline bool TransformIdHasBeenSet() const { return m_transformIdHasBeenSet; }
/**
* <p>The unique identifier of the machine learning transform.</p>
*/
inline void SetTransformId(const Aws::String& value) { m_transformIdHasBeenSet = true; m_transformId = value; }
/**
* <p>The unique identifier of the machine learning transform.</p>
*/
inline void SetTransformId(Aws::String&& value) { m_transformIdHasBeenSet = true; m_transformId = std::move(value); }
/**
* <p>The unique identifier of the machine learning transform.</p>
*/
inline void SetTransformId(const char* value) { m_transformIdHasBeenSet = true; m_transformId.assign(value); }
/**
* <p>The unique identifier of the machine learning transform.</p>
*/
inline CancelMLTaskRunRequest& WithTransformId(const Aws::String& value) { SetTransformId(value); return *this;}
/**
* <p>The unique identifier of the machine learning transform.</p>
*/
inline CancelMLTaskRunRequest& WithTransformId(Aws::String&& value) { SetTransformId(std::move(value)); return *this;}
/**
* <p>The unique identifier of the machine learning transform.</p>
*/
inline CancelMLTaskRunRequest& WithTransformId(const char* value) { SetTransformId(value); return *this;}
/**
* <p>A unique identifier for the task run.</p>
*/
inline const Aws::String& GetTaskRunId() const{ return m_taskRunId; }
/**
* <p>A unique identifier for the task run.</p>
*/
inline bool TaskRunIdHasBeenSet() const { return m_taskRunIdHasBeenSet; }
/**
* <p>A unique identifier for the task run.</p>
*/
inline void SetTaskRunId(const Aws::String& value) { m_taskRunIdHasBeenSet = true; m_taskRunId = value; }
/**
* <p>A unique identifier for the task run.</p>
*/
inline void SetTaskRunId(Aws::String&& value) { m_taskRunIdHasBeenSet = true; m_taskRunId = std::move(value); }
/**
* <p>A unique identifier for the task run.</p>
*/
inline void SetTaskRunId(const char* value) { m_taskRunIdHasBeenSet = true; m_taskRunId.assign(value); }
/**
* <p>A unique identifier for the task run.</p>
*/
inline CancelMLTaskRunRequest& WithTaskRunId(const Aws::String& value) { SetTaskRunId(value); return *this;}
/**
* <p>A unique identifier for the task run.</p>
*/
inline CancelMLTaskRunRequest& WithTaskRunId(Aws::String&& value) { SetTaskRunId(std::move(value)); return *this;}
/**
* <p>A unique identifier for the task run.</p>
*/
inline CancelMLTaskRunRequest& WithTaskRunId(const char* value) { SetTaskRunId(value); return *this;}
private:
Aws::String m_transformId;
bool m_transformIdHasBeenSet;
Aws::String m_taskRunId;
bool m_taskRunIdHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,144 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glue/model/TaskStatusType.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
class AWS_GLUE_API CancelMLTaskRunResult
{
public:
CancelMLTaskRunResult();
CancelMLTaskRunResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CancelMLTaskRunResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The unique identifier of the machine learning transform.</p>
*/
inline const Aws::String& GetTransformId() const{ return m_transformId; }
/**
* <p>The unique identifier of the machine learning transform.</p>
*/
inline void SetTransformId(const Aws::String& value) { m_transformId = value; }
/**
* <p>The unique identifier of the machine learning transform.</p>
*/
inline void SetTransformId(Aws::String&& value) { m_transformId = std::move(value); }
/**
* <p>The unique identifier of the machine learning transform.</p>
*/
inline void SetTransformId(const char* value) { m_transformId.assign(value); }
/**
* <p>The unique identifier of the machine learning transform.</p>
*/
inline CancelMLTaskRunResult& WithTransformId(const Aws::String& value) { SetTransformId(value); return *this;}
/**
* <p>The unique identifier of the machine learning transform.</p>
*/
inline CancelMLTaskRunResult& WithTransformId(Aws::String&& value) { SetTransformId(std::move(value)); return *this;}
/**
* <p>The unique identifier of the machine learning transform.</p>
*/
inline CancelMLTaskRunResult& WithTransformId(const char* value) { SetTransformId(value); return *this;}
/**
* <p>The unique identifier for the task run.</p>
*/
inline const Aws::String& GetTaskRunId() const{ return m_taskRunId; }
/**
* <p>The unique identifier for the task run.</p>
*/
inline void SetTaskRunId(const Aws::String& value) { m_taskRunId = value; }
/**
* <p>The unique identifier for the task run.</p>
*/
inline void SetTaskRunId(Aws::String&& value) { m_taskRunId = std::move(value); }
/**
* <p>The unique identifier for the task run.</p>
*/
inline void SetTaskRunId(const char* value) { m_taskRunId.assign(value); }
/**
* <p>The unique identifier for the task run.</p>
*/
inline CancelMLTaskRunResult& WithTaskRunId(const Aws::String& value) { SetTaskRunId(value); return *this;}
/**
* <p>The unique identifier for the task run.</p>
*/
inline CancelMLTaskRunResult& WithTaskRunId(Aws::String&& value) { SetTaskRunId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the task run.</p>
*/
inline CancelMLTaskRunResult& WithTaskRunId(const char* value) { SetTaskRunId(value); return *this;}
/**
* <p>The status for this run.</p>
*/
inline const TaskStatusType& GetStatus() const{ return m_status; }
/**
* <p>The status for this run.</p>
*/
inline void SetStatus(const TaskStatusType& value) { m_status = value; }
/**
* <p>The status for this run.</p>
*/
inline void SetStatus(TaskStatusType&& value) { m_status = std::move(value); }
/**
* <p>The status for this run.</p>
*/
inline CancelMLTaskRunResult& WithStatus(const TaskStatusType& value) { SetStatus(value); return *this;}
/**
* <p>The status for this run.</p>
*/
inline CancelMLTaskRunResult& WithStatus(TaskStatusType&& value) { SetStatus(std::move(value)); return *this;}
private:
Aws::String m_transformId;
Aws::String m_taskRunId;
TaskStatusType m_status;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Glue
{
namespace Model
{
enum class CatalogEncryptionMode
{
NOT_SET,
DISABLED,
SSE_KMS
};
namespace CatalogEncryptionModeMapper
{
AWS_GLUE_API CatalogEncryptionMode GetCatalogEncryptionModeForName(const Aws::String& name);
AWS_GLUE_API Aws::String GetNameForCatalogEncryptionMode(CatalogEncryptionMode value);
} // namespace CatalogEncryptionModeMapper
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,133 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_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 Glue
{
namespace Model
{
/**
* <p>Specifies a table definition in the AWS Glue Data Catalog.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CatalogEntry">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API CatalogEntry
{
public:
CatalogEntry();
CatalogEntry(Aws::Utils::Json::JsonView jsonValue);
CatalogEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The database in which the table metadata resides.</p>
*/
inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
/**
* <p>The database in which the table metadata resides.</p>
*/
inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
/**
* <p>The database in which the table metadata resides.</p>
*/
inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
/**
* <p>The database in which the table metadata resides.</p>
*/
inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
/**
* <p>The database in which the table metadata resides.</p>
*/
inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
/**
* <p>The database in which the table metadata resides.</p>
*/
inline CatalogEntry& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
/**
* <p>The database in which the table metadata resides.</p>
*/
inline CatalogEntry& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
/**
* <p>The database in which the table metadata resides.</p>
*/
inline CatalogEntry& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
/**
* <p>The name of the table in question.</p>
*/
inline const Aws::String& GetTableName() const{ return m_tableName; }
/**
* <p>The name of the table in question.</p>
*/
inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
/**
* <p>The name of the table in question.</p>
*/
inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
/**
* <p>The name of the table in question.</p>
*/
inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
/**
* <p>The name of the table in question.</p>
*/
inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
/**
* <p>The name of the table in question.</p>
*/
inline CatalogEntry& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
/**
* <p>The name of the table in question.</p>
*/
inline CatalogEntry& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
/**
* <p>The name of the table in question.</p>
*/
inline CatalogEntry& WithTableName(const char* value) { SetTableName(value); return *this;}
private:
Aws::String m_databaseName;
bool m_databaseNameHasBeenSet;
Aws::String m_tableName;
bool m_tableNameHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,152 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/DateTime.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 Glue
{
namespace Model
{
/**
* <p>A structure containing migration status information.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CatalogImportStatus">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API CatalogImportStatus
{
public:
CatalogImportStatus();
CatalogImportStatus(Aws::Utils::Json::JsonView jsonValue);
CatalogImportStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> <code>True</code> if the migration has completed, or <code>False</code>
* otherwise.</p>
*/
inline bool GetImportCompleted() const{ return m_importCompleted; }
/**
* <p> <code>True</code> if the migration has completed, or <code>False</code>
* otherwise.</p>
*/
inline bool ImportCompletedHasBeenSet() const { return m_importCompletedHasBeenSet; }
/**
* <p> <code>True</code> if the migration has completed, or <code>False</code>
* otherwise.</p>
*/
inline void SetImportCompleted(bool value) { m_importCompletedHasBeenSet = true; m_importCompleted = value; }
/**
* <p> <code>True</code> if the migration has completed, or <code>False</code>
* otherwise.</p>
*/
inline CatalogImportStatus& WithImportCompleted(bool value) { SetImportCompleted(value); return *this;}
/**
* <p>The time that the migration was started.</p>
*/
inline const Aws::Utils::DateTime& GetImportTime() const{ return m_importTime; }
/**
* <p>The time that the migration was started.</p>
*/
inline bool ImportTimeHasBeenSet() const { return m_importTimeHasBeenSet; }
/**
* <p>The time that the migration was started.</p>
*/
inline void SetImportTime(const Aws::Utils::DateTime& value) { m_importTimeHasBeenSet = true; m_importTime = value; }
/**
* <p>The time that the migration was started.</p>
*/
inline void SetImportTime(Aws::Utils::DateTime&& value) { m_importTimeHasBeenSet = true; m_importTime = std::move(value); }
/**
* <p>The time that the migration was started.</p>
*/
inline CatalogImportStatus& WithImportTime(const Aws::Utils::DateTime& value) { SetImportTime(value); return *this;}
/**
* <p>The time that the migration was started.</p>
*/
inline CatalogImportStatus& WithImportTime(Aws::Utils::DateTime&& value) { SetImportTime(std::move(value)); return *this;}
/**
* <p>The name of the person who initiated the migration.</p>
*/
inline const Aws::String& GetImportedBy() const{ return m_importedBy; }
/**
* <p>The name of the person who initiated the migration.</p>
*/
inline bool ImportedByHasBeenSet() const { return m_importedByHasBeenSet; }
/**
* <p>The name of the person who initiated the migration.</p>
*/
inline void SetImportedBy(const Aws::String& value) { m_importedByHasBeenSet = true; m_importedBy = value; }
/**
* <p>The name of the person who initiated the migration.</p>
*/
inline void SetImportedBy(Aws::String&& value) { m_importedByHasBeenSet = true; m_importedBy = std::move(value); }
/**
* <p>The name of the person who initiated the migration.</p>
*/
inline void SetImportedBy(const char* value) { m_importedByHasBeenSet = true; m_importedBy.assign(value); }
/**
* <p>The name of the person who initiated the migration.</p>
*/
inline CatalogImportStatus& WithImportedBy(const Aws::String& value) { SetImportedBy(value); return *this;}
/**
* <p>The name of the person who initiated the migration.</p>
*/
inline CatalogImportStatus& WithImportedBy(Aws::String&& value) { SetImportedBy(std::move(value)); return *this;}
/**
* <p>The name of the person who initiated the migration.</p>
*/
inline CatalogImportStatus& WithImportedBy(const char* value) { SetImportedBy(value); return *this;}
private:
bool m_importCompleted;
bool m_importCompletedHasBeenSet;
Aws::Utils::DateTime m_importTime;
bool m_importTimeHasBeenSet;
Aws::String m_importedBy;
bool m_importedByHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,138 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
/**
* <p>Specifies an AWS Glue Data Catalog target.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CatalogTarget">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API CatalogTarget
{
public:
CatalogTarget();
CatalogTarget(Aws::Utils::Json::JsonView jsonValue);
CatalogTarget& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the database to be synchronized.</p>
*/
inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
/**
* <p>The name of the database to be synchronized.</p>
*/
inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
/**
* <p>The name of the database to be synchronized.</p>
*/
inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
/**
* <p>The name of the database to be synchronized.</p>
*/
inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
/**
* <p>The name of the database to be synchronized.</p>
*/
inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
/**
* <p>The name of the database to be synchronized.</p>
*/
inline CatalogTarget& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
/**
* <p>The name of the database to be synchronized.</p>
*/
inline CatalogTarget& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
/**
* <p>The name of the database to be synchronized.</p>
*/
inline CatalogTarget& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
/**
* <p>A list of the tables to be synchronized.</p>
*/
inline const Aws::Vector<Aws::String>& GetTables() const{ return m_tables; }
/**
* <p>A list of the tables to be synchronized.</p>
*/
inline bool TablesHasBeenSet() const { return m_tablesHasBeenSet; }
/**
* <p>A list of the tables to be synchronized.</p>
*/
inline void SetTables(const Aws::Vector<Aws::String>& value) { m_tablesHasBeenSet = true; m_tables = value; }
/**
* <p>A list of the tables to be synchronized.</p>
*/
inline void SetTables(Aws::Vector<Aws::String>&& value) { m_tablesHasBeenSet = true; m_tables = std::move(value); }
/**
* <p>A list of the tables to be synchronized.</p>
*/
inline CatalogTarget& WithTables(const Aws::Vector<Aws::String>& value) { SetTables(value); return *this;}
/**
* <p>A list of the tables to be synchronized.</p>
*/
inline CatalogTarget& WithTables(Aws::Vector<Aws::String>&& value) { SetTables(std::move(value)); return *this;}
/**
* <p>A list of the tables to be synchronized.</p>
*/
inline CatalogTarget& AddTables(const Aws::String& value) { m_tablesHasBeenSet = true; m_tables.push_back(value); return *this; }
/**
* <p>A list of the tables to be synchronized.</p>
*/
inline CatalogTarget& AddTables(Aws::String&& value) { m_tablesHasBeenSet = true; m_tables.push_back(std::move(value)); return *this; }
/**
* <p>A list of the tables to be synchronized.</p>
*/
inline CatalogTarget& AddTables(const char* value) { m_tablesHasBeenSet = true; m_tables.push_back(value); return *this; }
private:
Aws::String m_databaseName;
bool m_databaseNameHasBeenSet;
Aws::Vector<Aws::String> m_tables;
bool m_tablesHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,192 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/model/GrokClassifier.h>
#include <aws/glue/model/XMLClassifier.h>
#include <aws/glue/model/JsonClassifier.h>
#include <aws/glue/model/CsvClassifier.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
/**
* <p>Classifiers are triggered during a crawl task. A classifier checks whether a
* given file is in a format it can handle. If it is, the classifier creates a
* schema in the form of a <code>StructType</code> object that matches that data
* format.</p> <p>You can use the standard classifiers that AWS Glue provides, or
* you can write your own classifiers to best categorize your data sources and
* specify the appropriate schemas to use for them. A classifier can be a
* <code>grok</code> classifier, an <code>XML</code> classifier, a
* <code>JSON</code> classifier, or a custom <code>CSV</code> classifier, as
* specified in one of the fields in the <code>Classifier</code>
* object.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/Classifier">AWS API
* Reference</a></p>
*/
class AWS_GLUE_API Classifier
{
public:
Classifier();
Classifier(Aws::Utils::Json::JsonView jsonValue);
Classifier& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A classifier that uses <code>grok</code>.</p>
*/
inline const GrokClassifier& GetGrokClassifier() const{ return m_grokClassifier; }
/**
* <p>A classifier that uses <code>grok</code>.</p>
*/
inline bool GrokClassifierHasBeenSet() const { return m_grokClassifierHasBeenSet; }
/**
* <p>A classifier that uses <code>grok</code>.</p>
*/
inline void SetGrokClassifier(const GrokClassifier& value) { m_grokClassifierHasBeenSet = true; m_grokClassifier = value; }
/**
* <p>A classifier that uses <code>grok</code>.</p>
*/
inline void SetGrokClassifier(GrokClassifier&& value) { m_grokClassifierHasBeenSet = true; m_grokClassifier = std::move(value); }
/**
* <p>A classifier that uses <code>grok</code>.</p>
*/
inline Classifier& WithGrokClassifier(const GrokClassifier& value) { SetGrokClassifier(value); return *this;}
/**
* <p>A classifier that uses <code>grok</code>.</p>
*/
inline Classifier& WithGrokClassifier(GrokClassifier&& value) { SetGrokClassifier(std::move(value)); return *this;}
/**
* <p>A classifier for XML content.</p>
*/
inline const XMLClassifier& GetXMLClassifier() const{ return m_xMLClassifier; }
/**
* <p>A classifier for XML content.</p>
*/
inline bool XMLClassifierHasBeenSet() const { return m_xMLClassifierHasBeenSet; }
/**
* <p>A classifier for XML content.</p>
*/
inline void SetXMLClassifier(const XMLClassifier& value) { m_xMLClassifierHasBeenSet = true; m_xMLClassifier = value; }
/**
* <p>A classifier for XML content.</p>
*/
inline void SetXMLClassifier(XMLClassifier&& value) { m_xMLClassifierHasBeenSet = true; m_xMLClassifier = std::move(value); }
/**
* <p>A classifier for XML content.</p>
*/
inline Classifier& WithXMLClassifier(const XMLClassifier& value) { SetXMLClassifier(value); return *this;}
/**
* <p>A classifier for XML content.</p>
*/
inline Classifier& WithXMLClassifier(XMLClassifier&& value) { SetXMLClassifier(std::move(value)); return *this;}
/**
* <p>A classifier for JSON content.</p>
*/
inline const JsonClassifier& GetJsonClassifier() const{ return m_jsonClassifier; }
/**
* <p>A classifier for JSON content.</p>
*/
inline bool JsonClassifierHasBeenSet() const { return m_jsonClassifierHasBeenSet; }
/**
* <p>A classifier for JSON content.</p>
*/
inline void SetJsonClassifier(const JsonClassifier& value) { m_jsonClassifierHasBeenSet = true; m_jsonClassifier = value; }
/**
* <p>A classifier for JSON content.</p>
*/
inline void SetJsonClassifier(JsonClassifier&& value) { m_jsonClassifierHasBeenSet = true; m_jsonClassifier = std::move(value); }
/**
* <p>A classifier for JSON content.</p>
*/
inline Classifier& WithJsonClassifier(const JsonClassifier& value) { SetJsonClassifier(value); return *this;}
/**
* <p>A classifier for JSON content.</p>
*/
inline Classifier& WithJsonClassifier(JsonClassifier&& value) { SetJsonClassifier(std::move(value)); return *this;}
/**
* <p>A classifier for comma-separated values (CSV).</p>
*/
inline const CsvClassifier& GetCsvClassifier() const{ return m_csvClassifier; }
/**
* <p>A classifier for comma-separated values (CSV).</p>
*/
inline bool CsvClassifierHasBeenSet() const { return m_csvClassifierHasBeenSet; }
/**
* <p>A classifier for comma-separated values (CSV).</p>
*/
inline void SetCsvClassifier(const CsvClassifier& value) { m_csvClassifierHasBeenSet = true; m_csvClassifier = value; }
/**
* <p>A classifier for comma-separated values (CSV).</p>
*/
inline void SetCsvClassifier(CsvClassifier&& value) { m_csvClassifierHasBeenSet = true; m_csvClassifier = std::move(value); }
/**
* <p>A classifier for comma-separated values (CSV).</p>
*/
inline Classifier& WithCsvClassifier(const CsvClassifier& value) { SetCsvClassifier(value); return *this;}
/**
* <p>A classifier for comma-separated values (CSV).</p>
*/
inline Classifier& WithCsvClassifier(CsvClassifier&& value) { SetCsvClassifier(std::move(value)); return *this;}
private:
GrokClassifier m_grokClassifier;
bool m_grokClassifierHasBeenSet;
XMLClassifier m_xMLClassifier;
bool m_xMLClassifierHasBeenSet;
JsonClassifier m_jsonClassifier;
bool m_jsonClassifierHasBeenSet;
CsvClassifier m_csvClassifier;
bool m_csvClassifierHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,132 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/model/CloudWatchEncryptionMode.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 Glue
{
namespace Model
{
/**
* <p>Specifies how Amazon CloudWatch data should be encrypted.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CloudWatchEncryption">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API CloudWatchEncryption
{
public:
CloudWatchEncryption();
CloudWatchEncryption(Aws::Utils::Json::JsonView jsonValue);
CloudWatchEncryption& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The encryption mode to use for CloudWatch data.</p>
*/
inline const CloudWatchEncryptionMode& GetCloudWatchEncryptionMode() const{ return m_cloudWatchEncryptionMode; }
/**
* <p>The encryption mode to use for CloudWatch data.</p>
*/
inline bool CloudWatchEncryptionModeHasBeenSet() const { return m_cloudWatchEncryptionModeHasBeenSet; }
/**
* <p>The encryption mode to use for CloudWatch data.</p>
*/
inline void SetCloudWatchEncryptionMode(const CloudWatchEncryptionMode& value) { m_cloudWatchEncryptionModeHasBeenSet = true; m_cloudWatchEncryptionMode = value; }
/**
* <p>The encryption mode to use for CloudWatch data.</p>
*/
inline void SetCloudWatchEncryptionMode(CloudWatchEncryptionMode&& value) { m_cloudWatchEncryptionModeHasBeenSet = true; m_cloudWatchEncryptionMode = std::move(value); }
/**
* <p>The encryption mode to use for CloudWatch data.</p>
*/
inline CloudWatchEncryption& WithCloudWatchEncryptionMode(const CloudWatchEncryptionMode& value) { SetCloudWatchEncryptionMode(value); return *this;}
/**
* <p>The encryption mode to use for CloudWatch data.</p>
*/
inline CloudWatchEncryption& WithCloudWatchEncryptionMode(CloudWatchEncryptionMode&& value) { SetCloudWatchEncryptionMode(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the
* data.</p>
*/
inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
/**
* <p>The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the
* data.</p>
*/
inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the
* data.</p>
*/
inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the
* data.</p>
*/
inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the
* data.</p>
*/
inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the
* data.</p>
*/
inline CloudWatchEncryption& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the
* data.</p>
*/
inline CloudWatchEncryption& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the
* data.</p>
*/
inline CloudWatchEncryption& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
private:
CloudWatchEncryptionMode m_cloudWatchEncryptionMode;
bool m_cloudWatchEncryptionModeHasBeenSet;
Aws::String m_kmsKeyArn;
bool m_kmsKeyArnHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Glue
{
namespace Model
{
enum class CloudWatchEncryptionMode
{
NOT_SET,
DISABLED,
SSE_KMS
};
namespace CloudWatchEncryptionModeMapper
{
AWS_GLUE_API CloudWatchEncryptionMode GetCloudWatchEncryptionModeForName(const Aws::String& name);
AWS_GLUE_API Aws::String GetNameForCloudWatchEncryptionMode(CloudWatchEncryptionMode value);
} // namespace CloudWatchEncryptionModeMapper
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,177 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_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 Glue
{
namespace Model
{
/**
* <p>Represents a directional edge in a directed acyclic graph
* (DAG).</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CodeGenEdge">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API CodeGenEdge
{
public:
CodeGenEdge();
CodeGenEdge(Aws::Utils::Json::JsonView jsonValue);
CodeGenEdge& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the node at which the edge starts.</p>
*/
inline const Aws::String& GetSource() const{ return m_source; }
/**
* <p>The ID of the node at which the edge starts.</p>
*/
inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
/**
* <p>The ID of the node at which the edge starts.</p>
*/
inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
/**
* <p>The ID of the node at which the edge starts.</p>
*/
inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
/**
* <p>The ID of the node at which the edge starts.</p>
*/
inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
/**
* <p>The ID of the node at which the edge starts.</p>
*/
inline CodeGenEdge& WithSource(const Aws::String& value) { SetSource(value); return *this;}
/**
* <p>The ID of the node at which the edge starts.</p>
*/
inline CodeGenEdge& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
/**
* <p>The ID of the node at which the edge starts.</p>
*/
inline CodeGenEdge& WithSource(const char* value) { SetSource(value); return *this;}
/**
* <p>The ID of the node at which the edge ends.</p>
*/
inline const Aws::String& GetTarget() const{ return m_target; }
/**
* <p>The ID of the node at which the edge ends.</p>
*/
inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
/**
* <p>The ID of the node at which the edge ends.</p>
*/
inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; }
/**
* <p>The ID of the node at which the edge ends.</p>
*/
inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
/**
* <p>The ID of the node at which the edge ends.</p>
*/
inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); }
/**
* <p>The ID of the node at which the edge ends.</p>
*/
inline CodeGenEdge& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
/**
* <p>The ID of the node at which the edge ends.</p>
*/
inline CodeGenEdge& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
/**
* <p>The ID of the node at which the edge ends.</p>
*/
inline CodeGenEdge& WithTarget(const char* value) { SetTarget(value); return *this;}
/**
* <p>The target of the edge.</p>
*/
inline const Aws::String& GetTargetParameter() const{ return m_targetParameter; }
/**
* <p>The target of the edge.</p>
*/
inline bool TargetParameterHasBeenSet() const { return m_targetParameterHasBeenSet; }
/**
* <p>The target of the edge.</p>
*/
inline void SetTargetParameter(const Aws::String& value) { m_targetParameterHasBeenSet = true; m_targetParameter = value; }
/**
* <p>The target of the edge.</p>
*/
inline void SetTargetParameter(Aws::String&& value) { m_targetParameterHasBeenSet = true; m_targetParameter = std::move(value); }
/**
* <p>The target of the edge.</p>
*/
inline void SetTargetParameter(const char* value) { m_targetParameterHasBeenSet = true; m_targetParameter.assign(value); }
/**
* <p>The target of the edge.</p>
*/
inline CodeGenEdge& WithTargetParameter(const Aws::String& value) { SetTargetParameter(value); return *this;}
/**
* <p>The target of the edge.</p>
*/
inline CodeGenEdge& WithTargetParameter(Aws::String&& value) { SetTargetParameter(std::move(value)); return *this;}
/**
* <p>The target of the edge.</p>
*/
inline CodeGenEdge& WithTargetParameter(const char* value) { SetTargetParameter(value); return *this;}
private:
Aws::String m_source;
bool m_sourceHasBeenSet;
Aws::String m_target;
bool m_targetHasBeenSet;
Aws::String m_targetParameter;
bool m_targetParameterHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,202 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glue/model/CodeGenNodeArg.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
/**
* <p>Represents a node in a directed acyclic graph (DAG)</p><p><h3>See Also:</h3>
* <a href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CodeGenNode">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API CodeGenNode
{
public:
CodeGenNode();
CodeGenNode(Aws::Utils::Json::JsonView jsonValue);
CodeGenNode& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A node identifier that is unique within the node's graph.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>A node identifier that is unique within the node's graph.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>A node identifier that is unique within the node's graph.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>A node identifier that is unique within the node's graph.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>A node identifier that is unique within the node's graph.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>A node identifier that is unique within the node's graph.</p>
*/
inline CodeGenNode& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>A node identifier that is unique within the node's graph.</p>
*/
inline CodeGenNode& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>A node identifier that is unique within the node's graph.</p>
*/
inline CodeGenNode& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The type of node that this is.</p>
*/
inline const Aws::String& GetNodeType() const{ return m_nodeType; }
/**
* <p>The type of node that this is.</p>
*/
inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
/**
* <p>The type of node that this is.</p>
*/
inline void SetNodeType(const Aws::String& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
/**
* <p>The type of node that this is.</p>
*/
inline void SetNodeType(Aws::String&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = std::move(value); }
/**
* <p>The type of node that this is.</p>
*/
inline void SetNodeType(const char* value) { m_nodeTypeHasBeenSet = true; m_nodeType.assign(value); }
/**
* <p>The type of node that this is.</p>
*/
inline CodeGenNode& WithNodeType(const Aws::String& value) { SetNodeType(value); return *this;}
/**
* <p>The type of node that this is.</p>
*/
inline CodeGenNode& WithNodeType(Aws::String&& value) { SetNodeType(std::move(value)); return *this;}
/**
* <p>The type of node that this is.</p>
*/
inline CodeGenNode& WithNodeType(const char* value) { SetNodeType(value); return *this;}
/**
* <p>Properties of the node, in the form of name-value pairs.</p>
*/
inline const Aws::Vector<CodeGenNodeArg>& GetArgs() const{ return m_args; }
/**
* <p>Properties of the node, in the form of name-value pairs.</p>
*/
inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
/**
* <p>Properties of the node, in the form of name-value pairs.</p>
*/
inline void SetArgs(const Aws::Vector<CodeGenNodeArg>& value) { m_argsHasBeenSet = true; m_args = value; }
/**
* <p>Properties of the node, in the form of name-value pairs.</p>
*/
inline void SetArgs(Aws::Vector<CodeGenNodeArg>&& value) { m_argsHasBeenSet = true; m_args = std::move(value); }
/**
* <p>Properties of the node, in the form of name-value pairs.</p>
*/
inline CodeGenNode& WithArgs(const Aws::Vector<CodeGenNodeArg>& value) { SetArgs(value); return *this;}
/**
* <p>Properties of the node, in the form of name-value pairs.</p>
*/
inline CodeGenNode& WithArgs(Aws::Vector<CodeGenNodeArg>&& value) { SetArgs(std::move(value)); return *this;}
/**
* <p>Properties of the node, in the form of name-value pairs.</p>
*/
inline CodeGenNode& AddArgs(const CodeGenNodeArg& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
/**
* <p>Properties of the node, in the form of name-value pairs.</p>
*/
inline CodeGenNode& AddArgs(CodeGenNodeArg&& value) { m_argsHasBeenSet = true; m_args.push_back(std::move(value)); return *this; }
/**
* <p>The line number of the node.</p>
*/
inline int GetLineNumber() const{ return m_lineNumber; }
/**
* <p>The line number of the node.</p>
*/
inline bool LineNumberHasBeenSet() const { return m_lineNumberHasBeenSet; }
/**
* <p>The line number of the node.</p>
*/
inline void SetLineNumber(int value) { m_lineNumberHasBeenSet = true; m_lineNumber = value; }
/**
* <p>The line number of the node.</p>
*/
inline CodeGenNode& WithLineNumber(int value) { SetLineNumber(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_nodeType;
bool m_nodeTypeHasBeenSet;
Aws::Vector<CodeGenNodeArg> m_args;
bool m_argsHasBeenSet;
int m_lineNumber;
bool m_lineNumberHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_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 Glue
{
namespace Model
{
/**
* <p>An argument or property of a node.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CodeGenNodeArg">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API CodeGenNodeArg
{
public:
CodeGenNodeArg();
CodeGenNodeArg(Aws::Utils::Json::JsonView jsonValue);
CodeGenNodeArg& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the argument or property.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the argument or property.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the argument or property.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the argument or property.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the argument or property.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the argument or property.</p>
*/
inline CodeGenNodeArg& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the argument or property.</p>
*/
inline CodeGenNodeArg& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the argument or property.</p>
*/
inline CodeGenNodeArg& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The value of the argument or property.</p>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p>The value of the argument or property.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The value of the argument or property.</p>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The value of the argument or property.</p>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>The value of the argument or property.</p>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p>The value of the argument or property.</p>
*/
inline CodeGenNodeArg& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p>The value of the argument or property.</p>
*/
inline CodeGenNodeArg& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>The value of the argument or property.</p>
*/
inline CodeGenNodeArg& WithValue(const char* value) { SetValue(value); return *this;}
/**
* <p>True if the value is used as a parameter.</p>
*/
inline bool GetParam() const{ return m_param; }
/**
* <p>True if the value is used as a parameter.</p>
*/
inline bool ParamHasBeenSet() const { return m_paramHasBeenSet; }
/**
* <p>True if the value is used as a parameter.</p>
*/
inline void SetParam(bool value) { m_paramHasBeenSet = true; m_param = value; }
/**
* <p>True if the value is used as a parameter.</p>
*/
inline CodeGenNodeArg& WithParam(bool value) { SetParam(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
bool m_param;
bool m_paramHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,246 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
/**
* <p>A column in a <code>Table</code>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/Column">AWS API
* Reference</a></p>
*/
class AWS_GLUE_API Column
{
public:
Column();
Column(Aws::Utils::Json::JsonView jsonValue);
Column& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the <code>Column</code>.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the <code>Column</code>.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the <code>Column</code>.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the <code>Column</code>.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the <code>Column</code>.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the <code>Column</code>.</p>
*/
inline Column& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the <code>Column</code>.</p>
*/
inline Column& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the <code>Column</code>.</p>
*/
inline Column& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The data type of the <code>Column</code>.</p>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p>The data type of the <code>Column</code>.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The data type of the <code>Column</code>.</p>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The data type of the <code>Column</code>.</p>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The data type of the <code>Column</code>.</p>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p>The data type of the <code>Column</code>.</p>
*/
inline Column& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p>The data type of the <code>Column</code>.</p>
*/
inline Column& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The data type of the <code>Column</code>.</p>
*/
inline Column& WithType(const char* value) { SetType(value); return *this;}
/**
* <p>A free-form text comment.</p>
*/
inline const Aws::String& GetComment() const{ return m_comment; }
/**
* <p>A free-form text comment.</p>
*/
inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
/**
* <p>A free-form text comment.</p>
*/
inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
/**
* <p>A free-form text comment.</p>
*/
inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
/**
* <p>A free-form text comment.</p>
*/
inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
/**
* <p>A free-form text comment.</p>
*/
inline Column& WithComment(const Aws::String& value) { SetComment(value); return *this;}
/**
* <p>A free-form text comment.</p>
*/
inline Column& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
/**
* <p>A free-form text comment.</p>
*/
inline Column& WithComment(const char* value) { SetComment(value); return *this;}
/**
* <p>These key-value pairs define properties associated with the column.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
/**
* <p>These key-value pairs define properties associated with the column.</p>
*/
inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
/**
* <p>These key-value pairs define properties associated with the column.</p>
*/
inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
/**
* <p>These key-value pairs define properties associated with the column.</p>
*/
inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
/**
* <p>These key-value pairs define properties associated with the column.</p>
*/
inline Column& WithParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetParameters(value); return *this;}
/**
* <p>These key-value pairs define properties associated with the column.</p>
*/
inline Column& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
/**
* <p>These key-value pairs define properties associated with the column.</p>
*/
inline Column& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
/**
* <p>These key-value pairs define properties associated with the column.</p>
*/
inline Column& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
/**
* <p>These key-value pairs define properties associated with the column.</p>
*/
inline Column& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
/**
* <p>These key-value pairs define properties associated with the column.</p>
*/
inline Column& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>These key-value pairs define properties associated with the column.</p>
*/
inline Column& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
/**
* <p>These key-value pairs define properties associated with the column.</p>
*/
inline Column& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
/**
* <p>These key-value pairs define properties associated with the column.</p>
*/
inline Column& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_type;
bool m_typeHasBeenSet;
Aws::String m_comment;
bool m_commentHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_parameters;
bool m_parametersHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glue/model/ErrorDetail.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
/**
* <p>Defines a column containing error.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ColumnError">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API ColumnError
{
public:
ColumnError();
ColumnError(Aws::Utils::Json::JsonView jsonValue);
ColumnError& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the column.</p>
*/
inline const Aws::String& GetColumnName() const{ return m_columnName; }
/**
* <p>The name of the column.</p>
*/
inline bool ColumnNameHasBeenSet() const { return m_columnNameHasBeenSet; }
/**
* <p>The name of the column.</p>
*/
inline void SetColumnName(const Aws::String& value) { m_columnNameHasBeenSet = true; m_columnName = value; }
/**
* <p>The name of the column.</p>
*/
inline void SetColumnName(Aws::String&& value) { m_columnNameHasBeenSet = true; m_columnName = std::move(value); }
/**
* <p>The name of the column.</p>
*/
inline void SetColumnName(const char* value) { m_columnNameHasBeenSet = true; m_columnName.assign(value); }
/**
* <p>The name of the column.</p>
*/
inline ColumnError& WithColumnName(const Aws::String& value) { SetColumnName(value); return *this;}
/**
* <p>The name of the column.</p>
*/
inline ColumnError& WithColumnName(Aws::String&& value) { SetColumnName(std::move(value)); return *this;}
/**
* <p>The name of the column.</p>
*/
inline ColumnError& WithColumnName(const char* value) { SetColumnName(value); return *this;}
/**
* <p>The error message occurred during operation.</p>
*/
inline const ErrorDetail& GetError() const{ return m_error; }
/**
* <p>The error message occurred during operation.</p>
*/
inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
/**
* <p>The error message occurred during operation.</p>
*/
inline void SetError(const ErrorDetail& value) { m_errorHasBeenSet = true; m_error = value; }
/**
* <p>The error message occurred during operation.</p>
*/
inline void SetError(ErrorDetail&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
/**
* <p>The error message occurred during operation.</p>
*/
inline ColumnError& WithError(const ErrorDetail& value) { SetError(value); return *this;}
/**
* <p>The error message occurred during operation.</p>
*/
inline ColumnError& WithError(ErrorDetail&& value) { SetError(std::move(value)); return *this;}
private:
Aws::String m_columnName;
bool m_columnNameHasBeenSet;
ErrorDetail m_error;
bool m_errorHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,202 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/glue/model/ColumnStatisticsData.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
/**
* <p>Defines a column statistics.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ColumnStatistics">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API ColumnStatistics
{
public:
ColumnStatistics();
ColumnStatistics(Aws::Utils::Json::JsonView jsonValue);
ColumnStatistics& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the column.</p>
*/
inline const Aws::String& GetColumnName() const{ return m_columnName; }
/**
* <p>The name of the column.</p>
*/
inline bool ColumnNameHasBeenSet() const { return m_columnNameHasBeenSet; }
/**
* <p>The name of the column.</p>
*/
inline void SetColumnName(const Aws::String& value) { m_columnNameHasBeenSet = true; m_columnName = value; }
/**
* <p>The name of the column.</p>
*/
inline void SetColumnName(Aws::String&& value) { m_columnNameHasBeenSet = true; m_columnName = std::move(value); }
/**
* <p>The name of the column.</p>
*/
inline void SetColumnName(const char* value) { m_columnNameHasBeenSet = true; m_columnName.assign(value); }
/**
* <p>The name of the column.</p>
*/
inline ColumnStatistics& WithColumnName(const Aws::String& value) { SetColumnName(value); return *this;}
/**
* <p>The name of the column.</p>
*/
inline ColumnStatistics& WithColumnName(Aws::String&& value) { SetColumnName(std::move(value)); return *this;}
/**
* <p>The name of the column.</p>
*/
inline ColumnStatistics& WithColumnName(const char* value) { SetColumnName(value); return *this;}
/**
* <p>The type of the column.</p>
*/
inline const Aws::String& GetColumnType() const{ return m_columnType; }
/**
* <p>The type of the column.</p>
*/
inline bool ColumnTypeHasBeenSet() const { return m_columnTypeHasBeenSet; }
/**
* <p>The type of the column.</p>
*/
inline void SetColumnType(const Aws::String& value) { m_columnTypeHasBeenSet = true; m_columnType = value; }
/**
* <p>The type of the column.</p>
*/
inline void SetColumnType(Aws::String&& value) { m_columnTypeHasBeenSet = true; m_columnType = std::move(value); }
/**
* <p>The type of the column.</p>
*/
inline void SetColumnType(const char* value) { m_columnTypeHasBeenSet = true; m_columnType.assign(value); }
/**
* <p>The type of the column.</p>
*/
inline ColumnStatistics& WithColumnType(const Aws::String& value) { SetColumnType(value); return *this;}
/**
* <p>The type of the column.</p>
*/
inline ColumnStatistics& WithColumnType(Aws::String&& value) { SetColumnType(std::move(value)); return *this;}
/**
* <p>The type of the column.</p>
*/
inline ColumnStatistics& WithColumnType(const char* value) { SetColumnType(value); return *this;}
/**
* <p>The analyzed time of the column statistics.</p>
*/
inline const Aws::Utils::DateTime& GetAnalyzedTime() const{ return m_analyzedTime; }
/**
* <p>The analyzed time of the column statistics.</p>
*/
inline bool AnalyzedTimeHasBeenSet() const { return m_analyzedTimeHasBeenSet; }
/**
* <p>The analyzed time of the column statistics.</p>
*/
inline void SetAnalyzedTime(const Aws::Utils::DateTime& value) { m_analyzedTimeHasBeenSet = true; m_analyzedTime = value; }
/**
* <p>The analyzed time of the column statistics.</p>
*/
inline void SetAnalyzedTime(Aws::Utils::DateTime&& value) { m_analyzedTimeHasBeenSet = true; m_analyzedTime = std::move(value); }
/**
* <p>The analyzed time of the column statistics.</p>
*/
inline ColumnStatistics& WithAnalyzedTime(const Aws::Utils::DateTime& value) { SetAnalyzedTime(value); return *this;}
/**
* <p>The analyzed time of the column statistics.</p>
*/
inline ColumnStatistics& WithAnalyzedTime(Aws::Utils::DateTime&& value) { SetAnalyzedTime(std::move(value)); return *this;}
/**
* <p>The statistics of the column.</p>
*/
inline const ColumnStatisticsData& GetStatisticsData() const{ return m_statisticsData; }
/**
* <p>The statistics of the column.</p>
*/
inline bool StatisticsDataHasBeenSet() const { return m_statisticsDataHasBeenSet; }
/**
* <p>The statistics of the column.</p>
*/
inline void SetStatisticsData(const ColumnStatisticsData& value) { m_statisticsDataHasBeenSet = true; m_statisticsData = value; }
/**
* <p>The statistics of the column.</p>
*/
inline void SetStatisticsData(ColumnStatisticsData&& value) { m_statisticsDataHasBeenSet = true; m_statisticsData = std::move(value); }
/**
* <p>The statistics of the column.</p>
*/
inline ColumnStatistics& WithStatisticsData(const ColumnStatisticsData& value) { SetStatisticsData(value); return *this;}
/**
* <p>The statistics of the column.</p>
*/
inline ColumnStatistics& WithStatisticsData(ColumnStatisticsData&& value) { SetStatisticsData(std::move(value)); return *this;}
private:
Aws::String m_columnName;
bool m_columnNameHasBeenSet;
Aws::String m_columnType;
bool m_columnTypeHasBeenSet;
Aws::Utils::DateTime m_analyzedTime;
bool m_analyzedTimeHasBeenSet;
ColumnStatisticsData m_statisticsData;
bool m_statisticsDataHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,323 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/model/ColumnStatisticsType.h>
#include <aws/glue/model/BooleanColumnStatisticsData.h>
#include <aws/glue/model/DateColumnStatisticsData.h>
#include <aws/glue/model/DecimalColumnStatisticsData.h>
#include <aws/glue/model/DoubleColumnStatisticsData.h>
#include <aws/glue/model/LongColumnStatisticsData.h>
#include <aws/glue/model/StringColumnStatisticsData.h>
#include <aws/glue/model/BinaryColumnStatisticsData.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
/**
* <p>Defines a column statistics data.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ColumnStatisticsData">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API ColumnStatisticsData
{
public:
ColumnStatisticsData();
ColumnStatisticsData(Aws::Utils::Json::JsonView jsonValue);
ColumnStatisticsData& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the column.</p>
*/
inline const ColumnStatisticsType& GetType() const{ return m_type; }
/**
* <p>The name of the column.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The name of the column.</p>
*/
inline void SetType(const ColumnStatisticsType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The name of the column.</p>
*/
inline void SetType(ColumnStatisticsType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The name of the column.</p>
*/
inline ColumnStatisticsData& WithType(const ColumnStatisticsType& value) { SetType(value); return *this;}
/**
* <p>The name of the column.</p>
*/
inline ColumnStatisticsData& WithType(ColumnStatisticsType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>Boolean Column Statistics Data.</p>
*/
inline const BooleanColumnStatisticsData& GetBooleanColumnStatisticsData() const{ return m_booleanColumnStatisticsData; }
/**
* <p>Boolean Column Statistics Data.</p>
*/
inline bool BooleanColumnStatisticsDataHasBeenSet() const { return m_booleanColumnStatisticsDataHasBeenSet; }
/**
* <p>Boolean Column Statistics Data.</p>
*/
inline void SetBooleanColumnStatisticsData(const BooleanColumnStatisticsData& value) { m_booleanColumnStatisticsDataHasBeenSet = true; m_booleanColumnStatisticsData = value; }
/**
* <p>Boolean Column Statistics Data.</p>
*/
inline void SetBooleanColumnStatisticsData(BooleanColumnStatisticsData&& value) { m_booleanColumnStatisticsDataHasBeenSet = true; m_booleanColumnStatisticsData = std::move(value); }
/**
* <p>Boolean Column Statistics Data.</p>
*/
inline ColumnStatisticsData& WithBooleanColumnStatisticsData(const BooleanColumnStatisticsData& value) { SetBooleanColumnStatisticsData(value); return *this;}
/**
* <p>Boolean Column Statistics Data.</p>
*/
inline ColumnStatisticsData& WithBooleanColumnStatisticsData(BooleanColumnStatisticsData&& value) { SetBooleanColumnStatisticsData(std::move(value)); return *this;}
/**
* <p>Date Column Statistics Data.</p>
*/
inline const DateColumnStatisticsData& GetDateColumnStatisticsData() const{ return m_dateColumnStatisticsData; }
/**
* <p>Date Column Statistics Data.</p>
*/
inline bool DateColumnStatisticsDataHasBeenSet() const { return m_dateColumnStatisticsDataHasBeenSet; }
/**
* <p>Date Column Statistics Data.</p>
*/
inline void SetDateColumnStatisticsData(const DateColumnStatisticsData& value) { m_dateColumnStatisticsDataHasBeenSet = true; m_dateColumnStatisticsData = value; }
/**
* <p>Date Column Statistics Data.</p>
*/
inline void SetDateColumnStatisticsData(DateColumnStatisticsData&& value) { m_dateColumnStatisticsDataHasBeenSet = true; m_dateColumnStatisticsData = std::move(value); }
/**
* <p>Date Column Statistics Data.</p>
*/
inline ColumnStatisticsData& WithDateColumnStatisticsData(const DateColumnStatisticsData& value) { SetDateColumnStatisticsData(value); return *this;}
/**
* <p>Date Column Statistics Data.</p>
*/
inline ColumnStatisticsData& WithDateColumnStatisticsData(DateColumnStatisticsData&& value) { SetDateColumnStatisticsData(std::move(value)); return *this;}
/**
* <p>Decimal Column Statistics Data.</p>
*/
inline const DecimalColumnStatisticsData& GetDecimalColumnStatisticsData() const{ return m_decimalColumnStatisticsData; }
/**
* <p>Decimal Column Statistics Data.</p>
*/
inline bool DecimalColumnStatisticsDataHasBeenSet() const { return m_decimalColumnStatisticsDataHasBeenSet; }
/**
* <p>Decimal Column Statistics Data.</p>
*/
inline void SetDecimalColumnStatisticsData(const DecimalColumnStatisticsData& value) { m_decimalColumnStatisticsDataHasBeenSet = true; m_decimalColumnStatisticsData = value; }
/**
* <p>Decimal Column Statistics Data.</p>
*/
inline void SetDecimalColumnStatisticsData(DecimalColumnStatisticsData&& value) { m_decimalColumnStatisticsDataHasBeenSet = true; m_decimalColumnStatisticsData = std::move(value); }
/**
* <p>Decimal Column Statistics Data.</p>
*/
inline ColumnStatisticsData& WithDecimalColumnStatisticsData(const DecimalColumnStatisticsData& value) { SetDecimalColumnStatisticsData(value); return *this;}
/**
* <p>Decimal Column Statistics Data.</p>
*/
inline ColumnStatisticsData& WithDecimalColumnStatisticsData(DecimalColumnStatisticsData&& value) { SetDecimalColumnStatisticsData(std::move(value)); return *this;}
/**
* <p>Double Column Statistics Data.</p>
*/
inline const DoubleColumnStatisticsData& GetDoubleColumnStatisticsData() const{ return m_doubleColumnStatisticsData; }
/**
* <p>Double Column Statistics Data.</p>
*/
inline bool DoubleColumnStatisticsDataHasBeenSet() const { return m_doubleColumnStatisticsDataHasBeenSet; }
/**
* <p>Double Column Statistics Data.</p>
*/
inline void SetDoubleColumnStatisticsData(const DoubleColumnStatisticsData& value) { m_doubleColumnStatisticsDataHasBeenSet = true; m_doubleColumnStatisticsData = value; }
/**
* <p>Double Column Statistics Data.</p>
*/
inline void SetDoubleColumnStatisticsData(DoubleColumnStatisticsData&& value) { m_doubleColumnStatisticsDataHasBeenSet = true; m_doubleColumnStatisticsData = std::move(value); }
/**
* <p>Double Column Statistics Data.</p>
*/
inline ColumnStatisticsData& WithDoubleColumnStatisticsData(const DoubleColumnStatisticsData& value) { SetDoubleColumnStatisticsData(value); return *this;}
/**
* <p>Double Column Statistics Data.</p>
*/
inline ColumnStatisticsData& WithDoubleColumnStatisticsData(DoubleColumnStatisticsData&& value) { SetDoubleColumnStatisticsData(std::move(value)); return *this;}
/**
* <p>Long Column Statistics Data.</p>
*/
inline const LongColumnStatisticsData& GetLongColumnStatisticsData() const{ return m_longColumnStatisticsData; }
/**
* <p>Long Column Statistics Data.</p>
*/
inline bool LongColumnStatisticsDataHasBeenSet() const { return m_longColumnStatisticsDataHasBeenSet; }
/**
* <p>Long Column Statistics Data.</p>
*/
inline void SetLongColumnStatisticsData(const LongColumnStatisticsData& value) { m_longColumnStatisticsDataHasBeenSet = true; m_longColumnStatisticsData = value; }
/**
* <p>Long Column Statistics Data.</p>
*/
inline void SetLongColumnStatisticsData(LongColumnStatisticsData&& value) { m_longColumnStatisticsDataHasBeenSet = true; m_longColumnStatisticsData = std::move(value); }
/**
* <p>Long Column Statistics Data.</p>
*/
inline ColumnStatisticsData& WithLongColumnStatisticsData(const LongColumnStatisticsData& value) { SetLongColumnStatisticsData(value); return *this;}
/**
* <p>Long Column Statistics Data.</p>
*/
inline ColumnStatisticsData& WithLongColumnStatisticsData(LongColumnStatisticsData&& value) { SetLongColumnStatisticsData(std::move(value)); return *this;}
/**
* <p>String Column Statistics Data.</p>
*/
inline const StringColumnStatisticsData& GetStringColumnStatisticsData() const{ return m_stringColumnStatisticsData; }
/**
* <p>String Column Statistics Data.</p>
*/
inline bool StringColumnStatisticsDataHasBeenSet() const { return m_stringColumnStatisticsDataHasBeenSet; }
/**
* <p>String Column Statistics Data.</p>
*/
inline void SetStringColumnStatisticsData(const StringColumnStatisticsData& value) { m_stringColumnStatisticsDataHasBeenSet = true; m_stringColumnStatisticsData = value; }
/**
* <p>String Column Statistics Data.</p>
*/
inline void SetStringColumnStatisticsData(StringColumnStatisticsData&& value) { m_stringColumnStatisticsDataHasBeenSet = true; m_stringColumnStatisticsData = std::move(value); }
/**
* <p>String Column Statistics Data.</p>
*/
inline ColumnStatisticsData& WithStringColumnStatisticsData(const StringColumnStatisticsData& value) { SetStringColumnStatisticsData(value); return *this;}
/**
* <p>String Column Statistics Data.</p>
*/
inline ColumnStatisticsData& WithStringColumnStatisticsData(StringColumnStatisticsData&& value) { SetStringColumnStatisticsData(std::move(value)); return *this;}
/**
* <p>Binary Column Statistics Data.</p>
*/
inline const BinaryColumnStatisticsData& GetBinaryColumnStatisticsData() const{ return m_binaryColumnStatisticsData; }
/**
* <p>Binary Column Statistics Data.</p>
*/
inline bool BinaryColumnStatisticsDataHasBeenSet() const { return m_binaryColumnStatisticsDataHasBeenSet; }
/**
* <p>Binary Column Statistics Data.</p>
*/
inline void SetBinaryColumnStatisticsData(const BinaryColumnStatisticsData& value) { m_binaryColumnStatisticsDataHasBeenSet = true; m_binaryColumnStatisticsData = value; }
/**
* <p>Binary Column Statistics Data.</p>
*/
inline void SetBinaryColumnStatisticsData(BinaryColumnStatisticsData&& value) { m_binaryColumnStatisticsDataHasBeenSet = true; m_binaryColumnStatisticsData = std::move(value); }
/**
* <p>Binary Column Statistics Data.</p>
*/
inline ColumnStatisticsData& WithBinaryColumnStatisticsData(const BinaryColumnStatisticsData& value) { SetBinaryColumnStatisticsData(value); return *this;}
/**
* <p>Binary Column Statistics Data.</p>
*/
inline ColumnStatisticsData& WithBinaryColumnStatisticsData(BinaryColumnStatisticsData&& value) { SetBinaryColumnStatisticsData(std::move(value)); return *this;}
private:
ColumnStatisticsType m_type;
bool m_typeHasBeenSet;
BooleanColumnStatisticsData m_booleanColumnStatisticsData;
bool m_booleanColumnStatisticsDataHasBeenSet;
DateColumnStatisticsData m_dateColumnStatisticsData;
bool m_dateColumnStatisticsDataHasBeenSet;
DecimalColumnStatisticsData m_decimalColumnStatisticsData;
bool m_decimalColumnStatisticsDataHasBeenSet;
DoubleColumnStatisticsData m_doubleColumnStatisticsData;
bool m_doubleColumnStatisticsDataHasBeenSet;
LongColumnStatisticsData m_longColumnStatisticsData;
bool m_longColumnStatisticsDataHasBeenSet;
StringColumnStatisticsData m_stringColumnStatisticsData;
bool m_stringColumnStatisticsDataHasBeenSet;
BinaryColumnStatisticsData m_binaryColumnStatisticsData;
bool m_binaryColumnStatisticsDataHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
#include <aws/glue/model/ColumnStatistics.h>
#include <aws/glue/model/ErrorDetail.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
/**
* <p>Defines a column containing error.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ColumnStatisticsError">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API ColumnStatisticsError
{
public:
ColumnStatisticsError();
ColumnStatisticsError(Aws::Utils::Json::JsonView jsonValue);
ColumnStatisticsError& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ColumnStatistics of the column.</p>
*/
inline const ColumnStatistics& GetColumnStatistics() const{ return m_columnStatistics; }
/**
* <p>The ColumnStatistics of the column.</p>
*/
inline bool ColumnStatisticsHasBeenSet() const { return m_columnStatisticsHasBeenSet; }
/**
* <p>The ColumnStatistics of the column.</p>
*/
inline void SetColumnStatistics(const ColumnStatistics& value) { m_columnStatisticsHasBeenSet = true; m_columnStatistics = value; }
/**
* <p>The ColumnStatistics of the column.</p>
*/
inline void SetColumnStatistics(ColumnStatistics&& value) { m_columnStatisticsHasBeenSet = true; m_columnStatistics = std::move(value); }
/**
* <p>The ColumnStatistics of the column.</p>
*/
inline ColumnStatisticsError& WithColumnStatistics(const ColumnStatistics& value) { SetColumnStatistics(value); return *this;}
/**
* <p>The ColumnStatistics of the column.</p>
*/
inline ColumnStatisticsError& WithColumnStatistics(ColumnStatistics&& value) { SetColumnStatistics(std::move(value)); return *this;}
/**
* <p>The error message occurred during operation.</p>
*/
inline const ErrorDetail& GetError() const{ return m_error; }
/**
* <p>The error message occurred during operation.</p>
*/
inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
/**
* <p>The error message occurred during operation.</p>
*/
inline void SetError(const ErrorDetail& value) { m_errorHasBeenSet = true; m_error = value; }
/**
* <p>The error message occurred during operation.</p>
*/
inline void SetError(ErrorDetail&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
/**
* <p>The error message occurred during operation.</p>
*/
inline ColumnStatisticsError& WithError(const ErrorDetail& value) { SetError(value); return *this;}
/**
* <p>The error message occurred during operation.</p>
*/
inline ColumnStatisticsError& WithError(ErrorDetail&& value) { SetError(std::move(value)); return *this;}
private:
ColumnStatistics m_columnStatistics;
bool m_columnStatisticsHasBeenSet;
ErrorDetail m_error;
bool m_errorHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Glue
{
namespace Model
{
enum class ColumnStatisticsType
{
NOT_SET,
BOOLEAN,
DATE,
DECIMAL,
DOUBLE,
LONG,
STRING,
BINARY
};
namespace ColumnStatisticsTypeMapper
{
AWS_GLUE_API ColumnStatisticsType GetColumnStatisticsTypeForName(const Aws::String& name);
AWS_GLUE_API Aws::String GetNameForColumnStatisticsType(ColumnStatisticsType value);
} // namespace ColumnStatisticsTypeMapper
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Glue
{
namespace Model
{
enum class Comparator
{
NOT_SET,
EQUALS,
GREATER_THAN,
LESS_THAN,
GREATER_THAN_EQUALS,
LESS_THAN_EQUALS
};
namespace ComparatorMapper
{
AWS_GLUE_API Comparator GetComparatorForName(const Aws::String& name);
AWS_GLUE_API Aws::String GetNameForComparator(Comparator value);
} // namespace ComparatorMapper
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,263 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/model/LogicalOperator.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glue/model/JobRunState.h>
#include <aws/glue/model/CrawlState.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
/**
* <p>Defines a condition under which a trigger fires.</p><p><h3>See Also:</h3>
* <a href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/Condition">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API Condition
{
public:
Condition();
Condition(Aws::Utils::Json::JsonView jsonValue);
Condition& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A logical operator.</p>
*/
inline const LogicalOperator& GetLogicalOperator() const{ return m_logicalOperator; }
/**
* <p>A logical operator.</p>
*/
inline bool LogicalOperatorHasBeenSet() const { return m_logicalOperatorHasBeenSet; }
/**
* <p>A logical operator.</p>
*/
inline void SetLogicalOperator(const LogicalOperator& value) { m_logicalOperatorHasBeenSet = true; m_logicalOperator = value; }
/**
* <p>A logical operator.</p>
*/
inline void SetLogicalOperator(LogicalOperator&& value) { m_logicalOperatorHasBeenSet = true; m_logicalOperator = std::move(value); }
/**
* <p>A logical operator.</p>
*/
inline Condition& WithLogicalOperator(const LogicalOperator& value) { SetLogicalOperator(value); return *this;}
/**
* <p>A logical operator.</p>
*/
inline Condition& WithLogicalOperator(LogicalOperator&& value) { SetLogicalOperator(std::move(value)); return *this;}
/**
* <p>The name of the job whose <code>JobRuns</code> this condition applies to, and
* on which this trigger waits.</p>
*/
inline const Aws::String& GetJobName() const{ return m_jobName; }
/**
* <p>The name of the job whose <code>JobRuns</code> this condition applies to, and
* on which this trigger waits.</p>
*/
inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
/**
* <p>The name of the job whose <code>JobRuns</code> this condition applies to, and
* on which this trigger waits.</p>
*/
inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
/**
* <p>The name of the job whose <code>JobRuns</code> this condition applies to, and
* on which this trigger waits.</p>
*/
inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
/**
* <p>The name of the job whose <code>JobRuns</code> this condition applies to, and
* on which this trigger waits.</p>
*/
inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
/**
* <p>The name of the job whose <code>JobRuns</code> this condition applies to, and
* on which this trigger waits.</p>
*/
inline Condition& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
/**
* <p>The name of the job whose <code>JobRuns</code> this condition applies to, and
* on which this trigger waits.</p>
*/
inline Condition& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
/**
* <p>The name of the job whose <code>JobRuns</code> this condition applies to, and
* on which this trigger waits.</p>
*/
inline Condition& WithJobName(const char* value) { SetJobName(value); return *this;}
/**
* <p>The condition state. Currently, the only job states that a trigger can listen
* for are <code>SUCCEEDED</code>, <code>STOPPED</code>, <code>FAILED</code>, and
* <code>TIMEOUT</code>. The only crawler states that a trigger can listen for are
* <code>SUCCEEDED</code>, <code>FAILED</code>, and <code>CANCELLED</code>.</p>
*/
inline const JobRunState& GetState() const{ return m_state; }
/**
* <p>The condition state. Currently, the only job states that a trigger can listen
* for are <code>SUCCEEDED</code>, <code>STOPPED</code>, <code>FAILED</code>, and
* <code>TIMEOUT</code>. The only crawler states that a trigger can listen for are
* <code>SUCCEEDED</code>, <code>FAILED</code>, and <code>CANCELLED</code>.</p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The condition state. Currently, the only job states that a trigger can listen
* for are <code>SUCCEEDED</code>, <code>STOPPED</code>, <code>FAILED</code>, and
* <code>TIMEOUT</code>. The only crawler states that a trigger can listen for are
* <code>SUCCEEDED</code>, <code>FAILED</code>, and <code>CANCELLED</code>.</p>
*/
inline void SetState(const JobRunState& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The condition state. Currently, the only job states that a trigger can listen
* for are <code>SUCCEEDED</code>, <code>STOPPED</code>, <code>FAILED</code>, and
* <code>TIMEOUT</code>. The only crawler states that a trigger can listen for are
* <code>SUCCEEDED</code>, <code>FAILED</code>, and <code>CANCELLED</code>.</p>
*/
inline void SetState(JobRunState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The condition state. Currently, the only job states that a trigger can listen
* for are <code>SUCCEEDED</code>, <code>STOPPED</code>, <code>FAILED</code>, and
* <code>TIMEOUT</code>. The only crawler states that a trigger can listen for are
* <code>SUCCEEDED</code>, <code>FAILED</code>, and <code>CANCELLED</code>.</p>
*/
inline Condition& WithState(const JobRunState& value) { SetState(value); return *this;}
/**
* <p>The condition state. Currently, the only job states that a trigger can listen
* for are <code>SUCCEEDED</code>, <code>STOPPED</code>, <code>FAILED</code>, and
* <code>TIMEOUT</code>. The only crawler states that a trigger can listen for are
* <code>SUCCEEDED</code>, <code>FAILED</code>, and <code>CANCELLED</code>.</p>
*/
inline Condition& WithState(JobRunState&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The name of the crawler to which this condition applies.</p>
*/
inline const Aws::String& GetCrawlerName() const{ return m_crawlerName; }
/**
* <p>The name of the crawler to which this condition applies.</p>
*/
inline bool CrawlerNameHasBeenSet() const { return m_crawlerNameHasBeenSet; }
/**
* <p>The name of the crawler to which this condition applies.</p>
*/
inline void SetCrawlerName(const Aws::String& value) { m_crawlerNameHasBeenSet = true; m_crawlerName = value; }
/**
* <p>The name of the crawler to which this condition applies.</p>
*/
inline void SetCrawlerName(Aws::String&& value) { m_crawlerNameHasBeenSet = true; m_crawlerName = std::move(value); }
/**
* <p>The name of the crawler to which this condition applies.</p>
*/
inline void SetCrawlerName(const char* value) { m_crawlerNameHasBeenSet = true; m_crawlerName.assign(value); }
/**
* <p>The name of the crawler to which this condition applies.</p>
*/
inline Condition& WithCrawlerName(const Aws::String& value) { SetCrawlerName(value); return *this;}
/**
* <p>The name of the crawler to which this condition applies.</p>
*/
inline Condition& WithCrawlerName(Aws::String&& value) { SetCrawlerName(std::move(value)); return *this;}
/**
* <p>The name of the crawler to which this condition applies.</p>
*/
inline Condition& WithCrawlerName(const char* value) { SetCrawlerName(value); return *this;}
/**
* <p>The state of the crawler to which this condition applies.</p>
*/
inline const CrawlState& GetCrawlState() const{ return m_crawlState; }
/**
* <p>The state of the crawler to which this condition applies.</p>
*/
inline bool CrawlStateHasBeenSet() const { return m_crawlStateHasBeenSet; }
/**
* <p>The state of the crawler to which this condition applies.</p>
*/
inline void SetCrawlState(const CrawlState& value) { m_crawlStateHasBeenSet = true; m_crawlState = value; }
/**
* <p>The state of the crawler to which this condition applies.</p>
*/
inline void SetCrawlState(CrawlState&& value) { m_crawlStateHasBeenSet = true; m_crawlState = std::move(value); }
/**
* <p>The state of the crawler to which this condition applies.</p>
*/
inline Condition& WithCrawlState(const CrawlState& value) { SetCrawlState(value); return *this;}
/**
* <p>The state of the crawler to which this condition applies.</p>
*/
inline Condition& WithCrawlState(CrawlState&& value) { SetCrawlState(std::move(value)); return *this;}
private:
LogicalOperator m_logicalOperator;
bool m_logicalOperatorHasBeenSet;
Aws::String m_jobName;
bool m_jobNameHasBeenSet;
JobRunState m_state;
bool m_stateHasBeenSet;
Aws::String m_crawlerName;
bool m_crawlerNameHasBeenSet;
CrawlState m_crawlState;
bool m_crawlStateHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,157 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
/**
* <p>The confusion matrix shows you what your transform is predicting accurately
* and what types of errors it is making.</p> <p>For more information, see <a
* href="https://en.wikipedia.org/wiki/Confusion_matrix">Confusion matrix</a> in
* Wikipedia.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ConfusionMatrix">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API ConfusionMatrix
{
public:
ConfusionMatrix();
ConfusionMatrix(Aws::Utils::Json::JsonView jsonValue);
ConfusionMatrix& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The number of matches in the data that the transform correctly found, in the
* confusion matrix for your transform.</p>
*/
inline long long GetNumTruePositives() const{ return m_numTruePositives; }
/**
* <p>The number of matches in the data that the transform correctly found, in the
* confusion matrix for your transform.</p>
*/
inline bool NumTruePositivesHasBeenSet() const { return m_numTruePositivesHasBeenSet; }
/**
* <p>The number of matches in the data that the transform correctly found, in the
* confusion matrix for your transform.</p>
*/
inline void SetNumTruePositives(long long value) { m_numTruePositivesHasBeenSet = true; m_numTruePositives = value; }
/**
* <p>The number of matches in the data that the transform correctly found, in the
* confusion matrix for your transform.</p>
*/
inline ConfusionMatrix& WithNumTruePositives(long long value) { SetNumTruePositives(value); return *this;}
/**
* <p>The number of nonmatches in the data that the transform incorrectly
* classified as a match, in the confusion matrix for your transform.</p>
*/
inline long long GetNumFalsePositives() const{ return m_numFalsePositives; }
/**
* <p>The number of nonmatches in the data that the transform incorrectly
* classified as a match, in the confusion matrix for your transform.</p>
*/
inline bool NumFalsePositivesHasBeenSet() const { return m_numFalsePositivesHasBeenSet; }
/**
* <p>The number of nonmatches in the data that the transform incorrectly
* classified as a match, in the confusion matrix for your transform.</p>
*/
inline void SetNumFalsePositives(long long value) { m_numFalsePositivesHasBeenSet = true; m_numFalsePositives = value; }
/**
* <p>The number of nonmatches in the data that the transform incorrectly
* classified as a match, in the confusion matrix for your transform.</p>
*/
inline ConfusionMatrix& WithNumFalsePositives(long long value) { SetNumFalsePositives(value); return *this;}
/**
* <p>The number of nonmatches in the data that the transform correctly rejected,
* in the confusion matrix for your transform.</p>
*/
inline long long GetNumTrueNegatives() const{ return m_numTrueNegatives; }
/**
* <p>The number of nonmatches in the data that the transform correctly rejected,
* in the confusion matrix for your transform.</p>
*/
inline bool NumTrueNegativesHasBeenSet() const { return m_numTrueNegativesHasBeenSet; }
/**
* <p>The number of nonmatches in the data that the transform correctly rejected,
* in the confusion matrix for your transform.</p>
*/
inline void SetNumTrueNegatives(long long value) { m_numTrueNegativesHasBeenSet = true; m_numTrueNegatives = value; }
/**
* <p>The number of nonmatches in the data that the transform correctly rejected,
* in the confusion matrix for your transform.</p>
*/
inline ConfusionMatrix& WithNumTrueNegatives(long long value) { SetNumTrueNegatives(value); return *this;}
/**
* <p>The number of matches in the data that the transform didn't find, in the
* confusion matrix for your transform.</p>
*/
inline long long GetNumFalseNegatives() const{ return m_numFalseNegatives; }
/**
* <p>The number of matches in the data that the transform didn't find, in the
* confusion matrix for your transform.</p>
*/
inline bool NumFalseNegativesHasBeenSet() const { return m_numFalseNegativesHasBeenSet; }
/**
* <p>The number of matches in the data that the transform didn't find, in the
* confusion matrix for your transform.</p>
*/
inline void SetNumFalseNegatives(long long value) { m_numFalseNegativesHasBeenSet = true; m_numFalseNegatives = value; }
/**
* <p>The number of matches in the data that the transform didn't find, in the
* confusion matrix for your transform.</p>
*/
inline ConfusionMatrix& WithNumFalseNegatives(long long value) { SetNumFalseNegatives(value); return *this;}
private:
long long m_numTruePositives;
bool m_numTruePositivesHasBeenSet;
long long m_numFalsePositives;
bool m_numFalsePositivesHasBeenSet;
long long m_numTrueNegatives;
bool m_numTrueNegativesHasBeenSet;
long long m_numFalseNegatives;
bool m_numFalseNegativesHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,373 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glue/model/ConnectionType.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/glue/model/PhysicalConnectionRequirements.h>
#include <aws/glue/model/ConnectionPropertyKey.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
/**
* <p>A structure that is used to specify a connection to create or
* update.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ConnectionInput">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API ConnectionInput
{
public:
ConnectionInput();
ConnectionInput(Aws::Utils::Json::JsonView jsonValue);
ConnectionInput& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the connection.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the connection.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the connection.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the connection.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the connection.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the connection.</p>
*/
inline ConnectionInput& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the connection.</p>
*/
inline ConnectionInput& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the connection.</p>
*/
inline ConnectionInput& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The description of the connection.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the connection.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The description of the connection.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The description of the connection.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The description of the connection.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The description of the connection.</p>
*/
inline ConnectionInput& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the connection.</p>
*/
inline ConnectionInput& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the connection.</p>
*/
inline ConnectionInput& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The type of the connection. Currently, these types are supported:</p> <ul>
* <li> <p> <code>JDBC</code> - Designates a connection to a database through Java
* Database Connectivity (JDBC).</p> </li> <li> <p> <code>KAFKA</code> - Designates
* a connection to an Apache Kafka streaming platform.</p> </li> <li> <p>
* <code>MONGODB</code> - Designates a connection to a MongoDB document
* database.</p> </li> <li> <p> <code>NETWORK</code> - Designates a network
* connection to a data source within an Amazon Virtual Private Cloud environment
* (Amazon VPC).</p> </li> </ul> <p>SFTP is not supported.</p>
*/
inline const ConnectionType& GetConnectionType() const{ return m_connectionType; }
/**
* <p>The type of the connection. Currently, these types are supported:</p> <ul>
* <li> <p> <code>JDBC</code> - Designates a connection to a database through Java
* Database Connectivity (JDBC).</p> </li> <li> <p> <code>KAFKA</code> - Designates
* a connection to an Apache Kafka streaming platform.</p> </li> <li> <p>
* <code>MONGODB</code> - Designates a connection to a MongoDB document
* database.</p> </li> <li> <p> <code>NETWORK</code> - Designates a network
* connection to a data source within an Amazon Virtual Private Cloud environment
* (Amazon VPC).</p> </li> </ul> <p>SFTP is not supported.</p>
*/
inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
/**
* <p>The type of the connection. Currently, these types are supported:</p> <ul>
* <li> <p> <code>JDBC</code> - Designates a connection to a database through Java
* Database Connectivity (JDBC).</p> </li> <li> <p> <code>KAFKA</code> - Designates
* a connection to an Apache Kafka streaming platform.</p> </li> <li> <p>
* <code>MONGODB</code> - Designates a connection to a MongoDB document
* database.</p> </li> <li> <p> <code>NETWORK</code> - Designates a network
* connection to a data source within an Amazon Virtual Private Cloud environment
* (Amazon VPC).</p> </li> </ul> <p>SFTP is not supported.</p>
*/
inline void SetConnectionType(const ConnectionType& value) { m_connectionTypeHasBeenSet = true; m_connectionType = value; }
/**
* <p>The type of the connection. Currently, these types are supported:</p> <ul>
* <li> <p> <code>JDBC</code> - Designates a connection to a database through Java
* Database Connectivity (JDBC).</p> </li> <li> <p> <code>KAFKA</code> - Designates
* a connection to an Apache Kafka streaming platform.</p> </li> <li> <p>
* <code>MONGODB</code> - Designates a connection to a MongoDB document
* database.</p> </li> <li> <p> <code>NETWORK</code> - Designates a network
* connection to a data source within an Amazon Virtual Private Cloud environment
* (Amazon VPC).</p> </li> </ul> <p>SFTP is not supported.</p>
*/
inline void SetConnectionType(ConnectionType&& value) { m_connectionTypeHasBeenSet = true; m_connectionType = std::move(value); }
/**
* <p>The type of the connection. Currently, these types are supported:</p> <ul>
* <li> <p> <code>JDBC</code> - Designates a connection to a database through Java
* Database Connectivity (JDBC).</p> </li> <li> <p> <code>KAFKA</code> - Designates
* a connection to an Apache Kafka streaming platform.</p> </li> <li> <p>
* <code>MONGODB</code> - Designates a connection to a MongoDB document
* database.</p> </li> <li> <p> <code>NETWORK</code> - Designates a network
* connection to a data source within an Amazon Virtual Private Cloud environment
* (Amazon VPC).</p> </li> </ul> <p>SFTP is not supported.</p>
*/
inline ConnectionInput& WithConnectionType(const ConnectionType& value) { SetConnectionType(value); return *this;}
/**
* <p>The type of the connection. Currently, these types are supported:</p> <ul>
* <li> <p> <code>JDBC</code> - Designates a connection to a database through Java
* Database Connectivity (JDBC).</p> </li> <li> <p> <code>KAFKA</code> - Designates
* a connection to an Apache Kafka streaming platform.</p> </li> <li> <p>
* <code>MONGODB</code> - Designates a connection to a MongoDB document
* database.</p> </li> <li> <p> <code>NETWORK</code> - Designates a network
* connection to a data source within an Amazon Virtual Private Cloud environment
* (Amazon VPC).</p> </li> </ul> <p>SFTP is not supported.</p>
*/
inline ConnectionInput& WithConnectionType(ConnectionType&& value) { SetConnectionType(std::move(value)); return *this;}
/**
* <p>A list of criteria that can be used in selecting this connection.</p>
*/
inline const Aws::Vector<Aws::String>& GetMatchCriteria() const{ return m_matchCriteria; }
/**
* <p>A list of criteria that can be used in selecting this connection.</p>
*/
inline bool MatchCriteriaHasBeenSet() const { return m_matchCriteriaHasBeenSet; }
/**
* <p>A list of criteria that can be used in selecting this connection.</p>
*/
inline void SetMatchCriteria(const Aws::Vector<Aws::String>& value) { m_matchCriteriaHasBeenSet = true; m_matchCriteria = value; }
/**
* <p>A list of criteria that can be used in selecting this connection.</p>
*/
inline void SetMatchCriteria(Aws::Vector<Aws::String>&& value) { m_matchCriteriaHasBeenSet = true; m_matchCriteria = std::move(value); }
/**
* <p>A list of criteria that can be used in selecting this connection.</p>
*/
inline ConnectionInput& WithMatchCriteria(const Aws::Vector<Aws::String>& value) { SetMatchCriteria(value); return *this;}
/**
* <p>A list of criteria that can be used in selecting this connection.</p>
*/
inline ConnectionInput& WithMatchCriteria(Aws::Vector<Aws::String>&& value) { SetMatchCriteria(std::move(value)); return *this;}
/**
* <p>A list of criteria that can be used in selecting this connection.</p>
*/
inline ConnectionInput& AddMatchCriteria(const Aws::String& value) { m_matchCriteriaHasBeenSet = true; m_matchCriteria.push_back(value); return *this; }
/**
* <p>A list of criteria that can be used in selecting this connection.</p>
*/
inline ConnectionInput& AddMatchCriteria(Aws::String&& value) { m_matchCriteriaHasBeenSet = true; m_matchCriteria.push_back(std::move(value)); return *this; }
/**
* <p>A list of criteria that can be used in selecting this connection.</p>
*/
inline ConnectionInput& AddMatchCriteria(const char* value) { m_matchCriteriaHasBeenSet = true; m_matchCriteria.push_back(value); return *this; }
/**
* <p>These key-value pairs define parameters for the connection.</p>
*/
inline const Aws::Map<ConnectionPropertyKey, Aws::String>& GetConnectionProperties() const{ return m_connectionProperties; }
/**
* <p>These key-value pairs define parameters for the connection.</p>
*/
inline bool ConnectionPropertiesHasBeenSet() const { return m_connectionPropertiesHasBeenSet; }
/**
* <p>These key-value pairs define parameters for the connection.</p>
*/
inline void SetConnectionProperties(const Aws::Map<ConnectionPropertyKey, Aws::String>& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties = value; }
/**
* <p>These key-value pairs define parameters for the connection.</p>
*/
inline void SetConnectionProperties(Aws::Map<ConnectionPropertyKey, Aws::String>&& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties = std::move(value); }
/**
* <p>These key-value pairs define parameters for the connection.</p>
*/
inline ConnectionInput& WithConnectionProperties(const Aws::Map<ConnectionPropertyKey, Aws::String>& value) { SetConnectionProperties(value); return *this;}
/**
* <p>These key-value pairs define parameters for the connection.</p>
*/
inline ConnectionInput& WithConnectionProperties(Aws::Map<ConnectionPropertyKey, Aws::String>&& value) { SetConnectionProperties(std::move(value)); return *this;}
/**
* <p>These key-value pairs define parameters for the connection.</p>
*/
inline ConnectionInput& AddConnectionProperties(const ConnectionPropertyKey& key, const Aws::String& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties.emplace(key, value); return *this; }
/**
* <p>These key-value pairs define parameters for the connection.</p>
*/
inline ConnectionInput& AddConnectionProperties(ConnectionPropertyKey&& key, const Aws::String& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties.emplace(std::move(key), value); return *this; }
/**
* <p>These key-value pairs define parameters for the connection.</p>
*/
inline ConnectionInput& AddConnectionProperties(const ConnectionPropertyKey& key, Aws::String&& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties.emplace(key, std::move(value)); return *this; }
/**
* <p>These key-value pairs define parameters for the connection.</p>
*/
inline ConnectionInput& AddConnectionProperties(ConnectionPropertyKey&& key, Aws::String&& value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>These key-value pairs define parameters for the connection.</p>
*/
inline ConnectionInput& AddConnectionProperties(ConnectionPropertyKey&& key, const char* value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties.emplace(std::move(key), value); return *this; }
/**
* <p>These key-value pairs define parameters for the connection.</p>
*/
inline ConnectionInput& AddConnectionProperties(const ConnectionPropertyKey& key, const char* value) { m_connectionPropertiesHasBeenSet = true; m_connectionProperties.emplace(key, value); return *this; }
/**
* <p>A map of physical connection requirements, such as virtual private cloud
* (VPC) and <code>SecurityGroup</code>, that are needed to successfully make this
* connection.</p>
*/
inline const PhysicalConnectionRequirements& GetPhysicalConnectionRequirements() const{ return m_physicalConnectionRequirements; }
/**
* <p>A map of physical connection requirements, such as virtual private cloud
* (VPC) and <code>SecurityGroup</code>, that are needed to successfully make this
* connection.</p>
*/
inline bool PhysicalConnectionRequirementsHasBeenSet() const { return m_physicalConnectionRequirementsHasBeenSet; }
/**
* <p>A map of physical connection requirements, such as virtual private cloud
* (VPC) and <code>SecurityGroup</code>, that are needed to successfully make this
* connection.</p>
*/
inline void SetPhysicalConnectionRequirements(const PhysicalConnectionRequirements& value) { m_physicalConnectionRequirementsHasBeenSet = true; m_physicalConnectionRequirements = value; }
/**
* <p>A map of physical connection requirements, such as virtual private cloud
* (VPC) and <code>SecurityGroup</code>, that are needed to successfully make this
* connection.</p>
*/
inline void SetPhysicalConnectionRequirements(PhysicalConnectionRequirements&& value) { m_physicalConnectionRequirementsHasBeenSet = true; m_physicalConnectionRequirements = std::move(value); }
/**
* <p>A map of physical connection requirements, such as virtual private cloud
* (VPC) and <code>SecurityGroup</code>, that are needed to successfully make this
* connection.</p>
*/
inline ConnectionInput& WithPhysicalConnectionRequirements(const PhysicalConnectionRequirements& value) { SetPhysicalConnectionRequirements(value); return *this;}
/**
* <p>A map of physical connection requirements, such as virtual private cloud
* (VPC) and <code>SecurityGroup</code>, that are needed to successfully make this
* connection.</p>
*/
inline ConnectionInput& WithPhysicalConnectionRequirements(PhysicalConnectionRequirements&& value) { SetPhysicalConnectionRequirements(std::move(value)); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
ConnectionType m_connectionType;
bool m_connectionTypeHasBeenSet;
Aws::Vector<Aws::String> m_matchCriteria;
bool m_matchCriteriaHasBeenSet;
Aws::Map<ConnectionPropertyKey, Aws::String> m_connectionProperties;
bool m_connectionPropertiesHasBeenSet;
PhysicalConnectionRequirements m_physicalConnectionRequirements;
bool m_physicalConnectionRequirementsHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,182 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_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 Glue
{
namespace Model
{
/**
* <p>The data structure used by the Data Catalog to encrypt the password as part
* of <code>CreateConnection</code> or <code>UpdateConnection</code> and store it
* in the <code>ENCRYPTED_PASSWORD</code> field in the connection properties. You
* can enable catalog encryption or only password encryption.</p> <p>When a
* <code>CreationConnection</code> request arrives containing a password, the Data
* Catalog first encrypts the password using your AWS KMS key. It then encrypts the
* whole connection object again if catalog encryption is also enabled.</p> <p>This
* encryption requires that you set AWS KMS key permissions to enable or restrict
* access on the password key according to your security requirements. For example,
* you might want only administrators to have decrypt permission on the password
* key.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ConnectionPasswordEncryption">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API ConnectionPasswordEncryption
{
public:
ConnectionPasswordEncryption();
ConnectionPasswordEncryption(Aws::Utils::Json::JsonView jsonValue);
ConnectionPasswordEncryption& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>When the <code>ReturnConnectionPasswordEncrypted</code> flag is set to
* "true", passwords remain encrypted in the responses of
* <code>GetConnection</code> and <code>GetConnections</code>. This encryption
* takes effect independently from catalog encryption. </p>
*/
inline bool GetReturnConnectionPasswordEncrypted() const{ return m_returnConnectionPasswordEncrypted; }
/**
* <p>When the <code>ReturnConnectionPasswordEncrypted</code> flag is set to
* "true", passwords remain encrypted in the responses of
* <code>GetConnection</code> and <code>GetConnections</code>. This encryption
* takes effect independently from catalog encryption. </p>
*/
inline bool ReturnConnectionPasswordEncryptedHasBeenSet() const { return m_returnConnectionPasswordEncryptedHasBeenSet; }
/**
* <p>When the <code>ReturnConnectionPasswordEncrypted</code> flag is set to
* "true", passwords remain encrypted in the responses of
* <code>GetConnection</code> and <code>GetConnections</code>. This encryption
* takes effect independently from catalog encryption. </p>
*/
inline void SetReturnConnectionPasswordEncrypted(bool value) { m_returnConnectionPasswordEncryptedHasBeenSet = true; m_returnConnectionPasswordEncrypted = value; }
/**
* <p>When the <code>ReturnConnectionPasswordEncrypted</code> flag is set to
* "true", passwords remain encrypted in the responses of
* <code>GetConnection</code> and <code>GetConnections</code>. This encryption
* takes effect independently from catalog encryption. </p>
*/
inline ConnectionPasswordEncryption& WithReturnConnectionPasswordEncrypted(bool value) { SetReturnConnectionPasswordEncrypted(value); return *this;}
/**
* <p>An AWS KMS key that is used to encrypt the connection password. </p> <p>If
* connection password protection is enabled, the caller of
* <code>CreateConnection</code> and <code>UpdateConnection</code> needs at least
* <code>kms:Encrypt</code> permission on the specified AWS KMS key, to encrypt
* passwords before storing them in the Data Catalog. </p> <p>You can set the
* decrypt permission to enable or restrict access on the password key according to
* your security requirements.</p>
*/
inline const Aws::String& GetAwsKmsKeyId() const{ return m_awsKmsKeyId; }
/**
* <p>An AWS KMS key that is used to encrypt the connection password. </p> <p>If
* connection password protection is enabled, the caller of
* <code>CreateConnection</code> and <code>UpdateConnection</code> needs at least
* <code>kms:Encrypt</code> permission on the specified AWS KMS key, to encrypt
* passwords before storing them in the Data Catalog. </p> <p>You can set the
* decrypt permission to enable or restrict access on the password key according to
* your security requirements.</p>
*/
inline bool AwsKmsKeyIdHasBeenSet() const { return m_awsKmsKeyIdHasBeenSet; }
/**
* <p>An AWS KMS key that is used to encrypt the connection password. </p> <p>If
* connection password protection is enabled, the caller of
* <code>CreateConnection</code> and <code>UpdateConnection</code> needs at least
* <code>kms:Encrypt</code> permission on the specified AWS KMS key, to encrypt
* passwords before storing them in the Data Catalog. </p> <p>You can set the
* decrypt permission to enable or restrict access on the password key according to
* your security requirements.</p>
*/
inline void SetAwsKmsKeyId(const Aws::String& value) { m_awsKmsKeyIdHasBeenSet = true; m_awsKmsKeyId = value; }
/**
* <p>An AWS KMS key that is used to encrypt the connection password. </p> <p>If
* connection password protection is enabled, the caller of
* <code>CreateConnection</code> and <code>UpdateConnection</code> needs at least
* <code>kms:Encrypt</code> permission on the specified AWS KMS key, to encrypt
* passwords before storing them in the Data Catalog. </p> <p>You can set the
* decrypt permission to enable or restrict access on the password key according to
* your security requirements.</p>
*/
inline void SetAwsKmsKeyId(Aws::String&& value) { m_awsKmsKeyIdHasBeenSet = true; m_awsKmsKeyId = std::move(value); }
/**
* <p>An AWS KMS key that is used to encrypt the connection password. </p> <p>If
* connection password protection is enabled, the caller of
* <code>CreateConnection</code> and <code>UpdateConnection</code> needs at least
* <code>kms:Encrypt</code> permission on the specified AWS KMS key, to encrypt
* passwords before storing them in the Data Catalog. </p> <p>You can set the
* decrypt permission to enable or restrict access on the password key according to
* your security requirements.</p>
*/
inline void SetAwsKmsKeyId(const char* value) { m_awsKmsKeyIdHasBeenSet = true; m_awsKmsKeyId.assign(value); }
/**
* <p>An AWS KMS key that is used to encrypt the connection password. </p> <p>If
* connection password protection is enabled, the caller of
* <code>CreateConnection</code> and <code>UpdateConnection</code> needs at least
* <code>kms:Encrypt</code> permission on the specified AWS KMS key, to encrypt
* passwords before storing them in the Data Catalog. </p> <p>You can set the
* decrypt permission to enable or restrict access on the password key according to
* your security requirements.</p>
*/
inline ConnectionPasswordEncryption& WithAwsKmsKeyId(const Aws::String& value) { SetAwsKmsKeyId(value); return *this;}
/**
* <p>An AWS KMS key that is used to encrypt the connection password. </p> <p>If
* connection password protection is enabled, the caller of
* <code>CreateConnection</code> and <code>UpdateConnection</code> needs at least
* <code>kms:Encrypt</code> permission on the specified AWS KMS key, to encrypt
* passwords before storing them in the Data Catalog. </p> <p>You can set the
* decrypt permission to enable or restrict access on the password key according to
* your security requirements.</p>
*/
inline ConnectionPasswordEncryption& WithAwsKmsKeyId(Aws::String&& value) { SetAwsKmsKeyId(std::move(value)); return *this;}
/**
* <p>An AWS KMS key that is used to encrypt the connection password. </p> <p>If
* connection password protection is enabled, the caller of
* <code>CreateConnection</code> and <code>UpdateConnection</code> needs at least
* <code>kms:Encrypt</code> permission on the specified AWS KMS key, to encrypt
* passwords before storing them in the Data Catalog. </p> <p>You can set the
* decrypt permission to enable or restrict access on the password key according to
* your security requirements.</p>
*/
inline ConnectionPasswordEncryption& WithAwsKmsKeyId(const char* value) { SetAwsKmsKeyId(value); return *this;}
private:
bool m_returnConnectionPasswordEncrypted;
bool m_returnConnectionPasswordEncryptedHasBeenSet;
Aws::String m_awsKmsKeyId;
bool m_awsKmsKeyIdHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Glue
{
namespace Model
{
enum class ConnectionPropertyKey
{
NOT_SET,
HOST,
PORT,
USERNAME,
PASSWORD,
ENCRYPTED_PASSWORD,
JDBC_DRIVER_JAR_URI,
JDBC_DRIVER_CLASS_NAME,
JDBC_ENGINE,
JDBC_ENGINE_VERSION,
CONFIG_FILES,
INSTANCE_ID,
JDBC_CONNECTION_URL,
JDBC_ENFORCE_SSL,
CUSTOM_JDBC_CERT,
SKIP_CUSTOM_JDBC_CERT_VALIDATION,
CUSTOM_JDBC_CERT_STRING,
CONNECTION_URL,
KAFKA_BOOTSTRAP_SERVERS,
KAFKA_SSL_ENABLED,
KAFKA_CUSTOM_CERT,
KAFKA_SKIP_CUSTOM_CERT_VALIDATION
};
namespace ConnectionPropertyKeyMapper
{
AWS_GLUE_API ConnectionPropertyKey GetConnectionPropertyKeyForName(const Aws::String& name);
AWS_GLUE_API Aws::String GetNameForConnectionPropertyKey(ConnectionPropertyKey value);
} // namespace ConnectionPropertyKeyMapper
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Glue
{
namespace Model
{
enum class ConnectionType
{
NOT_SET,
JDBC,
SFTP,
MONGODB,
KAFKA,
NETWORK
};
namespace ConnectionTypeMapper
{
AWS_GLUE_API ConnectionType GetConnectionTypeForName(const Aws::String& name);
AWS_GLUE_API Aws::String GetNameForConnectionType(ConnectionType value);
} // namespace ConnectionTypeMapper
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,94 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.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 Glue
{
namespace Model
{
/**
* <p>Specifies the connections used by a job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ConnectionsList">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API ConnectionsList
{
public:
ConnectionsList();
ConnectionsList(Aws::Utils::Json::JsonView jsonValue);
ConnectionsList& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A list of connections used by the job.</p>
*/
inline const Aws::Vector<Aws::String>& GetConnections() const{ return m_connections; }
/**
* <p>A list of connections used by the job.</p>
*/
inline bool ConnectionsHasBeenSet() const { return m_connectionsHasBeenSet; }
/**
* <p>A list of connections used by the job.</p>
*/
inline void SetConnections(const Aws::Vector<Aws::String>& value) { m_connectionsHasBeenSet = true; m_connections = value; }
/**
* <p>A list of connections used by the job.</p>
*/
inline void SetConnections(Aws::Vector<Aws::String>&& value) { m_connectionsHasBeenSet = true; m_connections = std::move(value); }
/**
* <p>A list of connections used by the job.</p>
*/
inline ConnectionsList& WithConnections(const Aws::Vector<Aws::String>& value) { SetConnections(value); return *this;}
/**
* <p>A list of connections used by the job.</p>
*/
inline ConnectionsList& WithConnections(Aws::Vector<Aws::String>&& value) { SetConnections(std::move(value)); return *this;}
/**
* <p>A list of connections used by the job.</p>
*/
inline ConnectionsList& AddConnections(const Aws::String& value) { m_connectionsHasBeenSet = true; m_connections.push_back(value); return *this; }
/**
* <p>A list of connections used by the job.</p>
*/
inline ConnectionsList& AddConnections(Aws::String&& value) { m_connectionsHasBeenSet = true; m_connections.push_back(std::move(value)); return *this; }
/**
* <p>A list of connections used by the job.</p>
*/
inline ConnectionsList& AddConnections(const char* value) { m_connectionsHasBeenSet = true; m_connections.push_back(value); return *this; }
private:
Aws::Vector<Aws::String> m_connections;
bool m_connectionsHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,280 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/model/CrawlState.h>
#include <aws/core/utils/DateTime.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 Glue
{
namespace Model
{
/**
* <p>The details of a crawl in the workflow.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/Crawl">AWS API
* Reference</a></p>
*/
class AWS_GLUE_API Crawl
{
public:
Crawl();
Crawl(Aws::Utils::Json::JsonView jsonValue);
Crawl& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The state of the crawler.</p>
*/
inline const CrawlState& GetState() const{ return m_state; }
/**
* <p>The state of the crawler.</p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The state of the crawler.</p>
*/
inline void SetState(const CrawlState& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The state of the crawler.</p>
*/
inline void SetState(CrawlState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The state of the crawler.</p>
*/
inline Crawl& WithState(const CrawlState& value) { SetState(value); return *this;}
/**
* <p>The state of the crawler.</p>
*/
inline Crawl& WithState(CrawlState&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The date and time on which the crawl started.</p>
*/
inline const Aws::Utils::DateTime& GetStartedOn() const{ return m_startedOn; }
/**
* <p>The date and time on which the crawl started.</p>
*/
inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; }
/**
* <p>The date and time on which the crawl started.</p>
*/
inline void SetStartedOn(const Aws::Utils::DateTime& value) { m_startedOnHasBeenSet = true; m_startedOn = value; }
/**
* <p>The date and time on which the crawl started.</p>
*/
inline void SetStartedOn(Aws::Utils::DateTime&& value) { m_startedOnHasBeenSet = true; m_startedOn = std::move(value); }
/**
* <p>The date and time on which the crawl started.</p>
*/
inline Crawl& WithStartedOn(const Aws::Utils::DateTime& value) { SetStartedOn(value); return *this;}
/**
* <p>The date and time on which the crawl started.</p>
*/
inline Crawl& WithStartedOn(Aws::Utils::DateTime&& value) { SetStartedOn(std::move(value)); return *this;}
/**
* <p>The date and time on which the crawl completed.</p>
*/
inline const Aws::Utils::DateTime& GetCompletedOn() const{ return m_completedOn; }
/**
* <p>The date and time on which the crawl completed.</p>
*/
inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
/**
* <p>The date and time on which the crawl completed.</p>
*/
inline void SetCompletedOn(const Aws::Utils::DateTime& value) { m_completedOnHasBeenSet = true; m_completedOn = value; }
/**
* <p>The date and time on which the crawl completed.</p>
*/
inline void SetCompletedOn(Aws::Utils::DateTime&& value) { m_completedOnHasBeenSet = true; m_completedOn = std::move(value); }
/**
* <p>The date and time on which the crawl completed.</p>
*/
inline Crawl& WithCompletedOn(const Aws::Utils::DateTime& value) { SetCompletedOn(value); return *this;}
/**
* <p>The date and time on which the crawl completed.</p>
*/
inline Crawl& WithCompletedOn(Aws::Utils::DateTime&& value) { SetCompletedOn(std::move(value)); return *this;}
/**
* <p>The error message associated with the crawl.</p>
*/
inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
/**
* <p>The error message associated with the crawl.</p>
*/
inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
/**
* <p>The error message associated with the crawl.</p>
*/
inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
/**
* <p>The error message associated with the crawl.</p>
*/
inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
/**
* <p>The error message associated with the crawl.</p>
*/
inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
/**
* <p>The error message associated with the crawl.</p>
*/
inline Crawl& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
/**
* <p>The error message associated with the crawl.</p>
*/
inline Crawl& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
/**
* <p>The error message associated with the crawl.</p>
*/
inline Crawl& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
/**
* <p>The log group associated with the crawl.</p>
*/
inline const Aws::String& GetLogGroup() const{ return m_logGroup; }
/**
* <p>The log group associated with the crawl.</p>
*/
inline bool LogGroupHasBeenSet() const { return m_logGroupHasBeenSet; }
/**
* <p>The log group associated with the crawl.</p>
*/
inline void SetLogGroup(const Aws::String& value) { m_logGroupHasBeenSet = true; m_logGroup = value; }
/**
* <p>The log group associated with the crawl.</p>
*/
inline void SetLogGroup(Aws::String&& value) { m_logGroupHasBeenSet = true; m_logGroup = std::move(value); }
/**
* <p>The log group associated with the crawl.</p>
*/
inline void SetLogGroup(const char* value) { m_logGroupHasBeenSet = true; m_logGroup.assign(value); }
/**
* <p>The log group associated with the crawl.</p>
*/
inline Crawl& WithLogGroup(const Aws::String& value) { SetLogGroup(value); return *this;}
/**
* <p>The log group associated with the crawl.</p>
*/
inline Crawl& WithLogGroup(Aws::String&& value) { SetLogGroup(std::move(value)); return *this;}
/**
* <p>The log group associated with the crawl.</p>
*/
inline Crawl& WithLogGroup(const char* value) { SetLogGroup(value); return *this;}
/**
* <p>The log stream associated with the crawl.</p>
*/
inline const Aws::String& GetLogStream() const{ return m_logStream; }
/**
* <p>The log stream associated with the crawl.</p>
*/
inline bool LogStreamHasBeenSet() const { return m_logStreamHasBeenSet; }
/**
* <p>The log stream associated with the crawl.</p>
*/
inline void SetLogStream(const Aws::String& value) { m_logStreamHasBeenSet = true; m_logStream = value; }
/**
* <p>The log stream associated with the crawl.</p>
*/
inline void SetLogStream(Aws::String&& value) { m_logStreamHasBeenSet = true; m_logStream = std::move(value); }
/**
* <p>The log stream associated with the crawl.</p>
*/
inline void SetLogStream(const char* value) { m_logStreamHasBeenSet = true; m_logStream.assign(value); }
/**
* <p>The log stream associated with the crawl.</p>
*/
inline Crawl& WithLogStream(const Aws::String& value) { SetLogStream(value); return *this;}
/**
* <p>The log stream associated with the crawl.</p>
*/
inline Crawl& WithLogStream(Aws::String&& value) { SetLogStream(std::move(value)); return *this;}
/**
* <p>The log stream associated with the crawl.</p>
*/
inline Crawl& WithLogStream(const char* value) { SetLogStream(value); return *this;}
private:
CrawlState m_state;
bool m_stateHasBeenSet;
Aws::Utils::DateTime m_startedOn;
bool m_startedOnHasBeenSet;
Aws::Utils::DateTime m_completedOn;
bool m_completedOnHasBeenSet;
Aws::String m_errorMessage;
bool m_errorMessageHasBeenSet;
Aws::String m_logGroup;
bool m_logGroupHasBeenSet;
Aws::String m_logStream;
bool m_logStreamHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Glue
{
namespace Model
{
enum class CrawlState
{
NOT_SET,
RUNNING,
CANCELLING,
CANCELLED,
SUCCEEDED,
FAILED
};
namespace CrawlStateMapper
{
AWS_GLUE_API CrawlState GetCrawlStateForName(const Aws::String& name);
AWS_GLUE_API Aws::String GetNameForCrawlState(CrawlState value);
} // namespace CrawlStateMapper
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,756 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glue/model/CrawlerTargets.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glue/model/SchemaChangePolicy.h>
#include <aws/glue/model/CrawlerState.h>
#include <aws/glue/model/Schedule.h>
#include <aws/core/utils/DateTime.h>
#include <aws/glue/model/LastCrawlInfo.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
/**
* <p>Specifies a crawler program that examines a data source and uses classifiers
* to try to determine its schema. If successful, the crawler records metadata
* concerning the data source in the AWS Glue Data Catalog.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/Crawler">AWS API
* Reference</a></p>
*/
class AWS_GLUE_API Crawler
{
public:
Crawler();
Crawler(Aws::Utils::Json::JsonView jsonValue);
Crawler& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the crawler.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the crawler.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the crawler.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the crawler.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the crawler.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the crawler.</p>
*/
inline Crawler& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the crawler.</p>
*/
inline Crawler& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the crawler.</p>
*/
inline Crawler& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of an IAM role that's used to access customer
* resources, such as Amazon Simple Storage Service (Amazon S3) data.</p>
*/
inline const Aws::String& GetRole() const{ return m_role; }
/**
* <p>The Amazon Resource Name (ARN) of an IAM role that's used to access customer
* resources, such as Amazon Simple Storage Service (Amazon S3) data.</p>
*/
inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of an IAM role that's used to access customer
* resources, such as Amazon Simple Storage Service (Amazon S3) data.</p>
*/
inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
/**
* <p>The Amazon Resource Name (ARN) of an IAM role that's used to access customer
* resources, such as Amazon Simple Storage Service (Amazon S3) data.</p>
*/
inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of an IAM role that's used to access customer
* resources, such as Amazon Simple Storage Service (Amazon S3) data.</p>
*/
inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of an IAM role that's used to access customer
* resources, such as Amazon Simple Storage Service (Amazon S3) data.</p>
*/
inline Crawler& WithRole(const Aws::String& value) { SetRole(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of an IAM role that's used to access customer
* resources, such as Amazon Simple Storage Service (Amazon S3) data.</p>
*/
inline Crawler& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of an IAM role that's used to access customer
* resources, such as Amazon Simple Storage Service (Amazon S3) data.</p>
*/
inline Crawler& WithRole(const char* value) { SetRole(value); return *this;}
/**
* <p>A collection of targets to crawl.</p>
*/
inline const CrawlerTargets& GetTargets() const{ return m_targets; }
/**
* <p>A collection of targets to crawl.</p>
*/
inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
/**
* <p>A collection of targets to crawl.</p>
*/
inline void SetTargets(const CrawlerTargets& value) { m_targetsHasBeenSet = true; m_targets = value; }
/**
* <p>A collection of targets to crawl.</p>
*/
inline void SetTargets(CrawlerTargets&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
/**
* <p>A collection of targets to crawl.</p>
*/
inline Crawler& WithTargets(const CrawlerTargets& value) { SetTargets(value); return *this;}
/**
* <p>A collection of targets to crawl.</p>
*/
inline Crawler& WithTargets(CrawlerTargets&& value) { SetTargets(std::move(value)); return *this;}
/**
* <p>The name of the database in which the crawler's output is stored.</p>
*/
inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
/**
* <p>The name of the database in which the crawler's output is stored.</p>
*/
inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
/**
* <p>The name of the database in which the crawler's output is stored.</p>
*/
inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
/**
* <p>The name of the database in which the crawler's output is stored.</p>
*/
inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
/**
* <p>The name of the database in which the crawler's output is stored.</p>
*/
inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
/**
* <p>The name of the database in which the crawler's output is stored.</p>
*/
inline Crawler& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
/**
* <p>The name of the database in which the crawler's output is stored.</p>
*/
inline Crawler& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
/**
* <p>The name of the database in which the crawler's output is stored.</p>
*/
inline Crawler& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
/**
* <p>A description of the crawler.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the crawler.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description of the crawler.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description of the crawler.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description of the crawler.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description of the crawler.</p>
*/
inline Crawler& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the crawler.</p>
*/
inline Crawler& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the crawler.</p>
*/
inline Crawler& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>A list of UTF-8 strings that specify the custom classifiers that are
* associated with the crawler.</p>
*/
inline const Aws::Vector<Aws::String>& GetClassifiers() const{ return m_classifiers; }
/**
* <p>A list of UTF-8 strings that specify the custom classifiers that are
* associated with the crawler.</p>
*/
inline bool ClassifiersHasBeenSet() const { return m_classifiersHasBeenSet; }
/**
* <p>A list of UTF-8 strings that specify the custom classifiers that are
* associated with the crawler.</p>
*/
inline void SetClassifiers(const Aws::Vector<Aws::String>& value) { m_classifiersHasBeenSet = true; m_classifiers = value; }
/**
* <p>A list of UTF-8 strings that specify the custom classifiers that are
* associated with the crawler.</p>
*/
inline void SetClassifiers(Aws::Vector<Aws::String>&& value) { m_classifiersHasBeenSet = true; m_classifiers = std::move(value); }
/**
* <p>A list of UTF-8 strings that specify the custom classifiers that are
* associated with the crawler.</p>
*/
inline Crawler& WithClassifiers(const Aws::Vector<Aws::String>& value) { SetClassifiers(value); return *this;}
/**
* <p>A list of UTF-8 strings that specify the custom classifiers that are
* associated with the crawler.</p>
*/
inline Crawler& WithClassifiers(Aws::Vector<Aws::String>&& value) { SetClassifiers(std::move(value)); return *this;}
/**
* <p>A list of UTF-8 strings that specify the custom classifiers that are
* associated with the crawler.</p>
*/
inline Crawler& AddClassifiers(const Aws::String& value) { m_classifiersHasBeenSet = true; m_classifiers.push_back(value); return *this; }
/**
* <p>A list of UTF-8 strings that specify the custom classifiers that are
* associated with the crawler.</p>
*/
inline Crawler& AddClassifiers(Aws::String&& value) { m_classifiersHasBeenSet = true; m_classifiers.push_back(std::move(value)); return *this; }
/**
* <p>A list of UTF-8 strings that specify the custom classifiers that are
* associated with the crawler.</p>
*/
inline Crawler& AddClassifiers(const char* value) { m_classifiersHasBeenSet = true; m_classifiers.push_back(value); return *this; }
/**
* <p>The policy that specifies update and delete behaviors for the crawler.</p>
*/
inline const SchemaChangePolicy& GetSchemaChangePolicy() const{ return m_schemaChangePolicy; }
/**
* <p>The policy that specifies update and delete behaviors for the crawler.</p>
*/
inline bool SchemaChangePolicyHasBeenSet() const { return m_schemaChangePolicyHasBeenSet; }
/**
* <p>The policy that specifies update and delete behaviors for the crawler.</p>
*/
inline void SetSchemaChangePolicy(const SchemaChangePolicy& value) { m_schemaChangePolicyHasBeenSet = true; m_schemaChangePolicy = value; }
/**
* <p>The policy that specifies update and delete behaviors for the crawler.</p>
*/
inline void SetSchemaChangePolicy(SchemaChangePolicy&& value) { m_schemaChangePolicyHasBeenSet = true; m_schemaChangePolicy = std::move(value); }
/**
* <p>The policy that specifies update and delete behaviors for the crawler.</p>
*/
inline Crawler& WithSchemaChangePolicy(const SchemaChangePolicy& value) { SetSchemaChangePolicy(value); return *this;}
/**
* <p>The policy that specifies update and delete behaviors for the crawler.</p>
*/
inline Crawler& WithSchemaChangePolicy(SchemaChangePolicy&& value) { SetSchemaChangePolicy(std::move(value)); return *this;}
/**
* <p>Indicates whether the crawler is running, or whether a run is pending.</p>
*/
inline const CrawlerState& GetState() const{ return m_state; }
/**
* <p>Indicates whether the crawler is running, or whether a run is pending.</p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>Indicates whether the crawler is running, or whether a run is pending.</p>
*/
inline void SetState(const CrawlerState& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>Indicates whether the crawler is running, or whether a run is pending.</p>
*/
inline void SetState(CrawlerState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>Indicates whether the crawler is running, or whether a run is pending.</p>
*/
inline Crawler& WithState(const CrawlerState& value) { SetState(value); return *this;}
/**
* <p>Indicates whether the crawler is running, or whether a run is pending.</p>
*/
inline Crawler& WithState(CrawlerState&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The prefix added to the names of tables that are created.</p>
*/
inline const Aws::String& GetTablePrefix() const{ return m_tablePrefix; }
/**
* <p>The prefix added to the names of tables that are created.</p>
*/
inline bool TablePrefixHasBeenSet() const { return m_tablePrefixHasBeenSet; }
/**
* <p>The prefix added to the names of tables that are created.</p>
*/
inline void SetTablePrefix(const Aws::String& value) { m_tablePrefixHasBeenSet = true; m_tablePrefix = value; }
/**
* <p>The prefix added to the names of tables that are created.</p>
*/
inline void SetTablePrefix(Aws::String&& value) { m_tablePrefixHasBeenSet = true; m_tablePrefix = std::move(value); }
/**
* <p>The prefix added to the names of tables that are created.</p>
*/
inline void SetTablePrefix(const char* value) { m_tablePrefixHasBeenSet = true; m_tablePrefix.assign(value); }
/**
* <p>The prefix added to the names of tables that are created.</p>
*/
inline Crawler& WithTablePrefix(const Aws::String& value) { SetTablePrefix(value); return *this;}
/**
* <p>The prefix added to the names of tables that are created.</p>
*/
inline Crawler& WithTablePrefix(Aws::String&& value) { SetTablePrefix(std::move(value)); return *this;}
/**
* <p>The prefix added to the names of tables that are created.</p>
*/
inline Crawler& WithTablePrefix(const char* value) { SetTablePrefix(value); return *this;}
/**
* <p>For scheduled crawlers, the schedule when the crawler runs.</p>
*/
inline const Schedule& GetSchedule() const{ return m_schedule; }
/**
* <p>For scheduled crawlers, the schedule when the crawler runs.</p>
*/
inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
/**
* <p>For scheduled crawlers, the schedule when the crawler runs.</p>
*/
inline void SetSchedule(const Schedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
/**
* <p>For scheduled crawlers, the schedule when the crawler runs.</p>
*/
inline void SetSchedule(Schedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
/**
* <p>For scheduled crawlers, the schedule when the crawler runs.</p>
*/
inline Crawler& WithSchedule(const Schedule& value) { SetSchedule(value); return *this;}
/**
* <p>For scheduled crawlers, the schedule when the crawler runs.</p>
*/
inline Crawler& WithSchedule(Schedule&& value) { SetSchedule(std::move(value)); return *this;}
/**
* <p>If the crawler is running, contains the total time elapsed since the last
* crawl began.</p>
*/
inline long long GetCrawlElapsedTime() const{ return m_crawlElapsedTime; }
/**
* <p>If the crawler is running, contains the total time elapsed since the last
* crawl began.</p>
*/
inline bool CrawlElapsedTimeHasBeenSet() const { return m_crawlElapsedTimeHasBeenSet; }
/**
* <p>If the crawler is running, contains the total time elapsed since the last
* crawl began.</p>
*/
inline void SetCrawlElapsedTime(long long value) { m_crawlElapsedTimeHasBeenSet = true; m_crawlElapsedTime = value; }
/**
* <p>If the crawler is running, contains the total time elapsed since the last
* crawl began.</p>
*/
inline Crawler& WithCrawlElapsedTime(long long value) { SetCrawlElapsedTime(value); return *this;}
/**
* <p>The time that the crawler was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>The time that the crawler was created.</p>
*/
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
/**
* <p>The time that the crawler was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
/**
* <p>The time that the crawler was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
/**
* <p>The time that the crawler was created.</p>
*/
inline Crawler& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>The time that the crawler was created.</p>
*/
inline Crawler& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>The time that the crawler was last updated.</p>
*/
inline const Aws::Utils::DateTime& GetLastUpdated() const{ return m_lastUpdated; }
/**
* <p>The time that the crawler was last updated.</p>
*/
inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
/**
* <p>The time that the crawler was last updated.</p>
*/
inline void SetLastUpdated(const Aws::Utils::DateTime& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = value; }
/**
* <p>The time that the crawler was last updated.</p>
*/
inline void SetLastUpdated(Aws::Utils::DateTime&& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = std::move(value); }
/**
* <p>The time that the crawler was last updated.</p>
*/
inline Crawler& WithLastUpdated(const Aws::Utils::DateTime& value) { SetLastUpdated(value); return *this;}
/**
* <p>The time that the crawler was last updated.</p>
*/
inline Crawler& WithLastUpdated(Aws::Utils::DateTime&& value) { SetLastUpdated(std::move(value)); return *this;}
/**
* <p>The status of the last crawl, and potentially error information if an error
* occurred.</p>
*/
inline const LastCrawlInfo& GetLastCrawl() const{ return m_lastCrawl; }
/**
* <p>The status of the last crawl, and potentially error information if an error
* occurred.</p>
*/
inline bool LastCrawlHasBeenSet() const { return m_lastCrawlHasBeenSet; }
/**
* <p>The status of the last crawl, and potentially error information if an error
* occurred.</p>
*/
inline void SetLastCrawl(const LastCrawlInfo& value) { m_lastCrawlHasBeenSet = true; m_lastCrawl = value; }
/**
* <p>The status of the last crawl, and potentially error information if an error
* occurred.</p>
*/
inline void SetLastCrawl(LastCrawlInfo&& value) { m_lastCrawlHasBeenSet = true; m_lastCrawl = std::move(value); }
/**
* <p>The status of the last crawl, and potentially error information if an error
* occurred.</p>
*/
inline Crawler& WithLastCrawl(const LastCrawlInfo& value) { SetLastCrawl(value); return *this;}
/**
* <p>The status of the last crawl, and potentially error information if an error
* occurred.</p>
*/
inline Crawler& WithLastCrawl(LastCrawlInfo&& value) { SetLastCrawl(std::move(value)); return *this;}
/**
* <p>The version of the crawler.</p>
*/
inline long long GetVersion() const{ return m_version; }
/**
* <p>The version of the crawler.</p>
*/
inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
/**
* <p>The version of the crawler.</p>
*/
inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
/**
* <p>The version of the crawler.</p>
*/
inline Crawler& WithVersion(long long value) { SetVersion(value); return *this;}
/**
* <p>Crawler configuration information. This versioned JSON string allows users to
* specify aspects of a crawler's behavior. For more information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html">Configuring
* a Crawler</a>.</p>
*/
inline const Aws::String& GetConfiguration() const{ return m_configuration; }
/**
* <p>Crawler configuration information. This versioned JSON string allows users to
* specify aspects of a crawler's behavior. For more information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html">Configuring
* a Crawler</a>.</p>
*/
inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
/**
* <p>Crawler configuration information. This versioned JSON string allows users to
* specify aspects of a crawler's behavior. For more information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html">Configuring
* a Crawler</a>.</p>
*/
inline void SetConfiguration(const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration = value; }
/**
* <p>Crawler configuration information. This versioned JSON string allows users to
* specify aspects of a crawler's behavior. For more information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html">Configuring
* a Crawler</a>.</p>
*/
inline void SetConfiguration(Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
/**
* <p>Crawler configuration information. This versioned JSON string allows users to
* specify aspects of a crawler's behavior. For more information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html">Configuring
* a Crawler</a>.</p>
*/
inline void SetConfiguration(const char* value) { m_configurationHasBeenSet = true; m_configuration.assign(value); }
/**
* <p>Crawler configuration information. This versioned JSON string allows users to
* specify aspects of a crawler's behavior. For more information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html">Configuring
* a Crawler</a>.</p>
*/
inline Crawler& WithConfiguration(const Aws::String& value) { SetConfiguration(value); return *this;}
/**
* <p>Crawler configuration information. This versioned JSON string allows users to
* specify aspects of a crawler's behavior. For more information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html">Configuring
* a Crawler</a>.</p>
*/
inline Crawler& WithConfiguration(Aws::String&& value) { SetConfiguration(std::move(value)); return *this;}
/**
* <p>Crawler configuration information. This versioned JSON string allows users to
* specify aspects of a crawler's behavior. For more information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html">Configuring
* a Crawler</a>.</p>
*/
inline Crawler& WithConfiguration(const char* value) { SetConfiguration(value); return *this;}
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used by
* this crawler.</p>
*/
inline const Aws::String& GetCrawlerSecurityConfiguration() const{ return m_crawlerSecurityConfiguration; }
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used by
* this crawler.</p>
*/
inline bool CrawlerSecurityConfigurationHasBeenSet() const { return m_crawlerSecurityConfigurationHasBeenSet; }
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used by
* this crawler.</p>
*/
inline void SetCrawlerSecurityConfiguration(const Aws::String& value) { m_crawlerSecurityConfigurationHasBeenSet = true; m_crawlerSecurityConfiguration = value; }
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used by
* this crawler.</p>
*/
inline void SetCrawlerSecurityConfiguration(Aws::String&& value) { m_crawlerSecurityConfigurationHasBeenSet = true; m_crawlerSecurityConfiguration = std::move(value); }
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used by
* this crawler.</p>
*/
inline void SetCrawlerSecurityConfiguration(const char* value) { m_crawlerSecurityConfigurationHasBeenSet = true; m_crawlerSecurityConfiguration.assign(value); }
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used by
* this crawler.</p>
*/
inline Crawler& WithCrawlerSecurityConfiguration(const Aws::String& value) { SetCrawlerSecurityConfiguration(value); return *this;}
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used by
* this crawler.</p>
*/
inline Crawler& WithCrawlerSecurityConfiguration(Aws::String&& value) { SetCrawlerSecurityConfiguration(std::move(value)); return *this;}
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used by
* this crawler.</p>
*/
inline Crawler& WithCrawlerSecurityConfiguration(const char* value) { SetCrawlerSecurityConfiguration(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_role;
bool m_roleHasBeenSet;
CrawlerTargets m_targets;
bool m_targetsHasBeenSet;
Aws::String m_databaseName;
bool m_databaseNameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::Vector<Aws::String> m_classifiers;
bool m_classifiersHasBeenSet;
SchemaChangePolicy m_schemaChangePolicy;
bool m_schemaChangePolicyHasBeenSet;
CrawlerState m_state;
bool m_stateHasBeenSet;
Aws::String m_tablePrefix;
bool m_tablePrefixHasBeenSet;
Schedule m_schedule;
bool m_scheduleHasBeenSet;
long long m_crawlElapsedTime;
bool m_crawlElapsedTimeHasBeenSet;
Aws::Utils::DateTime m_creationTime;
bool m_creationTimeHasBeenSet;
Aws::Utils::DateTime m_lastUpdated;
bool m_lastUpdatedHasBeenSet;
LastCrawlInfo m_lastCrawl;
bool m_lastCrawlHasBeenSet;
long long m_version;
bool m_versionHasBeenSet;
Aws::String m_configuration;
bool m_configurationHasBeenSet;
Aws::String m_crawlerSecurityConfiguration;
bool m_crawlerSecurityConfigurationHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,260 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_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 Glue
{
namespace Model
{
/**
* <p>Metrics for a specified crawler.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CrawlerMetrics">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API CrawlerMetrics
{
public:
CrawlerMetrics();
CrawlerMetrics(Aws::Utils::Json::JsonView jsonValue);
CrawlerMetrics& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the crawler.</p>
*/
inline const Aws::String& GetCrawlerName() const{ return m_crawlerName; }
/**
* <p>The name of the crawler.</p>
*/
inline bool CrawlerNameHasBeenSet() const { return m_crawlerNameHasBeenSet; }
/**
* <p>The name of the crawler.</p>
*/
inline void SetCrawlerName(const Aws::String& value) { m_crawlerNameHasBeenSet = true; m_crawlerName = value; }
/**
* <p>The name of the crawler.</p>
*/
inline void SetCrawlerName(Aws::String&& value) { m_crawlerNameHasBeenSet = true; m_crawlerName = std::move(value); }
/**
* <p>The name of the crawler.</p>
*/
inline void SetCrawlerName(const char* value) { m_crawlerNameHasBeenSet = true; m_crawlerName.assign(value); }
/**
* <p>The name of the crawler.</p>
*/
inline CrawlerMetrics& WithCrawlerName(const Aws::String& value) { SetCrawlerName(value); return *this;}
/**
* <p>The name of the crawler.</p>
*/
inline CrawlerMetrics& WithCrawlerName(Aws::String&& value) { SetCrawlerName(std::move(value)); return *this;}
/**
* <p>The name of the crawler.</p>
*/
inline CrawlerMetrics& WithCrawlerName(const char* value) { SetCrawlerName(value); return *this;}
/**
* <p>The estimated time left to complete a running crawl.</p>
*/
inline double GetTimeLeftSeconds() const{ return m_timeLeftSeconds; }
/**
* <p>The estimated time left to complete a running crawl.</p>
*/
inline bool TimeLeftSecondsHasBeenSet() const { return m_timeLeftSecondsHasBeenSet; }
/**
* <p>The estimated time left to complete a running crawl.</p>
*/
inline void SetTimeLeftSeconds(double value) { m_timeLeftSecondsHasBeenSet = true; m_timeLeftSeconds = value; }
/**
* <p>The estimated time left to complete a running crawl.</p>
*/
inline CrawlerMetrics& WithTimeLeftSeconds(double value) { SetTimeLeftSeconds(value); return *this;}
/**
* <p>True if the crawler is still estimating how long it will take to complete
* this run.</p>
*/
inline bool GetStillEstimating() const{ return m_stillEstimating; }
/**
* <p>True if the crawler is still estimating how long it will take to complete
* this run.</p>
*/
inline bool StillEstimatingHasBeenSet() const { return m_stillEstimatingHasBeenSet; }
/**
* <p>True if the crawler is still estimating how long it will take to complete
* this run.</p>
*/
inline void SetStillEstimating(bool value) { m_stillEstimatingHasBeenSet = true; m_stillEstimating = value; }
/**
* <p>True if the crawler is still estimating how long it will take to complete
* this run.</p>
*/
inline CrawlerMetrics& WithStillEstimating(bool value) { SetStillEstimating(value); return *this;}
/**
* <p>The duration of the crawler's most recent run, in seconds.</p>
*/
inline double GetLastRuntimeSeconds() const{ return m_lastRuntimeSeconds; }
/**
* <p>The duration of the crawler's most recent run, in seconds.</p>
*/
inline bool LastRuntimeSecondsHasBeenSet() const { return m_lastRuntimeSecondsHasBeenSet; }
/**
* <p>The duration of the crawler's most recent run, in seconds.</p>
*/
inline void SetLastRuntimeSeconds(double value) { m_lastRuntimeSecondsHasBeenSet = true; m_lastRuntimeSeconds = value; }
/**
* <p>The duration of the crawler's most recent run, in seconds.</p>
*/
inline CrawlerMetrics& WithLastRuntimeSeconds(double value) { SetLastRuntimeSeconds(value); return *this;}
/**
* <p>The median duration of this crawler's runs, in seconds.</p>
*/
inline double GetMedianRuntimeSeconds() const{ return m_medianRuntimeSeconds; }
/**
* <p>The median duration of this crawler's runs, in seconds.</p>
*/
inline bool MedianRuntimeSecondsHasBeenSet() const { return m_medianRuntimeSecondsHasBeenSet; }
/**
* <p>The median duration of this crawler's runs, in seconds.</p>
*/
inline void SetMedianRuntimeSeconds(double value) { m_medianRuntimeSecondsHasBeenSet = true; m_medianRuntimeSeconds = value; }
/**
* <p>The median duration of this crawler's runs, in seconds.</p>
*/
inline CrawlerMetrics& WithMedianRuntimeSeconds(double value) { SetMedianRuntimeSeconds(value); return *this;}
/**
* <p>The number of tables created by this crawler.</p>
*/
inline int GetTablesCreated() const{ return m_tablesCreated; }
/**
* <p>The number of tables created by this crawler.</p>
*/
inline bool TablesCreatedHasBeenSet() const { return m_tablesCreatedHasBeenSet; }
/**
* <p>The number of tables created by this crawler.</p>
*/
inline void SetTablesCreated(int value) { m_tablesCreatedHasBeenSet = true; m_tablesCreated = value; }
/**
* <p>The number of tables created by this crawler.</p>
*/
inline CrawlerMetrics& WithTablesCreated(int value) { SetTablesCreated(value); return *this;}
/**
* <p>The number of tables updated by this crawler.</p>
*/
inline int GetTablesUpdated() const{ return m_tablesUpdated; }
/**
* <p>The number of tables updated by this crawler.</p>
*/
inline bool TablesUpdatedHasBeenSet() const { return m_tablesUpdatedHasBeenSet; }
/**
* <p>The number of tables updated by this crawler.</p>
*/
inline void SetTablesUpdated(int value) { m_tablesUpdatedHasBeenSet = true; m_tablesUpdated = value; }
/**
* <p>The number of tables updated by this crawler.</p>
*/
inline CrawlerMetrics& WithTablesUpdated(int value) { SetTablesUpdated(value); return *this;}
/**
* <p>The number of tables deleted by this crawler.</p>
*/
inline int GetTablesDeleted() const{ return m_tablesDeleted; }
/**
* <p>The number of tables deleted by this crawler.</p>
*/
inline bool TablesDeletedHasBeenSet() const { return m_tablesDeletedHasBeenSet; }
/**
* <p>The number of tables deleted by this crawler.</p>
*/
inline void SetTablesDeleted(int value) { m_tablesDeletedHasBeenSet = true; m_tablesDeleted = value; }
/**
* <p>The number of tables deleted by this crawler.</p>
*/
inline CrawlerMetrics& WithTablesDeleted(int value) { SetTablesDeleted(value); return *this;}
private:
Aws::String m_crawlerName;
bool m_crawlerNameHasBeenSet;
double m_timeLeftSeconds;
bool m_timeLeftSecondsHasBeenSet;
bool m_stillEstimating;
bool m_stillEstimatingHasBeenSet;
double m_lastRuntimeSeconds;
bool m_lastRuntimeSecondsHasBeenSet;
double m_medianRuntimeSeconds;
bool m_medianRuntimeSecondsHasBeenSet;
int m_tablesCreated;
bool m_tablesCreatedHasBeenSet;
int m_tablesUpdated;
bool m_tablesUpdatedHasBeenSet;
int m_tablesDeleted;
bool m_tablesDeletedHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,90 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glue/model/Crawl.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
/**
* <p>The details of a Crawler node present in the workflow.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CrawlerNodeDetails">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API CrawlerNodeDetails
{
public:
CrawlerNodeDetails();
CrawlerNodeDetails(Aws::Utils::Json::JsonView jsonValue);
CrawlerNodeDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A list of crawls represented by the crawl node.</p>
*/
inline const Aws::Vector<Crawl>& GetCrawls() const{ return m_crawls; }
/**
* <p>A list of crawls represented by the crawl node.</p>
*/
inline bool CrawlsHasBeenSet() const { return m_crawlsHasBeenSet; }
/**
* <p>A list of crawls represented by the crawl node.</p>
*/
inline void SetCrawls(const Aws::Vector<Crawl>& value) { m_crawlsHasBeenSet = true; m_crawls = value; }
/**
* <p>A list of crawls represented by the crawl node.</p>
*/
inline void SetCrawls(Aws::Vector<Crawl>&& value) { m_crawlsHasBeenSet = true; m_crawls = std::move(value); }
/**
* <p>A list of crawls represented by the crawl node.</p>
*/
inline CrawlerNodeDetails& WithCrawls(const Aws::Vector<Crawl>& value) { SetCrawls(value); return *this;}
/**
* <p>A list of crawls represented by the crawl node.</p>
*/
inline CrawlerNodeDetails& WithCrawls(Aws::Vector<Crawl>&& value) { SetCrawls(std::move(value)); return *this;}
/**
* <p>A list of crawls represented by the crawl node.</p>
*/
inline CrawlerNodeDetails& AddCrawls(const Crawl& value) { m_crawlsHasBeenSet = true; m_crawls.push_back(value); return *this; }
/**
* <p>A list of crawls represented by the crawl node.</p>
*/
inline CrawlerNodeDetails& AddCrawls(Crawl&& value) { m_crawlsHasBeenSet = true; m_crawls.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Crawl> m_crawls;
bool m_crawlsHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Glue
{
namespace Model
{
enum class CrawlerState
{
NOT_SET,
READY,
RUNNING,
STOPPING
};
namespace CrawlerStateMapper
{
AWS_GLUE_API CrawlerState GetCrawlerStateForName(const Aws::String& name);
AWS_GLUE_API Aws::String GetNameForCrawlerState(CrawlerState value);
} // namespace CrawlerStateMapper
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glue/model/S3Target.h>
#include <aws/glue/model/JdbcTarget.h>
#include <aws/glue/model/DynamoDBTarget.h>
#include <aws/glue/model/CatalogTarget.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
/**
* <p>Specifies data stores to crawl.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CrawlerTargets">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API CrawlerTargets
{
public:
CrawlerTargets();
CrawlerTargets(Aws::Utils::Json::JsonView jsonValue);
CrawlerTargets& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies Amazon Simple Storage Service (Amazon S3) targets.</p>
*/
inline const Aws::Vector<S3Target>& GetS3Targets() const{ return m_s3Targets; }
/**
* <p>Specifies Amazon Simple Storage Service (Amazon S3) targets.</p>
*/
inline bool S3TargetsHasBeenSet() const { return m_s3TargetsHasBeenSet; }
/**
* <p>Specifies Amazon Simple Storage Service (Amazon S3) targets.</p>
*/
inline void SetS3Targets(const Aws::Vector<S3Target>& value) { m_s3TargetsHasBeenSet = true; m_s3Targets = value; }
/**
* <p>Specifies Amazon Simple Storage Service (Amazon S3) targets.</p>
*/
inline void SetS3Targets(Aws::Vector<S3Target>&& value) { m_s3TargetsHasBeenSet = true; m_s3Targets = std::move(value); }
/**
* <p>Specifies Amazon Simple Storage Service (Amazon S3) targets.</p>
*/
inline CrawlerTargets& WithS3Targets(const Aws::Vector<S3Target>& value) { SetS3Targets(value); return *this;}
/**
* <p>Specifies Amazon Simple Storage Service (Amazon S3) targets.</p>
*/
inline CrawlerTargets& WithS3Targets(Aws::Vector<S3Target>&& value) { SetS3Targets(std::move(value)); return *this;}
/**
* <p>Specifies Amazon Simple Storage Service (Amazon S3) targets.</p>
*/
inline CrawlerTargets& AddS3Targets(const S3Target& value) { m_s3TargetsHasBeenSet = true; m_s3Targets.push_back(value); return *this; }
/**
* <p>Specifies Amazon Simple Storage Service (Amazon S3) targets.</p>
*/
inline CrawlerTargets& AddS3Targets(S3Target&& value) { m_s3TargetsHasBeenSet = true; m_s3Targets.push_back(std::move(value)); return *this; }
/**
* <p>Specifies JDBC targets.</p>
*/
inline const Aws::Vector<JdbcTarget>& GetJdbcTargets() const{ return m_jdbcTargets; }
/**
* <p>Specifies JDBC targets.</p>
*/
inline bool JdbcTargetsHasBeenSet() const { return m_jdbcTargetsHasBeenSet; }
/**
* <p>Specifies JDBC targets.</p>
*/
inline void SetJdbcTargets(const Aws::Vector<JdbcTarget>& value) { m_jdbcTargetsHasBeenSet = true; m_jdbcTargets = value; }
/**
* <p>Specifies JDBC targets.</p>
*/
inline void SetJdbcTargets(Aws::Vector<JdbcTarget>&& value) { m_jdbcTargetsHasBeenSet = true; m_jdbcTargets = std::move(value); }
/**
* <p>Specifies JDBC targets.</p>
*/
inline CrawlerTargets& WithJdbcTargets(const Aws::Vector<JdbcTarget>& value) { SetJdbcTargets(value); return *this;}
/**
* <p>Specifies JDBC targets.</p>
*/
inline CrawlerTargets& WithJdbcTargets(Aws::Vector<JdbcTarget>&& value) { SetJdbcTargets(std::move(value)); return *this;}
/**
* <p>Specifies JDBC targets.</p>
*/
inline CrawlerTargets& AddJdbcTargets(const JdbcTarget& value) { m_jdbcTargetsHasBeenSet = true; m_jdbcTargets.push_back(value); return *this; }
/**
* <p>Specifies JDBC targets.</p>
*/
inline CrawlerTargets& AddJdbcTargets(JdbcTarget&& value) { m_jdbcTargetsHasBeenSet = true; m_jdbcTargets.push_back(std::move(value)); return *this; }
/**
* <p>Specifies Amazon DynamoDB targets.</p>
*/
inline const Aws::Vector<DynamoDBTarget>& GetDynamoDBTargets() const{ return m_dynamoDBTargets; }
/**
* <p>Specifies Amazon DynamoDB targets.</p>
*/
inline bool DynamoDBTargetsHasBeenSet() const { return m_dynamoDBTargetsHasBeenSet; }
/**
* <p>Specifies Amazon DynamoDB targets.</p>
*/
inline void SetDynamoDBTargets(const Aws::Vector<DynamoDBTarget>& value) { m_dynamoDBTargetsHasBeenSet = true; m_dynamoDBTargets = value; }
/**
* <p>Specifies Amazon DynamoDB targets.</p>
*/
inline void SetDynamoDBTargets(Aws::Vector<DynamoDBTarget>&& value) { m_dynamoDBTargetsHasBeenSet = true; m_dynamoDBTargets = std::move(value); }
/**
* <p>Specifies Amazon DynamoDB targets.</p>
*/
inline CrawlerTargets& WithDynamoDBTargets(const Aws::Vector<DynamoDBTarget>& value) { SetDynamoDBTargets(value); return *this;}
/**
* <p>Specifies Amazon DynamoDB targets.</p>
*/
inline CrawlerTargets& WithDynamoDBTargets(Aws::Vector<DynamoDBTarget>&& value) { SetDynamoDBTargets(std::move(value)); return *this;}
/**
* <p>Specifies Amazon DynamoDB targets.</p>
*/
inline CrawlerTargets& AddDynamoDBTargets(const DynamoDBTarget& value) { m_dynamoDBTargetsHasBeenSet = true; m_dynamoDBTargets.push_back(value); return *this; }
/**
* <p>Specifies Amazon DynamoDB targets.</p>
*/
inline CrawlerTargets& AddDynamoDBTargets(DynamoDBTarget&& value) { m_dynamoDBTargetsHasBeenSet = true; m_dynamoDBTargets.push_back(std::move(value)); return *this; }
/**
* <p>Specifies AWS Glue Data Catalog targets.</p>
*/
inline const Aws::Vector<CatalogTarget>& GetCatalogTargets() const{ return m_catalogTargets; }
/**
* <p>Specifies AWS Glue Data Catalog targets.</p>
*/
inline bool CatalogTargetsHasBeenSet() const { return m_catalogTargetsHasBeenSet; }
/**
* <p>Specifies AWS Glue Data Catalog targets.</p>
*/
inline void SetCatalogTargets(const Aws::Vector<CatalogTarget>& value) { m_catalogTargetsHasBeenSet = true; m_catalogTargets = value; }
/**
* <p>Specifies AWS Glue Data Catalog targets.</p>
*/
inline void SetCatalogTargets(Aws::Vector<CatalogTarget>&& value) { m_catalogTargetsHasBeenSet = true; m_catalogTargets = std::move(value); }
/**
* <p>Specifies AWS Glue Data Catalog targets.</p>
*/
inline CrawlerTargets& WithCatalogTargets(const Aws::Vector<CatalogTarget>& value) { SetCatalogTargets(value); return *this;}
/**
* <p>Specifies AWS Glue Data Catalog targets.</p>
*/
inline CrawlerTargets& WithCatalogTargets(Aws::Vector<CatalogTarget>&& value) { SetCatalogTargets(std::move(value)); return *this;}
/**
* <p>Specifies AWS Glue Data Catalog targets.</p>
*/
inline CrawlerTargets& AddCatalogTargets(const CatalogTarget& value) { m_catalogTargetsHasBeenSet = true; m_catalogTargets.push_back(value); return *this; }
/**
* <p>Specifies AWS Glue Data Catalog targets.</p>
*/
inline CrawlerTargets& AddCatalogTargets(CatalogTarget&& value) { m_catalogTargetsHasBeenSet = true; m_catalogTargets.push_back(std::move(value)); return *this; }
private:
Aws::Vector<S3Target> m_s3Targets;
bool m_s3TargetsHasBeenSet;
Aws::Vector<JdbcTarget> m_jdbcTargets;
bool m_jdbcTargetsHasBeenSet;
Aws::Vector<DynamoDBTarget> m_dynamoDBTargets;
bool m_dynamoDBTargetsHasBeenSet;
Aws::Vector<CatalogTarget> m_catalogTargets;
bool m_catalogTargetsHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,180 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/glue/model/CreateGrokClassifierRequest.h>
#include <aws/glue/model/CreateXMLClassifierRequest.h>
#include <aws/glue/model/CreateJsonClassifierRequest.h>
#include <aws/glue/model/CreateCsvClassifierRequest.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API CreateClassifierRequest : public GlueRequest
{
public:
CreateClassifierRequest();
// 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 "CreateClassifier"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A <code>GrokClassifier</code> object specifying the classifier to create.</p>
*/
inline const CreateGrokClassifierRequest& GetGrokClassifier() const{ return m_grokClassifier; }
/**
* <p>A <code>GrokClassifier</code> object specifying the classifier to create.</p>
*/
inline bool GrokClassifierHasBeenSet() const { return m_grokClassifierHasBeenSet; }
/**
* <p>A <code>GrokClassifier</code> object specifying the classifier to create.</p>
*/
inline void SetGrokClassifier(const CreateGrokClassifierRequest& value) { m_grokClassifierHasBeenSet = true; m_grokClassifier = value; }
/**
* <p>A <code>GrokClassifier</code> object specifying the classifier to create.</p>
*/
inline void SetGrokClassifier(CreateGrokClassifierRequest&& value) { m_grokClassifierHasBeenSet = true; m_grokClassifier = std::move(value); }
/**
* <p>A <code>GrokClassifier</code> object specifying the classifier to create.</p>
*/
inline CreateClassifierRequest& WithGrokClassifier(const CreateGrokClassifierRequest& value) { SetGrokClassifier(value); return *this;}
/**
* <p>A <code>GrokClassifier</code> object specifying the classifier to create.</p>
*/
inline CreateClassifierRequest& WithGrokClassifier(CreateGrokClassifierRequest&& value) { SetGrokClassifier(std::move(value)); return *this;}
/**
* <p>An <code>XMLClassifier</code> object specifying the classifier to create.</p>
*/
inline const CreateXMLClassifierRequest& GetXMLClassifier() const{ return m_xMLClassifier; }
/**
* <p>An <code>XMLClassifier</code> object specifying the classifier to create.</p>
*/
inline bool XMLClassifierHasBeenSet() const { return m_xMLClassifierHasBeenSet; }
/**
* <p>An <code>XMLClassifier</code> object specifying the classifier to create.</p>
*/
inline void SetXMLClassifier(const CreateXMLClassifierRequest& value) { m_xMLClassifierHasBeenSet = true; m_xMLClassifier = value; }
/**
* <p>An <code>XMLClassifier</code> object specifying the classifier to create.</p>
*/
inline void SetXMLClassifier(CreateXMLClassifierRequest&& value) { m_xMLClassifierHasBeenSet = true; m_xMLClassifier = std::move(value); }
/**
* <p>An <code>XMLClassifier</code> object specifying the classifier to create.</p>
*/
inline CreateClassifierRequest& WithXMLClassifier(const CreateXMLClassifierRequest& value) { SetXMLClassifier(value); return *this;}
/**
* <p>An <code>XMLClassifier</code> object specifying the classifier to create.</p>
*/
inline CreateClassifierRequest& WithXMLClassifier(CreateXMLClassifierRequest&& value) { SetXMLClassifier(std::move(value)); return *this;}
/**
* <p>A <code>JsonClassifier</code> object specifying the classifier to create.</p>
*/
inline const CreateJsonClassifierRequest& GetJsonClassifier() const{ return m_jsonClassifier; }
/**
* <p>A <code>JsonClassifier</code> object specifying the classifier to create.</p>
*/
inline bool JsonClassifierHasBeenSet() const { return m_jsonClassifierHasBeenSet; }
/**
* <p>A <code>JsonClassifier</code> object specifying the classifier to create.</p>
*/
inline void SetJsonClassifier(const CreateJsonClassifierRequest& value) { m_jsonClassifierHasBeenSet = true; m_jsonClassifier = value; }
/**
* <p>A <code>JsonClassifier</code> object specifying the classifier to create.</p>
*/
inline void SetJsonClassifier(CreateJsonClassifierRequest&& value) { m_jsonClassifierHasBeenSet = true; m_jsonClassifier = std::move(value); }
/**
* <p>A <code>JsonClassifier</code> object specifying the classifier to create.</p>
*/
inline CreateClassifierRequest& WithJsonClassifier(const CreateJsonClassifierRequest& value) { SetJsonClassifier(value); return *this;}
/**
* <p>A <code>JsonClassifier</code> object specifying the classifier to create.</p>
*/
inline CreateClassifierRequest& WithJsonClassifier(CreateJsonClassifierRequest&& value) { SetJsonClassifier(std::move(value)); return *this;}
/**
* <p>A <code>CsvClassifier</code> object specifying the classifier to create.</p>
*/
inline const CreateCsvClassifierRequest& GetCsvClassifier() const{ return m_csvClassifier; }
/**
* <p>A <code>CsvClassifier</code> object specifying the classifier to create.</p>
*/
inline bool CsvClassifierHasBeenSet() const { return m_csvClassifierHasBeenSet; }
/**
* <p>A <code>CsvClassifier</code> object specifying the classifier to create.</p>
*/
inline void SetCsvClassifier(const CreateCsvClassifierRequest& value) { m_csvClassifierHasBeenSet = true; m_csvClassifier = value; }
/**
* <p>A <code>CsvClassifier</code> object specifying the classifier to create.</p>
*/
inline void SetCsvClassifier(CreateCsvClassifierRequest&& value) { m_csvClassifierHasBeenSet = true; m_csvClassifier = std::move(value); }
/**
* <p>A <code>CsvClassifier</code> object specifying the classifier to create.</p>
*/
inline CreateClassifierRequest& WithCsvClassifier(const CreateCsvClassifierRequest& value) { SetCsvClassifier(value); return *this;}
/**
* <p>A <code>CsvClassifier</code> object specifying the classifier to create.</p>
*/
inline CreateClassifierRequest& WithCsvClassifier(CreateCsvClassifierRequest&& value) { SetCsvClassifier(std::move(value)); return *this;}
private:
CreateGrokClassifierRequest m_grokClassifier;
bool m_grokClassifierHasBeenSet;
CreateXMLClassifierRequest m_xMLClassifier;
bool m_xMLClassifierHasBeenSet;
CreateJsonClassifierRequest m_jsonClassifier;
bool m_jsonClassifierHasBeenSet;
CreateCsvClassifierRequest m_csvClassifier;
bool m_csvClassifierHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
class AWS_GLUE_API CreateClassifierResult
{
public:
CreateClassifierResult();
CreateClassifierResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateClassifierResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,128 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glue/model/ConnectionInput.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API CreateConnectionRequest : public GlueRequest
{
public:
CreateConnectionRequest();
// 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 "CreateConnection"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the Data Catalog in which to create the connection. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline const Aws::String& GetCatalogId() const{ return m_catalogId; }
/**
* <p>The ID of the Data Catalog in which to create the connection. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
/**
* <p>The ID of the Data Catalog in which to create the connection. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
/**
* <p>The ID of the Data Catalog in which to create the connection. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
/**
* <p>The ID of the Data Catalog in which to create the connection. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
/**
* <p>The ID of the Data Catalog in which to create the connection. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline CreateConnectionRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
/**
* <p>The ID of the Data Catalog in which to create the connection. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline CreateConnectionRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
/**
* <p>The ID of the Data Catalog in which to create the connection. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline CreateConnectionRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
/**
* <p>A <code>ConnectionInput</code> object defining the connection to create.</p>
*/
inline const ConnectionInput& GetConnectionInput() const{ return m_connectionInput; }
/**
* <p>A <code>ConnectionInput</code> object defining the connection to create.</p>
*/
inline bool ConnectionInputHasBeenSet() const { return m_connectionInputHasBeenSet; }
/**
* <p>A <code>ConnectionInput</code> object defining the connection to create.</p>
*/
inline void SetConnectionInput(const ConnectionInput& value) { m_connectionInputHasBeenSet = true; m_connectionInput = value; }
/**
* <p>A <code>ConnectionInput</code> object defining the connection to create.</p>
*/
inline void SetConnectionInput(ConnectionInput&& value) { m_connectionInputHasBeenSet = true; m_connectionInput = std::move(value); }
/**
* <p>A <code>ConnectionInput</code> object defining the connection to create.</p>
*/
inline CreateConnectionRequest& WithConnectionInput(const ConnectionInput& value) { SetConnectionInput(value); return *this;}
/**
* <p>A <code>ConnectionInput</code> object defining the connection to create.</p>
*/
inline CreateConnectionRequest& WithConnectionInput(ConnectionInput&& value) { SetConnectionInput(std::move(value)); return *this;}
private:
Aws::String m_catalogId;
bool m_catalogIdHasBeenSet;
ConnectionInput m_connectionInput;
bool m_connectionInputHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
class AWS_GLUE_API CreateConnectionResult
{
public:
CreateConnectionResult();
CreateConnectionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateConnectionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,712 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glue/model/CrawlerTargets.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glue/model/SchemaChangePolicy.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API CreateCrawlerRequest : public GlueRequest
{
public:
CreateCrawlerRequest();
// 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 "CreateCrawler"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Name of the new crawler.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>Name of the new crawler.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>Name of the new crawler.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>Name of the new crawler.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>Name of the new crawler.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>Name of the new crawler.</p>
*/
inline CreateCrawlerRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>Name of the new crawler.</p>
*/
inline CreateCrawlerRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>Name of the new crawler.</p>
*/
inline CreateCrawlerRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The IAM role or Amazon Resource Name (ARN) of an IAM role used by the new
* crawler to access customer resources.</p>
*/
inline const Aws::String& GetRole() const{ return m_role; }
/**
* <p>The IAM role or Amazon Resource Name (ARN) of an IAM role used by the new
* crawler to access customer resources.</p>
*/
inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
/**
* <p>The IAM role or Amazon Resource Name (ARN) of an IAM role used by the new
* crawler to access customer resources.</p>
*/
inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
/**
* <p>The IAM role or Amazon Resource Name (ARN) of an IAM role used by the new
* crawler to access customer resources.</p>
*/
inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
/**
* <p>The IAM role or Amazon Resource Name (ARN) of an IAM role used by the new
* crawler to access customer resources.</p>
*/
inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
/**
* <p>The IAM role or Amazon Resource Name (ARN) of an IAM role used by the new
* crawler to access customer resources.</p>
*/
inline CreateCrawlerRequest& WithRole(const Aws::String& value) { SetRole(value); return *this;}
/**
* <p>The IAM role or Amazon Resource Name (ARN) of an IAM role used by the new
* crawler to access customer resources.</p>
*/
inline CreateCrawlerRequest& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
/**
* <p>The IAM role or Amazon Resource Name (ARN) of an IAM role used by the new
* crawler to access customer resources.</p>
*/
inline CreateCrawlerRequest& WithRole(const char* value) { SetRole(value); return *this;}
/**
* <p>The AWS Glue database where results are written, such as:
* <code>arn:aws:daylight:us-east-1::database/sometable/ *</code>.</p>
*/
inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
/**
* <p>The AWS Glue database where results are written, such as:
* <code>arn:aws:daylight:us-east-1::database/sometable/ *</code>.</p>
*/
inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
/**
* <p>The AWS Glue database where results are written, such as:
* <code>arn:aws:daylight:us-east-1::database/sometable/ *</code>.</p>
*/
inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
/**
* <p>The AWS Glue database where results are written, such as:
* <code>arn:aws:daylight:us-east-1::database/sometable/ *</code>.</p>
*/
inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
/**
* <p>The AWS Glue database where results are written, such as:
* <code>arn:aws:daylight:us-east-1::database/sometable/ *</code>.</p>
*/
inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
/**
* <p>The AWS Glue database where results are written, such as:
* <code>arn:aws:daylight:us-east-1::database/sometable/ *</code>.</p>
*/
inline CreateCrawlerRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
/**
* <p>The AWS Glue database where results are written, such as:
* <code>arn:aws:daylight:us-east-1::database/sometable/ *</code>.</p>
*/
inline CreateCrawlerRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
/**
* <p>The AWS Glue database where results are written, such as:
* <code>arn:aws:daylight:us-east-1::database/sometable/ *</code>.</p>
*/
inline CreateCrawlerRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
/**
* <p>A description of the new crawler.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the new crawler.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description of the new crawler.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description of the new crawler.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description of the new crawler.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description of the new crawler.</p>
*/
inline CreateCrawlerRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the new crawler.</p>
*/
inline CreateCrawlerRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the new crawler.</p>
*/
inline CreateCrawlerRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>A list of collection of targets to crawl.</p>
*/
inline const CrawlerTargets& GetTargets() const{ return m_targets; }
/**
* <p>A list of collection of targets to crawl.</p>
*/
inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
/**
* <p>A list of collection of targets to crawl.</p>
*/
inline void SetTargets(const CrawlerTargets& value) { m_targetsHasBeenSet = true; m_targets = value; }
/**
* <p>A list of collection of targets to crawl.</p>
*/
inline void SetTargets(CrawlerTargets&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
/**
* <p>A list of collection of targets to crawl.</p>
*/
inline CreateCrawlerRequest& WithTargets(const CrawlerTargets& value) { SetTargets(value); return *this;}
/**
* <p>A list of collection of targets to crawl.</p>
*/
inline CreateCrawlerRequest& WithTargets(CrawlerTargets&& value) { SetTargets(std::move(value)); return *this;}
/**
* <p>A <code>cron</code> expression used to specify the schedule (see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html">Time-Based
* Schedules for Jobs and Crawlers</a>. For example, to run something every day at
* 12:15 UTC, you would specify: <code>cron(15 12 * * ? *)</code>.</p>
*/
inline const Aws::String& GetSchedule() const{ return m_schedule; }
/**
* <p>A <code>cron</code> expression used to specify the schedule (see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html">Time-Based
* Schedules for Jobs and Crawlers</a>. For example, to run something every day at
* 12:15 UTC, you would specify: <code>cron(15 12 * * ? *)</code>.</p>
*/
inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
/**
* <p>A <code>cron</code> expression used to specify the schedule (see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html">Time-Based
* Schedules for Jobs and Crawlers</a>. For example, to run something every day at
* 12:15 UTC, you would specify: <code>cron(15 12 * * ? *)</code>.</p>
*/
inline void SetSchedule(const Aws::String& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
/**
* <p>A <code>cron</code> expression used to specify the schedule (see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html">Time-Based
* Schedules for Jobs and Crawlers</a>. For example, to run something every day at
* 12:15 UTC, you would specify: <code>cron(15 12 * * ? *)</code>.</p>
*/
inline void SetSchedule(Aws::String&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
/**
* <p>A <code>cron</code> expression used to specify the schedule (see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html">Time-Based
* Schedules for Jobs and Crawlers</a>. For example, to run something every day at
* 12:15 UTC, you would specify: <code>cron(15 12 * * ? *)</code>.</p>
*/
inline void SetSchedule(const char* value) { m_scheduleHasBeenSet = true; m_schedule.assign(value); }
/**
* <p>A <code>cron</code> expression used to specify the schedule (see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html">Time-Based
* Schedules for Jobs and Crawlers</a>. For example, to run something every day at
* 12:15 UTC, you would specify: <code>cron(15 12 * * ? *)</code>.</p>
*/
inline CreateCrawlerRequest& WithSchedule(const Aws::String& value) { SetSchedule(value); return *this;}
/**
* <p>A <code>cron</code> expression used to specify the schedule (see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html">Time-Based
* Schedules for Jobs and Crawlers</a>. For example, to run something every day at
* 12:15 UTC, you would specify: <code>cron(15 12 * * ? *)</code>.</p>
*/
inline CreateCrawlerRequest& WithSchedule(Aws::String&& value) { SetSchedule(std::move(value)); return *this;}
/**
* <p>A <code>cron</code> expression used to specify the schedule (see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html">Time-Based
* Schedules for Jobs and Crawlers</a>. For example, to run something every day at
* 12:15 UTC, you would specify: <code>cron(15 12 * * ? *)</code>.</p>
*/
inline CreateCrawlerRequest& WithSchedule(const char* value) { SetSchedule(value); return *this;}
/**
* <p>A list of custom classifiers that the user has registered. By default, all
* built-in classifiers are included in a crawl, but these custom classifiers
* always override the default classifiers for a given classification.</p>
*/
inline const Aws::Vector<Aws::String>& GetClassifiers() const{ return m_classifiers; }
/**
* <p>A list of custom classifiers that the user has registered. By default, all
* built-in classifiers are included in a crawl, but these custom classifiers
* always override the default classifiers for a given classification.</p>
*/
inline bool ClassifiersHasBeenSet() const { return m_classifiersHasBeenSet; }
/**
* <p>A list of custom classifiers that the user has registered. By default, all
* built-in classifiers are included in a crawl, but these custom classifiers
* always override the default classifiers for a given classification.</p>
*/
inline void SetClassifiers(const Aws::Vector<Aws::String>& value) { m_classifiersHasBeenSet = true; m_classifiers = value; }
/**
* <p>A list of custom classifiers that the user has registered. By default, all
* built-in classifiers are included in a crawl, but these custom classifiers
* always override the default classifiers for a given classification.</p>
*/
inline void SetClassifiers(Aws::Vector<Aws::String>&& value) { m_classifiersHasBeenSet = true; m_classifiers = std::move(value); }
/**
* <p>A list of custom classifiers that the user has registered. By default, all
* built-in classifiers are included in a crawl, but these custom classifiers
* always override the default classifiers for a given classification.</p>
*/
inline CreateCrawlerRequest& WithClassifiers(const Aws::Vector<Aws::String>& value) { SetClassifiers(value); return *this;}
/**
* <p>A list of custom classifiers that the user has registered. By default, all
* built-in classifiers are included in a crawl, but these custom classifiers
* always override the default classifiers for a given classification.</p>
*/
inline CreateCrawlerRequest& WithClassifiers(Aws::Vector<Aws::String>&& value) { SetClassifiers(std::move(value)); return *this;}
/**
* <p>A list of custom classifiers that the user has registered. By default, all
* built-in classifiers are included in a crawl, but these custom classifiers
* always override the default classifiers for a given classification.</p>
*/
inline CreateCrawlerRequest& AddClassifiers(const Aws::String& value) { m_classifiersHasBeenSet = true; m_classifiers.push_back(value); return *this; }
/**
* <p>A list of custom classifiers that the user has registered. By default, all
* built-in classifiers are included in a crawl, but these custom classifiers
* always override the default classifiers for a given classification.</p>
*/
inline CreateCrawlerRequest& AddClassifiers(Aws::String&& value) { m_classifiersHasBeenSet = true; m_classifiers.push_back(std::move(value)); return *this; }
/**
* <p>A list of custom classifiers that the user has registered. By default, all
* built-in classifiers are included in a crawl, but these custom classifiers
* always override the default classifiers for a given classification.</p>
*/
inline CreateCrawlerRequest& AddClassifiers(const char* value) { m_classifiersHasBeenSet = true; m_classifiers.push_back(value); return *this; }
/**
* <p>The table prefix used for catalog tables that are created.</p>
*/
inline const Aws::String& GetTablePrefix() const{ return m_tablePrefix; }
/**
* <p>The table prefix used for catalog tables that are created.</p>
*/
inline bool TablePrefixHasBeenSet() const { return m_tablePrefixHasBeenSet; }
/**
* <p>The table prefix used for catalog tables that are created.</p>
*/
inline void SetTablePrefix(const Aws::String& value) { m_tablePrefixHasBeenSet = true; m_tablePrefix = value; }
/**
* <p>The table prefix used for catalog tables that are created.</p>
*/
inline void SetTablePrefix(Aws::String&& value) { m_tablePrefixHasBeenSet = true; m_tablePrefix = std::move(value); }
/**
* <p>The table prefix used for catalog tables that are created.</p>
*/
inline void SetTablePrefix(const char* value) { m_tablePrefixHasBeenSet = true; m_tablePrefix.assign(value); }
/**
* <p>The table prefix used for catalog tables that are created.</p>
*/
inline CreateCrawlerRequest& WithTablePrefix(const Aws::String& value) { SetTablePrefix(value); return *this;}
/**
* <p>The table prefix used for catalog tables that are created.</p>
*/
inline CreateCrawlerRequest& WithTablePrefix(Aws::String&& value) { SetTablePrefix(std::move(value)); return *this;}
/**
* <p>The table prefix used for catalog tables that are created.</p>
*/
inline CreateCrawlerRequest& WithTablePrefix(const char* value) { SetTablePrefix(value); return *this;}
/**
* <p>The policy for the crawler's update and deletion behavior.</p>
*/
inline const SchemaChangePolicy& GetSchemaChangePolicy() const{ return m_schemaChangePolicy; }
/**
* <p>The policy for the crawler's update and deletion behavior.</p>
*/
inline bool SchemaChangePolicyHasBeenSet() const { return m_schemaChangePolicyHasBeenSet; }
/**
* <p>The policy for the crawler's update and deletion behavior.</p>
*/
inline void SetSchemaChangePolicy(const SchemaChangePolicy& value) { m_schemaChangePolicyHasBeenSet = true; m_schemaChangePolicy = value; }
/**
* <p>The policy for the crawler's update and deletion behavior.</p>
*/
inline void SetSchemaChangePolicy(SchemaChangePolicy&& value) { m_schemaChangePolicyHasBeenSet = true; m_schemaChangePolicy = std::move(value); }
/**
* <p>The policy for the crawler's update and deletion behavior.</p>
*/
inline CreateCrawlerRequest& WithSchemaChangePolicy(const SchemaChangePolicy& value) { SetSchemaChangePolicy(value); return *this;}
/**
* <p>The policy for the crawler's update and deletion behavior.</p>
*/
inline CreateCrawlerRequest& WithSchemaChangePolicy(SchemaChangePolicy&& value) { SetSchemaChangePolicy(std::move(value)); return *this;}
/**
* <p>Crawler configuration information. This versioned JSON string allows users to
* specify aspects of a crawler's behavior. For more information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html">Configuring
* a Crawler</a>.</p>
*/
inline const Aws::String& GetConfiguration() const{ return m_configuration; }
/**
* <p>Crawler configuration information. This versioned JSON string allows users to
* specify aspects of a crawler's behavior. For more information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html">Configuring
* a Crawler</a>.</p>
*/
inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
/**
* <p>Crawler configuration information. This versioned JSON string allows users to
* specify aspects of a crawler's behavior. For more information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html">Configuring
* a Crawler</a>.</p>
*/
inline void SetConfiguration(const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration = value; }
/**
* <p>Crawler configuration information. This versioned JSON string allows users to
* specify aspects of a crawler's behavior. For more information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html">Configuring
* a Crawler</a>.</p>
*/
inline void SetConfiguration(Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
/**
* <p>Crawler configuration information. This versioned JSON string allows users to
* specify aspects of a crawler's behavior. For more information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html">Configuring
* a Crawler</a>.</p>
*/
inline void SetConfiguration(const char* value) { m_configurationHasBeenSet = true; m_configuration.assign(value); }
/**
* <p>Crawler configuration information. This versioned JSON string allows users to
* specify aspects of a crawler's behavior. For more information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html">Configuring
* a Crawler</a>.</p>
*/
inline CreateCrawlerRequest& WithConfiguration(const Aws::String& value) { SetConfiguration(value); return *this;}
/**
* <p>Crawler configuration information. This versioned JSON string allows users to
* specify aspects of a crawler's behavior. For more information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html">Configuring
* a Crawler</a>.</p>
*/
inline CreateCrawlerRequest& WithConfiguration(Aws::String&& value) { SetConfiguration(std::move(value)); return *this;}
/**
* <p>Crawler configuration information. This versioned JSON string allows users to
* specify aspects of a crawler's behavior. For more information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html">Configuring
* a Crawler</a>.</p>
*/
inline CreateCrawlerRequest& WithConfiguration(const char* value) { SetConfiguration(value); return *this;}
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used by
* this crawler.</p>
*/
inline const Aws::String& GetCrawlerSecurityConfiguration() const{ return m_crawlerSecurityConfiguration; }
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used by
* this crawler.</p>
*/
inline bool CrawlerSecurityConfigurationHasBeenSet() const { return m_crawlerSecurityConfigurationHasBeenSet; }
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used by
* this crawler.</p>
*/
inline void SetCrawlerSecurityConfiguration(const Aws::String& value) { m_crawlerSecurityConfigurationHasBeenSet = true; m_crawlerSecurityConfiguration = value; }
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used by
* this crawler.</p>
*/
inline void SetCrawlerSecurityConfiguration(Aws::String&& value) { m_crawlerSecurityConfigurationHasBeenSet = true; m_crawlerSecurityConfiguration = std::move(value); }
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used by
* this crawler.</p>
*/
inline void SetCrawlerSecurityConfiguration(const char* value) { m_crawlerSecurityConfigurationHasBeenSet = true; m_crawlerSecurityConfiguration.assign(value); }
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used by
* this crawler.</p>
*/
inline CreateCrawlerRequest& WithCrawlerSecurityConfiguration(const Aws::String& value) { SetCrawlerSecurityConfiguration(value); return *this;}
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used by
* this crawler.</p>
*/
inline CreateCrawlerRequest& WithCrawlerSecurityConfiguration(Aws::String&& value) { SetCrawlerSecurityConfiguration(std::move(value)); return *this;}
/**
* <p>The name of the <code>SecurityConfiguration</code> structure to be used by
* this crawler.</p>
*/
inline CreateCrawlerRequest& WithCrawlerSecurityConfiguration(const char* value) { SetCrawlerSecurityConfiguration(value); return *this;}
/**
* <p>The tags to use with this crawler request. You may use tags to limit access
* to the crawler. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>The tags to use with this crawler request. You may use tags to limit access
* to the crawler. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tags to use with this crawler request. You may use tags to limit access
* to the crawler. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tags to use with this crawler request. You may use tags to limit access
* to the crawler. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tags to use with this crawler request. You may use tags to limit access
* to the crawler. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline CreateCrawlerRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>The tags to use with this crawler request. You may use tags to limit access
* to the crawler. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline CreateCrawlerRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags to use with this crawler request. You may use tags to limit access
* to the crawler. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline CreateCrawlerRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>The tags to use with this crawler request. You may use tags to limit access
* to the crawler. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline CreateCrawlerRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags to use with this crawler request. You may use tags to limit access
* to the crawler. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline CreateCrawlerRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags to use with this crawler request. You may use tags to limit access
* to the crawler. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline CreateCrawlerRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The tags to use with this crawler request. You may use tags to limit access
* to the crawler. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline CreateCrawlerRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags to use with this crawler request. You may use tags to limit access
* to the crawler. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline CreateCrawlerRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags to use with this crawler request. You may use tags to limit access
* to the crawler. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline CreateCrawlerRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_role;
bool m_roleHasBeenSet;
Aws::String m_databaseName;
bool m_databaseNameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
CrawlerTargets m_targets;
bool m_targetsHasBeenSet;
Aws::String m_schedule;
bool m_scheduleHasBeenSet;
Aws::Vector<Aws::String> m_classifiers;
bool m_classifiersHasBeenSet;
Aws::String m_tablePrefix;
bool m_tablePrefixHasBeenSet;
SchemaChangePolicy m_schemaChangePolicy;
bool m_schemaChangePolicyHasBeenSet;
Aws::String m_configuration;
bool m_configurationHasBeenSet;
Aws::String m_crawlerSecurityConfiguration;
bool m_crawlerSecurityConfigurationHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
class AWS_GLUE_API CreateCrawlerResult
{
public:
CreateCrawlerResult();
CreateCrawlerResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateCrawlerResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,322 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glue/model/CsvHeaderOption.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
/**
* <p>Specifies a custom CSV classifier for <code>CreateClassifier</code> to
* create.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateCsvClassifierRequest">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API CreateCsvClassifierRequest
{
public:
CreateCsvClassifierRequest();
CreateCsvClassifierRequest(Aws::Utils::Json::JsonView jsonValue);
CreateCsvClassifierRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the classifier.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the classifier.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the classifier.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the classifier.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the classifier.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the classifier.</p>
*/
inline CreateCsvClassifierRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the classifier.</p>
*/
inline CreateCsvClassifierRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the classifier.</p>
*/
inline CreateCsvClassifierRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A custom symbol to denote what separates each column entry in the row.</p>
*/
inline const Aws::String& GetDelimiter() const{ return m_delimiter; }
/**
* <p>A custom symbol to denote what separates each column entry in the row.</p>
*/
inline bool DelimiterHasBeenSet() const { return m_delimiterHasBeenSet; }
/**
* <p>A custom symbol to denote what separates each column entry in the row.</p>
*/
inline void SetDelimiter(const Aws::String& value) { m_delimiterHasBeenSet = true; m_delimiter = value; }
/**
* <p>A custom symbol to denote what separates each column entry in the row.</p>
*/
inline void SetDelimiter(Aws::String&& value) { m_delimiterHasBeenSet = true; m_delimiter = std::move(value); }
/**
* <p>A custom symbol to denote what separates each column entry in the row.</p>
*/
inline void SetDelimiter(const char* value) { m_delimiterHasBeenSet = true; m_delimiter.assign(value); }
/**
* <p>A custom symbol to denote what separates each column entry in the row.</p>
*/
inline CreateCsvClassifierRequest& WithDelimiter(const Aws::String& value) { SetDelimiter(value); return *this;}
/**
* <p>A custom symbol to denote what separates each column entry in the row.</p>
*/
inline CreateCsvClassifierRequest& WithDelimiter(Aws::String&& value) { SetDelimiter(std::move(value)); return *this;}
/**
* <p>A custom symbol to denote what separates each column entry in the row.</p>
*/
inline CreateCsvClassifierRequest& WithDelimiter(const char* value) { SetDelimiter(value); return *this;}
/**
* <p>A custom symbol to denote what combines content into a single column value.
* Must be different from the column delimiter.</p>
*/
inline const Aws::String& GetQuoteSymbol() const{ return m_quoteSymbol; }
/**
* <p>A custom symbol to denote what combines content into a single column value.
* Must be different from the column delimiter.</p>
*/
inline bool QuoteSymbolHasBeenSet() const { return m_quoteSymbolHasBeenSet; }
/**
* <p>A custom symbol to denote what combines content into a single column value.
* Must be different from the column delimiter.</p>
*/
inline void SetQuoteSymbol(const Aws::String& value) { m_quoteSymbolHasBeenSet = true; m_quoteSymbol = value; }
/**
* <p>A custom symbol to denote what combines content into a single column value.
* Must be different from the column delimiter.</p>
*/
inline void SetQuoteSymbol(Aws::String&& value) { m_quoteSymbolHasBeenSet = true; m_quoteSymbol = std::move(value); }
/**
* <p>A custom symbol to denote what combines content into a single column value.
* Must be different from the column delimiter.</p>
*/
inline void SetQuoteSymbol(const char* value) { m_quoteSymbolHasBeenSet = true; m_quoteSymbol.assign(value); }
/**
* <p>A custom symbol to denote what combines content into a single column value.
* Must be different from the column delimiter.</p>
*/
inline CreateCsvClassifierRequest& WithQuoteSymbol(const Aws::String& value) { SetQuoteSymbol(value); return *this;}
/**
* <p>A custom symbol to denote what combines content into a single column value.
* Must be different from the column delimiter.</p>
*/
inline CreateCsvClassifierRequest& WithQuoteSymbol(Aws::String&& value) { SetQuoteSymbol(std::move(value)); return *this;}
/**
* <p>A custom symbol to denote what combines content into a single column value.
* Must be different from the column delimiter.</p>
*/
inline CreateCsvClassifierRequest& WithQuoteSymbol(const char* value) { SetQuoteSymbol(value); return *this;}
/**
* <p>Indicates whether the CSV file contains a header.</p>
*/
inline const CsvHeaderOption& GetContainsHeader() const{ return m_containsHeader; }
/**
* <p>Indicates whether the CSV file contains a header.</p>
*/
inline bool ContainsHeaderHasBeenSet() const { return m_containsHeaderHasBeenSet; }
/**
* <p>Indicates whether the CSV file contains a header.</p>
*/
inline void SetContainsHeader(const CsvHeaderOption& value) { m_containsHeaderHasBeenSet = true; m_containsHeader = value; }
/**
* <p>Indicates whether the CSV file contains a header.</p>
*/
inline void SetContainsHeader(CsvHeaderOption&& value) { m_containsHeaderHasBeenSet = true; m_containsHeader = std::move(value); }
/**
* <p>Indicates whether the CSV file contains a header.</p>
*/
inline CreateCsvClassifierRequest& WithContainsHeader(const CsvHeaderOption& value) { SetContainsHeader(value); return *this;}
/**
* <p>Indicates whether the CSV file contains a header.</p>
*/
inline CreateCsvClassifierRequest& WithContainsHeader(CsvHeaderOption&& value) { SetContainsHeader(std::move(value)); return *this;}
/**
* <p>A list of strings representing column names.</p>
*/
inline const Aws::Vector<Aws::String>& GetHeader() const{ return m_header; }
/**
* <p>A list of strings representing column names.</p>
*/
inline bool HeaderHasBeenSet() const { return m_headerHasBeenSet; }
/**
* <p>A list of strings representing column names.</p>
*/
inline void SetHeader(const Aws::Vector<Aws::String>& value) { m_headerHasBeenSet = true; m_header = value; }
/**
* <p>A list of strings representing column names.</p>
*/
inline void SetHeader(Aws::Vector<Aws::String>&& value) { m_headerHasBeenSet = true; m_header = std::move(value); }
/**
* <p>A list of strings representing column names.</p>
*/
inline CreateCsvClassifierRequest& WithHeader(const Aws::Vector<Aws::String>& value) { SetHeader(value); return *this;}
/**
* <p>A list of strings representing column names.</p>
*/
inline CreateCsvClassifierRequest& WithHeader(Aws::Vector<Aws::String>&& value) { SetHeader(std::move(value)); return *this;}
/**
* <p>A list of strings representing column names.</p>
*/
inline CreateCsvClassifierRequest& AddHeader(const Aws::String& value) { m_headerHasBeenSet = true; m_header.push_back(value); return *this; }
/**
* <p>A list of strings representing column names.</p>
*/
inline CreateCsvClassifierRequest& AddHeader(Aws::String&& value) { m_headerHasBeenSet = true; m_header.push_back(std::move(value)); return *this; }
/**
* <p>A list of strings representing column names.</p>
*/
inline CreateCsvClassifierRequest& AddHeader(const char* value) { m_headerHasBeenSet = true; m_header.push_back(value); return *this; }
/**
* <p>Specifies not to trim values before identifying the type of column values.
* The default value is true.</p>
*/
inline bool GetDisableValueTrimming() const{ return m_disableValueTrimming; }
/**
* <p>Specifies not to trim values before identifying the type of column values.
* The default value is true.</p>
*/
inline bool DisableValueTrimmingHasBeenSet() const { return m_disableValueTrimmingHasBeenSet; }
/**
* <p>Specifies not to trim values before identifying the type of column values.
* The default value is true.</p>
*/
inline void SetDisableValueTrimming(bool value) { m_disableValueTrimmingHasBeenSet = true; m_disableValueTrimming = value; }
/**
* <p>Specifies not to trim values before identifying the type of column values.
* The default value is true.</p>
*/
inline CreateCsvClassifierRequest& WithDisableValueTrimming(bool value) { SetDisableValueTrimming(value); return *this;}
/**
* <p>Enables the processing of files that contain only one column.</p>
*/
inline bool GetAllowSingleColumn() const{ return m_allowSingleColumn; }
/**
* <p>Enables the processing of files that contain only one column.</p>
*/
inline bool AllowSingleColumnHasBeenSet() const { return m_allowSingleColumnHasBeenSet; }
/**
* <p>Enables the processing of files that contain only one column.</p>
*/
inline void SetAllowSingleColumn(bool value) { m_allowSingleColumnHasBeenSet = true; m_allowSingleColumn = value; }
/**
* <p>Enables the processing of files that contain only one column.</p>
*/
inline CreateCsvClassifierRequest& WithAllowSingleColumn(bool value) { SetAllowSingleColumn(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_delimiter;
bool m_delimiterHasBeenSet;
Aws::String m_quoteSymbol;
bool m_quoteSymbolHasBeenSet;
CsvHeaderOption m_containsHeader;
bool m_containsHeaderHasBeenSet;
Aws::Vector<Aws::String> m_header;
bool m_headerHasBeenSet;
bool m_disableValueTrimming;
bool m_disableValueTrimmingHasBeenSet;
bool m_allowSingleColumn;
bool m_allowSingleColumnHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,128 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glue/model/DatabaseInput.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API CreateDatabaseRequest : public GlueRequest
{
public:
CreateDatabaseRequest();
// 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 "CreateDatabase"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the Data Catalog in which to create the database. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline const Aws::String& GetCatalogId() const{ return m_catalogId; }
/**
* <p>The ID of the Data Catalog in which to create the database. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
/**
* <p>The ID of the Data Catalog in which to create the database. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
/**
* <p>The ID of the Data Catalog in which to create the database. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
/**
* <p>The ID of the Data Catalog in which to create the database. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
/**
* <p>The ID of the Data Catalog in which to create the database. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline CreateDatabaseRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
/**
* <p>The ID of the Data Catalog in which to create the database. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline CreateDatabaseRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
/**
* <p>The ID of the Data Catalog in which to create the database. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline CreateDatabaseRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
/**
* <p>The metadata for the database.</p>
*/
inline const DatabaseInput& GetDatabaseInput() const{ return m_databaseInput; }
/**
* <p>The metadata for the database.</p>
*/
inline bool DatabaseInputHasBeenSet() const { return m_databaseInputHasBeenSet; }
/**
* <p>The metadata for the database.</p>
*/
inline void SetDatabaseInput(const DatabaseInput& value) { m_databaseInputHasBeenSet = true; m_databaseInput = value; }
/**
* <p>The metadata for the database.</p>
*/
inline void SetDatabaseInput(DatabaseInput&& value) { m_databaseInputHasBeenSet = true; m_databaseInput = std::move(value); }
/**
* <p>The metadata for the database.</p>
*/
inline CreateDatabaseRequest& WithDatabaseInput(const DatabaseInput& value) { SetDatabaseInput(value); return *this;}
/**
* <p>The metadata for the database.</p>
*/
inline CreateDatabaseRequest& WithDatabaseInput(DatabaseInput&& value) { SetDatabaseInput(std::move(value)); return *this;}
private:
Aws::String m_catalogId;
bool m_catalogIdHasBeenSet;
DatabaseInput m_databaseInput;
bool m_databaseInputHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
class AWS_GLUE_API CreateDatabaseResult
{
public:
CreateDatabaseResult();
CreateDatabaseResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateDatabaseResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,859 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glue/model/WorkerType.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
class AWS_GLUE_API CreateDevEndpointResult
{
public:
CreateDevEndpointResult();
CreateDevEndpointResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateDevEndpointResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The name assigned to the new <code>DevEndpoint</code>.</p>
*/
inline const Aws::String& GetEndpointName() const{ return m_endpointName; }
/**
* <p>The name assigned to the new <code>DevEndpoint</code>.</p>
*/
inline void SetEndpointName(const Aws::String& value) { m_endpointName = value; }
/**
* <p>The name assigned to the new <code>DevEndpoint</code>.</p>
*/
inline void SetEndpointName(Aws::String&& value) { m_endpointName = std::move(value); }
/**
* <p>The name assigned to the new <code>DevEndpoint</code>.</p>
*/
inline void SetEndpointName(const char* value) { m_endpointName.assign(value); }
/**
* <p>The name assigned to the new <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithEndpointName(const Aws::String& value) { SetEndpointName(value); return *this;}
/**
* <p>The name assigned to the new <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;}
/**
* <p>The name assigned to the new <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithEndpointName(const char* value) { SetEndpointName(value); return *this;}
/**
* <p>The current status of the new <code>DevEndpoint</code>.</p>
*/
inline const Aws::String& GetStatus() const{ return m_status; }
/**
* <p>The current status of the new <code>DevEndpoint</code>.</p>
*/
inline void SetStatus(const Aws::String& value) { m_status = value; }
/**
* <p>The current status of the new <code>DevEndpoint</code>.</p>
*/
inline void SetStatus(Aws::String&& value) { m_status = std::move(value); }
/**
* <p>The current status of the new <code>DevEndpoint</code>.</p>
*/
inline void SetStatus(const char* value) { m_status.assign(value); }
/**
* <p>The current status of the new <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
/**
* <p>The current status of the new <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The current status of the new <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithStatus(const char* value) { SetStatus(value); return *this;}
/**
* <p>The security groups assigned to the new <code>DevEndpoint</code>.</p>
*/
inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
/**
* <p>The security groups assigned to the new <code>DevEndpoint</code>.</p>
*/
inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIds = value; }
/**
* <p>The security groups assigned to the new <code>DevEndpoint</code>.</p>
*/
inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIds = std::move(value); }
/**
* <p>The security groups assigned to the new <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetSecurityGroupIds(value); return *this;}
/**
* <p>The security groups assigned to the new <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
/**
* <p>The security groups assigned to the new <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIds.push_back(value); return *this; }
/**
* <p>The security groups assigned to the new <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIds.push_back(std::move(value)); return *this; }
/**
* <p>The security groups assigned to the new <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& AddSecurityGroupIds(const char* value) { m_securityGroupIds.push_back(value); return *this; }
/**
* <p>The subnet ID assigned to the new <code>DevEndpoint</code>.</p>
*/
inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
/**
* <p>The subnet ID assigned to the new <code>DevEndpoint</code>.</p>
*/
inline void SetSubnetId(const Aws::String& value) { m_subnetId = value; }
/**
* <p>The subnet ID assigned to the new <code>DevEndpoint</code>.</p>
*/
inline void SetSubnetId(Aws::String&& value) { m_subnetId = std::move(value); }
/**
* <p>The subnet ID assigned to the new <code>DevEndpoint</code>.</p>
*/
inline void SetSubnetId(const char* value) { m_subnetId.assign(value); }
/**
* <p>The subnet ID assigned to the new <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
/**
* <p>The subnet ID assigned to the new <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
/**
* <p>The subnet ID assigned to the new <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the role assigned to the new
* <code>DevEndpoint</code>.</p>
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* <p>The Amazon Resource Name (ARN) of the role assigned to the new
* <code>DevEndpoint</code>.</p>
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the role assigned to the new
* <code>DevEndpoint</code>.</p>
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the role assigned to the new
* <code>DevEndpoint</code>.</p>
*/
inline void SetRoleArn(const char* value) { m_roleArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the role assigned to the new
* <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the role assigned to the new
* <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the role assigned to the new
* <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
/**
* <p>The address of the YARN endpoint used by this <code>DevEndpoint</code>.</p>
*/
inline const Aws::String& GetYarnEndpointAddress() const{ return m_yarnEndpointAddress; }
/**
* <p>The address of the YARN endpoint used by this <code>DevEndpoint</code>.</p>
*/
inline void SetYarnEndpointAddress(const Aws::String& value) { m_yarnEndpointAddress = value; }
/**
* <p>The address of the YARN endpoint used by this <code>DevEndpoint</code>.</p>
*/
inline void SetYarnEndpointAddress(Aws::String&& value) { m_yarnEndpointAddress = std::move(value); }
/**
* <p>The address of the YARN endpoint used by this <code>DevEndpoint</code>.</p>
*/
inline void SetYarnEndpointAddress(const char* value) { m_yarnEndpointAddress.assign(value); }
/**
* <p>The address of the YARN endpoint used by this <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithYarnEndpointAddress(const Aws::String& value) { SetYarnEndpointAddress(value); return *this;}
/**
* <p>The address of the YARN endpoint used by this <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithYarnEndpointAddress(Aws::String&& value) { SetYarnEndpointAddress(std::move(value)); return *this;}
/**
* <p>The address of the YARN endpoint used by this <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithYarnEndpointAddress(const char* value) { SetYarnEndpointAddress(value); return *this;}
/**
* <p>The Apache Zeppelin port for the remote Apache Spark interpreter.</p>
*/
inline int GetZeppelinRemoteSparkInterpreterPort() const{ return m_zeppelinRemoteSparkInterpreterPort; }
/**
* <p>The Apache Zeppelin port for the remote Apache Spark interpreter.</p>
*/
inline void SetZeppelinRemoteSparkInterpreterPort(int value) { m_zeppelinRemoteSparkInterpreterPort = value; }
/**
* <p>The Apache Zeppelin port for the remote Apache Spark interpreter.</p>
*/
inline CreateDevEndpointResult& WithZeppelinRemoteSparkInterpreterPort(int value) { SetZeppelinRemoteSparkInterpreterPort(value); return *this;}
/**
* <p>The number of AWS Glue Data Processing Units (DPUs) allocated to this
* DevEndpoint.</p>
*/
inline int GetNumberOfNodes() const{ return m_numberOfNodes; }
/**
* <p>The number of AWS Glue Data Processing Units (DPUs) allocated to this
* DevEndpoint.</p>
*/
inline void SetNumberOfNodes(int value) { m_numberOfNodes = value; }
/**
* <p>The number of AWS Glue Data Processing Units (DPUs) allocated to this
* DevEndpoint.</p>
*/
inline CreateDevEndpointResult& WithNumberOfNodes(int value) { SetNumberOfNodes(value); return *this;}
/**
* <p>The type of predefined worker that is allocated to the development endpoint.
* May be a value of Standard, G.1X, or G.2X.</p>
*/
inline const WorkerType& GetWorkerType() const{ return m_workerType; }
/**
* <p>The type of predefined worker that is allocated to the development endpoint.
* May be a value of Standard, G.1X, or G.2X.</p>
*/
inline void SetWorkerType(const WorkerType& value) { m_workerType = value; }
/**
* <p>The type of predefined worker that is allocated to the development endpoint.
* May be a value of Standard, G.1X, or G.2X.</p>
*/
inline void SetWorkerType(WorkerType&& value) { m_workerType = std::move(value); }
/**
* <p>The type of predefined worker that is allocated to the development endpoint.
* May be a value of Standard, G.1X, or G.2X.</p>
*/
inline CreateDevEndpointResult& WithWorkerType(const WorkerType& value) { SetWorkerType(value); return *this;}
/**
* <p>The type of predefined worker that is allocated to the development endpoint.
* May be a value of Standard, G.1X, or G.2X.</p>
*/
inline CreateDevEndpointResult& WithWorkerType(WorkerType&& value) { SetWorkerType(std::move(value)); return *this;}
/**
* <p>Glue version determines the versions of Apache Spark and Python that AWS Glue
* supports. The Python version indicates the version supported for running your
* ETL scripts on development endpoints. </p>
*/
inline const Aws::String& GetGlueVersion() const{ return m_glueVersion; }
/**
* <p>Glue version determines the versions of Apache Spark and Python that AWS Glue
* supports. The Python version indicates the version supported for running your
* ETL scripts on development endpoints. </p>
*/
inline void SetGlueVersion(const Aws::String& value) { m_glueVersion = value; }
/**
* <p>Glue version determines the versions of Apache Spark and Python that AWS Glue
* supports. The Python version indicates the version supported for running your
* ETL scripts on development endpoints. </p>
*/
inline void SetGlueVersion(Aws::String&& value) { m_glueVersion = std::move(value); }
/**
* <p>Glue version determines the versions of Apache Spark and Python that AWS Glue
* supports. The Python version indicates the version supported for running your
* ETL scripts on development endpoints. </p>
*/
inline void SetGlueVersion(const char* value) { m_glueVersion.assign(value); }
/**
* <p>Glue version determines the versions of Apache Spark and Python that AWS Glue
* supports. The Python version indicates the version supported for running your
* ETL scripts on development endpoints. </p>
*/
inline CreateDevEndpointResult& WithGlueVersion(const Aws::String& value) { SetGlueVersion(value); return *this;}
/**
* <p>Glue version determines the versions of Apache Spark and Python that AWS Glue
* supports. The Python version indicates the version supported for running your
* ETL scripts on development endpoints. </p>
*/
inline CreateDevEndpointResult& WithGlueVersion(Aws::String&& value) { SetGlueVersion(std::move(value)); return *this;}
/**
* <p>Glue version determines the versions of Apache Spark and Python that AWS Glue
* supports. The Python version indicates the version supported for running your
* ETL scripts on development endpoints. </p>
*/
inline CreateDevEndpointResult& WithGlueVersion(const char* value) { SetGlueVersion(value); return *this;}
/**
* <p>The number of workers of a defined <code>workerType</code> that are allocated
* to the development endpoint.</p>
*/
inline int GetNumberOfWorkers() const{ return m_numberOfWorkers; }
/**
* <p>The number of workers of a defined <code>workerType</code> that are allocated
* to the development endpoint.</p>
*/
inline void SetNumberOfWorkers(int value) { m_numberOfWorkers = value; }
/**
* <p>The number of workers of a defined <code>workerType</code> that are allocated
* to the development endpoint.</p>
*/
inline CreateDevEndpointResult& WithNumberOfWorkers(int value) { SetNumberOfWorkers(value); return *this;}
/**
* <p>The AWS Availability Zone where this <code>DevEndpoint</code> is located.</p>
*/
inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
/**
* <p>The AWS Availability Zone where this <code>DevEndpoint</code> is located.</p>
*/
inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZone = value; }
/**
* <p>The AWS Availability Zone where this <code>DevEndpoint</code> is located.</p>
*/
inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZone = std::move(value); }
/**
* <p>The AWS Availability Zone where this <code>DevEndpoint</code> is located.</p>
*/
inline void SetAvailabilityZone(const char* value) { m_availabilityZone.assign(value); }
/**
* <p>The AWS Availability Zone where this <code>DevEndpoint</code> is located.</p>
*/
inline CreateDevEndpointResult& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
/**
* <p>The AWS Availability Zone where this <code>DevEndpoint</code> is located.</p>
*/
inline CreateDevEndpointResult& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
/**
* <p>The AWS Availability Zone where this <code>DevEndpoint</code> is located.</p>
*/
inline CreateDevEndpointResult& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
/**
* <p>The ID of the virtual private cloud (VPC) used by this
* <code>DevEndpoint</code>.</p>
*/
inline const Aws::String& GetVpcId() const{ return m_vpcId; }
/**
* <p>The ID of the virtual private cloud (VPC) used by this
* <code>DevEndpoint</code>.</p>
*/
inline void SetVpcId(const Aws::String& value) { m_vpcId = value; }
/**
* <p>The ID of the virtual private cloud (VPC) used by this
* <code>DevEndpoint</code>.</p>
*/
inline void SetVpcId(Aws::String&& value) { m_vpcId = std::move(value); }
/**
* <p>The ID of the virtual private cloud (VPC) used by this
* <code>DevEndpoint</code>.</p>
*/
inline void SetVpcId(const char* value) { m_vpcId.assign(value); }
/**
* <p>The ID of the virtual private cloud (VPC) used by this
* <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
/**
* <p>The ID of the virtual private cloud (VPC) used by this
* <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
/**
* <p>The ID of the virtual private cloud (VPC) used by this
* <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithVpcId(const char* value) { SetVpcId(value); return *this;}
/**
* <p>The paths to one or more Python libraries in an S3 bucket that will be loaded
* in your <code>DevEndpoint</code>.</p>
*/
inline const Aws::String& GetExtraPythonLibsS3Path() const{ return m_extraPythonLibsS3Path; }
/**
* <p>The paths to one or more Python libraries in an S3 bucket that will be loaded
* in your <code>DevEndpoint</code>.</p>
*/
inline void SetExtraPythonLibsS3Path(const Aws::String& value) { m_extraPythonLibsS3Path = value; }
/**
* <p>The paths to one or more Python libraries in an S3 bucket that will be loaded
* in your <code>DevEndpoint</code>.</p>
*/
inline void SetExtraPythonLibsS3Path(Aws::String&& value) { m_extraPythonLibsS3Path = std::move(value); }
/**
* <p>The paths to one or more Python libraries in an S3 bucket that will be loaded
* in your <code>DevEndpoint</code>.</p>
*/
inline void SetExtraPythonLibsS3Path(const char* value) { m_extraPythonLibsS3Path.assign(value); }
/**
* <p>The paths to one or more Python libraries in an S3 bucket that will be loaded
* in your <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithExtraPythonLibsS3Path(const Aws::String& value) { SetExtraPythonLibsS3Path(value); return *this;}
/**
* <p>The paths to one or more Python libraries in an S3 bucket that will be loaded
* in your <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithExtraPythonLibsS3Path(Aws::String&& value) { SetExtraPythonLibsS3Path(std::move(value)); return *this;}
/**
* <p>The paths to one or more Python libraries in an S3 bucket that will be loaded
* in your <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithExtraPythonLibsS3Path(const char* value) { SetExtraPythonLibsS3Path(value); return *this;}
/**
* <p>Path to one or more Java <code>.jar</code> files in an S3 bucket that will be
* loaded in your <code>DevEndpoint</code>.</p>
*/
inline const Aws::String& GetExtraJarsS3Path() const{ return m_extraJarsS3Path; }
/**
* <p>Path to one or more Java <code>.jar</code> files in an S3 bucket that will be
* loaded in your <code>DevEndpoint</code>.</p>
*/
inline void SetExtraJarsS3Path(const Aws::String& value) { m_extraJarsS3Path = value; }
/**
* <p>Path to one or more Java <code>.jar</code> files in an S3 bucket that will be
* loaded in your <code>DevEndpoint</code>.</p>
*/
inline void SetExtraJarsS3Path(Aws::String&& value) { m_extraJarsS3Path = std::move(value); }
/**
* <p>Path to one or more Java <code>.jar</code> files in an S3 bucket that will be
* loaded in your <code>DevEndpoint</code>.</p>
*/
inline void SetExtraJarsS3Path(const char* value) { m_extraJarsS3Path.assign(value); }
/**
* <p>Path to one or more Java <code>.jar</code> files in an S3 bucket that will be
* loaded in your <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithExtraJarsS3Path(const Aws::String& value) { SetExtraJarsS3Path(value); return *this;}
/**
* <p>Path to one or more Java <code>.jar</code> files in an S3 bucket that will be
* loaded in your <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithExtraJarsS3Path(Aws::String&& value) { SetExtraJarsS3Path(std::move(value)); return *this;}
/**
* <p>Path to one or more Java <code>.jar</code> files in an S3 bucket that will be
* loaded in your <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithExtraJarsS3Path(const char* value) { SetExtraJarsS3Path(value); return *this;}
/**
* <p>The reason for a current failure in this <code>DevEndpoint</code>.</p>
*/
inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
/**
* <p>The reason for a current failure in this <code>DevEndpoint</code>.</p>
*/
inline void SetFailureReason(const Aws::String& value) { m_failureReason = value; }
/**
* <p>The reason for a current failure in this <code>DevEndpoint</code>.</p>
*/
inline void SetFailureReason(Aws::String&& value) { m_failureReason = std::move(value); }
/**
* <p>The reason for a current failure in this <code>DevEndpoint</code>.</p>
*/
inline void SetFailureReason(const char* value) { m_failureReason.assign(value); }
/**
* <p>The reason for a current failure in this <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
/**
* <p>The reason for a current failure in this <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
/**
* <p>The reason for a current failure in this <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
/**
* <p>The name of the <code>SecurityConfiguration</code> structure being used with
* this <code>DevEndpoint</code>.</p>
*/
inline const Aws::String& GetSecurityConfiguration() const{ return m_securityConfiguration; }
/**
* <p>The name of the <code>SecurityConfiguration</code> structure being used with
* this <code>DevEndpoint</code>.</p>
*/
inline void SetSecurityConfiguration(const Aws::String& value) { m_securityConfiguration = value; }
/**
* <p>The name of the <code>SecurityConfiguration</code> structure being used with
* this <code>DevEndpoint</code>.</p>
*/
inline void SetSecurityConfiguration(Aws::String&& value) { m_securityConfiguration = std::move(value); }
/**
* <p>The name of the <code>SecurityConfiguration</code> structure being used with
* this <code>DevEndpoint</code>.</p>
*/
inline void SetSecurityConfiguration(const char* value) { m_securityConfiguration.assign(value); }
/**
* <p>The name of the <code>SecurityConfiguration</code> structure being used with
* this <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithSecurityConfiguration(const Aws::String& value) { SetSecurityConfiguration(value); return *this;}
/**
* <p>The name of the <code>SecurityConfiguration</code> structure being used with
* this <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithSecurityConfiguration(Aws::String&& value) { SetSecurityConfiguration(std::move(value)); return *this;}
/**
* <p>The name of the <code>SecurityConfiguration</code> structure being used with
* this <code>DevEndpoint</code>.</p>
*/
inline CreateDevEndpointResult& WithSecurityConfiguration(const char* value) { SetSecurityConfiguration(value); return *this;}
/**
* <p>The point in time at which this <code>DevEndpoint</code> was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
/**
* <p>The point in time at which this <code>DevEndpoint</code> was created.</p>
*/
inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; }
/**
* <p>The point in time at which this <code>DevEndpoint</code> was created.</p>
*/
inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); }
/**
* <p>The point in time at which this <code>DevEndpoint</code> was created.</p>
*/
inline CreateDevEndpointResult& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;}
/**
* <p>The point in time at which this <code>DevEndpoint</code> was created.</p>
*/
inline CreateDevEndpointResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
/**
* <p>The map of arguments used to configure this <code>DevEndpoint</code>.</p>
* <p>Valid arguments are:</p> <ul> <li> <p> <code>"--enable-glue-datacatalog":
* ""</code> </p> </li> <li> <p> <code>"GLUE_PYTHON_VERSION": "3"</code> </p> </li>
* <li> <p> <code>"GLUE_PYTHON_VERSION": "2"</code> </p> </li> </ul> <p>You can
* specify a version of Python support for development endpoints by using the
* <code>Arguments</code> parameter in the <code>CreateDevEndpoint</code> or
* <code>UpdateDevEndpoint</code> APIs. If no arguments are provided, the version
* defaults to Python 2.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetArguments() const{ return m_arguments; }
/**
* <p>The map of arguments used to configure this <code>DevEndpoint</code>.</p>
* <p>Valid arguments are:</p> <ul> <li> <p> <code>"--enable-glue-datacatalog":
* ""</code> </p> </li> <li> <p> <code>"GLUE_PYTHON_VERSION": "3"</code> </p> </li>
* <li> <p> <code>"GLUE_PYTHON_VERSION": "2"</code> </p> </li> </ul> <p>You can
* specify a version of Python support for development endpoints by using the
* <code>Arguments</code> parameter in the <code>CreateDevEndpoint</code> or
* <code>UpdateDevEndpoint</code> APIs. If no arguments are provided, the version
* defaults to Python 2.</p>
*/
inline void SetArguments(const Aws::Map<Aws::String, Aws::String>& value) { m_arguments = value; }
/**
* <p>The map of arguments used to configure this <code>DevEndpoint</code>.</p>
* <p>Valid arguments are:</p> <ul> <li> <p> <code>"--enable-glue-datacatalog":
* ""</code> </p> </li> <li> <p> <code>"GLUE_PYTHON_VERSION": "3"</code> </p> </li>
* <li> <p> <code>"GLUE_PYTHON_VERSION": "2"</code> </p> </li> </ul> <p>You can
* specify a version of Python support for development endpoints by using the
* <code>Arguments</code> parameter in the <code>CreateDevEndpoint</code> or
* <code>UpdateDevEndpoint</code> APIs. If no arguments are provided, the version
* defaults to Python 2.</p>
*/
inline void SetArguments(Aws::Map<Aws::String, Aws::String>&& value) { m_arguments = std::move(value); }
/**
* <p>The map of arguments used to configure this <code>DevEndpoint</code>.</p>
* <p>Valid arguments are:</p> <ul> <li> <p> <code>"--enable-glue-datacatalog":
* ""</code> </p> </li> <li> <p> <code>"GLUE_PYTHON_VERSION": "3"</code> </p> </li>
* <li> <p> <code>"GLUE_PYTHON_VERSION": "2"</code> </p> </li> </ul> <p>You can
* specify a version of Python support for development endpoints by using the
* <code>Arguments</code> parameter in the <code>CreateDevEndpoint</code> or
* <code>UpdateDevEndpoint</code> APIs. If no arguments are provided, the version
* defaults to Python 2.</p>
*/
inline CreateDevEndpointResult& WithArguments(const Aws::Map<Aws::String, Aws::String>& value) { SetArguments(value); return *this;}
/**
* <p>The map of arguments used to configure this <code>DevEndpoint</code>.</p>
* <p>Valid arguments are:</p> <ul> <li> <p> <code>"--enable-glue-datacatalog":
* ""</code> </p> </li> <li> <p> <code>"GLUE_PYTHON_VERSION": "3"</code> </p> </li>
* <li> <p> <code>"GLUE_PYTHON_VERSION": "2"</code> </p> </li> </ul> <p>You can
* specify a version of Python support for development endpoints by using the
* <code>Arguments</code> parameter in the <code>CreateDevEndpoint</code> or
* <code>UpdateDevEndpoint</code> APIs. If no arguments are provided, the version
* defaults to Python 2.</p>
*/
inline CreateDevEndpointResult& WithArguments(Aws::Map<Aws::String, Aws::String>&& value) { SetArguments(std::move(value)); return *this;}
/**
* <p>The map of arguments used to configure this <code>DevEndpoint</code>.</p>
* <p>Valid arguments are:</p> <ul> <li> <p> <code>"--enable-glue-datacatalog":
* ""</code> </p> </li> <li> <p> <code>"GLUE_PYTHON_VERSION": "3"</code> </p> </li>
* <li> <p> <code>"GLUE_PYTHON_VERSION": "2"</code> </p> </li> </ul> <p>You can
* specify a version of Python support for development endpoints by using the
* <code>Arguments</code> parameter in the <code>CreateDevEndpoint</code> or
* <code>UpdateDevEndpoint</code> APIs. If no arguments are provided, the version
* defaults to Python 2.</p>
*/
inline CreateDevEndpointResult& AddArguments(const Aws::String& key, const Aws::String& value) { m_arguments.emplace(key, value); return *this; }
/**
* <p>The map of arguments used to configure this <code>DevEndpoint</code>.</p>
* <p>Valid arguments are:</p> <ul> <li> <p> <code>"--enable-glue-datacatalog":
* ""</code> </p> </li> <li> <p> <code>"GLUE_PYTHON_VERSION": "3"</code> </p> </li>
* <li> <p> <code>"GLUE_PYTHON_VERSION": "2"</code> </p> </li> </ul> <p>You can
* specify a version of Python support for development endpoints by using the
* <code>Arguments</code> parameter in the <code>CreateDevEndpoint</code> or
* <code>UpdateDevEndpoint</code> APIs. If no arguments are provided, the version
* defaults to Python 2.</p>
*/
inline CreateDevEndpointResult& AddArguments(Aws::String&& key, const Aws::String& value) { m_arguments.emplace(std::move(key), value); return *this; }
/**
* <p>The map of arguments used to configure this <code>DevEndpoint</code>.</p>
* <p>Valid arguments are:</p> <ul> <li> <p> <code>"--enable-glue-datacatalog":
* ""</code> </p> </li> <li> <p> <code>"GLUE_PYTHON_VERSION": "3"</code> </p> </li>
* <li> <p> <code>"GLUE_PYTHON_VERSION": "2"</code> </p> </li> </ul> <p>You can
* specify a version of Python support for development endpoints by using the
* <code>Arguments</code> parameter in the <code>CreateDevEndpoint</code> or
* <code>UpdateDevEndpoint</code> APIs. If no arguments are provided, the version
* defaults to Python 2.</p>
*/
inline CreateDevEndpointResult& AddArguments(const Aws::String& key, Aws::String&& value) { m_arguments.emplace(key, std::move(value)); return *this; }
/**
* <p>The map of arguments used to configure this <code>DevEndpoint</code>.</p>
* <p>Valid arguments are:</p> <ul> <li> <p> <code>"--enable-glue-datacatalog":
* ""</code> </p> </li> <li> <p> <code>"GLUE_PYTHON_VERSION": "3"</code> </p> </li>
* <li> <p> <code>"GLUE_PYTHON_VERSION": "2"</code> </p> </li> </ul> <p>You can
* specify a version of Python support for development endpoints by using the
* <code>Arguments</code> parameter in the <code>CreateDevEndpoint</code> or
* <code>UpdateDevEndpoint</code> APIs. If no arguments are provided, the version
* defaults to Python 2.</p>
*/
inline CreateDevEndpointResult& AddArguments(Aws::String&& key, Aws::String&& value) { m_arguments.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The map of arguments used to configure this <code>DevEndpoint</code>.</p>
* <p>Valid arguments are:</p> <ul> <li> <p> <code>"--enable-glue-datacatalog":
* ""</code> </p> </li> <li> <p> <code>"GLUE_PYTHON_VERSION": "3"</code> </p> </li>
* <li> <p> <code>"GLUE_PYTHON_VERSION": "2"</code> </p> </li> </ul> <p>You can
* specify a version of Python support for development endpoints by using the
* <code>Arguments</code> parameter in the <code>CreateDevEndpoint</code> or
* <code>UpdateDevEndpoint</code> APIs. If no arguments are provided, the version
* defaults to Python 2.</p>
*/
inline CreateDevEndpointResult& AddArguments(const char* key, Aws::String&& value) { m_arguments.emplace(key, std::move(value)); return *this; }
/**
* <p>The map of arguments used to configure this <code>DevEndpoint</code>.</p>
* <p>Valid arguments are:</p> <ul> <li> <p> <code>"--enable-glue-datacatalog":
* ""</code> </p> </li> <li> <p> <code>"GLUE_PYTHON_VERSION": "3"</code> </p> </li>
* <li> <p> <code>"GLUE_PYTHON_VERSION": "2"</code> </p> </li> </ul> <p>You can
* specify a version of Python support for development endpoints by using the
* <code>Arguments</code> parameter in the <code>CreateDevEndpoint</code> or
* <code>UpdateDevEndpoint</code> APIs. If no arguments are provided, the version
* defaults to Python 2.</p>
*/
inline CreateDevEndpointResult& AddArguments(Aws::String&& key, const char* value) { m_arguments.emplace(std::move(key), value); return *this; }
/**
* <p>The map of arguments used to configure this <code>DevEndpoint</code>.</p>
* <p>Valid arguments are:</p> <ul> <li> <p> <code>"--enable-glue-datacatalog":
* ""</code> </p> </li> <li> <p> <code>"GLUE_PYTHON_VERSION": "3"</code> </p> </li>
* <li> <p> <code>"GLUE_PYTHON_VERSION": "2"</code> </p> </li> </ul> <p>You can
* specify a version of Python support for development endpoints by using the
* <code>Arguments</code> parameter in the <code>CreateDevEndpoint</code> or
* <code>UpdateDevEndpoint</code> APIs. If no arguments are provided, the version
* defaults to Python 2.</p>
*/
inline CreateDevEndpointResult& AddArguments(const char* key, const char* value) { m_arguments.emplace(key, value); return *this; }
private:
Aws::String m_endpointName;
Aws::String m_status;
Aws::Vector<Aws::String> m_securityGroupIds;
Aws::String m_subnetId;
Aws::String m_roleArn;
Aws::String m_yarnEndpointAddress;
int m_zeppelinRemoteSparkInterpreterPort;
int m_numberOfNodes;
WorkerType m_workerType;
Aws::String m_glueVersion;
int m_numberOfWorkers;
Aws::String m_availabilityZone;
Aws::String m_vpcId;
Aws::String m_extraPythonLibsS3Path;
Aws::String m_extraJarsS3Path;
Aws::String m_failureReason;
Aws::String m_securityConfiguration;
Aws::Utils::DateTime m_createdTimestamp;
Aws::Map<Aws::String, Aws::String> m_arguments;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,229 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_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 Glue
{
namespace Model
{
/**
* <p>Specifies a <code>grok</code> classifier for <code>CreateClassifier</code> to
* create.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateGrokClassifierRequest">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API CreateGrokClassifierRequest
{
public:
CreateGrokClassifierRequest();
CreateGrokClassifierRequest(Aws::Utils::Json::JsonView jsonValue);
CreateGrokClassifierRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>An identifier of the data format that the classifier matches, such as
* Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.</p>
*/
inline const Aws::String& GetClassification() const{ return m_classification; }
/**
* <p>An identifier of the data format that the classifier matches, such as
* Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.</p>
*/
inline bool ClassificationHasBeenSet() const { return m_classificationHasBeenSet; }
/**
* <p>An identifier of the data format that the classifier matches, such as
* Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.</p>
*/
inline void SetClassification(const Aws::String& value) { m_classificationHasBeenSet = true; m_classification = value; }
/**
* <p>An identifier of the data format that the classifier matches, such as
* Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.</p>
*/
inline void SetClassification(Aws::String&& value) { m_classificationHasBeenSet = true; m_classification = std::move(value); }
/**
* <p>An identifier of the data format that the classifier matches, such as
* Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.</p>
*/
inline void SetClassification(const char* value) { m_classificationHasBeenSet = true; m_classification.assign(value); }
/**
* <p>An identifier of the data format that the classifier matches, such as
* Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.</p>
*/
inline CreateGrokClassifierRequest& WithClassification(const Aws::String& value) { SetClassification(value); return *this;}
/**
* <p>An identifier of the data format that the classifier matches, such as
* Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.</p>
*/
inline CreateGrokClassifierRequest& WithClassification(Aws::String&& value) { SetClassification(std::move(value)); return *this;}
/**
* <p>An identifier of the data format that the classifier matches, such as
* Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.</p>
*/
inline CreateGrokClassifierRequest& WithClassification(const char* value) { SetClassification(value); return *this;}
/**
* <p>The name of the new classifier.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the new classifier.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the new classifier.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the new classifier.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the new classifier.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the new classifier.</p>
*/
inline CreateGrokClassifierRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the new classifier.</p>
*/
inline CreateGrokClassifierRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the new classifier.</p>
*/
inline CreateGrokClassifierRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The grok pattern used by this classifier.</p>
*/
inline const Aws::String& GetGrokPattern() const{ return m_grokPattern; }
/**
* <p>The grok pattern used by this classifier.</p>
*/
inline bool GrokPatternHasBeenSet() const { return m_grokPatternHasBeenSet; }
/**
* <p>The grok pattern used by this classifier.</p>
*/
inline void SetGrokPattern(const Aws::String& value) { m_grokPatternHasBeenSet = true; m_grokPattern = value; }
/**
* <p>The grok pattern used by this classifier.</p>
*/
inline void SetGrokPattern(Aws::String&& value) { m_grokPatternHasBeenSet = true; m_grokPattern = std::move(value); }
/**
* <p>The grok pattern used by this classifier.</p>
*/
inline void SetGrokPattern(const char* value) { m_grokPatternHasBeenSet = true; m_grokPattern.assign(value); }
/**
* <p>The grok pattern used by this classifier.</p>
*/
inline CreateGrokClassifierRequest& WithGrokPattern(const Aws::String& value) { SetGrokPattern(value); return *this;}
/**
* <p>The grok pattern used by this classifier.</p>
*/
inline CreateGrokClassifierRequest& WithGrokPattern(Aws::String&& value) { SetGrokPattern(std::move(value)); return *this;}
/**
* <p>The grok pattern used by this classifier.</p>
*/
inline CreateGrokClassifierRequest& WithGrokPattern(const char* value) { SetGrokPattern(value); return *this;}
/**
* <p>Optional custom grok patterns used by this classifier.</p>
*/
inline const Aws::String& GetCustomPatterns() const{ return m_customPatterns; }
/**
* <p>Optional custom grok patterns used by this classifier.</p>
*/
inline bool CustomPatternsHasBeenSet() const { return m_customPatternsHasBeenSet; }
/**
* <p>Optional custom grok patterns used by this classifier.</p>
*/
inline void SetCustomPatterns(const Aws::String& value) { m_customPatternsHasBeenSet = true; m_customPatterns = value; }
/**
* <p>Optional custom grok patterns used by this classifier.</p>
*/
inline void SetCustomPatterns(Aws::String&& value) { m_customPatternsHasBeenSet = true; m_customPatterns = std::move(value); }
/**
* <p>Optional custom grok patterns used by this classifier.</p>
*/
inline void SetCustomPatterns(const char* value) { m_customPatternsHasBeenSet = true; m_customPatterns.assign(value); }
/**
* <p>Optional custom grok patterns used by this classifier.</p>
*/
inline CreateGrokClassifierRequest& WithCustomPatterns(const Aws::String& value) { SetCustomPatterns(value); return *this;}
/**
* <p>Optional custom grok patterns used by this classifier.</p>
*/
inline CreateGrokClassifierRequest& WithCustomPatterns(Aws::String&& value) { SetCustomPatterns(std::move(value)); return *this;}
/**
* <p>Optional custom grok patterns used by this classifier.</p>
*/
inline CreateGrokClassifierRequest& WithCustomPatterns(const char* value) { SetCustomPatterns(value); return *this;}
private:
Aws::String m_classification;
bool m_classificationHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_grokPattern;
bool m_grokPatternHasBeenSet;
Aws::String m_customPatterns;
bool m_customPatternsHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_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 Glue
{
namespace Model
{
class AWS_GLUE_API CreateJobResult
{
public:
CreateJobResult();
CreateJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The unique name that was provided for this job definition.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The unique name that was provided for this job definition.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The unique name that was provided for this job definition.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The unique name that was provided for this job definition.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The unique name that was provided for this job definition.</p>
*/
inline CreateJobResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The unique name that was provided for this job definition.</p>
*/
inline CreateJobResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The unique name that was provided for this job definition.</p>
*/
inline CreateJobResult& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_name;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,157 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_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 Glue
{
namespace Model
{
/**
* <p>Specifies a JSON classifier for <code>CreateClassifier</code> to
* create.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateJsonClassifierRequest">AWS
* API Reference</a></p>
*/
class AWS_GLUE_API CreateJsonClassifierRequest
{
public:
CreateJsonClassifierRequest();
CreateJsonClassifierRequest(Aws::Utils::Json::JsonView jsonValue);
CreateJsonClassifierRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the classifier.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the classifier.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the classifier.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the classifier.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the classifier.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the classifier.</p>
*/
inline CreateJsonClassifierRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the classifier.</p>
*/
inline CreateJsonClassifierRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the classifier.</p>
*/
inline CreateJsonClassifierRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A <code>JsonPath</code> string defining the JSON data for the classifier to
* classify. AWS Glue supports a subset of JsonPath, as described in <a
* href="https://docs.aws.amazon.com/glue/latest/dg/custom-classifier.html#custom-classifier-json">Writing
* JsonPath Custom Classifiers</a>.</p>
*/
inline const Aws::String& GetJsonPath() const{ return m_jsonPath; }
/**
* <p>A <code>JsonPath</code> string defining the JSON data for the classifier to
* classify. AWS Glue supports a subset of JsonPath, as described in <a
* href="https://docs.aws.amazon.com/glue/latest/dg/custom-classifier.html#custom-classifier-json">Writing
* JsonPath Custom Classifiers</a>.</p>
*/
inline bool JsonPathHasBeenSet() const { return m_jsonPathHasBeenSet; }
/**
* <p>A <code>JsonPath</code> string defining the JSON data for the classifier to
* classify. AWS Glue supports a subset of JsonPath, as described in <a
* href="https://docs.aws.amazon.com/glue/latest/dg/custom-classifier.html#custom-classifier-json">Writing
* JsonPath Custom Classifiers</a>.</p>
*/
inline void SetJsonPath(const Aws::String& value) { m_jsonPathHasBeenSet = true; m_jsonPath = value; }
/**
* <p>A <code>JsonPath</code> string defining the JSON data for the classifier to
* classify. AWS Glue supports a subset of JsonPath, as described in <a
* href="https://docs.aws.amazon.com/glue/latest/dg/custom-classifier.html#custom-classifier-json">Writing
* JsonPath Custom Classifiers</a>.</p>
*/
inline void SetJsonPath(Aws::String&& value) { m_jsonPathHasBeenSet = true; m_jsonPath = std::move(value); }
/**
* <p>A <code>JsonPath</code> string defining the JSON data for the classifier to
* classify. AWS Glue supports a subset of JsonPath, as described in <a
* href="https://docs.aws.amazon.com/glue/latest/dg/custom-classifier.html#custom-classifier-json">Writing
* JsonPath Custom Classifiers</a>.</p>
*/
inline void SetJsonPath(const char* value) { m_jsonPathHasBeenSet = true; m_jsonPath.assign(value); }
/**
* <p>A <code>JsonPath</code> string defining the JSON data for the classifier to
* classify. AWS Glue supports a subset of JsonPath, as described in <a
* href="https://docs.aws.amazon.com/glue/latest/dg/custom-classifier.html#custom-classifier-json">Writing
* JsonPath Custom Classifiers</a>.</p>
*/
inline CreateJsonClassifierRequest& WithJsonPath(const Aws::String& value) { SetJsonPath(value); return *this;}
/**
* <p>A <code>JsonPath</code> string defining the JSON data for the classifier to
* classify. AWS Glue supports a subset of JsonPath, as described in <a
* href="https://docs.aws.amazon.com/glue/latest/dg/custom-classifier.html#custom-classifier-json">Writing
* JsonPath Custom Classifiers</a>.</p>
*/
inline CreateJsonClassifierRequest& WithJsonPath(Aws::String&& value) { SetJsonPath(std::move(value)); return *this;}
/**
* <p>A <code>JsonPath</code> string defining the JSON data for the classifier to
* classify. AWS Glue supports a subset of JsonPath, as described in <a
* href="https://docs.aws.amazon.com/glue/latest/dg/custom-classifier.html#custom-classifier-json">Writing
* JsonPath Custom Classifiers</a>.</p>
*/
inline CreateJsonClassifierRequest& WithJsonPath(const char* value) { SetJsonPath(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_jsonPath;
bool m_jsonPathHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,869 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glue/model/TransformParameters.h>
#include <aws/glue/model/WorkerType.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/glue/model/GlueTable.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API CreateMLTransformRequest : public GlueRequest
{
public:
CreateMLTransformRequest();
// 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 "CreateMLTransform"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The unique name that you give the transform when you create it.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The unique name that you give the transform when you create it.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The unique name that you give the transform when you create it.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The unique name that you give the transform when you create it.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The unique name that you give the transform when you create it.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The unique name that you give the transform when you create it.</p>
*/
inline CreateMLTransformRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The unique name that you give the transform when you create it.</p>
*/
inline CreateMLTransformRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The unique name that you give the transform when you create it.</p>
*/
inline CreateMLTransformRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A description of the machine learning transform that is being defined. The
* default is an empty string.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the machine learning transform that is being defined. The
* default is an empty string.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description of the machine learning transform that is being defined. The
* default is an empty string.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description of the machine learning transform that is being defined. The
* default is an empty string.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description of the machine learning transform that is being defined. The
* default is an empty string.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description of the machine learning transform that is being defined. The
* default is an empty string.</p>
*/
inline CreateMLTransformRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the machine learning transform that is being defined. The
* default is an empty string.</p>
*/
inline CreateMLTransformRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the machine learning transform that is being defined. The
* default is an empty string.</p>
*/
inline CreateMLTransformRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>A list of AWS Glue table definitions used by the transform.</p>
*/
inline const Aws::Vector<GlueTable>& GetInputRecordTables() const{ return m_inputRecordTables; }
/**
* <p>A list of AWS Glue table definitions used by the transform.</p>
*/
inline bool InputRecordTablesHasBeenSet() const { return m_inputRecordTablesHasBeenSet; }
/**
* <p>A list of AWS Glue table definitions used by the transform.</p>
*/
inline void SetInputRecordTables(const Aws::Vector<GlueTable>& value) { m_inputRecordTablesHasBeenSet = true; m_inputRecordTables = value; }
/**
* <p>A list of AWS Glue table definitions used by the transform.</p>
*/
inline void SetInputRecordTables(Aws::Vector<GlueTable>&& value) { m_inputRecordTablesHasBeenSet = true; m_inputRecordTables = std::move(value); }
/**
* <p>A list of AWS Glue table definitions used by the transform.</p>
*/
inline CreateMLTransformRequest& WithInputRecordTables(const Aws::Vector<GlueTable>& value) { SetInputRecordTables(value); return *this;}
/**
* <p>A list of AWS Glue table definitions used by the transform.</p>
*/
inline CreateMLTransformRequest& WithInputRecordTables(Aws::Vector<GlueTable>&& value) { SetInputRecordTables(std::move(value)); return *this;}
/**
* <p>A list of AWS Glue table definitions used by the transform.</p>
*/
inline CreateMLTransformRequest& AddInputRecordTables(const GlueTable& value) { m_inputRecordTablesHasBeenSet = true; m_inputRecordTables.push_back(value); return *this; }
/**
* <p>A list of AWS Glue table definitions used by the transform.</p>
*/
inline CreateMLTransformRequest& AddInputRecordTables(GlueTable&& value) { m_inputRecordTablesHasBeenSet = true; m_inputRecordTables.push_back(std::move(value)); return *this; }
/**
* <p>The algorithmic parameters that are specific to the transform type used.
* Conditionally dependent on the transform type.</p>
*/
inline const TransformParameters& GetParameters() const{ return m_parameters; }
/**
* <p>The algorithmic parameters that are specific to the transform type used.
* Conditionally dependent on the transform type.</p>
*/
inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
/**
* <p>The algorithmic parameters that are specific to the transform type used.
* Conditionally dependent on the transform type.</p>
*/
inline void SetParameters(const TransformParameters& value) { m_parametersHasBeenSet = true; m_parameters = value; }
/**
* <p>The algorithmic parameters that are specific to the transform type used.
* Conditionally dependent on the transform type.</p>
*/
inline void SetParameters(TransformParameters&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
/**
* <p>The algorithmic parameters that are specific to the transform type used.
* Conditionally dependent on the transform type.</p>
*/
inline CreateMLTransformRequest& WithParameters(const TransformParameters& value) { SetParameters(value); return *this;}
/**
* <p>The algorithmic parameters that are specific to the transform type used.
* Conditionally dependent on the transform type.</p>
*/
inline CreateMLTransformRequest& WithParameters(TransformParameters&& value) { SetParameters(std::move(value)); return *this;}
/**
* <p>The name or Amazon Resource Name (ARN) of the IAM role with the required
* permissions. The required permissions include both AWS Glue service role
* permissions to AWS Glue resources, and Amazon S3 permissions required by the
* transform. </p> <ul> <li> <p>This role needs AWS Glue service role permissions
* to allow access to resources in AWS Glue. See <a
* href="https://docs.aws.amazon.com/glue/latest/dg/attach-policy-iam-user.html">Attach
* a Policy to IAM Users That Access AWS Glue</a>.</p> </li> <li> <p>This role
* needs permission to your Amazon Simple Storage Service (Amazon S3) sources,
* targets, temporary directory, scripts, and any libraries used by the task run
* for this transform.</p> </li> </ul>
*/
inline const Aws::String& GetRole() const{ return m_role; }
/**
* <p>The name or Amazon Resource Name (ARN) of the IAM role with the required
* permissions. The required permissions include both AWS Glue service role
* permissions to AWS Glue resources, and Amazon S3 permissions required by the
* transform. </p> <ul> <li> <p>This role needs AWS Glue service role permissions
* to allow access to resources in AWS Glue. See <a
* href="https://docs.aws.amazon.com/glue/latest/dg/attach-policy-iam-user.html">Attach
* a Policy to IAM Users That Access AWS Glue</a>.</p> </li> <li> <p>This role
* needs permission to your Amazon Simple Storage Service (Amazon S3) sources,
* targets, temporary directory, scripts, and any libraries used by the task run
* for this transform.</p> </li> </ul>
*/
inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
/**
* <p>The name or Amazon Resource Name (ARN) of the IAM role with the required
* permissions. The required permissions include both AWS Glue service role
* permissions to AWS Glue resources, and Amazon S3 permissions required by the
* transform. </p> <ul> <li> <p>This role needs AWS Glue service role permissions
* to allow access to resources in AWS Glue. See <a
* href="https://docs.aws.amazon.com/glue/latest/dg/attach-policy-iam-user.html">Attach
* a Policy to IAM Users That Access AWS Glue</a>.</p> </li> <li> <p>This role
* needs permission to your Amazon Simple Storage Service (Amazon S3) sources,
* targets, temporary directory, scripts, and any libraries used by the task run
* for this transform.</p> </li> </ul>
*/
inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
/**
* <p>The name or Amazon Resource Name (ARN) of the IAM role with the required
* permissions. The required permissions include both AWS Glue service role
* permissions to AWS Glue resources, and Amazon S3 permissions required by the
* transform. </p> <ul> <li> <p>This role needs AWS Glue service role permissions
* to allow access to resources in AWS Glue. See <a
* href="https://docs.aws.amazon.com/glue/latest/dg/attach-policy-iam-user.html">Attach
* a Policy to IAM Users That Access AWS Glue</a>.</p> </li> <li> <p>This role
* needs permission to your Amazon Simple Storage Service (Amazon S3) sources,
* targets, temporary directory, scripts, and any libraries used by the task run
* for this transform.</p> </li> </ul>
*/
inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
/**
* <p>The name or Amazon Resource Name (ARN) of the IAM role with the required
* permissions. The required permissions include both AWS Glue service role
* permissions to AWS Glue resources, and Amazon S3 permissions required by the
* transform. </p> <ul> <li> <p>This role needs AWS Glue service role permissions
* to allow access to resources in AWS Glue. See <a
* href="https://docs.aws.amazon.com/glue/latest/dg/attach-policy-iam-user.html">Attach
* a Policy to IAM Users That Access AWS Glue</a>.</p> </li> <li> <p>This role
* needs permission to your Amazon Simple Storage Service (Amazon S3) sources,
* targets, temporary directory, scripts, and any libraries used by the task run
* for this transform.</p> </li> </ul>
*/
inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
/**
* <p>The name or Amazon Resource Name (ARN) of the IAM role with the required
* permissions. The required permissions include both AWS Glue service role
* permissions to AWS Glue resources, and Amazon S3 permissions required by the
* transform. </p> <ul> <li> <p>This role needs AWS Glue service role permissions
* to allow access to resources in AWS Glue. See <a
* href="https://docs.aws.amazon.com/glue/latest/dg/attach-policy-iam-user.html">Attach
* a Policy to IAM Users That Access AWS Glue</a>.</p> </li> <li> <p>This role
* needs permission to your Amazon Simple Storage Service (Amazon S3) sources,
* targets, temporary directory, scripts, and any libraries used by the task run
* for this transform.</p> </li> </ul>
*/
inline CreateMLTransformRequest& WithRole(const Aws::String& value) { SetRole(value); return *this;}
/**
* <p>The name or Amazon Resource Name (ARN) of the IAM role with the required
* permissions. The required permissions include both AWS Glue service role
* permissions to AWS Glue resources, and Amazon S3 permissions required by the
* transform. </p> <ul> <li> <p>This role needs AWS Glue service role permissions
* to allow access to resources in AWS Glue. See <a
* href="https://docs.aws.amazon.com/glue/latest/dg/attach-policy-iam-user.html">Attach
* a Policy to IAM Users That Access AWS Glue</a>.</p> </li> <li> <p>This role
* needs permission to your Amazon Simple Storage Service (Amazon S3) sources,
* targets, temporary directory, scripts, and any libraries used by the task run
* for this transform.</p> </li> </ul>
*/
inline CreateMLTransformRequest& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
/**
* <p>The name or Amazon Resource Name (ARN) of the IAM role with the required
* permissions. The required permissions include both AWS Glue service role
* permissions to AWS Glue resources, and Amazon S3 permissions required by the
* transform. </p> <ul> <li> <p>This role needs AWS Glue service role permissions
* to allow access to resources in AWS Glue. See <a
* href="https://docs.aws.amazon.com/glue/latest/dg/attach-policy-iam-user.html">Attach
* a Policy to IAM Users That Access AWS Glue</a>.</p> </li> <li> <p>This role
* needs permission to your Amazon Simple Storage Service (Amazon S3) sources,
* targets, temporary directory, scripts, and any libraries used by the task run
* for this transform.</p> </li> </ul>
*/
inline CreateMLTransformRequest& WithRole(const char* value) { SetRole(value); return *this;}
/**
* <p>This value determines which version of AWS Glue this machine learning
* transform is compatible with. Glue 1.0 is recommended for most customers. If the
* value is not set, the Glue compatibility defaults to Glue 0.9. For more
* information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/release-notes.html#release-notes-versions">AWS
* Glue Versions</a> in the developer guide.</p>
*/
inline const Aws::String& GetGlueVersion() const{ return m_glueVersion; }
/**
* <p>This value determines which version of AWS Glue this machine learning
* transform is compatible with. Glue 1.0 is recommended for most customers. If the
* value is not set, the Glue compatibility defaults to Glue 0.9. For more
* information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/release-notes.html#release-notes-versions">AWS
* Glue Versions</a> in the developer guide.</p>
*/
inline bool GlueVersionHasBeenSet() const { return m_glueVersionHasBeenSet; }
/**
* <p>This value determines which version of AWS Glue this machine learning
* transform is compatible with. Glue 1.0 is recommended for most customers. If the
* value is not set, the Glue compatibility defaults to Glue 0.9. For more
* information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/release-notes.html#release-notes-versions">AWS
* Glue Versions</a> in the developer guide.</p>
*/
inline void SetGlueVersion(const Aws::String& value) { m_glueVersionHasBeenSet = true; m_glueVersion = value; }
/**
* <p>This value determines which version of AWS Glue this machine learning
* transform is compatible with. Glue 1.0 is recommended for most customers. If the
* value is not set, the Glue compatibility defaults to Glue 0.9. For more
* information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/release-notes.html#release-notes-versions">AWS
* Glue Versions</a> in the developer guide.</p>
*/
inline void SetGlueVersion(Aws::String&& value) { m_glueVersionHasBeenSet = true; m_glueVersion = std::move(value); }
/**
* <p>This value determines which version of AWS Glue this machine learning
* transform is compatible with. Glue 1.0 is recommended for most customers. If the
* value is not set, the Glue compatibility defaults to Glue 0.9. For more
* information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/release-notes.html#release-notes-versions">AWS
* Glue Versions</a> in the developer guide.</p>
*/
inline void SetGlueVersion(const char* value) { m_glueVersionHasBeenSet = true; m_glueVersion.assign(value); }
/**
* <p>This value determines which version of AWS Glue this machine learning
* transform is compatible with. Glue 1.0 is recommended for most customers. If the
* value is not set, the Glue compatibility defaults to Glue 0.9. For more
* information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/release-notes.html#release-notes-versions">AWS
* Glue Versions</a> in the developer guide.</p>
*/
inline CreateMLTransformRequest& WithGlueVersion(const Aws::String& value) { SetGlueVersion(value); return *this;}
/**
* <p>This value determines which version of AWS Glue this machine learning
* transform is compatible with. Glue 1.0 is recommended for most customers. If the
* value is not set, the Glue compatibility defaults to Glue 0.9. For more
* information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/release-notes.html#release-notes-versions">AWS
* Glue Versions</a> in the developer guide.</p>
*/
inline CreateMLTransformRequest& WithGlueVersion(Aws::String&& value) { SetGlueVersion(std::move(value)); return *this;}
/**
* <p>This value determines which version of AWS Glue this machine learning
* transform is compatible with. Glue 1.0 is recommended for most customers. If the
* value is not set, the Glue compatibility defaults to Glue 0.9. For more
* information, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/release-notes.html#release-notes-versions">AWS
* Glue Versions</a> in the developer guide.</p>
*/
inline CreateMLTransformRequest& WithGlueVersion(const char* value) { SetGlueVersion(value); return *this;}
/**
* <p>The number of AWS Glue data processing units (DPUs) that are allocated to
* task runs for this transform. You can allocate from 2 to 100 DPUs; the default
* is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs
* of compute capacity and 16 GB of memory. For more information, see the <a
* href="https://aws.amazon.com/glue/pricing/">AWS Glue pricing page</a>. </p> <p>
* <code>MaxCapacity</code> is a mutually exclusive option with
* <code>NumberOfWorkers</code> and <code>WorkerType</code>.</p> <ul> <li> <p>If
* either <code>NumberOfWorkers</code> or <code>WorkerType</code> is set, then
* <code>MaxCapacity</code> cannot be set.</p> </li> <li> <p>If
* <code>MaxCapacity</code> is set then neither <code>NumberOfWorkers</code> or
* <code>WorkerType</code> can be set.</p> </li> <li> <p>If <code>WorkerType</code>
* is set, then <code>NumberOfWorkers</code> is required (and vice versa).</p>
* </li> <li> <p> <code>MaxCapacity</code> and <code>NumberOfWorkers</code> must
* both be at least 1.</p> </li> </ul> <p>When the <code>WorkerType</code> field is
* set to a value other than <code>Standard</code>, the <code>MaxCapacity</code>
* field is set automatically and becomes read-only.</p> <p>When the
* <code>WorkerType</code> field is set to a value other than
* <code>Standard</code>, the <code>MaxCapacity</code> field is set automatically
* and becomes read-only.</p>
*/
inline double GetMaxCapacity() const{ return m_maxCapacity; }
/**
* <p>The number of AWS Glue data processing units (DPUs) that are allocated to
* task runs for this transform. You can allocate from 2 to 100 DPUs; the default
* is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs
* of compute capacity and 16 GB of memory. For more information, see the <a
* href="https://aws.amazon.com/glue/pricing/">AWS Glue pricing page</a>. </p> <p>
* <code>MaxCapacity</code> is a mutually exclusive option with
* <code>NumberOfWorkers</code> and <code>WorkerType</code>.</p> <ul> <li> <p>If
* either <code>NumberOfWorkers</code> or <code>WorkerType</code> is set, then
* <code>MaxCapacity</code> cannot be set.</p> </li> <li> <p>If
* <code>MaxCapacity</code> is set then neither <code>NumberOfWorkers</code> or
* <code>WorkerType</code> can be set.</p> </li> <li> <p>If <code>WorkerType</code>
* is set, then <code>NumberOfWorkers</code> is required (and vice versa).</p>
* </li> <li> <p> <code>MaxCapacity</code> and <code>NumberOfWorkers</code> must
* both be at least 1.</p> </li> </ul> <p>When the <code>WorkerType</code> field is
* set to a value other than <code>Standard</code>, the <code>MaxCapacity</code>
* field is set automatically and becomes read-only.</p> <p>When the
* <code>WorkerType</code> field is set to a value other than
* <code>Standard</code>, the <code>MaxCapacity</code> field is set automatically
* and becomes read-only.</p>
*/
inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
/**
* <p>The number of AWS Glue data processing units (DPUs) that are allocated to
* task runs for this transform. You can allocate from 2 to 100 DPUs; the default
* is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs
* of compute capacity and 16 GB of memory. For more information, see the <a
* href="https://aws.amazon.com/glue/pricing/">AWS Glue pricing page</a>. </p> <p>
* <code>MaxCapacity</code> is a mutually exclusive option with
* <code>NumberOfWorkers</code> and <code>WorkerType</code>.</p> <ul> <li> <p>If
* either <code>NumberOfWorkers</code> or <code>WorkerType</code> is set, then
* <code>MaxCapacity</code> cannot be set.</p> </li> <li> <p>If
* <code>MaxCapacity</code> is set then neither <code>NumberOfWorkers</code> or
* <code>WorkerType</code> can be set.</p> </li> <li> <p>If <code>WorkerType</code>
* is set, then <code>NumberOfWorkers</code> is required (and vice versa).</p>
* </li> <li> <p> <code>MaxCapacity</code> and <code>NumberOfWorkers</code> must
* both be at least 1.</p> </li> </ul> <p>When the <code>WorkerType</code> field is
* set to a value other than <code>Standard</code>, the <code>MaxCapacity</code>
* field is set automatically and becomes read-only.</p> <p>When the
* <code>WorkerType</code> field is set to a value other than
* <code>Standard</code>, the <code>MaxCapacity</code> field is set automatically
* and becomes read-only.</p>
*/
inline void SetMaxCapacity(double value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
/**
* <p>The number of AWS Glue data processing units (DPUs) that are allocated to
* task runs for this transform. You can allocate from 2 to 100 DPUs; the default
* is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs
* of compute capacity and 16 GB of memory. For more information, see the <a
* href="https://aws.amazon.com/glue/pricing/">AWS Glue pricing page</a>. </p> <p>
* <code>MaxCapacity</code> is a mutually exclusive option with
* <code>NumberOfWorkers</code> and <code>WorkerType</code>.</p> <ul> <li> <p>If
* either <code>NumberOfWorkers</code> or <code>WorkerType</code> is set, then
* <code>MaxCapacity</code> cannot be set.</p> </li> <li> <p>If
* <code>MaxCapacity</code> is set then neither <code>NumberOfWorkers</code> or
* <code>WorkerType</code> can be set.</p> </li> <li> <p>If <code>WorkerType</code>
* is set, then <code>NumberOfWorkers</code> is required (and vice versa).</p>
* </li> <li> <p> <code>MaxCapacity</code> and <code>NumberOfWorkers</code> must
* both be at least 1.</p> </li> </ul> <p>When the <code>WorkerType</code> field is
* set to a value other than <code>Standard</code>, the <code>MaxCapacity</code>
* field is set automatically and becomes read-only.</p> <p>When the
* <code>WorkerType</code> field is set to a value other than
* <code>Standard</code>, the <code>MaxCapacity</code> field is set automatically
* and becomes read-only.</p>
*/
inline CreateMLTransformRequest& WithMaxCapacity(double value) { SetMaxCapacity(value); return *this;}
/**
* <p>The type of predefined worker that is allocated when this task runs. Accepts
* a value of Standard, G.1X, or G.2X.</p> <ul> <li> <p>For the
* <code>Standard</code> worker type, each worker provides 4 vCPU, 16 GB of memory
* and a 50GB disk, and 2 executors per worker.</p> </li> <li> <p>For the
* <code>G.1X</code> worker type, each worker provides 4 vCPU, 16 GB of memory and
* a 64GB disk, and 1 executor per worker.</p> </li> <li> <p>For the
* <code>G.2X</code> worker type, each worker provides 8 vCPU, 32 GB of memory and
* a 128GB disk, and 1 executor per worker.</p> </li> </ul> <p>
* <code>MaxCapacity</code> is a mutually exclusive option with
* <code>NumberOfWorkers</code> and <code>WorkerType</code>.</p> <ul> <li> <p>If
* either <code>NumberOfWorkers</code> or <code>WorkerType</code> is set, then
* <code>MaxCapacity</code> cannot be set.</p> </li> <li> <p>If
* <code>MaxCapacity</code> is set then neither <code>NumberOfWorkers</code> or
* <code>WorkerType</code> can be set.</p> </li> <li> <p>If <code>WorkerType</code>
* is set, then <code>NumberOfWorkers</code> is required (and vice versa).</p>
* </li> <li> <p> <code>MaxCapacity</code> and <code>NumberOfWorkers</code> must
* both be at least 1.</p> </li> </ul>
*/
inline const WorkerType& GetWorkerType() const{ return m_workerType; }
/**
* <p>The type of predefined worker that is allocated when this task runs. Accepts
* a value of Standard, G.1X, or G.2X.</p> <ul> <li> <p>For the
* <code>Standard</code> worker type, each worker provides 4 vCPU, 16 GB of memory
* and a 50GB disk, and 2 executors per worker.</p> </li> <li> <p>For the
* <code>G.1X</code> worker type, each worker provides 4 vCPU, 16 GB of memory and
* a 64GB disk, and 1 executor per worker.</p> </li> <li> <p>For the
* <code>G.2X</code> worker type, each worker provides 8 vCPU, 32 GB of memory and
* a 128GB disk, and 1 executor per worker.</p> </li> </ul> <p>
* <code>MaxCapacity</code> is a mutually exclusive option with
* <code>NumberOfWorkers</code> and <code>WorkerType</code>.</p> <ul> <li> <p>If
* either <code>NumberOfWorkers</code> or <code>WorkerType</code> is set, then
* <code>MaxCapacity</code> cannot be set.</p> </li> <li> <p>If
* <code>MaxCapacity</code> is set then neither <code>NumberOfWorkers</code> or
* <code>WorkerType</code> can be set.</p> </li> <li> <p>If <code>WorkerType</code>
* is set, then <code>NumberOfWorkers</code> is required (and vice versa).</p>
* </li> <li> <p> <code>MaxCapacity</code> and <code>NumberOfWorkers</code> must
* both be at least 1.</p> </li> </ul>
*/
inline bool WorkerTypeHasBeenSet() const { return m_workerTypeHasBeenSet; }
/**
* <p>The type of predefined worker that is allocated when this task runs. Accepts
* a value of Standard, G.1X, or G.2X.</p> <ul> <li> <p>For the
* <code>Standard</code> worker type, each worker provides 4 vCPU, 16 GB of memory
* and a 50GB disk, and 2 executors per worker.</p> </li> <li> <p>For the
* <code>G.1X</code> worker type, each worker provides 4 vCPU, 16 GB of memory and
* a 64GB disk, and 1 executor per worker.</p> </li> <li> <p>For the
* <code>G.2X</code> worker type, each worker provides 8 vCPU, 32 GB of memory and
* a 128GB disk, and 1 executor per worker.</p> </li> </ul> <p>
* <code>MaxCapacity</code> is a mutually exclusive option with
* <code>NumberOfWorkers</code> and <code>WorkerType</code>.</p> <ul> <li> <p>If
* either <code>NumberOfWorkers</code> or <code>WorkerType</code> is set, then
* <code>MaxCapacity</code> cannot be set.</p> </li> <li> <p>If
* <code>MaxCapacity</code> is set then neither <code>NumberOfWorkers</code> or
* <code>WorkerType</code> can be set.</p> </li> <li> <p>If <code>WorkerType</code>
* is set, then <code>NumberOfWorkers</code> is required (and vice versa).</p>
* </li> <li> <p> <code>MaxCapacity</code> and <code>NumberOfWorkers</code> must
* both be at least 1.</p> </li> </ul>
*/
inline void SetWorkerType(const WorkerType& value) { m_workerTypeHasBeenSet = true; m_workerType = value; }
/**
* <p>The type of predefined worker that is allocated when this task runs. Accepts
* a value of Standard, G.1X, or G.2X.</p> <ul> <li> <p>For the
* <code>Standard</code> worker type, each worker provides 4 vCPU, 16 GB of memory
* and a 50GB disk, and 2 executors per worker.</p> </li> <li> <p>For the
* <code>G.1X</code> worker type, each worker provides 4 vCPU, 16 GB of memory and
* a 64GB disk, and 1 executor per worker.</p> </li> <li> <p>For the
* <code>G.2X</code> worker type, each worker provides 8 vCPU, 32 GB of memory and
* a 128GB disk, and 1 executor per worker.</p> </li> </ul> <p>
* <code>MaxCapacity</code> is a mutually exclusive option with
* <code>NumberOfWorkers</code> and <code>WorkerType</code>.</p> <ul> <li> <p>If
* either <code>NumberOfWorkers</code> or <code>WorkerType</code> is set, then
* <code>MaxCapacity</code> cannot be set.</p> </li> <li> <p>If
* <code>MaxCapacity</code> is set then neither <code>NumberOfWorkers</code> or
* <code>WorkerType</code> can be set.</p> </li> <li> <p>If <code>WorkerType</code>
* is set, then <code>NumberOfWorkers</code> is required (and vice versa).</p>
* </li> <li> <p> <code>MaxCapacity</code> and <code>NumberOfWorkers</code> must
* both be at least 1.</p> </li> </ul>
*/
inline void SetWorkerType(WorkerType&& value) { m_workerTypeHasBeenSet = true; m_workerType = std::move(value); }
/**
* <p>The type of predefined worker that is allocated when this task runs. Accepts
* a value of Standard, G.1X, or G.2X.</p> <ul> <li> <p>For the
* <code>Standard</code> worker type, each worker provides 4 vCPU, 16 GB of memory
* and a 50GB disk, and 2 executors per worker.</p> </li> <li> <p>For the
* <code>G.1X</code> worker type, each worker provides 4 vCPU, 16 GB of memory and
* a 64GB disk, and 1 executor per worker.</p> </li> <li> <p>For the
* <code>G.2X</code> worker type, each worker provides 8 vCPU, 32 GB of memory and
* a 128GB disk, and 1 executor per worker.</p> </li> </ul> <p>
* <code>MaxCapacity</code> is a mutually exclusive option with
* <code>NumberOfWorkers</code> and <code>WorkerType</code>.</p> <ul> <li> <p>If
* either <code>NumberOfWorkers</code> or <code>WorkerType</code> is set, then
* <code>MaxCapacity</code> cannot be set.</p> </li> <li> <p>If
* <code>MaxCapacity</code> is set then neither <code>NumberOfWorkers</code> or
* <code>WorkerType</code> can be set.</p> </li> <li> <p>If <code>WorkerType</code>
* is set, then <code>NumberOfWorkers</code> is required (and vice versa).</p>
* </li> <li> <p> <code>MaxCapacity</code> and <code>NumberOfWorkers</code> must
* both be at least 1.</p> </li> </ul>
*/
inline CreateMLTransformRequest& WithWorkerType(const WorkerType& value) { SetWorkerType(value); return *this;}
/**
* <p>The type of predefined worker that is allocated when this task runs. Accepts
* a value of Standard, G.1X, or G.2X.</p> <ul> <li> <p>For the
* <code>Standard</code> worker type, each worker provides 4 vCPU, 16 GB of memory
* and a 50GB disk, and 2 executors per worker.</p> </li> <li> <p>For the
* <code>G.1X</code> worker type, each worker provides 4 vCPU, 16 GB of memory and
* a 64GB disk, and 1 executor per worker.</p> </li> <li> <p>For the
* <code>G.2X</code> worker type, each worker provides 8 vCPU, 32 GB of memory and
* a 128GB disk, and 1 executor per worker.</p> </li> </ul> <p>
* <code>MaxCapacity</code> is a mutually exclusive option with
* <code>NumberOfWorkers</code> and <code>WorkerType</code>.</p> <ul> <li> <p>If
* either <code>NumberOfWorkers</code> or <code>WorkerType</code> is set, then
* <code>MaxCapacity</code> cannot be set.</p> </li> <li> <p>If
* <code>MaxCapacity</code> is set then neither <code>NumberOfWorkers</code> or
* <code>WorkerType</code> can be set.</p> </li> <li> <p>If <code>WorkerType</code>
* is set, then <code>NumberOfWorkers</code> is required (and vice versa).</p>
* </li> <li> <p> <code>MaxCapacity</code> and <code>NumberOfWorkers</code> must
* both be at least 1.</p> </li> </ul>
*/
inline CreateMLTransformRequest& WithWorkerType(WorkerType&& value) { SetWorkerType(std::move(value)); return *this;}
/**
* <p>The number of workers of a defined <code>workerType</code> that are allocated
* when this task runs.</p> <p>If <code>WorkerType</code> is set, then
* <code>NumberOfWorkers</code> is required (and vice versa).</p>
*/
inline int GetNumberOfWorkers() const{ return m_numberOfWorkers; }
/**
* <p>The number of workers of a defined <code>workerType</code> that are allocated
* when this task runs.</p> <p>If <code>WorkerType</code> is set, then
* <code>NumberOfWorkers</code> is required (and vice versa).</p>
*/
inline bool NumberOfWorkersHasBeenSet() const { return m_numberOfWorkersHasBeenSet; }
/**
* <p>The number of workers of a defined <code>workerType</code> that are allocated
* when this task runs.</p> <p>If <code>WorkerType</code> is set, then
* <code>NumberOfWorkers</code> is required (and vice versa).</p>
*/
inline void SetNumberOfWorkers(int value) { m_numberOfWorkersHasBeenSet = true; m_numberOfWorkers = value; }
/**
* <p>The number of workers of a defined <code>workerType</code> that are allocated
* when this task runs.</p> <p>If <code>WorkerType</code> is set, then
* <code>NumberOfWorkers</code> is required (and vice versa).</p>
*/
inline CreateMLTransformRequest& WithNumberOfWorkers(int value) { SetNumberOfWorkers(value); return *this;}
/**
* <p>The timeout of the task run for this transform in minutes. This is the
* maximum time that a task run for this transform can consume resources before it
* is terminated and enters <code>TIMEOUT</code> status. The default is 2,880
* minutes (48 hours).</p>
*/
inline int GetTimeout() const{ return m_timeout; }
/**
* <p>The timeout of the task run for this transform in minutes. This is the
* maximum time that a task run for this transform can consume resources before it
* is terminated and enters <code>TIMEOUT</code> status. The default is 2,880
* minutes (48 hours).</p>
*/
inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
/**
* <p>The timeout of the task run for this transform in minutes. This is the
* maximum time that a task run for this transform can consume resources before it
* is terminated and enters <code>TIMEOUT</code> status. The default is 2,880
* minutes (48 hours).</p>
*/
inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
/**
* <p>The timeout of the task run for this transform in minutes. This is the
* maximum time that a task run for this transform can consume resources before it
* is terminated and enters <code>TIMEOUT</code> status. The default is 2,880
* minutes (48 hours).</p>
*/
inline CreateMLTransformRequest& WithTimeout(int value) { SetTimeout(value); return *this;}
/**
* <p>The maximum number of times to retry a task for this transform after a task
* run fails.</p>
*/
inline int GetMaxRetries() const{ return m_maxRetries; }
/**
* <p>The maximum number of times to retry a task for this transform after a task
* run fails.</p>
*/
inline bool MaxRetriesHasBeenSet() const { return m_maxRetriesHasBeenSet; }
/**
* <p>The maximum number of times to retry a task for this transform after a task
* run fails.</p>
*/
inline void SetMaxRetries(int value) { m_maxRetriesHasBeenSet = true; m_maxRetries = value; }
/**
* <p>The maximum number of times to retry a task for this transform after a task
* run fails.</p>
*/
inline CreateMLTransformRequest& WithMaxRetries(int value) { SetMaxRetries(value); return *this;}
/**
* <p>The tags to use with this machine learning transform. You may use tags to
* limit access to the machine learning transform. For more information about tags
* in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>The tags to use with this machine learning transform. You may use tags to
* limit access to the machine learning transform. For more information about tags
* in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tags to use with this machine learning transform. You may use tags to
* limit access to the machine learning transform. For more information about tags
* in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tags to use with this machine learning transform. You may use tags to
* limit access to the machine learning transform. For more information about tags
* in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tags to use with this machine learning transform. You may use tags to
* limit access to the machine learning transform. For more information about tags
* in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline CreateMLTransformRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>The tags to use with this machine learning transform. You may use tags to
* limit access to the machine learning transform. For more information about tags
* in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline CreateMLTransformRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags to use with this machine learning transform. You may use tags to
* limit access to the machine learning transform. For more information about tags
* in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline CreateMLTransformRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>The tags to use with this machine learning transform. You may use tags to
* limit access to the machine learning transform. For more information about tags
* in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline CreateMLTransformRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags to use with this machine learning transform. You may use tags to
* limit access to the machine learning transform. For more information about tags
* in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline CreateMLTransformRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags to use with this machine learning transform. You may use tags to
* limit access to the machine learning transform. For more information about tags
* in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline CreateMLTransformRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The tags to use with this machine learning transform. You may use tags to
* limit access to the machine learning transform. For more information about tags
* in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline CreateMLTransformRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags to use with this machine learning transform. You may use tags to
* limit access to the machine learning transform. For more information about tags
* in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline CreateMLTransformRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags to use with this machine learning transform. You may use tags to
* limit access to the machine learning transform. For more information about tags
* in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide.</p>
*/
inline CreateMLTransformRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::Vector<GlueTable> m_inputRecordTables;
bool m_inputRecordTablesHasBeenSet;
TransformParameters m_parameters;
bool m_parametersHasBeenSet;
Aws::String m_role;
bool m_roleHasBeenSet;
Aws::String m_glueVersion;
bool m_glueVersionHasBeenSet;
double m_maxCapacity;
bool m_maxCapacityHasBeenSet;
WorkerType m_workerType;
bool m_workerTypeHasBeenSet;
int m_numberOfWorkers;
bool m_numberOfWorkersHasBeenSet;
int m_timeout;
bool m_timeoutHasBeenSet;
int m_maxRetries;
bool m_maxRetriesHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_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 Glue
{
namespace Model
{
class AWS_GLUE_API CreateMLTransformResult
{
public:
CreateMLTransformResult();
CreateMLTransformResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateMLTransformResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A unique identifier that is generated for the transform.</p>
*/
inline const Aws::String& GetTransformId() const{ return m_transformId; }
/**
* <p>A unique identifier that is generated for the transform.</p>
*/
inline void SetTransformId(const Aws::String& value) { m_transformId = value; }
/**
* <p>A unique identifier that is generated for the transform.</p>
*/
inline void SetTransformId(Aws::String&& value) { m_transformId = std::move(value); }
/**
* <p>A unique identifier that is generated for the transform.</p>
*/
inline void SetTransformId(const char* value) { m_transformId.assign(value); }
/**
* <p>A unique identifier that is generated for the transform.</p>
*/
inline CreateMLTransformResult& WithTransformId(const Aws::String& value) { SetTransformId(value); return *this;}
/**
* <p>A unique identifier that is generated for the transform.</p>
*/
inline CreateMLTransformResult& WithTransformId(Aws::String&& value) { SetTransformId(std::move(value)); return *this;}
/**
* <p>A unique identifier that is generated for the transform.</p>
*/
inline CreateMLTransformResult& WithTransformId(const char* value) { SetTransformId(value); return *this;}
private:
Aws::String m_transformId;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glue/model/PartitionInput.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API CreatePartitionRequest : public GlueRequest
{
public:
CreatePartitionRequest();
// 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 "CreatePartition"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The AWS account ID of the catalog in which the partition is to be
* created.</p>
*/
inline const Aws::String& GetCatalogId() const{ return m_catalogId; }
/**
* <p>The AWS account ID of the catalog in which the partition is to be
* created.</p>
*/
inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
/**
* <p>The AWS account ID of the catalog in which the partition is to be
* created.</p>
*/
inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
/**
* <p>The AWS account ID of the catalog in which the partition is to be
* created.</p>
*/
inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
/**
* <p>The AWS account ID of the catalog in which the partition is to be
* created.</p>
*/
inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
/**
* <p>The AWS account ID of the catalog in which the partition is to be
* created.</p>
*/
inline CreatePartitionRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
/**
* <p>The AWS account ID of the catalog in which the partition is to be
* created.</p>
*/
inline CreatePartitionRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
/**
* <p>The AWS account ID of the catalog in which the partition is to be
* created.</p>
*/
inline CreatePartitionRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
/**
* <p>The name of the metadata database in which the partition is to be
* created.</p>
*/
inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
/**
* <p>The name of the metadata database in which the partition is to be
* created.</p>
*/
inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
/**
* <p>The name of the metadata database in which the partition is to be
* created.</p>
*/
inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
/**
* <p>The name of the metadata database in which the partition is to be
* created.</p>
*/
inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
/**
* <p>The name of the metadata database in which the partition is to be
* created.</p>
*/
inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
/**
* <p>The name of the metadata database in which the partition is to be
* created.</p>
*/
inline CreatePartitionRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
/**
* <p>The name of the metadata database in which the partition is to be
* created.</p>
*/
inline CreatePartitionRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
/**
* <p>The name of the metadata database in which the partition is to be
* created.</p>
*/
inline CreatePartitionRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
/**
* <p>The name of the metadata table in which the partition is to be created.</p>
*/
inline const Aws::String& GetTableName() const{ return m_tableName; }
/**
* <p>The name of the metadata table in which the partition is to be created.</p>
*/
inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
/**
* <p>The name of the metadata table in which the partition is to be created.</p>
*/
inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
/**
* <p>The name of the metadata table in which the partition is to be created.</p>
*/
inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
/**
* <p>The name of the metadata table in which the partition is to be created.</p>
*/
inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
/**
* <p>The name of the metadata table in which the partition is to be created.</p>
*/
inline CreatePartitionRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
/**
* <p>The name of the metadata table in which the partition is to be created.</p>
*/
inline CreatePartitionRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
/**
* <p>The name of the metadata table in which the partition is to be created.</p>
*/
inline CreatePartitionRequest& WithTableName(const char* value) { SetTableName(value); return *this;}
/**
* <p>A <code>PartitionInput</code> structure defining the partition to be
* created.</p>
*/
inline const PartitionInput& GetPartitionInput() const{ return m_partitionInput; }
/**
* <p>A <code>PartitionInput</code> structure defining the partition to be
* created.</p>
*/
inline bool PartitionInputHasBeenSet() const { return m_partitionInputHasBeenSet; }
/**
* <p>A <code>PartitionInput</code> structure defining the partition to be
* created.</p>
*/
inline void SetPartitionInput(const PartitionInput& value) { m_partitionInputHasBeenSet = true; m_partitionInput = value; }
/**
* <p>A <code>PartitionInput</code> structure defining the partition to be
* created.</p>
*/
inline void SetPartitionInput(PartitionInput&& value) { m_partitionInputHasBeenSet = true; m_partitionInput = std::move(value); }
/**
* <p>A <code>PartitionInput</code> structure defining the partition to be
* created.</p>
*/
inline CreatePartitionRequest& WithPartitionInput(const PartitionInput& value) { SetPartitionInput(value); return *this;}
/**
* <p>A <code>PartitionInput</code> structure defining the partition to be
* created.</p>
*/
inline CreatePartitionRequest& WithPartitionInput(PartitionInput&& value) { SetPartitionInput(std::move(value)); return *this;}
private:
Aws::String m_catalogId;
bool m_catalogIdHasBeenSet;
Aws::String m_databaseName;
bool m_databaseNameHasBeenSet;
Aws::String m_tableName;
bool m_tableNameHasBeenSet;
PartitionInput m_partitionInput;
bool m_partitionInputHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
class AWS_GLUE_API CreatePartitionResult
{
public:
CreatePartitionResult();
CreatePartitionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreatePartitionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glue/model/Language.h>
#include <aws/glue/model/CodeGenNode.h>
#include <aws/glue/model/CodeGenEdge.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API CreateScriptRequest : public GlueRequest
{
public:
CreateScriptRequest();
// 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 "CreateScript"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A list of the nodes in the DAG.</p>
*/
inline const Aws::Vector<CodeGenNode>& GetDagNodes() const{ return m_dagNodes; }
/**
* <p>A list of the nodes in the DAG.</p>
*/
inline bool DagNodesHasBeenSet() const { return m_dagNodesHasBeenSet; }
/**
* <p>A list of the nodes in the DAG.</p>
*/
inline void SetDagNodes(const Aws::Vector<CodeGenNode>& value) { m_dagNodesHasBeenSet = true; m_dagNodes = value; }
/**
* <p>A list of the nodes in the DAG.</p>
*/
inline void SetDagNodes(Aws::Vector<CodeGenNode>&& value) { m_dagNodesHasBeenSet = true; m_dagNodes = std::move(value); }
/**
* <p>A list of the nodes in the DAG.</p>
*/
inline CreateScriptRequest& WithDagNodes(const Aws::Vector<CodeGenNode>& value) { SetDagNodes(value); return *this;}
/**
* <p>A list of the nodes in the DAG.</p>
*/
inline CreateScriptRequest& WithDagNodes(Aws::Vector<CodeGenNode>&& value) { SetDagNodes(std::move(value)); return *this;}
/**
* <p>A list of the nodes in the DAG.</p>
*/
inline CreateScriptRequest& AddDagNodes(const CodeGenNode& value) { m_dagNodesHasBeenSet = true; m_dagNodes.push_back(value); return *this; }
/**
* <p>A list of the nodes in the DAG.</p>
*/
inline CreateScriptRequest& AddDagNodes(CodeGenNode&& value) { m_dagNodesHasBeenSet = true; m_dagNodes.push_back(std::move(value)); return *this; }
/**
* <p>A list of the edges in the DAG.</p>
*/
inline const Aws::Vector<CodeGenEdge>& GetDagEdges() const{ return m_dagEdges; }
/**
* <p>A list of the edges in the DAG.</p>
*/
inline bool DagEdgesHasBeenSet() const { return m_dagEdgesHasBeenSet; }
/**
* <p>A list of the edges in the DAG.</p>
*/
inline void SetDagEdges(const Aws::Vector<CodeGenEdge>& value) { m_dagEdgesHasBeenSet = true; m_dagEdges = value; }
/**
* <p>A list of the edges in the DAG.</p>
*/
inline void SetDagEdges(Aws::Vector<CodeGenEdge>&& value) { m_dagEdgesHasBeenSet = true; m_dagEdges = std::move(value); }
/**
* <p>A list of the edges in the DAG.</p>
*/
inline CreateScriptRequest& WithDagEdges(const Aws::Vector<CodeGenEdge>& value) { SetDagEdges(value); return *this;}
/**
* <p>A list of the edges in the DAG.</p>
*/
inline CreateScriptRequest& WithDagEdges(Aws::Vector<CodeGenEdge>&& value) { SetDagEdges(std::move(value)); return *this;}
/**
* <p>A list of the edges in the DAG.</p>
*/
inline CreateScriptRequest& AddDagEdges(const CodeGenEdge& value) { m_dagEdgesHasBeenSet = true; m_dagEdges.push_back(value); return *this; }
/**
* <p>A list of the edges in the DAG.</p>
*/
inline CreateScriptRequest& AddDagEdges(CodeGenEdge&& value) { m_dagEdgesHasBeenSet = true; m_dagEdges.push_back(std::move(value)); return *this; }
/**
* <p>The programming language of the resulting code from the DAG.</p>
*/
inline const Language& GetLanguage() const{ return m_language; }
/**
* <p>The programming language of the resulting code from the DAG.</p>
*/
inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
/**
* <p>The programming language of the resulting code from the DAG.</p>
*/
inline void SetLanguage(const Language& value) { m_languageHasBeenSet = true; m_language = value; }
/**
* <p>The programming language of the resulting code from the DAG.</p>
*/
inline void SetLanguage(Language&& value) { m_languageHasBeenSet = true; m_language = std::move(value); }
/**
* <p>The programming language of the resulting code from the DAG.</p>
*/
inline CreateScriptRequest& WithLanguage(const Language& value) { SetLanguage(value); return *this;}
/**
* <p>The programming language of the resulting code from the DAG.</p>
*/
inline CreateScriptRequest& WithLanguage(Language&& value) { SetLanguage(std::move(value)); return *this;}
private:
Aws::Vector<CodeGenNode> m_dagNodes;
bool m_dagNodesHasBeenSet;
Aws::Vector<CodeGenEdge> m_dagEdges;
bool m_dagEdgesHasBeenSet;
Language m_language;
bool m_languageHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,115 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_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 Glue
{
namespace Model
{
class AWS_GLUE_API CreateScriptResult
{
public:
CreateScriptResult();
CreateScriptResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateScriptResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Python script generated from the DAG.</p>
*/
inline const Aws::String& GetPythonScript() const{ return m_pythonScript; }
/**
* <p>The Python script generated from the DAG.</p>
*/
inline void SetPythonScript(const Aws::String& value) { m_pythonScript = value; }
/**
* <p>The Python script generated from the DAG.</p>
*/
inline void SetPythonScript(Aws::String&& value) { m_pythonScript = std::move(value); }
/**
* <p>The Python script generated from the DAG.</p>
*/
inline void SetPythonScript(const char* value) { m_pythonScript.assign(value); }
/**
* <p>The Python script generated from the DAG.</p>
*/
inline CreateScriptResult& WithPythonScript(const Aws::String& value) { SetPythonScript(value); return *this;}
/**
* <p>The Python script generated from the DAG.</p>
*/
inline CreateScriptResult& WithPythonScript(Aws::String&& value) { SetPythonScript(std::move(value)); return *this;}
/**
* <p>The Python script generated from the DAG.</p>
*/
inline CreateScriptResult& WithPythonScript(const char* value) { SetPythonScript(value); return *this;}
/**
* <p>The Scala code generated from the DAG.</p>
*/
inline const Aws::String& GetScalaCode() const{ return m_scalaCode; }
/**
* <p>The Scala code generated from the DAG.</p>
*/
inline void SetScalaCode(const Aws::String& value) { m_scalaCode = value; }
/**
* <p>The Scala code generated from the DAG.</p>
*/
inline void SetScalaCode(Aws::String&& value) { m_scalaCode = std::move(value); }
/**
* <p>The Scala code generated from the DAG.</p>
*/
inline void SetScalaCode(const char* value) { m_scalaCode.assign(value); }
/**
* <p>The Scala code generated from the DAG.</p>
*/
inline CreateScriptResult& WithScalaCode(const Aws::String& value) { SetScalaCode(value); return *this;}
/**
* <p>The Scala code generated from the DAG.</p>
*/
inline CreateScriptResult& WithScalaCode(Aws::String&& value) { SetScalaCode(std::move(value)); return *this;}
/**
* <p>The Scala code generated from the DAG.</p>
*/
inline CreateScriptResult& WithScalaCode(const char* value) { SetScalaCode(value); return *this;}
private:
Aws::String m_pythonScript;
Aws::String m_scalaCode;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glue/model/EncryptionConfiguration.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API CreateSecurityConfigurationRequest : public GlueRequest
{
public:
CreateSecurityConfigurationRequest();
// 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 "CreateSecurityConfiguration"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name for the new security configuration.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name for the new security configuration.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name for the new security configuration.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name for the new security configuration.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name for the new security configuration.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name for the new security configuration.</p>
*/
inline CreateSecurityConfigurationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name for the new security configuration.</p>
*/
inline CreateSecurityConfigurationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name for the new security configuration.</p>
*/
inline CreateSecurityConfigurationRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The encryption configuration for the new security configuration.</p>
*/
inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
/**
* <p>The encryption configuration for the new security configuration.</p>
*/
inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
/**
* <p>The encryption configuration for the new security configuration.</p>
*/
inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
/**
* <p>The encryption configuration for the new security configuration.</p>
*/
inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
/**
* <p>The encryption configuration for the new security configuration.</p>
*/
inline CreateSecurityConfigurationRequest& WithEncryptionConfiguration(const EncryptionConfiguration& value) { SetEncryptionConfiguration(value); return *this;}
/**
* <p>The encryption configuration for the new security configuration.</p>
*/
inline CreateSecurityConfigurationRequest& WithEncryptionConfiguration(EncryptionConfiguration&& value) { SetEncryptionConfiguration(std::move(value)); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
EncryptionConfiguration m_encryptionConfiguration;
bool m_encryptionConfigurationHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
class AWS_GLUE_API CreateSecurityConfigurationResult
{
public:
CreateSecurityConfigurationResult();
CreateSecurityConfigurationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateSecurityConfigurationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The name assigned to the new security configuration.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name assigned to the new security configuration.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The name assigned to the new security configuration.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The name assigned to the new security configuration.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The name assigned to the new security configuration.</p>
*/
inline CreateSecurityConfigurationResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name assigned to the new security configuration.</p>
*/
inline CreateSecurityConfigurationResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name assigned to the new security configuration.</p>
*/
inline CreateSecurityConfigurationResult& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The time at which the new security configuration was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
/**
* <p>The time at which the new security configuration was created.</p>
*/
inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; }
/**
* <p>The time at which the new security configuration was created.</p>
*/
inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); }
/**
* <p>The time at which the new security configuration was created.</p>
*/
inline CreateSecurityConfigurationResult& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;}
/**
* <p>The time at which the new security configuration was created.</p>
*/
inline CreateSecurityConfigurationResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
private:
Aws::String m_name;
Aws::Utils::DateTime m_createdTimestamp;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,186 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glue/model/TableInput.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API CreateTableRequest : public GlueRequest
{
public:
CreateTableRequest();
// 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 "CreateTable"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the Data Catalog in which to create the <code>Table</code>. If none
* is supplied, the AWS account ID is used by default.</p>
*/
inline const Aws::String& GetCatalogId() const{ return m_catalogId; }
/**
* <p>The ID of the Data Catalog in which to create the <code>Table</code>. If none
* is supplied, the AWS account ID is used by default.</p>
*/
inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
/**
* <p>The ID of the Data Catalog in which to create the <code>Table</code>. If none
* is supplied, the AWS account ID is used by default.</p>
*/
inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
/**
* <p>The ID of the Data Catalog in which to create the <code>Table</code>. If none
* is supplied, the AWS account ID is used by default.</p>
*/
inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
/**
* <p>The ID of the Data Catalog in which to create the <code>Table</code>. If none
* is supplied, the AWS account ID is used by default.</p>
*/
inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
/**
* <p>The ID of the Data Catalog in which to create the <code>Table</code>. If none
* is supplied, the AWS account ID is used by default.</p>
*/
inline CreateTableRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
/**
* <p>The ID of the Data Catalog in which to create the <code>Table</code>. If none
* is supplied, the AWS account ID is used by default.</p>
*/
inline CreateTableRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
/**
* <p>The ID of the Data Catalog in which to create the <code>Table</code>. If none
* is supplied, the AWS account ID is used by default.</p>
*/
inline CreateTableRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
/**
* <p>The catalog database in which to create the new table. For Hive
* compatibility, this name is entirely lowercase.</p>
*/
inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
/**
* <p>The catalog database in which to create the new table. For Hive
* compatibility, this name is entirely lowercase.</p>
*/
inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
/**
* <p>The catalog database in which to create the new table. For Hive
* compatibility, this name is entirely lowercase.</p>
*/
inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
/**
* <p>The catalog database in which to create the new table. For Hive
* compatibility, this name is entirely lowercase.</p>
*/
inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
/**
* <p>The catalog database in which to create the new table. For Hive
* compatibility, this name is entirely lowercase.</p>
*/
inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
/**
* <p>The catalog database in which to create the new table. For Hive
* compatibility, this name is entirely lowercase.</p>
*/
inline CreateTableRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
/**
* <p>The catalog database in which to create the new table. For Hive
* compatibility, this name is entirely lowercase.</p>
*/
inline CreateTableRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
/**
* <p>The catalog database in which to create the new table. For Hive
* compatibility, this name is entirely lowercase.</p>
*/
inline CreateTableRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
/**
* <p>The <code>TableInput</code> object that defines the metadata table to create
* in the catalog.</p>
*/
inline const TableInput& GetTableInput() const{ return m_tableInput; }
/**
* <p>The <code>TableInput</code> object that defines the metadata table to create
* in the catalog.</p>
*/
inline bool TableInputHasBeenSet() const { return m_tableInputHasBeenSet; }
/**
* <p>The <code>TableInput</code> object that defines the metadata table to create
* in the catalog.</p>
*/
inline void SetTableInput(const TableInput& value) { m_tableInputHasBeenSet = true; m_tableInput = value; }
/**
* <p>The <code>TableInput</code> object that defines the metadata table to create
* in the catalog.</p>
*/
inline void SetTableInput(TableInput&& value) { m_tableInputHasBeenSet = true; m_tableInput = std::move(value); }
/**
* <p>The <code>TableInput</code> object that defines the metadata table to create
* in the catalog.</p>
*/
inline CreateTableRequest& WithTableInput(const TableInput& value) { SetTableInput(value); return *this;}
/**
* <p>The <code>TableInput</code> object that defines the metadata table to create
* in the catalog.</p>
*/
inline CreateTableRequest& WithTableInput(TableInput&& value) { SetTableInput(std::move(value)); return *this;}
private:
Aws::String m_catalogId;
bool m_catalogIdHasBeenSet;
Aws::String m_databaseName;
bool m_databaseNameHasBeenSet;
TableInput m_tableInput;
bool m_tableInputHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
class AWS_GLUE_API CreateTableResult
{
public:
CreateTableResult();
CreateTableResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateTableResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,512 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glue/model/TriggerType.h>
#include <aws/glue/model/Predicate.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/glue/model/Action.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API CreateTriggerRequest : public GlueRequest
{
public:
CreateTriggerRequest();
// 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 "CreateTrigger"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the trigger.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the trigger.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the trigger.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the trigger.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the trigger.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the trigger.</p>
*/
inline CreateTriggerRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the trigger.</p>
*/
inline CreateTriggerRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the trigger.</p>
*/
inline CreateTriggerRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The name of the workflow associated with the trigger.</p>
*/
inline const Aws::String& GetWorkflowName() const{ return m_workflowName; }
/**
* <p>The name of the workflow associated with the trigger.</p>
*/
inline bool WorkflowNameHasBeenSet() const { return m_workflowNameHasBeenSet; }
/**
* <p>The name of the workflow associated with the trigger.</p>
*/
inline void SetWorkflowName(const Aws::String& value) { m_workflowNameHasBeenSet = true; m_workflowName = value; }
/**
* <p>The name of the workflow associated with the trigger.</p>
*/
inline void SetWorkflowName(Aws::String&& value) { m_workflowNameHasBeenSet = true; m_workflowName = std::move(value); }
/**
* <p>The name of the workflow associated with the trigger.</p>
*/
inline void SetWorkflowName(const char* value) { m_workflowNameHasBeenSet = true; m_workflowName.assign(value); }
/**
* <p>The name of the workflow associated with the trigger.</p>
*/
inline CreateTriggerRequest& WithWorkflowName(const Aws::String& value) { SetWorkflowName(value); return *this;}
/**
* <p>The name of the workflow associated with the trigger.</p>
*/
inline CreateTriggerRequest& WithWorkflowName(Aws::String&& value) { SetWorkflowName(std::move(value)); return *this;}
/**
* <p>The name of the workflow associated with the trigger.</p>
*/
inline CreateTriggerRequest& WithWorkflowName(const char* value) { SetWorkflowName(value); return *this;}
/**
* <p>The type of the new trigger.</p>
*/
inline const TriggerType& GetType() const{ return m_type; }
/**
* <p>The type of the new trigger.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of the new trigger.</p>
*/
inline void SetType(const TriggerType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of the new trigger.</p>
*/
inline void SetType(TriggerType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of the new trigger.</p>
*/
inline CreateTriggerRequest& WithType(const TriggerType& value) { SetType(value); return *this;}
/**
* <p>The type of the new trigger.</p>
*/
inline CreateTriggerRequest& WithType(TriggerType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>A <code>cron</code> expression used to specify the schedule (see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html">Time-Based
* Schedules for Jobs and Crawlers</a>. For example, to run something every day at
* 12:15 UTC, you would specify: <code>cron(15 12 * * ? *)</code>.</p> <p>This
* field is required when the trigger type is SCHEDULED.</p>
*/
inline const Aws::String& GetSchedule() const{ return m_schedule; }
/**
* <p>A <code>cron</code> expression used to specify the schedule (see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html">Time-Based
* Schedules for Jobs and Crawlers</a>. For example, to run something every day at
* 12:15 UTC, you would specify: <code>cron(15 12 * * ? *)</code>.</p> <p>This
* field is required when the trigger type is SCHEDULED.</p>
*/
inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
/**
* <p>A <code>cron</code> expression used to specify the schedule (see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html">Time-Based
* Schedules for Jobs and Crawlers</a>. For example, to run something every day at
* 12:15 UTC, you would specify: <code>cron(15 12 * * ? *)</code>.</p> <p>This
* field is required when the trigger type is SCHEDULED.</p>
*/
inline void SetSchedule(const Aws::String& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
/**
* <p>A <code>cron</code> expression used to specify the schedule (see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html">Time-Based
* Schedules for Jobs and Crawlers</a>. For example, to run something every day at
* 12:15 UTC, you would specify: <code>cron(15 12 * * ? *)</code>.</p> <p>This
* field is required when the trigger type is SCHEDULED.</p>
*/
inline void SetSchedule(Aws::String&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
/**
* <p>A <code>cron</code> expression used to specify the schedule (see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html">Time-Based
* Schedules for Jobs and Crawlers</a>. For example, to run something every day at
* 12:15 UTC, you would specify: <code>cron(15 12 * * ? *)</code>.</p> <p>This
* field is required when the trigger type is SCHEDULED.</p>
*/
inline void SetSchedule(const char* value) { m_scheduleHasBeenSet = true; m_schedule.assign(value); }
/**
* <p>A <code>cron</code> expression used to specify the schedule (see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html">Time-Based
* Schedules for Jobs and Crawlers</a>. For example, to run something every day at
* 12:15 UTC, you would specify: <code>cron(15 12 * * ? *)</code>.</p> <p>This
* field is required when the trigger type is SCHEDULED.</p>
*/
inline CreateTriggerRequest& WithSchedule(const Aws::String& value) { SetSchedule(value); return *this;}
/**
* <p>A <code>cron</code> expression used to specify the schedule (see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html">Time-Based
* Schedules for Jobs and Crawlers</a>. For example, to run something every day at
* 12:15 UTC, you would specify: <code>cron(15 12 * * ? *)</code>.</p> <p>This
* field is required when the trigger type is SCHEDULED.</p>
*/
inline CreateTriggerRequest& WithSchedule(Aws::String&& value) { SetSchedule(std::move(value)); return *this;}
/**
* <p>A <code>cron</code> expression used to specify the schedule (see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html">Time-Based
* Schedules for Jobs and Crawlers</a>. For example, to run something every day at
* 12:15 UTC, you would specify: <code>cron(15 12 * * ? *)</code>.</p> <p>This
* field is required when the trigger type is SCHEDULED.</p>
*/
inline CreateTriggerRequest& WithSchedule(const char* value) { SetSchedule(value); return *this;}
/**
* <p>A predicate to specify when the new trigger should fire.</p> <p>This field is
* required when the trigger type is <code>CONDITIONAL</code>.</p>
*/
inline const Predicate& GetPredicate() const{ return m_predicate; }
/**
* <p>A predicate to specify when the new trigger should fire.</p> <p>This field is
* required when the trigger type is <code>CONDITIONAL</code>.</p>
*/
inline bool PredicateHasBeenSet() const { return m_predicateHasBeenSet; }
/**
* <p>A predicate to specify when the new trigger should fire.</p> <p>This field is
* required when the trigger type is <code>CONDITIONAL</code>.</p>
*/
inline void SetPredicate(const Predicate& value) { m_predicateHasBeenSet = true; m_predicate = value; }
/**
* <p>A predicate to specify when the new trigger should fire.</p> <p>This field is
* required when the trigger type is <code>CONDITIONAL</code>.</p>
*/
inline void SetPredicate(Predicate&& value) { m_predicateHasBeenSet = true; m_predicate = std::move(value); }
/**
* <p>A predicate to specify when the new trigger should fire.</p> <p>This field is
* required when the trigger type is <code>CONDITIONAL</code>.</p>
*/
inline CreateTriggerRequest& WithPredicate(const Predicate& value) { SetPredicate(value); return *this;}
/**
* <p>A predicate to specify when the new trigger should fire.</p> <p>This field is
* required when the trigger type is <code>CONDITIONAL</code>.</p>
*/
inline CreateTriggerRequest& WithPredicate(Predicate&& value) { SetPredicate(std::move(value)); return *this;}
/**
* <p>The actions initiated by this trigger when it fires.</p>
*/
inline const Aws::Vector<Action>& GetActions() const{ return m_actions; }
/**
* <p>The actions initiated by this trigger when it fires.</p>
*/
inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
/**
* <p>The actions initiated by this trigger when it fires.</p>
*/
inline void SetActions(const Aws::Vector<Action>& value) { m_actionsHasBeenSet = true; m_actions = value; }
/**
* <p>The actions initiated by this trigger when it fires.</p>
*/
inline void SetActions(Aws::Vector<Action>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
/**
* <p>The actions initiated by this trigger when it fires.</p>
*/
inline CreateTriggerRequest& WithActions(const Aws::Vector<Action>& value) { SetActions(value); return *this;}
/**
* <p>The actions initiated by this trigger when it fires.</p>
*/
inline CreateTriggerRequest& WithActions(Aws::Vector<Action>&& value) { SetActions(std::move(value)); return *this;}
/**
* <p>The actions initiated by this trigger when it fires.</p>
*/
inline CreateTriggerRequest& AddActions(const Action& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
/**
* <p>The actions initiated by this trigger when it fires.</p>
*/
inline CreateTriggerRequest& AddActions(Action&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
/**
* <p>A description of the new trigger.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the new trigger.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description of the new trigger.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description of the new trigger.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description of the new trigger.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description of the new trigger.</p>
*/
inline CreateTriggerRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the new trigger.</p>
*/
inline CreateTriggerRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the new trigger.</p>
*/
inline CreateTriggerRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>Set to <code>true</code> to start <code>SCHEDULED</code> and
* <code>CONDITIONAL</code> triggers when created. True is not supported for
* <code>ON_DEMAND</code> triggers.</p>
*/
inline bool GetStartOnCreation() const{ return m_startOnCreation; }
/**
* <p>Set to <code>true</code> to start <code>SCHEDULED</code> and
* <code>CONDITIONAL</code> triggers when created. True is not supported for
* <code>ON_DEMAND</code> triggers.</p>
*/
inline bool StartOnCreationHasBeenSet() const { return m_startOnCreationHasBeenSet; }
/**
* <p>Set to <code>true</code> to start <code>SCHEDULED</code> and
* <code>CONDITIONAL</code> triggers when created. True is not supported for
* <code>ON_DEMAND</code> triggers.</p>
*/
inline void SetStartOnCreation(bool value) { m_startOnCreationHasBeenSet = true; m_startOnCreation = value; }
/**
* <p>Set to <code>true</code> to start <code>SCHEDULED</code> and
* <code>CONDITIONAL</code> triggers when created. True is not supported for
* <code>ON_DEMAND</code> triggers.</p>
*/
inline CreateTriggerRequest& WithStartOnCreation(bool value) { SetStartOnCreation(value); return *this;}
/**
* <p>The tags to use with this trigger. You may use tags to limit access to the
* trigger. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide. </p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>The tags to use with this trigger. You may use tags to limit access to the
* trigger. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide. </p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tags to use with this trigger. You may use tags to limit access to the
* trigger. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide. </p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tags to use with this trigger. You may use tags to limit access to the
* trigger. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide. </p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tags to use with this trigger. You may use tags to limit access to the
* trigger. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide. </p>
*/
inline CreateTriggerRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>The tags to use with this trigger. You may use tags to limit access to the
* trigger. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide. </p>
*/
inline CreateTriggerRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags to use with this trigger. You may use tags to limit access to the
* trigger. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide. </p>
*/
inline CreateTriggerRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>The tags to use with this trigger. You may use tags to limit access to the
* trigger. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide. </p>
*/
inline CreateTriggerRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags to use with this trigger. You may use tags to limit access to the
* trigger. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide. </p>
*/
inline CreateTriggerRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags to use with this trigger. You may use tags to limit access to the
* trigger. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide. </p>
*/
inline CreateTriggerRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The tags to use with this trigger. You may use tags to limit access to the
* trigger. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide. </p>
*/
inline CreateTriggerRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags to use with this trigger. You may use tags to limit access to the
* trigger. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide. </p>
*/
inline CreateTriggerRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags to use with this trigger. You may use tags to limit access to the
* trigger. For more information about tags in AWS Glue, see <a
* href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">AWS Tags in
* AWS Glue</a> in the developer guide. </p>
*/
inline CreateTriggerRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_workflowName;
bool m_workflowNameHasBeenSet;
TriggerType m_type;
bool m_typeHasBeenSet;
Aws::String m_schedule;
bool m_scheduleHasBeenSet;
Predicate m_predicate;
bool m_predicateHasBeenSet;
Aws::Vector<Action> m_actions;
bool m_actionsHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
bool m_startOnCreation;
bool m_startOnCreationHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_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 Glue
{
namespace Model
{
class AWS_GLUE_API CreateTriggerResult
{
public:
CreateTriggerResult();
CreateTriggerResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateTriggerResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The name of the trigger.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the trigger.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The name of the trigger.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The name of the trigger.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The name of the trigger.</p>
*/
inline CreateTriggerResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the trigger.</p>
*/
inline CreateTriggerResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the trigger.</p>
*/
inline CreateTriggerResult& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_name;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,178 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glue/model/UserDefinedFunctionInput.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API CreateUserDefinedFunctionRequest : public GlueRequest
{
public:
CreateUserDefinedFunctionRequest();
// 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 "CreateUserDefinedFunction"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the Data Catalog in which to create the function. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline const Aws::String& GetCatalogId() const{ return m_catalogId; }
/**
* <p>The ID of the Data Catalog in which to create the function. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
/**
* <p>The ID of the Data Catalog in which to create the function. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
/**
* <p>The ID of the Data Catalog in which to create the function. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
/**
* <p>The ID of the Data Catalog in which to create the function. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
/**
* <p>The ID of the Data Catalog in which to create the function. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline CreateUserDefinedFunctionRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
/**
* <p>The ID of the Data Catalog in which to create the function. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline CreateUserDefinedFunctionRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
/**
* <p>The ID of the Data Catalog in which to create the function. If none is
* provided, the AWS account ID is used by default.</p>
*/
inline CreateUserDefinedFunctionRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
/**
* <p>The name of the catalog database in which to create the function.</p>
*/
inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
/**
* <p>The name of the catalog database in which to create the function.</p>
*/
inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
/**
* <p>The name of the catalog database in which to create the function.</p>
*/
inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
/**
* <p>The name of the catalog database in which to create the function.</p>
*/
inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
/**
* <p>The name of the catalog database in which to create the function.</p>
*/
inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
/**
* <p>The name of the catalog database in which to create the function.</p>
*/
inline CreateUserDefinedFunctionRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
/**
* <p>The name of the catalog database in which to create the function.</p>
*/
inline CreateUserDefinedFunctionRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
/**
* <p>The name of the catalog database in which to create the function.</p>
*/
inline CreateUserDefinedFunctionRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
/**
* <p>A <code>FunctionInput</code> object that defines the function to create in
* the Data Catalog.</p>
*/
inline const UserDefinedFunctionInput& GetFunctionInput() const{ return m_functionInput; }
/**
* <p>A <code>FunctionInput</code> object that defines the function to create in
* the Data Catalog.</p>
*/
inline bool FunctionInputHasBeenSet() const { return m_functionInputHasBeenSet; }
/**
* <p>A <code>FunctionInput</code> object that defines the function to create in
* the Data Catalog.</p>
*/
inline void SetFunctionInput(const UserDefinedFunctionInput& value) { m_functionInputHasBeenSet = true; m_functionInput = value; }
/**
* <p>A <code>FunctionInput</code> object that defines the function to create in
* the Data Catalog.</p>
*/
inline void SetFunctionInput(UserDefinedFunctionInput&& value) { m_functionInputHasBeenSet = true; m_functionInput = std::move(value); }
/**
* <p>A <code>FunctionInput</code> object that defines the function to create in
* the Data Catalog.</p>
*/
inline CreateUserDefinedFunctionRequest& WithFunctionInput(const UserDefinedFunctionInput& value) { SetFunctionInput(value); return *this;}
/**
* <p>A <code>FunctionInput</code> object that defines the function to create in
* the Data Catalog.</p>
*/
inline CreateUserDefinedFunctionRequest& WithFunctionInput(UserDefinedFunctionInput&& value) { SetFunctionInput(std::move(value)); return *this;}
private:
Aws::String m_catalogId;
bool m_catalogIdHasBeenSet;
Aws::String m_databaseName;
bool m_databaseNameHasBeenSet;
UserDefinedFunctionInput m_functionInput;
bool m_functionInputHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // 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/glue/Glue_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glue
{
namespace Model
{
class AWS_GLUE_API CreateUserDefinedFunctionResult
{
public:
CreateUserDefinedFunctionResult();
CreateUserDefinedFunctionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateUserDefinedFunctionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace Glue
} // namespace Aws

View File

@@ -0,0 +1,325 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API CreateWorkflowRequest : public GlueRequest
{
public:
CreateWorkflowRequest();
// 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 "CreateWorkflow"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name to be assigned to the workflow. It should be unique within your
* account.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name to be assigned to the workflow. It should be unique within your
* account.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name to be assigned to the workflow. It should be unique within your
* account.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name to be assigned to the workflow. It should be unique within your
* account.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name to be assigned to the workflow. It should be unique within your
* account.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name to be assigned to the workflow. It should be unique within your
* account.</p>
*/
inline CreateWorkflowRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name to be assigned to the workflow. It should be unique within your
* account.</p>
*/
inline CreateWorkflowRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name to be assigned to the workflow. It should be unique within your
* account.</p>
*/
inline CreateWorkflowRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A description of the workflow.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the workflow.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description of the workflow.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description of the workflow.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description of the workflow.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description of the workflow.</p>
*/
inline CreateWorkflowRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the workflow.</p>
*/
inline CreateWorkflowRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the workflow.</p>
*/
inline CreateWorkflowRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>A collection of properties to be used as part of each execution of the
* workflow.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetDefaultRunProperties() const{ return m_defaultRunProperties; }
/**
* <p>A collection of properties to be used as part of each execution of the
* workflow.</p>
*/
inline bool DefaultRunPropertiesHasBeenSet() const { return m_defaultRunPropertiesHasBeenSet; }
/**
* <p>A collection of properties to be used as part of each execution of the
* workflow.</p>
*/
inline void SetDefaultRunProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_defaultRunPropertiesHasBeenSet = true; m_defaultRunProperties = value; }
/**
* <p>A collection of properties to be used as part of each execution of the
* workflow.</p>
*/
inline void SetDefaultRunProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_defaultRunPropertiesHasBeenSet = true; m_defaultRunProperties = std::move(value); }
/**
* <p>A collection of properties to be used as part of each execution of the
* workflow.</p>
*/
inline CreateWorkflowRequest& WithDefaultRunProperties(const Aws::Map<Aws::String, Aws::String>& value) { SetDefaultRunProperties(value); return *this;}
/**
* <p>A collection of properties to be used as part of each execution of the
* workflow.</p>
*/
inline CreateWorkflowRequest& WithDefaultRunProperties(Aws::Map<Aws::String, Aws::String>&& value) { SetDefaultRunProperties(std::move(value)); return *this;}
/**
* <p>A collection of properties to be used as part of each execution of the
* workflow.</p>
*/
inline CreateWorkflowRequest& AddDefaultRunProperties(const Aws::String& key, const Aws::String& value) { m_defaultRunPropertiesHasBeenSet = true; m_defaultRunProperties.emplace(key, value); return *this; }
/**
* <p>A collection of properties to be used as part of each execution of the
* workflow.</p>
*/
inline CreateWorkflowRequest& AddDefaultRunProperties(Aws::String&& key, const Aws::String& value) { m_defaultRunPropertiesHasBeenSet = true; m_defaultRunProperties.emplace(std::move(key), value); return *this; }
/**
* <p>A collection of properties to be used as part of each execution of the
* workflow.</p>
*/
inline CreateWorkflowRequest& AddDefaultRunProperties(const Aws::String& key, Aws::String&& value) { m_defaultRunPropertiesHasBeenSet = true; m_defaultRunProperties.emplace(key, std::move(value)); return *this; }
/**
* <p>A collection of properties to be used as part of each execution of the
* workflow.</p>
*/
inline CreateWorkflowRequest& AddDefaultRunProperties(Aws::String&& key, Aws::String&& value) { m_defaultRunPropertiesHasBeenSet = true; m_defaultRunProperties.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>A collection of properties to be used as part of each execution of the
* workflow.</p>
*/
inline CreateWorkflowRequest& AddDefaultRunProperties(const char* key, Aws::String&& value) { m_defaultRunPropertiesHasBeenSet = true; m_defaultRunProperties.emplace(key, std::move(value)); return *this; }
/**
* <p>A collection of properties to be used as part of each execution of the
* workflow.</p>
*/
inline CreateWorkflowRequest& AddDefaultRunProperties(Aws::String&& key, const char* value) { m_defaultRunPropertiesHasBeenSet = true; m_defaultRunProperties.emplace(std::move(key), value); return *this; }
/**
* <p>A collection of properties to be used as part of each execution of the
* workflow.</p>
*/
inline CreateWorkflowRequest& AddDefaultRunProperties(const char* key, const char* value) { m_defaultRunPropertiesHasBeenSet = true; m_defaultRunProperties.emplace(key, value); return *this; }
/**
* <p>The tags to be used with this workflow.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>The tags to be used with this workflow.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tags to be used with this workflow.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tags to be used with this workflow.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tags to be used with this workflow.</p>
*/
inline CreateWorkflowRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>The tags to be used with this workflow.</p>
*/
inline CreateWorkflowRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags to be used with this workflow.</p>
*/
inline CreateWorkflowRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>The tags to be used with this workflow.</p>
*/
inline CreateWorkflowRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags to be used with this workflow.</p>
*/
inline CreateWorkflowRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags to be used with this workflow.</p>
*/
inline CreateWorkflowRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The tags to be used with this workflow.</p>
*/
inline CreateWorkflowRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags to be used with this workflow.</p>
*/
inline CreateWorkflowRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags to be used with this workflow.</p>
*/
inline CreateWorkflowRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>You can use this parameter to prevent unwanted multiple updates to data, to
* control costs, or in some cases, to prevent exceeding the maximum number of
* concurrent runs of any of the component jobs. If you leave this parameter blank,
* there is no limit to the number of concurrent workflow runs.</p>
*/
inline int GetMaxConcurrentRuns() const{ return m_maxConcurrentRuns; }
/**
* <p>You can use this parameter to prevent unwanted multiple updates to data, to
* control costs, or in some cases, to prevent exceeding the maximum number of
* concurrent runs of any of the component jobs. If you leave this parameter blank,
* there is no limit to the number of concurrent workflow runs.</p>
*/
inline bool MaxConcurrentRunsHasBeenSet() const { return m_maxConcurrentRunsHasBeenSet; }
/**
* <p>You can use this parameter to prevent unwanted multiple updates to data, to
* control costs, or in some cases, to prevent exceeding the maximum number of
* concurrent runs of any of the component jobs. If you leave this parameter blank,
* there is no limit to the number of concurrent workflow runs.</p>
*/
inline void SetMaxConcurrentRuns(int value) { m_maxConcurrentRunsHasBeenSet = true; m_maxConcurrentRuns = value; }
/**
* <p>You can use this parameter to prevent unwanted multiple updates to data, to
* control costs, or in some cases, to prevent exceeding the maximum number of
* concurrent runs of any of the component jobs. If you leave this parameter blank,
* there is no limit to the number of concurrent workflow runs.</p>
*/
inline CreateWorkflowRequest& WithMaxConcurrentRuns(int value) { SetMaxConcurrentRuns(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_defaultRunProperties;
bool m_defaultRunPropertiesHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
int m_maxConcurrentRuns;
bool m_maxConcurrentRunsHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws

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