/** * 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 EC2 { namespace Model { /** */ class AWS_EC2_API ModifyVpcEndpointConnectionNotificationRequest : public EC2Request { public: ModifyVpcEndpointConnectionNotificationRequest(); // 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 "ModifyVpcEndpointConnectionNotification"; } Aws::String SerializePayload() const override; protected: void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline ModifyVpcEndpointConnectionNotificationRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

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 ModifyVpcEndpointConnectionNotificationRequest& WithConnectionNotificationId(const Aws::String& value) { SetConnectionNotificationId(value); return *this;} /** *

The ID of the notification.

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

The ID of the notification.

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

The ARN for the SNS topic for the notification.

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

The ARN for the SNS topic for the notification.

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

The ARN for the SNS topic for the notification.

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

The ARN for the SNS topic for the notification.

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

The ARN for the SNS topic for the notification.

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

The ARN for the SNS topic for the notification.

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

The ARN for the SNS topic for the notification.

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

The ARN for the SNS topic for the notification.

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

One or more events for the endpoint. Valid values are Accept, * Connect, Delete, and Reject.

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

One or more events for the endpoint. Valid values are Accept, * Connect, Delete, and Reject.

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

One or more events for the endpoint. Valid values are Accept, * Connect, Delete, and Reject.

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

One or more events for the endpoint. Valid values are Accept, * Connect, Delete, and Reject.

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

One or more events for the endpoint. Valid values are Accept, * Connect, Delete, and Reject.

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

One or more events for the endpoint. Valid values are Accept, * Connect, Delete, and Reject.

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

One or more events for the endpoint. Valid values are Accept, * Connect, Delete, and Reject.

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

One or more events for the endpoint. Valid values are Accept, * Connect, Delete, and Reject.

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

One or more events for the endpoint. Valid values are Accept, * Connect, Delete, and Reject.

*/ inline ModifyVpcEndpointConnectionNotificationRequest& AddConnectionEvents(const char* value) { m_connectionEventsHasBeenSet = true; m_connectionEvents.push_back(value); return *this; } private: bool m_dryRun; bool m_dryRunHasBeenSet; Aws::String m_connectionNotificationId; bool m_connectionNotificationIdHasBeenSet; Aws::String m_connectionNotificationArn; bool m_connectionNotificationArnHasBeenSet; Aws::Vector m_connectionEvents; bool m_connectionEventsHasBeenSet; }; } // namespace Model } // namespace EC2 } // namespace Aws