This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-codeguruprofiler/include/aws/codeguruprofiler/model/PutPermissionRequest.h

268 lines
12 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
#include <aws/codeguruprofiler/CodeGuruProfilerRequest.h>
#include <aws/codeguruprofiler/model/ActionGroup.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeGuruProfiler
{
namespace Model
{
/**
* <p>The structure representing the
* <code>putPermissionRequest</code>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/PutPermissionRequest">AWS
* API Reference</a></p>
*/
class AWS_CODEGURUPROFILER_API PutPermissionRequest : public CodeGuruProfilerRequest
{
public:
PutPermissionRequest();
// 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 "PutPermission"; }
Aws::String SerializePayload() const override;
/**
* <p> Specifies an action group that contains permissions to add to a profiling
* group resource. One action group is supported, <code>agentPermissions</code>,
* which grants permission to perform actions required by the profiling agent,
* <code>ConfigureAgent</code> and <code>PostAgentProfile</code> permissions. </p>
*/
inline const ActionGroup& GetActionGroup() const{ return m_actionGroup; }
/**
* <p> Specifies an action group that contains permissions to add to a profiling
* group resource. One action group is supported, <code>agentPermissions</code>,
* which grants permission to perform actions required by the profiling agent,
* <code>ConfigureAgent</code> and <code>PostAgentProfile</code> permissions. </p>
*/
inline bool ActionGroupHasBeenSet() const { return m_actionGroupHasBeenSet; }
/**
* <p> Specifies an action group that contains permissions to add to a profiling
* group resource. One action group is supported, <code>agentPermissions</code>,
* which grants permission to perform actions required by the profiling agent,
* <code>ConfigureAgent</code> and <code>PostAgentProfile</code> permissions. </p>
*/
inline void SetActionGroup(const ActionGroup& value) { m_actionGroupHasBeenSet = true; m_actionGroup = value; }
/**
* <p> Specifies an action group that contains permissions to add to a profiling
* group resource. One action group is supported, <code>agentPermissions</code>,
* which grants permission to perform actions required by the profiling agent,
* <code>ConfigureAgent</code> and <code>PostAgentProfile</code> permissions. </p>
*/
inline void SetActionGroup(ActionGroup&& value) { m_actionGroupHasBeenSet = true; m_actionGroup = std::move(value); }
/**
* <p> Specifies an action group that contains permissions to add to a profiling
* group resource. One action group is supported, <code>agentPermissions</code>,
* which grants permission to perform actions required by the profiling agent,
* <code>ConfigureAgent</code> and <code>PostAgentProfile</code> permissions. </p>
*/
inline PutPermissionRequest& WithActionGroup(const ActionGroup& value) { SetActionGroup(value); return *this;}
/**
* <p> Specifies an action group that contains permissions to add to a profiling
* group resource. One action group is supported, <code>agentPermissions</code>,
* which grants permission to perform actions required by the profiling agent,
* <code>ConfigureAgent</code> and <code>PostAgentProfile</code> permissions. </p>
*/
inline PutPermissionRequest& WithActionGroup(ActionGroup&& value) { SetActionGroup(std::move(value)); return *this;}
/**
* <p> A list ARNs for the roles and users you want to grant access to the
* profiling group. Wildcards are not are supported in the ARNs. </p>
*/
inline const Aws::Vector<Aws::String>& GetPrincipals() const{ return m_principals; }
/**
* <p> A list ARNs for the roles and users you want to grant access to the
* profiling group. Wildcards are not are supported in the ARNs. </p>
*/
inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
/**
* <p> A list ARNs for the roles and users you want to grant access to the
* profiling group. Wildcards are not are supported in the ARNs. </p>
*/
inline void SetPrincipals(const Aws::Vector<Aws::String>& value) { m_principalsHasBeenSet = true; m_principals = value; }
/**
* <p> A list ARNs for the roles and users you want to grant access to the
* profiling group. Wildcards are not are supported in the ARNs. </p>
*/
inline void SetPrincipals(Aws::Vector<Aws::String>&& value) { m_principalsHasBeenSet = true; m_principals = std::move(value); }
/**
* <p> A list ARNs for the roles and users you want to grant access to the
* profiling group. Wildcards are not are supported in the ARNs. </p>
*/
inline PutPermissionRequest& WithPrincipals(const Aws::Vector<Aws::String>& value) { SetPrincipals(value); return *this;}
/**
* <p> A list ARNs for the roles and users you want to grant access to the
* profiling group. Wildcards are not are supported in the ARNs. </p>
*/
inline PutPermissionRequest& WithPrincipals(Aws::Vector<Aws::String>&& value) { SetPrincipals(std::move(value)); return *this;}
/**
* <p> A list ARNs for the roles and users you want to grant access to the
* profiling group. Wildcards are not are supported in the ARNs. </p>
*/
inline PutPermissionRequest& AddPrincipals(const Aws::String& value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
/**
* <p> A list ARNs for the roles and users you want to grant access to the
* profiling group. Wildcards are not are supported in the ARNs. </p>
*/
inline PutPermissionRequest& AddPrincipals(Aws::String&& value) { m_principalsHasBeenSet = true; m_principals.push_back(std::move(value)); return *this; }
/**
* <p> A list ARNs for the roles and users you want to grant access to the
* profiling group. Wildcards are not are supported in the ARNs. </p>
*/
inline PutPermissionRequest& AddPrincipals(const char* value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
/**
* <p>The name of the profiling group to grant access to.</p>
*/
inline const Aws::String& GetProfilingGroupName() const{ return m_profilingGroupName; }
/**
* <p>The name of the profiling group to grant access to.</p>
*/
inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
/**
* <p>The name of the profiling group to grant access to.</p>
*/
inline void SetProfilingGroupName(const Aws::String& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = value; }
/**
* <p>The name of the profiling group to grant access to.</p>
*/
inline void SetProfilingGroupName(Aws::String&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::move(value); }
/**
* <p>The name of the profiling group to grant access to.</p>
*/
inline void SetProfilingGroupName(const char* value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName.assign(value); }
/**
* <p>The name of the profiling group to grant access to.</p>
*/
inline PutPermissionRequest& WithProfilingGroupName(const Aws::String& value) { SetProfilingGroupName(value); return *this;}
/**
* <p>The name of the profiling group to grant access to.</p>
*/
inline PutPermissionRequest& WithProfilingGroupName(Aws::String&& value) { SetProfilingGroupName(std::move(value)); return *this;}
/**
* <p>The name of the profiling group to grant access to.</p>
*/
inline PutPermissionRequest& WithProfilingGroupName(const char* value) { SetProfilingGroupName(value); return *this;}
/**
* <p> A universally unique identifier (UUID) for the revision of the policy you
* are adding to the profiling group. Do not specify this when you add permissions
* to a profiling group for the first time. If a policy already exists on the
* profiling group, you must specify the <code>revisionId</code>. </p>
*/
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
/**
* <p> A universally unique identifier (UUID) for the revision of the policy you
* are adding to the profiling group. Do not specify this when you add permissions
* to a profiling group for the first time. If a policy already exists on the
* profiling group, you must specify the <code>revisionId</code>. </p>
*/
inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
/**
* <p> A universally unique identifier (UUID) for the revision of the policy you
* are adding to the profiling group. Do not specify this when you add permissions
* to a profiling group for the first time. If a policy already exists on the
* profiling group, you must specify the <code>revisionId</code>. </p>
*/
inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
/**
* <p> A universally unique identifier (UUID) for the revision of the policy you
* are adding to the profiling group. Do not specify this when you add permissions
* to a profiling group for the first time. If a policy already exists on the
* profiling group, you must specify the <code>revisionId</code>. </p>
*/
inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
/**
* <p> A universally unique identifier (UUID) for the revision of the policy you
* are adding to the profiling group. Do not specify this when you add permissions
* to a profiling group for the first time. If a policy already exists on the
* profiling group, you must specify the <code>revisionId</code>. </p>
*/
inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
/**
* <p> A universally unique identifier (UUID) for the revision of the policy you
* are adding to the profiling group. Do not specify this when you add permissions
* to a profiling group for the first time. If a policy already exists on the
* profiling group, you must specify the <code>revisionId</code>. </p>
*/
inline PutPermissionRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
/**
* <p> A universally unique identifier (UUID) for the revision of the policy you
* are adding to the profiling group. Do not specify this when you add permissions
* to a profiling group for the first time. If a policy already exists on the
* profiling group, you must specify the <code>revisionId</code>. </p>
*/
inline PutPermissionRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
/**
* <p> A universally unique identifier (UUID) for the revision of the policy you
* are adding to the profiling group. Do not specify this when you add permissions
* to a profiling group for the first time. If a policy already exists on the
* profiling group, you must specify the <code>revisionId</code>. </p>
*/
inline PutPermissionRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
private:
ActionGroup m_actionGroup;
bool m_actionGroupHasBeenSet;
Aws::Vector<Aws::String> m_principals;
bool m_principalsHasBeenSet;
Aws::String m_profilingGroupName;
bool m_profilingGroupNameHasBeenSet;
Aws::String m_revisionId;
bool m_revisionIdHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruProfiler
} // namespace Aws