AWS SDK for C++  1.9.15
AWS SDK for C++
GetPolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CodeGuruProfiler
15 {
16 namespace Model
17 {
18 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "GetPolicy"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetProfilingGroupName() const{ return m_profilingGroupName; }
43 
47  inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
48 
52  inline void SetProfilingGroupName(const Aws::String& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = value; }
53 
57  inline void SetProfilingGroupName(Aws::String&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::move(value); }
58 
62  inline void SetProfilingGroupName(const char* value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName.assign(value); }
63 
67  inline GetPolicyRequest& WithProfilingGroupName(const Aws::String& value) { SetProfilingGroupName(value); return *this;}
68 
72  inline GetPolicyRequest& WithProfilingGroupName(Aws::String&& value) { SetProfilingGroupName(std::move(value)); return *this;}
73 
77  inline GetPolicyRequest& WithProfilingGroupName(const char* value) { SetProfilingGroupName(value); return *this;}
78 
79  private:
80 
81  Aws::String m_profilingGroupName;
82  bool m_profilingGroupNameHasBeenSet;
83  };
84 
85 } // namespace Model
86 } // namespace CodeGuruProfiler
87 } // namespace Aws
AWS_CODEGURUPROFILER_API
#define AWS_CODEGURUPROFILER_API
Definition: CodeGuruProfiler_EXPORTS.h:28
Aws::CodeGuruProfiler::Model::GetPolicyRequest::WithProfilingGroupName
GetPolicyRequest & WithProfilingGroupName(Aws::String &&value)
Definition: GetPolicyRequest.h:72
Aws::CodeGuruProfiler::Model::GetPolicyRequest::SetProfilingGroupName
void SetProfilingGroupName(Aws::String &&value)
Definition: GetPolicyRequest.h:57
Aws::CodeGuruProfiler::Model::GetPolicyRequest
Definition: GetPolicyRequest.h:26
CodeGuruProfiler_EXPORTS.h
CodeGuruProfilerRequest.h
Aws::CodeGuruProfiler::Model::GetPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeGuruProfiler::Model::GetPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetPolicyRequest.h:34
AWSString.h
Aws::CodeGuruProfiler::Model::GetPolicyRequest::ProfilingGroupNameHasBeenSet
bool ProfilingGroupNameHasBeenSet() const
Definition: GetPolicyRequest.h:47
Aws::CodeGuruProfiler::Model::GetPolicyRequest::GetPolicyRequest
GetPolicyRequest()
Aws::CodeGuruProfiler::Model::GetPolicyRequest::WithProfilingGroupName
GetPolicyRequest & WithProfilingGroupName(const char *value)
Definition: GetPolicyRequest.h:77
Aws::CodeGuruProfiler::Model::GetPolicyRequest::WithProfilingGroupName
GetPolicyRequest & WithProfilingGroupName(const Aws::String &value)
Definition: GetPolicyRequest.h:67
Aws
Definition: AccessManagementClient.h:15
Aws::CodeGuruProfiler::Model::GetPolicyRequest::SetProfilingGroupName
void SetProfilingGroupName(const Aws::String &value)
Definition: GetPolicyRequest.h:52
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeGuruProfiler::CodeGuruProfilerRequest
Definition: CodeGuruProfilerRequest.h:18
Aws::CodeGuruProfiler::Model::GetPolicyRequest::SetProfilingGroupName
void SetProfilingGroupName(const char *value)
Definition: GetPolicyRequest.h:62
Aws::CodeGuruProfiler::Model::GetPolicyRequest::GetProfilingGroupName
const Aws::String & GetProfilingGroupName() const
Definition: GetPolicyRequest.h:42