/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace CodeGuruProfiler { namespace Model { /** *

The structure representing the createProfiliingGroupRequest.

See * Also:

AWS * API Reference

*/ class AWS_CODEGURUPROFILER_API CreateProfilingGroupRequest : public CodeGuruProfilerRequest { public: CreateProfilingGroupRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateProfilingGroup"; } Aws::String SerializePayload() const override; void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

Specifies whether profiling is enabled or disabled for the created profiling * group.

*/ inline const AgentOrchestrationConfig& GetAgentOrchestrationConfig() const{ return m_agentOrchestrationConfig; } /** *

Specifies whether profiling is enabled or disabled for the created profiling * group.

*/ inline bool AgentOrchestrationConfigHasBeenSet() const { return m_agentOrchestrationConfigHasBeenSet; } /** *

Specifies whether profiling is enabled or disabled for the created profiling * group.

*/ inline void SetAgentOrchestrationConfig(const AgentOrchestrationConfig& value) { m_agentOrchestrationConfigHasBeenSet = true; m_agentOrchestrationConfig = value; } /** *

Specifies whether profiling is enabled or disabled for the created profiling * group.

*/ inline void SetAgentOrchestrationConfig(AgentOrchestrationConfig&& value) { m_agentOrchestrationConfigHasBeenSet = true; m_agentOrchestrationConfig = std::move(value); } /** *

Specifies whether profiling is enabled or disabled for the created profiling * group.

*/ inline CreateProfilingGroupRequest& WithAgentOrchestrationConfig(const AgentOrchestrationConfig& value) { SetAgentOrchestrationConfig(value); return *this;} /** *

Specifies whether profiling is enabled or disabled for the created profiling * group.

*/ inline CreateProfilingGroupRequest& WithAgentOrchestrationConfig(AgentOrchestrationConfig&& value) { SetAgentOrchestrationConfig(std::move(value)); return *this;} /** *

Amazon CodeGuru Profiler uses this universally unique identifier (UUID) to * prevent the accidental creation of duplicate profiling groups if there are * failures and retries.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Amazon CodeGuru Profiler uses this universally unique identifier (UUID) to * prevent the accidental creation of duplicate profiling groups if there are * failures and retries.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Amazon CodeGuru Profiler uses this universally unique identifier (UUID) to * prevent the accidental creation of duplicate profiling groups if there are * failures and retries.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Amazon CodeGuru Profiler uses this universally unique identifier (UUID) to * prevent the accidental creation of duplicate profiling groups if there are * failures and retries.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Amazon CodeGuru Profiler uses this universally unique identifier (UUID) to * prevent the accidental creation of duplicate profiling groups if there are * failures and retries.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Amazon CodeGuru Profiler uses this universally unique identifier (UUID) to * prevent the accidental creation of duplicate profiling groups if there are * failures and retries.

*/ inline CreateProfilingGroupRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Amazon CodeGuru Profiler uses this universally unique identifier (UUID) to * prevent the accidental creation of duplicate profiling groups if there are * failures and retries.

*/ inline CreateProfilingGroupRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Amazon CodeGuru Profiler uses this universally unique identifier (UUID) to * prevent the accidental creation of duplicate profiling groups if there are * failures and retries.

*/ inline CreateProfilingGroupRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The compute platform of the profiling group. Use AWSLambda if * your application runs on AWS Lambda. Use Default if your * application runs on a compute platform that is not AWS Lambda, such an Amazon * EC2 instance, an on-premises server, or a different platform. If not specified, * Default is used.

*/ inline const ComputePlatform& GetComputePlatform() const{ return m_computePlatform; } /** *

The compute platform of the profiling group. Use AWSLambda if * your application runs on AWS Lambda. Use Default if your * application runs on a compute platform that is not AWS Lambda, such an Amazon * EC2 instance, an on-premises server, or a different platform. If not specified, * Default is used.

*/ inline bool ComputePlatformHasBeenSet() const { return m_computePlatformHasBeenSet; } /** *

The compute platform of the profiling group. Use AWSLambda if * your application runs on AWS Lambda. Use Default if your * application runs on a compute platform that is not AWS Lambda, such an Amazon * EC2 instance, an on-premises server, or a different platform. If not specified, * Default is used.

*/ inline void SetComputePlatform(const ComputePlatform& value) { m_computePlatformHasBeenSet = true; m_computePlatform = value; } /** *

The compute platform of the profiling group. Use AWSLambda if * your application runs on AWS Lambda. Use Default if your * application runs on a compute platform that is not AWS Lambda, such an Amazon * EC2 instance, an on-premises server, or a different platform. If not specified, * Default is used.

*/ inline void SetComputePlatform(ComputePlatform&& value) { m_computePlatformHasBeenSet = true; m_computePlatform = std::move(value); } /** *

The compute platform of the profiling group. Use AWSLambda if * your application runs on AWS Lambda. Use Default if your * application runs on a compute platform that is not AWS Lambda, such an Amazon * EC2 instance, an on-premises server, or a different platform. If not specified, * Default is used.

*/ inline CreateProfilingGroupRequest& WithComputePlatform(const ComputePlatform& value) { SetComputePlatform(value); return *this;} /** *

The compute platform of the profiling group. Use AWSLambda if * your application runs on AWS Lambda. Use Default if your * application runs on a compute platform that is not AWS Lambda, such an Amazon * EC2 instance, an on-premises server, or a different platform. If not specified, * Default is used.

*/ inline CreateProfilingGroupRequest& WithComputePlatform(ComputePlatform&& value) { SetComputePlatform(std::move(value)); return *this;} /** *

The name of the profiling group to create.

*/ inline const Aws::String& GetProfilingGroupName() const{ return m_profilingGroupName; } /** *

The name of the profiling group to create.

*/ inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; } /** *

The name of the profiling group to create.

*/ inline void SetProfilingGroupName(const Aws::String& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = value; } /** *

The name of the profiling group to create.

*/ inline void SetProfilingGroupName(Aws::String&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::move(value); } /** *

The name of the profiling group to create.

*/ inline void SetProfilingGroupName(const char* value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName.assign(value); } /** *

The name of the profiling group to create.

*/ inline CreateProfilingGroupRequest& WithProfilingGroupName(const Aws::String& value) { SetProfilingGroupName(value); return *this;} /** *

The name of the profiling group to create.

*/ inline CreateProfilingGroupRequest& WithProfilingGroupName(Aws::String&& value) { SetProfilingGroupName(std::move(value)); return *this;} /** *

The name of the profiling group to create.

*/ inline CreateProfilingGroupRequest& WithProfilingGroupName(const char* value) { SetProfilingGroupName(value); return *this;} /** *

A list of tags to add to the created profiling group.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

A list of tags to add to the created profiling group.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of tags to add to the created profiling group.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of tags to add to the created profiling group.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of tags to add to the created profiling group.

*/ inline CreateProfilingGroupRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

A list of tags to add to the created profiling group.

*/ inline CreateProfilingGroupRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

A list of tags to add to the created profiling group.

*/ inline CreateProfilingGroupRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A list of tags to add to the created profiling group.

*/ inline CreateProfilingGroupRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A list of tags to add to the created profiling group.

*/ inline CreateProfilingGroupRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A list of tags to add to the created profiling group.

*/ inline CreateProfilingGroupRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

A list of tags to add to the created profiling group.

*/ inline CreateProfilingGroupRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A list of tags to add to the created profiling group.

*/ inline CreateProfilingGroupRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A list of tags to add to the created profiling group.

*/ inline CreateProfilingGroupRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: AgentOrchestrationConfig m_agentOrchestrationConfig; bool m_agentOrchestrationConfigHasBeenSet; Aws::String m_clientToken; bool m_clientTokenHasBeenSet; ComputePlatform m_computePlatform; bool m_computePlatformHasBeenSet; Aws::String m_profilingGroupName; bool m_profilingGroupNameHasBeenSet; Aws::Map m_tags; bool m_tagsHasBeenSet; }; } // namespace Model } // namespace CodeGuruProfiler } // namespace Aws