/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes a connection notification for a VPC endpoint or VPC endpoint * service.

See Also:

AWS * API Reference

*/ class ConnectionNotification { public: AWS_EC2_API ConnectionNotification(); AWS_EC2_API ConnectionNotification(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API ConnectionNotification& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The ID of the notification.

*/ inline const Aws::String& GetConnectionNotificationId() const{ return m_connectionNotificationId; } /** *

The ID of the notification.

*/ inline bool ConnectionNotificationIdHasBeenSet() const { return m_connectionNotificationIdHasBeenSet; } /** *

The ID of the notification.

*/ inline void SetConnectionNotificationId(const Aws::String& value) { m_connectionNotificationIdHasBeenSet = true; m_connectionNotificationId = value; } /** *

The ID of the notification.

*/ inline void SetConnectionNotificationId(Aws::String&& value) { m_connectionNotificationIdHasBeenSet = true; m_connectionNotificationId = std::move(value); } /** *

The ID of the notification.

*/ inline void SetConnectionNotificationId(const char* value) { m_connectionNotificationIdHasBeenSet = true; m_connectionNotificationId.assign(value); } /** *

The ID of the notification.

*/ inline ConnectionNotification& WithConnectionNotificationId(const Aws::String& value) { SetConnectionNotificationId(value); return *this;} /** *

The ID of the notification.

*/ inline ConnectionNotification& WithConnectionNotificationId(Aws::String&& value) { SetConnectionNotificationId(std::move(value)); return *this;} /** *

The ID of the notification.

*/ inline ConnectionNotification& WithConnectionNotificationId(const char* value) { SetConnectionNotificationId(value); return *this;} /** *

The ID of the endpoint service.

*/ inline const Aws::String& GetServiceId() const{ return m_serviceId; } /** *

The ID of the endpoint service.

*/ inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; } /** *

The ID of the endpoint service.

*/ inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; } /** *

The ID of the endpoint service.

*/ inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); } /** *

The ID of the endpoint service.

*/ inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); } /** *

The ID of the endpoint service.

*/ inline ConnectionNotification& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;} /** *

The ID of the endpoint service.

*/ inline ConnectionNotification& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;} /** *

The ID of the endpoint service.

*/ inline ConnectionNotification& WithServiceId(const char* value) { SetServiceId(value); return *this;} /** *

The ID of the VPC endpoint.

*/ inline const Aws::String& GetVpcEndpointId() const{ return m_vpcEndpointId; } /** *

The ID of the VPC endpoint.

*/ inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; } /** *

The ID of the VPC endpoint.

*/ inline void SetVpcEndpointId(const Aws::String& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = value; } /** *

The ID of the VPC endpoint.

*/ inline void SetVpcEndpointId(Aws::String&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::move(value); } /** *

The ID of the VPC endpoint.

*/ inline void SetVpcEndpointId(const char* value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId.assign(value); } /** *

The ID of the VPC endpoint.

*/ inline ConnectionNotification& WithVpcEndpointId(const Aws::String& value) { SetVpcEndpointId(value); return *this;} /** *

The ID of the VPC endpoint.

*/ inline ConnectionNotification& WithVpcEndpointId(Aws::String&& value) { SetVpcEndpointId(std::move(value)); return *this;} /** *

The ID of the VPC endpoint.

*/ inline ConnectionNotification& WithVpcEndpointId(const char* value) { SetVpcEndpointId(value); return *this;} /** *

The type of notification.

*/ inline const ConnectionNotificationType& GetConnectionNotificationType() const{ return m_connectionNotificationType; } /** *

The type of notification.

*/ inline bool ConnectionNotificationTypeHasBeenSet() const { return m_connectionNotificationTypeHasBeenSet; } /** *

The type of notification.

*/ inline void SetConnectionNotificationType(const ConnectionNotificationType& value) { m_connectionNotificationTypeHasBeenSet = true; m_connectionNotificationType = value; } /** *

The type of notification.

*/ inline void SetConnectionNotificationType(ConnectionNotificationType&& value) { m_connectionNotificationTypeHasBeenSet = true; m_connectionNotificationType = std::move(value); } /** *

The type of notification.

*/ inline ConnectionNotification& WithConnectionNotificationType(const ConnectionNotificationType& value) { SetConnectionNotificationType(value); return *this;} /** *

The type of notification.

*/ inline ConnectionNotification& WithConnectionNotificationType(ConnectionNotificationType&& value) { SetConnectionNotificationType(std::move(value)); return *this;} /** *

The ARN of the SNS topic for the notification.

*/ inline const Aws::String& GetConnectionNotificationArn() const{ return m_connectionNotificationArn; } /** *

The ARN of the SNS topic for the notification.

*/ inline bool ConnectionNotificationArnHasBeenSet() const { return m_connectionNotificationArnHasBeenSet; } /** *

The ARN of the SNS topic for the notification.

*/ inline void SetConnectionNotificationArn(const Aws::String& value) { m_connectionNotificationArnHasBeenSet = true; m_connectionNotificationArn = value; } /** *

The ARN of the SNS topic for the notification.

*/ inline void SetConnectionNotificationArn(Aws::String&& value) { m_connectionNotificationArnHasBeenSet = true; m_connectionNotificationArn = std::move(value); } /** *

The ARN of the SNS topic for the notification.

*/ inline void SetConnectionNotificationArn(const char* value) { m_connectionNotificationArnHasBeenSet = true; m_connectionNotificationArn.assign(value); } /** *

The ARN of the SNS topic for the notification.

*/ inline ConnectionNotification& WithConnectionNotificationArn(const Aws::String& value) { SetConnectionNotificationArn(value); return *this;} /** *

The ARN of the SNS topic for the notification.

*/ inline ConnectionNotification& WithConnectionNotificationArn(Aws::String&& value) { SetConnectionNotificationArn(std::move(value)); return *this;} /** *

The ARN of the SNS topic for the notification.

*/ inline ConnectionNotification& WithConnectionNotificationArn(const char* value) { SetConnectionNotificationArn(value); return *this;} /** *

The events for the notification. Valid values are Accept, * Connect, Delete, and Reject.

*/ inline const Aws::Vector& GetConnectionEvents() const{ return m_connectionEvents; } /** *

The events for the notification. Valid values are Accept, * Connect, Delete, and Reject.

*/ inline bool ConnectionEventsHasBeenSet() const { return m_connectionEventsHasBeenSet; } /** *

The events for the notification. Valid values are Accept, * Connect, Delete, and Reject.

*/ inline void SetConnectionEvents(const Aws::Vector& value) { m_connectionEventsHasBeenSet = true; m_connectionEvents = value; } /** *

The events for the notification. Valid values are Accept, * Connect, Delete, and Reject.

*/ inline void SetConnectionEvents(Aws::Vector&& value) { m_connectionEventsHasBeenSet = true; m_connectionEvents = std::move(value); } /** *

The events for the notification. Valid values are Accept, * Connect, Delete, and Reject.

*/ inline ConnectionNotification& WithConnectionEvents(const Aws::Vector& value) { SetConnectionEvents(value); return *this;} /** *

The events for the notification. Valid values are Accept, * Connect, Delete, and Reject.

*/ inline ConnectionNotification& WithConnectionEvents(Aws::Vector&& value) { SetConnectionEvents(std::move(value)); return *this;} /** *

The events for the notification. Valid values are Accept, * Connect, Delete, and Reject.

*/ inline ConnectionNotification& AddConnectionEvents(const Aws::String& value) { m_connectionEventsHasBeenSet = true; m_connectionEvents.push_back(value); return *this; } /** *

The events for the notification. Valid values are Accept, * Connect, Delete, and Reject.

*/ inline ConnectionNotification& AddConnectionEvents(Aws::String&& value) { m_connectionEventsHasBeenSet = true; m_connectionEvents.push_back(std::move(value)); return *this; } /** *

The events for the notification. Valid values are Accept, * Connect, Delete, and Reject.

*/ inline ConnectionNotification& AddConnectionEvents(const char* value) { m_connectionEventsHasBeenSet = true; m_connectionEvents.push_back(value); return *this; } /** *

The state of the notification.

*/ inline const ConnectionNotificationState& GetConnectionNotificationState() const{ return m_connectionNotificationState; } /** *

The state of the notification.

*/ inline bool ConnectionNotificationStateHasBeenSet() const { return m_connectionNotificationStateHasBeenSet; } /** *

The state of the notification.

*/ inline void SetConnectionNotificationState(const ConnectionNotificationState& value) { m_connectionNotificationStateHasBeenSet = true; m_connectionNotificationState = value; } /** *

The state of the notification.

*/ inline void SetConnectionNotificationState(ConnectionNotificationState&& value) { m_connectionNotificationStateHasBeenSet = true; m_connectionNotificationState = std::move(value); } /** *

The state of the notification.

*/ inline ConnectionNotification& WithConnectionNotificationState(const ConnectionNotificationState& value) { SetConnectionNotificationState(value); return *this;} /** *

The state of the notification.

*/ inline ConnectionNotification& WithConnectionNotificationState(ConnectionNotificationState&& value) { SetConnectionNotificationState(std::move(value)); return *this;} private: Aws::String m_connectionNotificationId; bool m_connectionNotificationIdHasBeenSet = false; Aws::String m_serviceId; bool m_serviceIdHasBeenSet = false; Aws::String m_vpcEndpointId; bool m_vpcEndpointIdHasBeenSet = false; ConnectionNotificationType m_connectionNotificationType; bool m_connectionNotificationTypeHasBeenSet = false; Aws::String m_connectionNotificationArn; bool m_connectionNotificationArnHasBeenSet = false; Aws::Vector m_connectionEvents; bool m_connectionEventsHasBeenSet = false; ConnectionNotificationState m_connectionNotificationState; bool m_connectionNotificationStateHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws