/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace CloudWatchEvents { namespace Model { /** */ class RemovePermissionRequest : public CloudWatchEventsRequest { public: AWS_CLOUDWATCHEVENTS_API RemovePermissionRequest(); // 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 "RemovePermission"; } AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The statement ID corresponding to the account that is no longer allowed to * put events to the default event bus.

*/ inline const Aws::String& GetStatementId() const{ return m_statementId; } /** *

The statement ID corresponding to the account that is no longer allowed to * put events to the default event bus.

*/ inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; } /** *

The statement ID corresponding to the account that is no longer allowed to * put events to the default event bus.

*/ inline void SetStatementId(const Aws::String& value) { m_statementIdHasBeenSet = true; m_statementId = value; } /** *

The statement ID corresponding to the account that is no longer allowed to * put events to the default event bus.

*/ inline void SetStatementId(Aws::String&& value) { m_statementIdHasBeenSet = true; m_statementId = std::move(value); } /** *

The statement ID corresponding to the account that is no longer allowed to * put events to the default event bus.

*/ inline void SetStatementId(const char* value) { m_statementIdHasBeenSet = true; m_statementId.assign(value); } /** *

The statement ID corresponding to the account that is no longer allowed to * put events to the default event bus.

*/ inline RemovePermissionRequest& WithStatementId(const Aws::String& value) { SetStatementId(value); return *this;} /** *

The statement ID corresponding to the account that is no longer allowed to * put events to the default event bus.

*/ inline RemovePermissionRequest& WithStatementId(Aws::String&& value) { SetStatementId(std::move(value)); return *this;} /** *

The statement ID corresponding to the account that is no longer allowed to * put events to the default event bus.

*/ inline RemovePermissionRequest& WithStatementId(const char* value) { SetStatementId(value); return *this;} /** *

Specifies whether to remove all permissions.

*/ inline bool GetRemoveAllPermissions() const{ return m_removeAllPermissions; } /** *

Specifies whether to remove all permissions.

*/ inline bool RemoveAllPermissionsHasBeenSet() const { return m_removeAllPermissionsHasBeenSet; } /** *

Specifies whether to remove all permissions.

*/ inline void SetRemoveAllPermissions(bool value) { m_removeAllPermissionsHasBeenSet = true; m_removeAllPermissions = value; } /** *

Specifies whether to remove all permissions.

*/ inline RemovePermissionRequest& WithRemoveAllPermissions(bool value) { SetRemoveAllPermissions(value); return *this;} /** *

The name of the event bus to revoke permissions for. If you omit this, the * default event bus is used.

*/ inline const Aws::String& GetEventBusName() const{ return m_eventBusName; } /** *

The name of the event bus to revoke permissions for. If you omit this, the * default event bus is used.

*/ inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; } /** *

The name of the event bus to revoke permissions for. If you omit this, the * default event bus is used.

*/ inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; } /** *

The name of the event bus to revoke permissions for. If you omit this, the * default event bus is used.

*/ inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); } /** *

The name of the event bus to revoke permissions for. If you omit this, the * default event bus is used.

*/ inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); } /** *

The name of the event bus to revoke permissions for. If you omit this, the * default event bus is used.

*/ inline RemovePermissionRequest& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;} /** *

The name of the event bus to revoke permissions for. If you omit this, the * default event bus is used.

*/ inline RemovePermissionRequest& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;} /** *

The name of the event bus to revoke permissions for. If you omit this, the * default event bus is used.

*/ inline RemovePermissionRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;} private: Aws::String m_statementId; bool m_statementIdHasBeenSet = false; bool m_removeAllPermissions; bool m_removeAllPermissionsHasBeenSet = false; Aws::String m_eventBusName; bool m_eventBusNameHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvents } // namespace Aws