/** * 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 CustomerProfiles { namespace Model { /** *

Details of the destination being used for the EventStream.

See * Also:

AWS * API Reference

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

The StreamARN of the destination to deliver profile events to. For example, * arn:aws:kinesis:region:account-id:stream/stream-name.

*/ inline const Aws::String& GetUri() const{ return m_uri; } /** *

The StreamARN of the destination to deliver profile events to. For example, * arn:aws:kinesis:region:account-id:stream/stream-name.

*/ inline bool UriHasBeenSet() const { return m_uriHasBeenSet; } /** *

The StreamARN of the destination to deliver profile events to. For example, * arn:aws:kinesis:region:account-id:stream/stream-name.

*/ inline void SetUri(const Aws::String& value) { m_uriHasBeenSet = true; m_uri = value; } /** *

The StreamARN of the destination to deliver profile events to. For example, * arn:aws:kinesis:region:account-id:stream/stream-name.

*/ inline void SetUri(Aws::String&& value) { m_uriHasBeenSet = true; m_uri = std::move(value); } /** *

The StreamARN of the destination to deliver profile events to. For example, * arn:aws:kinesis:region:account-id:stream/stream-name.

*/ inline void SetUri(const char* value) { m_uriHasBeenSet = true; m_uri.assign(value); } /** *

The StreamARN of the destination to deliver profile events to. For example, * arn:aws:kinesis:region:account-id:stream/stream-name.

*/ inline EventStreamDestinationDetails& WithUri(const Aws::String& value) { SetUri(value); return *this;} /** *

The StreamARN of the destination to deliver profile events to. For example, * arn:aws:kinesis:region:account-id:stream/stream-name.

*/ inline EventStreamDestinationDetails& WithUri(Aws::String&& value) { SetUri(std::move(value)); return *this;} /** *

The StreamARN of the destination to deliver profile events to. For example, * arn:aws:kinesis:region:account-id:stream/stream-name.

*/ inline EventStreamDestinationDetails& WithUri(const char* value) { SetUri(value); return *this;} /** *

The status of enabling the Kinesis stream as a destination for export.

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

The status of enabling the Kinesis stream as a destination for export.

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

The status of enabling the Kinesis stream as a destination for export.

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

The status of enabling the Kinesis stream as a destination for export.

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

The status of enabling the Kinesis stream as a destination for export.

*/ inline EventStreamDestinationDetails& WithStatus(const EventStreamDestinationStatus& value) { SetStatus(value); return *this;} /** *

The status of enabling the Kinesis stream as a destination for export.

*/ inline EventStreamDestinationDetails& WithStatus(EventStreamDestinationStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The timestamp when the status last changed to UNHEALHY.

*/ inline const Aws::Utils::DateTime& GetUnhealthySince() const{ return m_unhealthySince; } /** *

The timestamp when the status last changed to UNHEALHY.

*/ inline bool UnhealthySinceHasBeenSet() const { return m_unhealthySinceHasBeenSet; } /** *

The timestamp when the status last changed to UNHEALHY.

*/ inline void SetUnhealthySince(const Aws::Utils::DateTime& value) { m_unhealthySinceHasBeenSet = true; m_unhealthySince = value; } /** *

The timestamp when the status last changed to UNHEALHY.

*/ inline void SetUnhealthySince(Aws::Utils::DateTime&& value) { m_unhealthySinceHasBeenSet = true; m_unhealthySince = std::move(value); } /** *

The timestamp when the status last changed to UNHEALHY.

*/ inline EventStreamDestinationDetails& WithUnhealthySince(const Aws::Utils::DateTime& value) { SetUnhealthySince(value); return *this;} /** *

The timestamp when the status last changed to UNHEALHY.

*/ inline EventStreamDestinationDetails& WithUnhealthySince(Aws::Utils::DateTime&& value) { SetUnhealthySince(std::move(value)); return *this;} /** *

The human-readable string that corresponds to the error or success while * enabling the streaming destination.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

The human-readable string that corresponds to the error or success while * enabling the streaming destination.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

The human-readable string that corresponds to the error or success while * enabling the streaming destination.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

The human-readable string that corresponds to the error or success while * enabling the streaming destination.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

The human-readable string that corresponds to the error or success while * enabling the streaming destination.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

The human-readable string that corresponds to the error or success while * enabling the streaming destination.

*/ inline EventStreamDestinationDetails& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

The human-readable string that corresponds to the error or success while * enabling the streaming destination.

*/ inline EventStreamDestinationDetails& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

The human-readable string that corresponds to the error or success while * enabling the streaming destination.

*/ inline EventStreamDestinationDetails& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_uri; bool m_uriHasBeenSet = false; EventStreamDestinationStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_unhealthySince; bool m_unhealthySinceHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace CustomerProfiles } // namespace Aws