/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Glue { namespace Model { /** *

Specifies a data target that writes to Amazon S3.

See Also:

* AWS * API Reference

*/ class S3DirectTarget { public: AWS_GLUE_API S3DirectTarget(); AWS_GLUE_API S3DirectTarget(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API S3DirectTarget& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the data target.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the data target.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the data target.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the data target.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the data target.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the data target.

*/ inline S3DirectTarget& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the data target.

*/ inline S3DirectTarget& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the data target.

*/ inline S3DirectTarget& WithName(const char* value) { SetName(value); return *this;} /** *

The nodes that are inputs to the data target.

*/ inline const Aws::Vector& GetInputs() const{ return m_inputs; } /** *

The nodes that are inputs to the data target.

*/ inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; } /** *

The nodes that are inputs to the data target.

*/ inline void SetInputs(const Aws::Vector& value) { m_inputsHasBeenSet = true; m_inputs = value; } /** *

The nodes that are inputs to the data target.

*/ inline void SetInputs(Aws::Vector&& value) { m_inputsHasBeenSet = true; m_inputs = std::move(value); } /** *

The nodes that are inputs to the data target.

*/ inline S3DirectTarget& WithInputs(const Aws::Vector& value) { SetInputs(value); return *this;} /** *

The nodes that are inputs to the data target.

*/ inline S3DirectTarget& WithInputs(Aws::Vector&& value) { SetInputs(std::move(value)); return *this;} /** *

The nodes that are inputs to the data target.

*/ inline S3DirectTarget& AddInputs(const Aws::String& value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; } /** *

The nodes that are inputs to the data target.

*/ inline S3DirectTarget& AddInputs(Aws::String&& value) { m_inputsHasBeenSet = true; m_inputs.push_back(std::move(value)); return *this; } /** *

The nodes that are inputs to the data target.

*/ inline S3DirectTarget& AddInputs(const char* value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; } /** *

Specifies native partitioning using a sequence of keys.

*/ inline const Aws::Vector>& GetPartitionKeys() const{ return m_partitionKeys; } /** *

Specifies native partitioning using a sequence of keys.

*/ inline bool PartitionKeysHasBeenSet() const { return m_partitionKeysHasBeenSet; } /** *

Specifies native partitioning using a sequence of keys.

*/ inline void SetPartitionKeys(const Aws::Vector>& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = value; } /** *

Specifies native partitioning using a sequence of keys.

*/ inline void SetPartitionKeys(Aws::Vector>&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = std::move(value); } /** *

Specifies native partitioning using a sequence of keys.

*/ inline S3DirectTarget& WithPartitionKeys(const Aws::Vector>& value) { SetPartitionKeys(value); return *this;} /** *

Specifies native partitioning using a sequence of keys.

*/ inline S3DirectTarget& WithPartitionKeys(Aws::Vector>&& value) { SetPartitionKeys(std::move(value)); return *this;} /** *

Specifies native partitioning using a sequence of keys.

*/ inline S3DirectTarget& AddPartitionKeys(const Aws::Vector& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.push_back(value); return *this; } /** *

Specifies native partitioning using a sequence of keys.

*/ inline S3DirectTarget& AddPartitionKeys(Aws::Vector&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.push_back(std::move(value)); return *this; } /** *

A single Amazon S3 path to write to.

*/ inline const Aws::String& GetPath() const{ return m_path; } /** *

A single Amazon S3 path to write to.

*/ inline bool PathHasBeenSet() const { return m_pathHasBeenSet; } /** *

A single Amazon S3 path to write to.

*/ inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; } /** *

A single Amazon S3 path to write to.

*/ inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); } /** *

A single Amazon S3 path to write to.

*/ inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); } /** *

A single Amazon S3 path to write to.

*/ inline S3DirectTarget& WithPath(const Aws::String& value) { SetPath(value); return *this;} /** *

A single Amazon S3 path to write to.

*/ inline S3DirectTarget& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;} /** *

A single Amazon S3 path to write to.

*/ inline S3DirectTarget& WithPath(const char* value) { SetPath(value); return *this;} /** *

Specifies how the data is compressed. This is generally not necessary if the * data has a standard file extension. Possible values are "gzip" and * "bzip").

*/ inline const Aws::String& GetCompression() const{ return m_compression; } /** *

Specifies how the data is compressed. This is generally not necessary if the * data has a standard file extension. Possible values are "gzip" and * "bzip").

*/ inline bool CompressionHasBeenSet() const { return m_compressionHasBeenSet; } /** *

Specifies how the data is compressed. This is generally not necessary if the * data has a standard file extension. Possible values are "gzip" and * "bzip").

*/ inline void SetCompression(const Aws::String& value) { m_compressionHasBeenSet = true; m_compression = value; } /** *

Specifies how the data is compressed. This is generally not necessary if the * data has a standard file extension. Possible values are "gzip" and * "bzip").

*/ inline void SetCompression(Aws::String&& value) { m_compressionHasBeenSet = true; m_compression = std::move(value); } /** *

Specifies how the data is compressed. This is generally not necessary if the * data has a standard file extension. Possible values are "gzip" and * "bzip").

*/ inline void SetCompression(const char* value) { m_compressionHasBeenSet = true; m_compression.assign(value); } /** *

Specifies how the data is compressed. This is generally not necessary if the * data has a standard file extension. Possible values are "gzip" and * "bzip").

*/ inline S3DirectTarget& WithCompression(const Aws::String& value) { SetCompression(value); return *this;} /** *

Specifies how the data is compressed. This is generally not necessary if the * data has a standard file extension. Possible values are "gzip" and * "bzip").

*/ inline S3DirectTarget& WithCompression(Aws::String&& value) { SetCompression(std::move(value)); return *this;} /** *

Specifies how the data is compressed. This is generally not necessary if the * data has a standard file extension. Possible values are "gzip" and * "bzip").

*/ inline S3DirectTarget& WithCompression(const char* value) { SetCompression(value); return *this;} /** *

Specifies the data output format for the target.

*/ inline const TargetFormat& GetFormat() const{ return m_format; } /** *

Specifies the data output format for the target.

*/ inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; } /** *

Specifies the data output format for the target.

*/ inline void SetFormat(const TargetFormat& value) { m_formatHasBeenSet = true; m_format = value; } /** *

Specifies the data output format for the target.

*/ inline void SetFormat(TargetFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); } /** *

Specifies the data output format for the target.

*/ inline S3DirectTarget& WithFormat(const TargetFormat& value) { SetFormat(value); return *this;} /** *

Specifies the data output format for the target.

*/ inline S3DirectTarget& WithFormat(TargetFormat&& value) { SetFormat(std::move(value)); return *this;} /** *

A policy that specifies update behavior for the crawler.

*/ inline const DirectSchemaChangePolicy& GetSchemaChangePolicy() const{ return m_schemaChangePolicy; } /** *

A policy that specifies update behavior for the crawler.

*/ inline bool SchemaChangePolicyHasBeenSet() const { return m_schemaChangePolicyHasBeenSet; } /** *

A policy that specifies update behavior for the crawler.

*/ inline void SetSchemaChangePolicy(const DirectSchemaChangePolicy& value) { m_schemaChangePolicyHasBeenSet = true; m_schemaChangePolicy = value; } /** *

A policy that specifies update behavior for the crawler.

*/ inline void SetSchemaChangePolicy(DirectSchemaChangePolicy&& value) { m_schemaChangePolicyHasBeenSet = true; m_schemaChangePolicy = std::move(value); } /** *

A policy that specifies update behavior for the crawler.

*/ inline S3DirectTarget& WithSchemaChangePolicy(const DirectSchemaChangePolicy& value) { SetSchemaChangePolicy(value); return *this;} /** *

A policy that specifies update behavior for the crawler.

*/ inline S3DirectTarget& WithSchemaChangePolicy(DirectSchemaChangePolicy&& value) { SetSchemaChangePolicy(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_inputs; bool m_inputsHasBeenSet = false; Aws::Vector> m_partitionKeys; bool m_partitionKeysHasBeenSet = false; Aws::String m_path; bool m_pathHasBeenSet = false; Aws::String m_compression; bool m_compressionHasBeenSet = false; TargetFormat m_format; bool m_formatHasBeenSet = false; DirectSchemaChangePolicy m_schemaChangePolicy; bool m_schemaChangePolicyHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws