/*
* 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 codedeploy-2014-10-06.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.CodeDeploy.Model
{
///
/// Information about a deployment configuration.
///
public partial class DeploymentConfigInfo
{
private ComputePlatform _computePlatform;
private DateTime? _createTime;
private string _deploymentConfigId;
private string _deploymentConfigName;
private MinimumHealthyHosts _minimumHealthyHosts;
private TrafficRoutingConfig _trafficRoutingConfig;
///
/// Gets and sets the property ComputePlatform.
///
/// The destination platform type for the deployment (Lambda
, Server
,
/// or ECS
).
///
///
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 CreateTime.
///
/// The time at which the deployment configuration was created.
///
///
public DateTime CreateTime
{
get { return this._createTime.GetValueOrDefault(); }
set { this._createTime = value; }
}
// Check to see if CreateTime property is set
internal bool IsSetCreateTime()
{
return this._createTime.HasValue;
}
///
/// Gets and sets the property DeploymentConfigId.
///
/// The deployment configuration ID.
///
///
public string DeploymentConfigId
{
get { return this._deploymentConfigId; }
set { this._deploymentConfigId = value; }
}
// Check to see if DeploymentConfigId property is set
internal bool IsSetDeploymentConfigId()
{
return this._deploymentConfigId != null;
}
///
/// Gets and sets the property DeploymentConfigName.
///
/// The deployment configuration name.
///
///
[AWSProperty(Min=1, Max=100)]
public string DeploymentConfigName
{
get { return this._deploymentConfigName; }
set { this._deploymentConfigName = value; }
}
// Check to see if DeploymentConfigName property is set
internal bool IsSetDeploymentConfigName()
{
return this._deploymentConfigName != null;
}
///
/// Gets and sets the property MinimumHealthyHosts.
///
/// Information about the number or percentage of minimum healthy instance.
///
///
public MinimumHealthyHosts MinimumHealthyHosts
{
get { return this._minimumHealthyHosts; }
set { this._minimumHealthyHosts = value; }
}
// Check to see if MinimumHealthyHosts property is set
internal bool IsSetMinimumHealthyHosts()
{
return this._minimumHealthyHosts != null;
}
///
/// Gets and sets the property TrafficRoutingConfig.
///
/// The configuration that specifies how the deployment traffic is routed. Used for deployments
/// with a Lambda or Amazon ECS compute platform only.
///
///
public TrafficRoutingConfig TrafficRoutingConfig
{
get { return this._trafficRoutingConfig; }
set { this._trafficRoutingConfig = value; }
}
// Check to see if TrafficRoutingConfig property is set
internal bool IsSetTrafficRoutingConfig()
{
return this._trafficRoutingConfig != null;
}
}
}