AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateProfilingGroupRequest.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfilerRequest.h>
8#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
9#include <aws/codeguruprofiler/model/AgentOrchestrationConfig.h>
10#include <aws/codeguruprofiler/model/ComputePlatform.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Http {
19class URI;
20} // namespace Http
21namespace CodeGuruProfiler {
22namespace Model {
23
31 public:
32 AWS_CODEGURUPROFILER_API CreateProfilingGroupRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateProfilingGroup"; }
39
40 AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override;
41
42 AWS_CODEGURUPROFILER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
45
49 inline const AgentOrchestrationConfig& GetAgentOrchestrationConfig() const { return m_agentOrchestrationConfig; }
50 inline bool AgentOrchestrationConfigHasBeenSet() const { return m_agentOrchestrationConfigHasBeenSet; }
51 template <typename AgentOrchestrationConfigT = AgentOrchestrationConfig>
52 void SetAgentOrchestrationConfig(AgentOrchestrationConfigT&& value) {
53 m_agentOrchestrationConfigHasBeenSet = true;
54 m_agentOrchestrationConfig = std::forward<AgentOrchestrationConfigT>(value);
55 }
56 template <typename AgentOrchestrationConfigT = AgentOrchestrationConfig>
57 CreateProfilingGroupRequest& WithAgentOrchestrationConfig(AgentOrchestrationConfigT&& value) {
58 SetAgentOrchestrationConfig(std::forward<AgentOrchestrationConfigT>(value));
59 return *this;
60 }
62
64
69 inline const Aws::String& GetClientToken() const { return m_clientToken; }
70 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
71 template <typename ClientTokenT = Aws::String>
72 void SetClientToken(ClientTokenT&& value) {
73 m_clientTokenHasBeenSet = true;
74 m_clientToken = std::forward<ClientTokenT>(value);
75 }
76 template <typename ClientTokenT = Aws::String>
78 SetClientToken(std::forward<ClientTokenT>(value));
79 return *this;
80 }
82
84
91 inline ComputePlatform GetComputePlatform() const { return m_computePlatform; }
92 inline bool ComputePlatformHasBeenSet() const { return m_computePlatformHasBeenSet; }
94 m_computePlatformHasBeenSet = true;
95 m_computePlatform = value;
96 }
98 SetComputePlatform(value);
99 return *this;
100 }
102
104
107 inline const Aws::String& GetProfilingGroupName() const { return m_profilingGroupName; }
108 inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
109 template <typename ProfilingGroupNameT = Aws::String>
110 void SetProfilingGroupName(ProfilingGroupNameT&& value) {
111 m_profilingGroupNameHasBeenSet = true;
112 m_profilingGroupName = std::forward<ProfilingGroupNameT>(value);
113 }
114 template <typename ProfilingGroupNameT = Aws::String>
116 SetProfilingGroupName(std::forward<ProfilingGroupNameT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
126 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
127 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
128 void SetTags(TagsT&& value) {
129 m_tagsHasBeenSet = true;
130 m_tags = std::forward<TagsT>(value);
131 }
132 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
134 SetTags(std::forward<TagsT>(value));
135 return *this;
136 }
137 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
138 CreateProfilingGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
139 m_tagsHasBeenSet = true;
140 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
141 return *this;
142 }
144 private:
145 AgentOrchestrationConfig m_agentOrchestrationConfig;
146
148
149 ComputePlatform m_computePlatform{ComputePlatform::NOT_SET};
150
151 Aws::String m_profilingGroupName;
152
154 bool m_agentOrchestrationConfigHasBeenSet = false;
155 bool m_clientTokenHasBeenSet = true;
156 bool m_computePlatformHasBeenSet = false;
157 bool m_profilingGroupNameHasBeenSet = false;
158 bool m_tagsHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace CodeGuruProfiler
163} // namespace Aws
CreateProfilingGroupRequest & WithProfilingGroupName(ProfilingGroupNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CODEGURUPROFILER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreateProfilingGroupRequest & WithClientToken(ClientTokenT &&value)
const AgentOrchestrationConfig & GetAgentOrchestrationConfig() const
CreateProfilingGroupRequest & WithComputePlatform(ComputePlatform value)
CreateProfilingGroupRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateProfilingGroupRequest & WithAgentOrchestrationConfig(AgentOrchestrationConfigT &&value)
AWS_CODEGURUPROFILER_API CreateProfilingGroupRequest()=default
AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String