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

The recipient of AnomalySubscription notifications. *

See Also:

AWS API * Reference

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

The email address or SNS Amazon Resource Name (ARN). This depends on the * Type.

*/ inline const Aws::String& GetAddress() const{ return m_address; } /** *

The email address or SNS Amazon Resource Name (ARN). This depends on the * Type.

*/ inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; } /** *

The email address or SNS Amazon Resource Name (ARN). This depends on the * Type.

*/ inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; } /** *

The email address or SNS Amazon Resource Name (ARN). This depends on the * Type.

*/ inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); } /** *

The email address or SNS Amazon Resource Name (ARN). This depends on the * Type.

*/ inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); } /** *

The email address or SNS Amazon Resource Name (ARN). This depends on the * Type.

*/ inline Subscriber& WithAddress(const Aws::String& value) { SetAddress(value); return *this;} /** *

The email address or SNS Amazon Resource Name (ARN). This depends on the * Type.

*/ inline Subscriber& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;} /** *

The email address or SNS Amazon Resource Name (ARN). This depends on the * Type.

*/ inline Subscriber& WithAddress(const char* value) { SetAddress(value); return *this;} /** *

The notification delivery channel.

*/ inline const SubscriberType& GetType() const{ return m_type; } /** *

The notification delivery channel.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The notification delivery channel.

*/ inline void SetType(const SubscriberType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The notification delivery channel.

*/ inline void SetType(SubscriberType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The notification delivery channel.

*/ inline Subscriber& WithType(const SubscriberType& value) { SetType(value); return *this;} /** *

The notification delivery channel.

*/ inline Subscriber& WithType(SubscriberType&& value) { SetType(std::move(value)); return *this;} /** *

Indicates if the subscriber accepts the notifications.

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

Indicates if the subscriber accepts the notifications.

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

Indicates if the subscriber accepts the notifications.

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

Indicates if the subscriber accepts the notifications.

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

Indicates if the subscriber accepts the notifications.

*/ inline Subscriber& WithStatus(const SubscriberStatus& value) { SetStatus(value); return *this;} /** *

Indicates if the subscriber accepts the notifications.

*/ inline Subscriber& WithStatus(SubscriberStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_address; bool m_addressHasBeenSet = false; SubscriberType m_type; bool m_typeHasBeenSet = false; SubscriberStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace CostExplorer } // namespace Aws