AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateProfilingGroupRequest.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/codeguruprofiler/CodeGuruProfilerRequest.h>
9#include <aws/codeguruprofiler/model/AgentOrchestrationConfig.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/codeguruprofiler/model/ComputePlatform.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace CodeGuruProfiler
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODEGURUPROFILER_API CreateProfilingGroupRequest() = default;
37
38 // Service request name is the Operation name which will send this request out,
39 // each operation should has unique request name, so that we can get operation's name from this request.
40 // Note: this is not true for response, multiple operations may have the same response name,
41 // so we can not get operation's name from response.
42 inline virtual const char* GetServiceRequestName() const override { return "CreateProfilingGroup"; }
43
44 AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override;
45
46 AWS_CODEGURUPROFILER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
47
48
50
54 inline const AgentOrchestrationConfig& GetAgentOrchestrationConfig() const { return m_agentOrchestrationConfig; }
55 inline bool AgentOrchestrationConfigHasBeenSet() const { return m_agentOrchestrationConfigHasBeenSet; }
56 template<typename AgentOrchestrationConfigT = AgentOrchestrationConfig>
57 void SetAgentOrchestrationConfig(AgentOrchestrationConfigT&& value) { m_agentOrchestrationConfigHasBeenSet = true; m_agentOrchestrationConfig = std::forward<AgentOrchestrationConfigT>(value); }
58 template<typename AgentOrchestrationConfigT = AgentOrchestrationConfig>
59 CreateProfilingGroupRequest& WithAgentOrchestrationConfig(AgentOrchestrationConfigT&& value) { SetAgentOrchestrationConfig(std::forward<AgentOrchestrationConfigT>(value)); return *this;}
61
63
68 inline const Aws::String& GetClientToken() const { return m_clientToken; }
69 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
70 template<typename ClientTokenT = Aws::String>
71 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
72 template<typename ClientTokenT = Aws::String>
73 CreateProfilingGroupRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
75
77
84 inline ComputePlatform GetComputePlatform() const { return m_computePlatform; }
85 inline bool ComputePlatformHasBeenSet() const { return m_computePlatformHasBeenSet; }
86 inline void SetComputePlatform(ComputePlatform value) { m_computePlatformHasBeenSet = true; m_computePlatform = value; }
89
91
94 inline const Aws::String& GetProfilingGroupName() const { return m_profilingGroupName; }
95 inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
96 template<typename ProfilingGroupNameT = Aws::String>
97 void SetProfilingGroupName(ProfilingGroupNameT&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::forward<ProfilingGroupNameT>(value); }
98 template<typename ProfilingGroupNameT = Aws::String>
99 CreateProfilingGroupRequest& WithProfilingGroupName(ProfilingGroupNameT&& value) { SetProfilingGroupName(std::forward<ProfilingGroupNameT>(value)); return *this;}
101
103
106 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
107 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
108 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
109 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
110 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
111 CreateProfilingGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
112 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
113 CreateProfilingGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
114 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
115 }
117 private:
118
119 AgentOrchestrationConfig m_agentOrchestrationConfig;
120 bool m_agentOrchestrationConfigHasBeenSet = false;
121
123 bool m_clientTokenHasBeenSet = true;
124
125 ComputePlatform m_computePlatform{ComputePlatform::NOT_SET};
126 bool m_computePlatformHasBeenSet = false;
127
128 Aws::String m_profilingGroupName;
129 bool m_profilingGroupNameHasBeenSet = false;
130
132 bool m_tagsHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace CodeGuruProfiler
137} // 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