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

The set of properties on a table for configuring magnetic store * writes.

See Also:

AWS * API Reference

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

A flag to enable magnetic store writes.

*/ inline bool GetEnableMagneticStoreWrites() const{ return m_enableMagneticStoreWrites; } /** *

A flag to enable magnetic store writes.

*/ inline bool EnableMagneticStoreWritesHasBeenSet() const { return m_enableMagneticStoreWritesHasBeenSet; } /** *

A flag to enable magnetic store writes.

*/ inline void SetEnableMagneticStoreWrites(bool value) { m_enableMagneticStoreWritesHasBeenSet = true; m_enableMagneticStoreWrites = value; } /** *

A flag to enable magnetic store writes.

*/ inline MagneticStoreWriteProperties& WithEnableMagneticStoreWrites(bool value) { SetEnableMagneticStoreWrites(value); return *this;} /** *

The location to write error reports for records rejected asynchronously * during magnetic store writes.

*/ inline const MagneticStoreRejectedDataLocation& GetMagneticStoreRejectedDataLocation() const{ return m_magneticStoreRejectedDataLocation; } /** *

The location to write error reports for records rejected asynchronously * during magnetic store writes.

*/ inline bool MagneticStoreRejectedDataLocationHasBeenSet() const { return m_magneticStoreRejectedDataLocationHasBeenSet; } /** *

The location to write error reports for records rejected asynchronously * during magnetic store writes.

*/ inline void SetMagneticStoreRejectedDataLocation(const MagneticStoreRejectedDataLocation& value) { m_magneticStoreRejectedDataLocationHasBeenSet = true; m_magneticStoreRejectedDataLocation = value; } /** *

The location to write error reports for records rejected asynchronously * during magnetic store writes.

*/ inline void SetMagneticStoreRejectedDataLocation(MagneticStoreRejectedDataLocation&& value) { m_magneticStoreRejectedDataLocationHasBeenSet = true; m_magneticStoreRejectedDataLocation = std::move(value); } /** *

The location to write error reports for records rejected asynchronously * during magnetic store writes.

*/ inline MagneticStoreWriteProperties& WithMagneticStoreRejectedDataLocation(const MagneticStoreRejectedDataLocation& value) { SetMagneticStoreRejectedDataLocation(value); return *this;} /** *

The location to write error reports for records rejected asynchronously * during magnetic store writes.

*/ inline MagneticStoreWriteProperties& WithMagneticStoreRejectedDataLocation(MagneticStoreRejectedDataLocation&& value) { SetMagneticStoreRejectedDataLocation(std::move(value)); return *this;} private: bool m_enableMagneticStoreWrites; bool m_enableMagneticStoreWritesHasBeenSet = false; MagneticStoreRejectedDataLocation m_magneticStoreRejectedDataLocation; bool m_magneticStoreRejectedDataLocationHasBeenSet = false; }; } // namespace Model } // namespace TimestreamWrite } // namespace Aws