AWS SDK for C++  1.9.108
AWS SDK for C++
PostAgentProfileRequest.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <aws/core/utils/Array.h>
11 #include <utility>
12 #include <aws/core/utils/UUID.h>
13 
14 namespace Aws
15 {
16 namespace Http
17 {
18  class URI;
19 } //namespace Http
20 namespace CodeGuruProfiler
21 {
22 namespace Model
23 {
24 
32  {
33  public:
35 
36  // Service request name is the Operation name which will send this request out,
37  // each operation should has unique request name, so that we can get operation's name from this request.
38  // Note: this is not true for response, multiple operations may have the same response name,
39  // so we can not get operation's name from response.
40  inline virtual const char* GetServiceRequestName() const override { return "PostAgentProfile"; }
41 
42  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43 
44 
50  inline const Aws::String& GetProfileToken() const{ return m_profileToken; }
51 
57  inline bool ProfileTokenHasBeenSet() const { return m_profileTokenHasBeenSet; }
58 
64  inline void SetProfileToken(const Aws::String& value) { m_profileTokenHasBeenSet = true; m_profileToken = value; }
65 
71  inline void SetProfileToken(Aws::String&& value) { m_profileTokenHasBeenSet = true; m_profileToken = std::move(value); }
72 
78  inline void SetProfileToken(const char* value) { m_profileTokenHasBeenSet = true; m_profileToken.assign(value); }
79 
85  inline PostAgentProfileRequest& WithProfileToken(const Aws::String& value) { SetProfileToken(value); return *this;}
86 
92  inline PostAgentProfileRequest& WithProfileToken(Aws::String&& value) { SetProfileToken(std::move(value)); return *this;}
93 
99  inline PostAgentProfileRequest& WithProfileToken(const char* value) { SetProfileToken(value); return *this;}
100 
101 
106  inline const Aws::String& GetProfilingGroupName() const{ return m_profilingGroupName; }
107 
112  inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
113 
118  inline void SetProfilingGroupName(const Aws::String& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = value; }
119 
124  inline void SetProfilingGroupName(Aws::String&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::move(value); }
125 
130  inline void SetProfilingGroupName(const char* value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName.assign(value); }
131 
136  inline PostAgentProfileRequest& WithProfilingGroupName(const Aws::String& value) { SetProfilingGroupName(value); return *this;}
137 
142  inline PostAgentProfileRequest& WithProfilingGroupName(Aws::String&& value) { SetProfilingGroupName(std::move(value)); return *this;}
143 
148  inline PostAgentProfileRequest& WithProfilingGroupName(const char* value) { SetProfilingGroupName(value); return *this;}
149 
150  private:
151 
152 
153  Aws::String m_profileToken;
154  bool m_profileTokenHasBeenSet;
155 
156  Aws::String m_profilingGroupName;
157  bool m_profilingGroupNameHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace CodeGuruProfiler
162 } // namespace Aws
Aws::CodeGuruProfiler::Model::PostAgentProfileRequest::GetProfilingGroupName
const Aws::String & GetProfilingGroupName() const
Definition: PostAgentProfileRequest.h:106
Aws::Http::URI
Definition: URI.h:32
Aws::CodeGuruProfiler::Model::PostAgentProfileRequest::WithProfilingGroupName
PostAgentProfileRequest & WithProfilingGroupName(const char *value)
Definition: PostAgentProfileRequest.h:148
AWS_CODEGURUPROFILER_API
#define AWS_CODEGURUPROFILER_API
Definition: CodeGuruProfiler_EXPORTS.h:28
Aws::CodeGuruProfiler::Model::PostAgentProfileRequest::ProfilingGroupNameHasBeenSet
bool ProfilingGroupNameHasBeenSet() const
Definition: PostAgentProfileRequest.h:112
Aws::CodeGuruProfiler::Model::PostAgentProfileRequest::SetProfileToken
void SetProfileToken(Aws::String &&value)
Definition: PostAgentProfileRequest.h:71
Aws::CodeGuruProfiler::Model::PostAgentProfileRequest::SetProfilingGroupName
void SetProfilingGroupName(const Aws::String &value)
Definition: PostAgentProfileRequest.h:118
Aws::CodeGuruProfiler::Model::PostAgentProfileRequest::SetProfilingGroupName
void SetProfilingGroupName(const char *value)
Definition: PostAgentProfileRequest.h:130
Aws::CodeGuruProfiler::Model::PostAgentProfileRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::CodeGuruProfiler::Model::PostAgentProfileRequest::WithProfileToken
PostAgentProfileRequest & WithProfileToken(const char *value)
Definition: PostAgentProfileRequest.h:99
Aws::CodeGuruProfiler::Model::PostAgentProfileRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PostAgentProfileRequest.h:40
Aws::CodeGuruProfiler::Model::PostAgentProfileRequest::WithProfilingGroupName
PostAgentProfileRequest & WithProfilingGroupName(Aws::String &&value)
Definition: PostAgentProfileRequest.h:142
CodeGuruProfiler_EXPORTS.h
CodeGuruProfilerRequest.h
Aws::CodeGuruProfiler::Model::PostAgentProfileRequest::ProfileTokenHasBeenSet
bool ProfileTokenHasBeenSet() const
Definition: PostAgentProfileRequest.h:57
Aws::CodeGuruProfiler::Model::PostAgentProfileRequest::PostAgentProfileRequest
PostAgentProfileRequest()
AWSString.h
Aws::CodeGuruProfiler::Model::PostAgentProfileRequest::WithProfilingGroupName
PostAgentProfileRequest & WithProfilingGroupName(const Aws::String &value)
Definition: PostAgentProfileRequest.h:136
Aws::CodeGuruProfiler::Model::PostAgentProfileRequest::SetProfileToken
void SetProfileToken(const Aws::String &value)
Definition: PostAgentProfileRequest.h:64
Aws::AmazonStreamingWebServiceRequest
Definition: AmazonStreamingWebServiceRequest.h:26
Aws::CodeGuruProfiler::Model::PostAgentProfileRequest::WithProfileToken
PostAgentProfileRequest & WithProfileToken(Aws::String &&value)
Definition: PostAgentProfileRequest.h:92
Aws::CodeGuruProfiler::Model::PostAgentProfileRequest::WithProfileToken
PostAgentProfileRequest & WithProfileToken(const Aws::String &value)
Definition: PostAgentProfileRequest.h:85
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::CodeGuruProfiler::Model::PostAgentProfileRequest::GetProfileToken
const Aws::String & GetProfileToken() const
Definition: PostAgentProfileRequest.h:50
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeGuruProfiler::Model::PostAgentProfileRequest::SetProfileToken
void SetProfileToken(const char *value)
Definition: PostAgentProfileRequest.h:78
Aws::CodeGuruProfiler::Model::PostAgentProfileRequest
Definition: PostAgentProfileRequest.h:32
UUID.h
Aws::CodeGuruProfiler::Model::PostAgentProfileRequest::SetProfilingGroupName
void SetProfilingGroupName(Aws::String &&value)
Definition: PostAgentProfileRequest.h:124