/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoT { namespace Model { /** *

Information about the topic rule destination.

See Also:

AWS * API Reference

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

The topic rule destination ARN.

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

The topic rule destination ARN.

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

The topic rule destination ARN.

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

The topic rule destination ARN.

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

The topic rule destination ARN.

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

The topic rule destination ARN.

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

The topic rule destination ARN.

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

The topic rule destination ARN.

*/ inline TopicRuleDestinationSummary& 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 TopicRuleDestinationSummary& 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 TopicRuleDestinationSummary& WithStatus(TopicRuleDestinationStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The reason the topic rule destination is in the current status.

*/ inline const Aws::String& GetStatusReason() const{ return m_statusReason; } /** *

The reason the topic rule destination is in the current status.

*/ inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; } /** *

The reason the topic rule destination is in the current status.

*/ inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; } /** *

The reason the topic rule destination is in the current status.

*/ inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); } /** *

The reason the topic rule destination is in the current status.

*/ inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); } /** *

The reason the topic rule destination is in the current status.

*/ inline TopicRuleDestinationSummary& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;} /** *

The reason the topic rule destination is in the current status.

*/ inline TopicRuleDestinationSummary& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;} /** *

The reason the topic rule destination is in the current status.

*/ inline TopicRuleDestinationSummary& WithStatusReason(const char* value) { SetStatusReason(value); return *this;} /** *

Information about the HTTP URL.

*/ inline const HttpUrlDestinationSummary& GetHttpUrlSummary() const{ return m_httpUrlSummary; } /** *

Information about the HTTP URL.

*/ inline bool HttpUrlSummaryHasBeenSet() const { return m_httpUrlSummaryHasBeenSet; } /** *

Information about the HTTP URL.

*/ inline void SetHttpUrlSummary(const HttpUrlDestinationSummary& value) { m_httpUrlSummaryHasBeenSet = true; m_httpUrlSummary = value; } /** *

Information about the HTTP URL.

*/ inline void SetHttpUrlSummary(HttpUrlDestinationSummary&& value) { m_httpUrlSummaryHasBeenSet = true; m_httpUrlSummary = std::move(value); } /** *

Information about the HTTP URL.

*/ inline TopicRuleDestinationSummary& WithHttpUrlSummary(const HttpUrlDestinationSummary& value) { SetHttpUrlSummary(value); return *this;} /** *

Information about the HTTP URL.

*/ inline TopicRuleDestinationSummary& WithHttpUrlSummary(HttpUrlDestinationSummary&& value) { SetHttpUrlSummary(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet; TopicRuleDestinationStatus m_status; bool m_statusHasBeenSet; Aws::String m_statusReason; bool m_statusReasonHasBeenSet; HttpUrlDestinationSummary m_httpUrlSummary; bool m_httpUrlSummaryHasBeenSet; }; } // namespace Model } // namespace IoT } // namespace Aws