/*
* 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 appconfig-2019-10-09.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.AppConfig.Model
{
///
/// Information about the deployment.
///
public partial class DeploymentSummary
{
private DateTime? _completedAt;
private string _configurationName;
private string _configurationVersion;
private int? _deploymentDurationInMinutes;
private int? _deploymentNumber;
private int? _finalBakeTimeInMinutes;
private float? _growthFactor;
private GrowthType _growthType;
private float? _percentageComplete;
private DateTime? _startedAt;
private DeploymentState _state;
///
/// Gets and sets the property CompletedAt.
///
/// Time the deployment completed.
///
///
public DateTime CompletedAt
{
get { return this._completedAt.GetValueOrDefault(); }
set { this._completedAt = value; }
}
// Check to see if CompletedAt property is set
internal bool IsSetCompletedAt()
{
return this._completedAt.HasValue;
}
///
/// Gets and sets the property ConfigurationName.
///
/// The name of the configuration.
///
///
[AWSProperty(Min=1, Max=64)]
public string ConfigurationName
{
get { return this._configurationName; }
set { this._configurationName = value; }
}
// Check to see if ConfigurationName property is set
internal bool IsSetConfigurationName()
{
return this._configurationName != null;
}
///
/// Gets and sets the property ConfigurationVersion.
///
/// The version of the configuration.
///
///
[AWSProperty(Min=1, Max=1024)]
public string ConfigurationVersion
{
get { return this._configurationVersion; }
set { this._configurationVersion = value; }
}
// Check to see if ConfigurationVersion property is set
internal bool IsSetConfigurationVersion()
{
return this._configurationVersion != null;
}
///
/// Gets and sets the property DeploymentDurationInMinutes.
///
/// Total amount of time the deployment lasted.
///
///
[AWSProperty(Min=0, Max=1440)]
public int DeploymentDurationInMinutes
{
get { return this._deploymentDurationInMinutes.GetValueOrDefault(); }
set { this._deploymentDurationInMinutes = value; }
}
// Check to see if DeploymentDurationInMinutes property is set
internal bool IsSetDeploymentDurationInMinutes()
{
return this._deploymentDurationInMinutes.HasValue;
}
///
/// Gets and sets the property DeploymentNumber.
///
/// The sequence number of the deployment.
///
///
public int DeploymentNumber
{
get { return this._deploymentNumber.GetValueOrDefault(); }
set { this._deploymentNumber = value; }
}
// Check to see if DeploymentNumber property is set
internal bool IsSetDeploymentNumber()
{
return this._deploymentNumber.HasValue;
}
///
/// Gets and sets the property FinalBakeTimeInMinutes.
///
/// The amount of time that AppConfig monitors for alarms before considering the deployment
/// to be complete and no longer eligible for automatic rollback.
///
///
[AWSProperty(Min=0, Max=1440)]
public int FinalBakeTimeInMinutes
{
get { return this._finalBakeTimeInMinutes.GetValueOrDefault(); }
set { this._finalBakeTimeInMinutes = value; }
}
// Check to see if FinalBakeTimeInMinutes property is set
internal bool IsSetFinalBakeTimeInMinutes()
{
return this._finalBakeTimeInMinutes.HasValue;
}
///
/// Gets and sets the property GrowthFactor.
///
/// The percentage of targets to receive a deployed configuration during each interval.
///
///
[AWSProperty(Min=1, Max=100)]
public float GrowthFactor
{
get { return this._growthFactor.GetValueOrDefault(); }
set { this._growthFactor = value; }
}
// Check to see if GrowthFactor property is set
internal bool IsSetGrowthFactor()
{
return this._growthFactor.HasValue;
}
///
/// Gets and sets the property GrowthType.
///
/// The algorithm used to define how percentage grows over time.
///
///
public GrowthType GrowthType
{
get { return this._growthType; }
set { this._growthType = value; }
}
// Check to see if GrowthType property is set
internal bool IsSetGrowthType()
{
return this._growthType != null;
}
///
/// Gets and sets the property PercentageComplete.
///
/// The percentage of targets for which the deployment is available.
///
///
[AWSProperty(Min=1, Max=100)]
public float PercentageComplete
{
get { return this._percentageComplete.GetValueOrDefault(); }
set { this._percentageComplete = value; }
}
// Check to see if PercentageComplete property is set
internal bool IsSetPercentageComplete()
{
return this._percentageComplete.HasValue;
}
///
/// Gets and sets the property StartedAt.
///
/// Time the deployment started.
///
///
public DateTime StartedAt
{
get { return this._startedAt.GetValueOrDefault(); }
set { this._startedAt = value; }
}
// Check to see if StartedAt property is set
internal bool IsSetStartedAt()
{
return this._startedAt.HasValue;
}
///
/// Gets and sets the property State.
///
/// The state of the deployment.
///
///
public DeploymentState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
}
}