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

Contains information about a partition error.

See Also:

AWS * API Reference

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

The values that define the partition.

*/ inline const Aws::Vector& GetPartitionValues() const{ return m_partitionValues; } /** *

The values that define the partition.

*/ inline bool PartitionValuesHasBeenSet() const { return m_partitionValuesHasBeenSet; } /** *

The values that define the partition.

*/ inline void SetPartitionValues(const Aws::Vector& value) { m_partitionValuesHasBeenSet = true; m_partitionValues = value; } /** *

The values that define the partition.

*/ inline void SetPartitionValues(Aws::Vector&& value) { m_partitionValuesHasBeenSet = true; m_partitionValues = std::move(value); } /** *

The values that define the partition.

*/ inline PartitionError& WithPartitionValues(const Aws::Vector& value) { SetPartitionValues(value); return *this;} /** *

The values that define the partition.

*/ inline PartitionError& WithPartitionValues(Aws::Vector&& value) { SetPartitionValues(std::move(value)); return *this;} /** *

The values that define the partition.

*/ inline PartitionError& AddPartitionValues(const Aws::String& value) { m_partitionValuesHasBeenSet = true; m_partitionValues.push_back(value); return *this; } /** *

The values that define the partition.

*/ inline PartitionError& AddPartitionValues(Aws::String&& value) { m_partitionValuesHasBeenSet = true; m_partitionValues.push_back(std::move(value)); return *this; } /** *

The values that define the partition.

*/ inline PartitionError& AddPartitionValues(const char* value) { m_partitionValuesHasBeenSet = true; m_partitionValues.push_back(value); return *this; } /** *

The details about the partition error.

*/ inline const ErrorDetail& GetErrorDetail() const{ return m_errorDetail; } /** *

The details about the partition error.

*/ inline bool ErrorDetailHasBeenSet() const { return m_errorDetailHasBeenSet; } /** *

The details about the partition error.

*/ inline void SetErrorDetail(const ErrorDetail& value) { m_errorDetailHasBeenSet = true; m_errorDetail = value; } /** *

The details about the partition error.

*/ inline void SetErrorDetail(ErrorDetail&& value) { m_errorDetailHasBeenSet = true; m_errorDetail = std::move(value); } /** *

The details about the partition error.

*/ inline PartitionError& WithErrorDetail(const ErrorDetail& value) { SetErrorDetail(value); return *this;} /** *

The details about the partition error.

*/ inline PartitionError& WithErrorDetail(ErrorDetail&& value) { SetErrorDetail(std::move(value)); return *this;} private: Aws::Vector m_partitionValues; bool m_partitionValuesHasBeenSet = false; ErrorDetail m_errorDetail; bool m_errorDetailHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws