AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
PostAgentProfileRequest.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfilerRequest.h>
8#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace CodeGuruProfiler {
20namespace Model {
21
29 public:
30 AWS_CODEGURUPROFILER_API PostAgentProfileRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "PostAgentProfile"; }
37
38 AWS_CODEGURUPROFILER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
46 inline const Aws::String& GetProfileToken() const { return m_profileToken; }
47 inline bool ProfileTokenHasBeenSet() const { return m_profileTokenHasBeenSet; }
48 template <typename ProfileTokenT = Aws::String>
49 void SetProfileToken(ProfileTokenT&& value) {
50 m_profileTokenHasBeenSet = true;
51 m_profileToken = std::forward<ProfileTokenT>(value);
52 }
53 template <typename ProfileTokenT = Aws::String>
54 PostAgentProfileRequest& WithProfileToken(ProfileTokenT&& value) {
55 SetProfileToken(std::forward<ProfileTokenT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::String& GetProfilingGroupName() const { return m_profilingGroupName; }
66 inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
67 template <typename ProfilingGroupNameT = Aws::String>
68 void SetProfilingGroupName(ProfilingGroupNameT&& value) {
69 m_profilingGroupNameHasBeenSet = true;
70 m_profilingGroupName = std::forward<ProfilingGroupNameT>(value);
71 }
72 template <typename ProfilingGroupNameT = Aws::String>
73 PostAgentProfileRequest& WithProfilingGroupName(ProfilingGroupNameT&& value) {
74 SetProfilingGroupName(std::forward<ProfilingGroupNameT>(value));
75 return *this;
76 }
78 private:
80
81 Aws::String m_profilingGroupName;
82 bool m_profileTokenHasBeenSet = true;
83 bool m_profilingGroupNameHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace CodeGuruProfiler
88} // namespace Aws
AWS_CODEGURUPROFILER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_CODEGURUPROFILER_API PostAgentProfileRequest()=default
PostAgentProfileRequest & WithProfilingGroupName(ProfilingGroupNameT &&value)
PostAgentProfileRequest & WithProfileToken(ProfileTokenT &&value)
bool ProfileTokenHasBeenSet() const
void SetProfilingGroupName(ProfilingGroupNameT &&value)
bool ProfilingGroupNameHasBeenSet() const
const Aws::String & GetProfilingGroupName() const
void SetProfileToken(ProfileTokenT &&value)
const Aws::String & GetProfileToken() const
virtual const char * GetServiceRequestName() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String