/** * 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 Firehose { namespace Model { /** */ class AWS_FIREHOSE_API DeleteDeliveryStreamRequest : public FirehoseRequest { public: DeleteDeliveryStreamRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DeleteDeliveryStream"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the delivery stream.

*/ inline const Aws::String& GetDeliveryStreamName() const{ return m_deliveryStreamName; } /** *

The name of the delivery stream.

*/ inline bool DeliveryStreamNameHasBeenSet() const { return m_deliveryStreamNameHasBeenSet; } /** *

The name of the delivery stream.

*/ inline void SetDeliveryStreamName(const Aws::String& value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName = value; } /** *

The name of the delivery stream.

*/ inline void SetDeliveryStreamName(Aws::String&& value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName = std::move(value); } /** *

The name of the delivery stream.

*/ inline void SetDeliveryStreamName(const char* value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName.assign(value); } /** *

The name of the delivery stream.

*/ inline DeleteDeliveryStreamRequest& WithDeliveryStreamName(const Aws::String& value) { SetDeliveryStreamName(value); return *this;} /** *

The name of the delivery stream.

*/ inline DeleteDeliveryStreamRequest& WithDeliveryStreamName(Aws::String&& value) { SetDeliveryStreamName(std::move(value)); return *this;} /** *

The name of the delivery stream.

*/ inline DeleteDeliveryStreamRequest& WithDeliveryStreamName(const char* value) { SetDeliveryStreamName(value); return *this;} /** *

Set this to true if you want to delete the delivery stream even if Kinesis * Data Firehose is unable to retire the grant for the CMK. Kinesis Data Firehose * might be unable to retire the grant due to a customer error, such as when the * CMK or the grant are in an invalid state. If you force deletion, you can then * use the RevokeGrant * operation to revoke the grant you gave to Kinesis Data Firehose. If a failure to * retire the grant happens due to an AWS KMS issue, Kinesis Data Firehose keeps * retrying the delete operation.

The default value is false.

*/ inline bool GetAllowForceDelete() const{ return m_allowForceDelete; } /** *

Set this to true if you want to delete the delivery stream even if Kinesis * Data Firehose is unable to retire the grant for the CMK. Kinesis Data Firehose * might be unable to retire the grant due to a customer error, such as when the * CMK or the grant are in an invalid state. If you force deletion, you can then * use the RevokeGrant * operation to revoke the grant you gave to Kinesis Data Firehose. If a failure to * retire the grant happens due to an AWS KMS issue, Kinesis Data Firehose keeps * retrying the delete operation.

The default value is false.

*/ inline bool AllowForceDeleteHasBeenSet() const { return m_allowForceDeleteHasBeenSet; } /** *

Set this to true if you want to delete the delivery stream even if Kinesis * Data Firehose is unable to retire the grant for the CMK. Kinesis Data Firehose * might be unable to retire the grant due to a customer error, such as when the * CMK or the grant are in an invalid state. If you force deletion, you can then * use the RevokeGrant * operation to revoke the grant you gave to Kinesis Data Firehose. If a failure to * retire the grant happens due to an AWS KMS issue, Kinesis Data Firehose keeps * retrying the delete operation.

The default value is false.

*/ inline void SetAllowForceDelete(bool value) { m_allowForceDeleteHasBeenSet = true; m_allowForceDelete = value; } /** *

Set this to true if you want to delete the delivery stream even if Kinesis * Data Firehose is unable to retire the grant for the CMK. Kinesis Data Firehose * might be unable to retire the grant due to a customer error, such as when the * CMK or the grant are in an invalid state. If you force deletion, you can then * use the RevokeGrant * operation to revoke the grant you gave to Kinesis Data Firehose. If a failure to * retire the grant happens due to an AWS KMS issue, Kinesis Data Firehose keeps * retrying the delete operation.

The default value is false.

*/ inline DeleteDeliveryStreamRequest& WithAllowForceDelete(bool value) { SetAllowForceDelete(value); return *this;} private: Aws::String m_deliveryStreamName; bool m_deliveryStreamNameHasBeenSet; bool m_allowForceDelete; bool m_allowForceDeleteHasBeenSet; }; } // namespace Model } // namespace Firehose } // namespace Aws