This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-firehose/include/aws/firehose/model/FailureDescription.h

127 lines
3.9 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/firehose/Firehose_EXPORTS.h>
#include <aws/firehose/model/DeliveryStreamFailureType.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Firehose
{
namespace Model
{
/**
* <p>Provides details in case one of the following operations fails due to an
* error related to KMS: <a>CreateDeliveryStream</a>, <a>DeleteDeliveryStream</a>,
* <a>StartDeliveryStreamEncryption</a>,
* <a>StopDeliveryStreamEncryption</a>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/FailureDescription">AWS
* API Reference</a></p>
*/
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;
/**
* <p>The type of error that caused the failure.</p>
*/
inline const DeliveryStreamFailureType& GetType() const{ return m_type; }
/**
* <p>The type of error that caused the failure.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of error that caused the failure.</p>
*/
inline void SetType(const DeliveryStreamFailureType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of error that caused the failure.</p>
*/
inline void SetType(DeliveryStreamFailureType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of error that caused the failure.</p>
*/
inline FailureDescription& WithType(const DeliveryStreamFailureType& value) { SetType(value); return *this;}
/**
* <p>The type of error that caused the failure.</p>
*/
inline FailureDescription& WithType(DeliveryStreamFailureType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>A message providing details about the error that caused the failure.</p>
*/
inline const Aws::String& GetDetails() const{ return m_details; }
/**
* <p>A message providing details about the error that caused the failure.</p>
*/
inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
/**
* <p>A message providing details about the error that caused the failure.</p>
*/
inline void SetDetails(const Aws::String& value) { m_detailsHasBeenSet = true; m_details = value; }
/**
* <p>A message providing details about the error that caused the failure.</p>
*/
inline void SetDetails(Aws::String&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
/**
* <p>A message providing details about the error that caused the failure.</p>
*/
inline void SetDetails(const char* value) { m_detailsHasBeenSet = true; m_details.assign(value); }
/**
* <p>A message providing details about the error that caused the failure.</p>
*/
inline FailureDescription& WithDetails(const Aws::String& value) { SetDetails(value); return *this;}
/**
* <p>A message providing details about the error that caused the failure.</p>
*/
inline FailureDescription& WithDetails(Aws::String&& value) { SetDetails(std::move(value)); return *this;}
/**
* <p>A message providing details about the error that caused the failure.</p>
*/
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