/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeGuruProfiler { namespace Model { /** *

Contains information about a profiling group.

See Also:

AWS * API Reference

*/ class ProfilingGroupDescription { public: AWS_CODEGURUPROFILER_API ProfilingGroupDescription(); AWS_CODEGURUPROFILER_API ProfilingGroupDescription(Aws::Utils::Json::JsonView jsonValue); AWS_CODEGURUPROFILER_API ProfilingGroupDescription& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

An * AgentOrchestrationConfig object that indicates if the * profiling group is enabled for profiled or not.

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

An * AgentOrchestrationConfig object that indicates if the * profiling group is enabled for profiled or not.

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

An * AgentOrchestrationConfig object that indicates if the * profiling group is enabled for profiled or not.

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

An * AgentOrchestrationConfig object that indicates if the * profiling group is enabled for profiled or not.

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

An * AgentOrchestrationConfig object that indicates if the * profiling group is enabled for profiled or not.

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

An * AgentOrchestrationConfig object that indicates if the * profiling group is enabled for profiled or not.

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

The Amazon Resource Name (ARN) identifying the profiling group resource.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) identifying the profiling group resource.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) identifying the profiling group resource.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) identifying the profiling group resource.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) identifying the profiling group resource.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) identifying the profiling group resource.

*/ inline ProfilingGroupDescription& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) identifying the profiling group resource.

*/ inline ProfilingGroupDescription& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) identifying the profiling group resource.

*/ inline ProfilingGroupDescription& WithArn(const char* value) { SetArn(value); return *this;} /** *

The compute platform of the profiling group. If it is set to * AWSLambda, then the profiled application runs on AWS Lambda. If it * is set to Default, then the profiled application runs on a compute * platform that is not AWS Lambda, such an Amazon EC2 instance, an on-premises * server, or a different platform. The default is Default.

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

The compute platform of the profiling group. If it is set to * AWSLambda, then the profiled application runs on AWS Lambda. If it * is set to Default, then the profiled application runs on a compute * platform that is not AWS Lambda, such an Amazon EC2 instance, an on-premises * server, or a different platform. The default is Default.

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

The compute platform of the profiling group. If it is set to * AWSLambda, then the profiled application runs on AWS Lambda. If it * is set to Default, then the profiled application runs on a compute * platform that is not AWS Lambda, such an Amazon EC2 instance, an on-premises * server, or a different platform. The default is Default.

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

The compute platform of the profiling group. If it is set to * AWSLambda, then the profiled application runs on AWS Lambda. If it * is set to Default, then the profiled application runs on a compute * platform that is not AWS Lambda, such an Amazon EC2 instance, an on-premises * server, or a different platform. The default is Default.

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

The compute platform of the profiling group. If it is set to * AWSLambda, then the profiled application runs on AWS Lambda. If it * is set to Default, then the profiled application runs on a compute * platform that is not AWS Lambda, such an Amazon EC2 instance, an on-premises * server, or a different platform. The default is Default.

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

The compute platform of the profiling group. If it is set to * AWSLambda, then the profiled application runs on AWS Lambda. If it * is set to Default, then the profiled application runs on a compute * platform that is not AWS Lambda, such an Amazon EC2 instance, an on-premises * server, or a different platform. The default is Default.

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

The time when the profiling group was created. Specify using the ISO 8601 * format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June * 1, 2020 1:15:02 PM UTC.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The time when the profiling group was created. Specify using the ISO 8601 * format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June * 1, 2020 1:15:02 PM UTC.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The time when the profiling group was created. Specify using the ISO 8601 * format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June * 1, 2020 1:15:02 PM UTC.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The time when the profiling group was created. Specify using the ISO 8601 * format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June * 1, 2020 1:15:02 PM UTC.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The time when the profiling group was created. Specify using the ISO 8601 * format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June * 1, 2020 1:15:02 PM UTC.

*/ inline ProfilingGroupDescription& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The time when the profiling group was created. Specify using the ISO 8601 * format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June * 1, 2020 1:15:02 PM UTC.

*/ inline ProfilingGroupDescription& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The name of the profiling group.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the profiling group.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the profiling group.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the profiling group.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the profiling group.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the profiling group.

*/ inline ProfilingGroupDescription& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the profiling group.

*/ inline ProfilingGroupDescription& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the profiling group.

*/ inline ProfilingGroupDescription& WithName(const char* value) { SetName(value); return *this;} /** *

A * ProfilingStatus object that includes information about the * last time a profile agent pinged back, the last time a profile was received, and * the aggregation period and start time for the most recent aggregated profile. *

*/ inline const ProfilingStatus& GetProfilingStatus() const{ return m_profilingStatus; } /** *

A * ProfilingStatus object that includes information about the * last time a profile agent pinged back, the last time a profile was received, and * the aggregation period and start time for the most recent aggregated profile. *

*/ inline bool ProfilingStatusHasBeenSet() const { return m_profilingStatusHasBeenSet; } /** *

A * ProfilingStatus object that includes information about the * last time a profile agent pinged back, the last time a profile was received, and * the aggregation period and start time for the most recent aggregated profile. *

*/ inline void SetProfilingStatus(const ProfilingStatus& value) { m_profilingStatusHasBeenSet = true; m_profilingStatus = value; } /** *

A * ProfilingStatus object that includes information about the * last time a profile agent pinged back, the last time a profile was received, and * the aggregation period and start time for the most recent aggregated profile. *

*/ inline void SetProfilingStatus(ProfilingStatus&& value) { m_profilingStatusHasBeenSet = true; m_profilingStatus = std::move(value); } /** *

A * ProfilingStatus object that includes information about the * last time a profile agent pinged back, the last time a profile was received, and * the aggregation period and start time for the most recent aggregated profile. *

*/ inline ProfilingGroupDescription& WithProfilingStatus(const ProfilingStatus& value) { SetProfilingStatus(value); return *this;} /** *

A * ProfilingStatus object that includes information about the * last time a profile agent pinged back, the last time a profile was received, and * the aggregation period and start time for the most recent aggregated profile. *

*/ inline ProfilingGroupDescription& WithProfilingStatus(ProfilingStatus&& value) { SetProfilingStatus(std::move(value)); return *this;} /** *

A list of the tags that belong to this profiling group.

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

A list of the tags that belong to this profiling group.

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

A list of the tags that belong to this profiling group.

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

A list of the tags that belong to this profiling group.

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

A list of the tags that belong to this profiling group.

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

A list of the tags that belong to this profiling group.

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

A list of the tags that belong to this profiling group.

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

A list of the tags that belong to this profiling group.

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

A list of the tags that belong to this profiling group.

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

A list of the tags that belong to this profiling group.

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

A list of the tags that belong to this profiling group.

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

A list of the tags that belong to this profiling group.

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

A list of the tags that belong to this profiling group.

*/ inline ProfilingGroupDescription& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The date and time when the profiling group was last updated. Specify using * the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 * millisecond past June 1, 2020 1:15:02 PM UTC.

*/ inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } /** *

The date and time when the profiling group was last updated. Specify using * the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 * millisecond past June 1, 2020 1:15:02 PM UTC.

*/ inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } /** *

The date and time when the profiling group was last updated. Specify using * the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 * millisecond past June 1, 2020 1:15:02 PM UTC.

*/ inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; } /** *

The date and time when the profiling group was last updated. Specify using * the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 * millisecond past June 1, 2020 1:15:02 PM UTC.

*/ inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } /** *

The date and time when the profiling group was last updated. Specify using * the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 * millisecond past June 1, 2020 1:15:02 PM UTC.

*/ inline ProfilingGroupDescription& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} /** *

The date and time when the profiling group was last updated. Specify using * the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 * millisecond past June 1, 2020 1:15:02 PM UTC.

*/ inline ProfilingGroupDescription& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} private: AgentOrchestrationConfig m_agentOrchestrationConfig; bool m_agentOrchestrationConfigHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; ComputePlatform m_computePlatform; bool m_computePlatformHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; ProfilingStatus m_profilingStatus; bool m_profilingStatusHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::Utils::DateTime m_updatedAt; bool m_updatedAtHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruProfiler } // namespace Aws