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

88 lines
2.8 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeGuruProfiler
{
namespace Model
{
/**
* <p> The structure representing the <code>getPolicyRequest</code>. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/GetPolicyRequest">AWS
* API Reference</a></p>
*/
class AWS_CODEGURUPROFILER_API GetPolicyRequest : public CodeGuruProfilerRequest
{
public:
GetPolicyRequest();
// 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 "GetPolicy"; }
Aws::String SerializePayload() const override;
/**
* <p>The name of the profiling group.</p>
*/
inline const Aws::String& GetProfilingGroupName() const{ return m_profilingGroupName; }
/**
* <p>The name of the profiling group.</p>
*/
inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
/**
* <p>The name of the profiling group.</p>
*/
inline void SetProfilingGroupName(const Aws::String& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = value; }
/**
* <p>The name of the profiling group.</p>
*/
inline void SetProfilingGroupName(Aws::String&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::move(value); }
/**
* <p>The name of the profiling group.</p>
*/
inline void SetProfilingGroupName(const char* value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName.assign(value); }
/**
* <p>The name of the profiling group.</p>
*/
inline GetPolicyRequest& WithProfilingGroupName(const Aws::String& value) { SetProfilingGroupName(value); return *this;}
/**
* <p>The name of the profiling group.</p>
*/
inline GetPolicyRequest& WithProfilingGroupName(Aws::String&& value) { SetProfilingGroupName(std::move(value)); return *this;}
/**
* <p>The name of the profiling group.</p>
*/
inline GetPolicyRequest& WithProfilingGroupName(const char* value) { SetProfilingGroupName(value); return *this;}
private:
Aws::String m_profilingGroupName;
bool m_profilingGroupNameHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruProfiler
} // namespace Aws