/*
* 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 ec2-2016-11-15.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.EC2.Model
{
///
/// Describes a Reserved Instance modification.
///
public partial class ReservedInstancesModification
{
private string _clientToken;
private DateTime? _createDate;
private DateTime? _effectiveDate;
private List _modificationResults = new List();
private List _reservedInstancesIds = new List();
private string _reservedInstancesModificationId;
private string _status;
private string _statusMessage;
private DateTime? _updateDate;
///
/// Gets and sets the property ClientToken.
///
/// A unique, case-sensitive key supplied by the client to ensure that the request is
/// idempotent. For more information, see Ensuring
/// Idempotency.
///
///
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 CreateDate.
///
/// The time when the modification request was created.
///
///
public DateTime CreateDate
{
get { return this._createDate.GetValueOrDefault(); }
set { this._createDate = value; }
}
// Check to see if CreateDate property is set
internal bool IsSetCreateDate()
{
return this._createDate.HasValue;
}
///
/// Gets and sets the property EffectiveDate.
///
/// The time for the modification to become effective.
///
///
public DateTime EffectiveDate
{
get { return this._effectiveDate.GetValueOrDefault(); }
set { this._effectiveDate = value; }
}
// Check to see if EffectiveDate property is set
internal bool IsSetEffectiveDate()
{
return this._effectiveDate.HasValue;
}
///
/// Gets and sets the property ModificationResults.
///
/// Contains target configurations along with their corresponding new Reserved Instance
/// IDs.
///
///
public List ModificationResults
{
get { return this._modificationResults; }
set { this._modificationResults = value; }
}
// Check to see if ModificationResults property is set
internal bool IsSetModificationResults()
{
return this._modificationResults != null && this._modificationResults.Count > 0;
}
///
/// Gets and sets the property ReservedInstancesIds.
///
/// The IDs of one or more Reserved Instances.
///
///
public List ReservedInstancesIds
{
get { return this._reservedInstancesIds; }
set { this._reservedInstancesIds = value; }
}
// Check to see if ReservedInstancesIds property is set
internal bool IsSetReservedInstancesIds()
{
return this._reservedInstancesIds != null && this._reservedInstancesIds.Count > 0;
}
///
/// Gets and sets the property ReservedInstancesModificationId.
///
/// A unique ID for the Reserved Instance modification.
///
///
public string ReservedInstancesModificationId
{
get { return this._reservedInstancesModificationId; }
set { this._reservedInstancesModificationId = value; }
}
// Check to see if ReservedInstancesModificationId property is set
internal bool IsSetReservedInstancesModificationId()
{
return this._reservedInstancesModificationId != null;
}
///
/// Gets and sets the property Status.
///
/// The status of the Reserved Instances modification request.
///
///
public string Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property StatusMessage.
///
/// The reason for the status.
///
///
public string StatusMessage
{
get { return this._statusMessage; }
set { this._statusMessage = value; }
}
// Check to see if StatusMessage property is set
internal bool IsSetStatusMessage()
{
return this._statusMessage != null;
}
///
/// Gets and sets the property UpdateDate.
///
/// The time when the modification request was last updated.
///
///
public DateTime UpdateDate
{
get { return this._updateDate.GetValueOrDefault(); }
set { this._updateDate = value; }
}
// Check to see if UpdateDate property is set
internal bool IsSetUpdateDate()
{
return this._updateDate.HasValue;
}
}
}