/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the codeguruprofiler-2019-07-18.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CodeGuruProfiler.Model
{
///
/// Container for the parameters to the CreateProfilingGroup operation.
/// Creates a profiling group.
///
public partial class CreateProfilingGroupRequest : AmazonCodeGuruProfilerRequest
{
private AgentOrchestrationConfig _agentOrchestrationConfig;
private string _clientToken;
private ComputePlatform _computePlatform;
private string _profilingGroupName;
private Dictionary _tags = new Dictionary();
///
/// Gets and sets the property AgentOrchestrationConfig.
///
/// Specifies whether profiling is enabled or disabled for the created profiling group.
///
///
///
public AgentOrchestrationConfig AgentOrchestrationConfig
{
get { return this._agentOrchestrationConfig; }
set { this._agentOrchestrationConfig = value; }
}
// Check to see if AgentOrchestrationConfig property is set
internal bool IsSetAgentOrchestrationConfig()
{
return this._agentOrchestrationConfig != null;
}
///
/// Gets and sets the property 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.
///
///
///
[AWSProperty(Min=1, Max=64)]
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
///
/// Gets and sets the property 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.
///
///
public ComputePlatform ComputePlatform
{
get { return this._computePlatform; }
set { this._computePlatform = value; }
}
// Check to see if ComputePlatform property is set
internal bool IsSetComputePlatform()
{
return this._computePlatform != null;
}
///
/// Gets and sets the property ProfilingGroupName.
///
/// The name of the profiling group to create.
///
///
[AWSProperty(Required=true, Min=1, Max=255)]
public string ProfilingGroupName
{
get { return this._profilingGroupName; }
set { this._profilingGroupName = value; }
}
// Check to see if ProfilingGroupName property is set
internal bool IsSetProfilingGroupName()
{
return this._profilingGroupName != null;
}
///
/// Gets and sets the property Tags.
///
/// A list of tags to add to the created profiling group.
///
///
public Dictionary Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}