/*
* 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
{
///
/// An object that describes a deployment event.
///
public partial class DeploymentEvent
{
private List _actionInvocations = new List();
private string _description;
private DeploymentEventType _eventType;
private DateTime? _occurredAt;
private TriggeredBy _triggeredBy;
///
/// Gets and sets the property ActionInvocations.
///
/// The list of extensions that were invoked as part of the deployment.
///
///
public List ActionInvocations
{
get { return this._actionInvocations; }
set { this._actionInvocations = value; }
}
// Check to see if ActionInvocations property is set
internal bool IsSetActionInvocations()
{
return this._actionInvocations != null && this._actionInvocations.Count > 0;
}
///
/// Gets and sets the property Description.
///
/// A description of the deployment event. Descriptions include, but are not limited to,
/// the user account or the Amazon CloudWatch alarm ARN that initiated a rollback, the
/// percentage of hosts that received the deployment, or in the case of an internal error,
/// a recommendation to attempt a new deployment.
///
///
[AWSProperty(Min=0, Max=1024)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property EventType.
///
/// The type of deployment event. Deployment event types include the start, stop, or completion
/// of a deployment; a percentage update; the start or stop of a bake period; and the
/// start or completion of a rollback.
///
///
public DeploymentEventType EventType
{
get { return this._eventType; }
set { this._eventType = value; }
}
// Check to see if EventType property is set
internal bool IsSetEventType()
{
return this._eventType != null;
}
///
/// Gets and sets the property OccurredAt.
///
/// The date and time the event occurred.
///
///
public DateTime OccurredAt
{
get { return this._occurredAt.GetValueOrDefault(); }
set { this._occurredAt = value; }
}
// Check to see if OccurredAt property is set
internal bool IsSetOccurredAt()
{
return this._occurredAt.HasValue;
}
///
/// Gets and sets the property TriggeredBy.
///
/// The entity that triggered the deployment event. Events can be triggered by a user,
/// AppConfig, an Amazon CloudWatch alarm, or an internal error.
///
///
public TriggeredBy TriggeredBy
{
get { return this._triggeredBy; }
set { this._triggeredBy = value; }
}
// Check to see if TriggeredBy property is set
internal bool IsSetTriggeredBy()
{
return this._triggeredBy != null;
}
}
}