225 lines
7.6 KiB
C++
225 lines
7.6 KiB
C++
/**
|
|
* 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
|