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

Provides details in case one of the following operations fails due to an * error related to KMS: CreateDeliveryStream, DeleteDeliveryStream, * StartDeliveryStreamEncryption, * StopDeliveryStreamEncryption.

See Also:

AWS * API Reference

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

The type of error that caused the failure.

*/ inline const DeliveryStreamFailureType& GetType() const{ return m_type; } /** *

The type of error that caused the failure.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of error that caused the failure.

*/ inline void SetType(const DeliveryStreamFailureType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of error that caused the failure.

*/ inline void SetType(DeliveryStreamFailureType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of error that caused the failure.

*/ inline FailureDescription& WithType(const DeliveryStreamFailureType& value) { SetType(value); return *this;} /** *

The type of error that caused the failure.

*/ inline FailureDescription& WithType(DeliveryStreamFailureType&& value) { SetType(std::move(value)); return *this;} /** *

A message providing details about the error that caused the failure.

*/ inline const Aws::String& GetDetails() const{ return m_details; } /** *

A message providing details about the error that caused the failure.

*/ inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; } /** *

A message providing details about the error that caused the failure.

*/ inline void SetDetails(const Aws::String& value) { m_detailsHasBeenSet = true; m_details = value; } /** *

A message providing details about the error that caused the failure.

*/ inline void SetDetails(Aws::String&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); } /** *

A message providing details about the error that caused the failure.

*/ inline void SetDetails(const char* value) { m_detailsHasBeenSet = true; m_details.assign(value); } /** *

A message providing details about the error that caused the failure.

*/ inline FailureDescription& WithDetails(const Aws::String& value) { SetDetails(value); return *this;} /** *

A message providing details about the error that caused the failure.

*/ inline FailureDescription& WithDetails(Aws::String&& value) { SetDetails(std::move(value)); return *this;} /** *

A message providing details about the error that caused the failure.

*/ inline FailureDescription& WithDetails(const char* value) { SetDetails(value); return *this;} private: DeliveryStreamFailureType m_type; bool m_typeHasBeenSet; Aws::String m_details; bool m_detailsHasBeenSet; }; } // namespace Model } // namespace Firehose } // namespace Aws