/** * 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 IoT { namespace Model { /** */ class UpdateTopicRuleDestinationRequest : public IoTRequest { public: AWS_IOT_API UpdateTopicRuleDestinationRequest(); // 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 "UpdateTopicRuleDestination"; } AWS_IOT_API Aws::String SerializePayload() const override; /** *

The ARN of the topic rule destination.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN of the topic rule destination.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN of the topic rule destination.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The ARN of the topic rule destination.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The ARN of the topic rule destination.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The ARN of the topic rule destination.

*/ inline UpdateTopicRuleDestinationRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN of the topic rule destination.

*/ inline UpdateTopicRuleDestinationRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN of the topic rule destination.

*/ inline UpdateTopicRuleDestinationRequest& WithArn(const char* value) { SetArn(value); return *this;} /** *

The status of the topic rule destination. Valid values are:

*
IN_PROGRESS

A topic rule destination was created but has not * been confirmed. You can set status to IN_PROGRESS by * calling UpdateTopicRuleDestination. Calling * UpdateTopicRuleDestination causes a new confirmation challenge to * be sent to your confirmation endpoint.

ENABLED
*

Confirmation was completed, and traffic to this destination is allowed. You * can set status to DISABLED by calling * UpdateTopicRuleDestination.

DISABLED
*

Confirmation was completed, and traffic to this destination is not allowed. * You can set status to ENABLED by calling * UpdateTopicRuleDestination.

ERROR
*

Confirmation could not be completed, for example if the confirmation timed * out. You can call GetTopicRuleDestination for details about the * error. You can set status to IN_PROGRESS by calling * UpdateTopicRuleDestination. Calling * UpdateTopicRuleDestination causes a new confirmation challenge to * be sent to your confirmation endpoint.

*/ inline const TopicRuleDestinationStatus& GetStatus() const{ return m_status; } /** *

The status of the topic rule destination. Valid values are:

*
IN_PROGRESS

A topic rule destination was created but has not * been confirmed. You can set status to IN_PROGRESS by * calling UpdateTopicRuleDestination. Calling * UpdateTopicRuleDestination causes a new confirmation challenge to * be sent to your confirmation endpoint.

ENABLED
*

Confirmation was completed, and traffic to this destination is allowed. You * can set status to DISABLED by calling * UpdateTopicRuleDestination.

DISABLED
*

Confirmation was completed, and traffic to this destination is not allowed. * You can set status to ENABLED by calling * UpdateTopicRuleDestination.

ERROR
*

Confirmation could not be completed, for example if the confirmation timed * out. You can call GetTopicRuleDestination for details about the * error. You can set status to IN_PROGRESS by calling * UpdateTopicRuleDestination. Calling * UpdateTopicRuleDestination causes a new confirmation challenge to * be sent to your confirmation endpoint.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the topic rule destination. Valid values are:

*
IN_PROGRESS

A topic rule destination was created but has not * been confirmed. You can set status to IN_PROGRESS by * calling UpdateTopicRuleDestination. Calling * UpdateTopicRuleDestination causes a new confirmation challenge to * be sent to your confirmation endpoint.

ENABLED
*

Confirmation was completed, and traffic to this destination is allowed. You * can set status to DISABLED by calling * UpdateTopicRuleDestination.

DISABLED
*

Confirmation was completed, and traffic to this destination is not allowed. * You can set status to ENABLED by calling * UpdateTopicRuleDestination.

ERROR
*

Confirmation could not be completed, for example if the confirmation timed * out. You can call GetTopicRuleDestination for details about the * error. You can set status to IN_PROGRESS by calling * UpdateTopicRuleDestination. Calling * UpdateTopicRuleDestination causes a new confirmation challenge to * be sent to your confirmation endpoint.

*/ inline void SetStatus(const TopicRuleDestinationStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the topic rule destination. Valid values are:

*
IN_PROGRESS

A topic rule destination was created but has not * been confirmed. You can set status to IN_PROGRESS by * calling UpdateTopicRuleDestination. Calling * UpdateTopicRuleDestination causes a new confirmation challenge to * be sent to your confirmation endpoint.

ENABLED
*

Confirmation was completed, and traffic to this destination is allowed. You * can set status to DISABLED by calling * UpdateTopicRuleDestination.

DISABLED
*

Confirmation was completed, and traffic to this destination is not allowed. * You can set status to ENABLED by calling * UpdateTopicRuleDestination.

ERROR
*

Confirmation could not be completed, for example if the confirmation timed * out. You can call GetTopicRuleDestination for details about the * error. You can set status to IN_PROGRESS by calling * UpdateTopicRuleDestination. Calling * UpdateTopicRuleDestination causes a new confirmation challenge to * be sent to your confirmation endpoint.

*/ inline void SetStatus(TopicRuleDestinationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the topic rule destination. Valid values are:

*
IN_PROGRESS

A topic rule destination was created but has not * been confirmed. You can set status to IN_PROGRESS by * calling UpdateTopicRuleDestination. Calling * UpdateTopicRuleDestination causes a new confirmation challenge to * be sent to your confirmation endpoint.

ENABLED
*

Confirmation was completed, and traffic to this destination is allowed. You * can set status to DISABLED by calling * UpdateTopicRuleDestination.

DISABLED
*

Confirmation was completed, and traffic to this destination is not allowed. * You can set status to ENABLED by calling * UpdateTopicRuleDestination.

ERROR
*

Confirmation could not be completed, for example if the confirmation timed * out. You can call GetTopicRuleDestination for details about the * error. You can set status to IN_PROGRESS by calling * UpdateTopicRuleDestination. Calling * UpdateTopicRuleDestination causes a new confirmation challenge to * be sent to your confirmation endpoint.

*/ inline UpdateTopicRuleDestinationRequest& WithStatus(const TopicRuleDestinationStatus& value) { SetStatus(value); return *this;} /** *

The status of the topic rule destination. Valid values are:

*
IN_PROGRESS

A topic rule destination was created but has not * been confirmed. You can set status to IN_PROGRESS by * calling UpdateTopicRuleDestination. Calling * UpdateTopicRuleDestination causes a new confirmation challenge to * be sent to your confirmation endpoint.

ENABLED
*

Confirmation was completed, and traffic to this destination is allowed. You * can set status to DISABLED by calling * UpdateTopicRuleDestination.

DISABLED
*

Confirmation was completed, and traffic to this destination is not allowed. * You can set status to ENABLED by calling * UpdateTopicRuleDestination.

ERROR
*

Confirmation could not be completed, for example if the confirmation timed * out. You can call GetTopicRuleDestination for details about the * error. You can set status to IN_PROGRESS by calling * UpdateTopicRuleDestination. Calling * UpdateTopicRuleDestination causes a new confirmation challenge to * be sent to your confirmation endpoint.

*/ inline UpdateTopicRuleDestinationRequest& WithStatus(TopicRuleDestinationStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; TopicRuleDestinationStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws