/*
* 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 opensearch-2021-01-01.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.OpenSearchService.Model
{
///
/// History of the last 10 upgrades and upgrade eligibility checks for an Amazon OpenSearch
/// Service domain.
///
public partial class UpgradeHistory
{
private DateTime? _startTimestamp;
private List _stepsList = new List();
private string _upgradeName;
private UpgradeStatus _upgradeStatus;
///
/// Gets and sets the property StartTimestamp.
///
/// UTC timestamp at which the upgrade API call was made, in the format yyyy-MM-ddTHH:mm:ssZ
.
///
///
public DateTime StartTimestamp
{
get { return this._startTimestamp.GetValueOrDefault(); }
set { this._startTimestamp = value; }
}
// Check to see if StartTimestamp property is set
internal bool IsSetStartTimestamp()
{
return this._startTimestamp.HasValue;
}
///
/// Gets and sets the property StepsList.
///
/// A list of each step performed as part of a specific upgrade or upgrade eligibility
/// check.
///
///
public List StepsList
{
get { return this._stepsList; }
set { this._stepsList = value; }
}
// Check to see if StepsList property is set
internal bool IsSetStepsList()
{
return this._stepsList != null && this._stepsList.Count > 0;
}
///
/// Gets and sets the property UpgradeName.
///
/// A string that describes the upgrade.
///
///
public string UpgradeName
{
get { return this._upgradeName; }
set { this._upgradeName = value; }
}
// Check to see if UpgradeName property is set
internal bool IsSetUpgradeName()
{
return this._upgradeName != null;
}
///
/// Gets and sets the property UpgradeStatus.
///
/// The current status of the upgrade. The status can take one of the following values:
///
///
/// -
///
/// In Progress
///
///
-
///
/// Succeeded
///
///
-
///
/// Succeeded with Issues
///
///
-
///
/// Failed
///
///
///
public UpgradeStatus UpgradeStatus
{
get { return this._upgradeStatus; }
set { this._upgradeStatus = value; }
}
// Check to see if UpgradeStatus property is set
internal bool IsSetUpgradeStatus()
{
return this._upgradeStatus != null;
}
}
}