/** * 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 Http { class URI; } //namespace Http namespace CodeGuruProfiler { namespace Model { /** *

 The structure representing the
   * <code>removePermissionRequest</code>.</p>
   * 

See Also:

AWS * API Reference

*/ class RemovePermissionRequest : public CodeGuruProfilerRequest { public: AWS_CODEGURUPROFILER_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_CODEGURUPROFILER_API Aws::String SerializePayload() const override; AWS_CODEGURUPROFILER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

Specifies an action group that contains the permissions to remove from a * profiling group's resource-based policy. One action group is supported, * agentPermissions, which grants ConfigureAgent and * PostAgentProfile permissions.

*/ inline const ActionGroup& GetActionGroup() const{ return m_actionGroup; } /** *

Specifies an action group that contains the permissions to remove from a * profiling group's resource-based policy. One action group is supported, * agentPermissions, which grants ConfigureAgent and * PostAgentProfile permissions.

*/ inline bool ActionGroupHasBeenSet() const { return m_actionGroupHasBeenSet; } /** *

Specifies an action group that contains the permissions to remove from a * profiling group's resource-based policy. One action group is supported, * agentPermissions, which grants ConfigureAgent and * PostAgentProfile permissions.

*/ inline void SetActionGroup(const ActionGroup& value) { m_actionGroupHasBeenSet = true; m_actionGroup = value; } /** *

Specifies an action group that contains the permissions to remove from a * profiling group's resource-based policy. One action group is supported, * agentPermissions, which grants ConfigureAgent and * PostAgentProfile permissions.

*/ inline void SetActionGroup(ActionGroup&& value) { m_actionGroupHasBeenSet = true; m_actionGroup = std::move(value); } /** *

Specifies an action group that contains the permissions to remove from a * profiling group's resource-based policy. One action group is supported, * agentPermissions, which grants ConfigureAgent and * PostAgentProfile permissions.

*/ inline RemovePermissionRequest& WithActionGroup(const ActionGroup& value) { SetActionGroup(value); return *this;} /** *

Specifies an action group that contains the permissions to remove from a * profiling group's resource-based policy. One action group is supported, * agentPermissions, which grants ConfigureAgent and * PostAgentProfile permissions.

*/ inline RemovePermissionRequest& WithActionGroup(ActionGroup&& value) { SetActionGroup(std::move(value)); return *this;} /** *

The name of the profiling group.

*/ inline const Aws::String& GetProfilingGroupName() const{ return m_profilingGroupName; } /** *

The name of the profiling group.

*/ inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; } /** *

The name of the profiling group.

*/ inline void SetProfilingGroupName(const Aws::String& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = value; } /** *

The name of the profiling group.

*/ inline void SetProfilingGroupName(Aws::String&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::move(value); } /** *

The name of the profiling group.

*/ inline void SetProfilingGroupName(const char* value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName.assign(value); } /** *

The name of the profiling group.

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

The name of the profiling group.

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

The name of the profiling group.

*/ inline RemovePermissionRequest& WithProfilingGroupName(const char* value) { SetProfilingGroupName(value); return *this;} /** *

A universally unique identifier (UUID) for the revision of the * resource-based policy from which you want to remove permissions.

*/ inline const Aws::String& GetRevisionId() const{ return m_revisionId; } /** *

A universally unique identifier (UUID) for the revision of the * resource-based policy from which you want to remove permissions.

*/ inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; } /** *

A universally unique identifier (UUID) for the revision of the * resource-based policy from which you want to remove permissions.

*/ inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; } /** *

A universally unique identifier (UUID) for the revision of the * resource-based policy from which you want to remove permissions.

*/ inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); } /** *

A universally unique identifier (UUID) for the revision of the * resource-based policy from which you want to remove permissions.

*/ inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); } /** *

A universally unique identifier (UUID) for the revision of the * resource-based policy from which you want to remove permissions.

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

A universally unique identifier (UUID) for the revision of the * resource-based policy from which you want to remove permissions.

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

A universally unique identifier (UUID) for the revision of the * resource-based policy from which you want to remove permissions.

*/ inline RemovePermissionRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;} private: ActionGroup m_actionGroup; bool m_actionGroupHasBeenSet = false; Aws::String m_profilingGroupName; bool m_profilingGroupNameHasBeenSet = false; Aws::String m_revisionId; bool m_revisionIdHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruProfiler } // namespace Aws