/*
* 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 redshift-2012-12-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.Redshift.Model
{
///
/// Describes a reserved node. You can call the DescribeReservedNodeOfferings API
/// to obtain the available reserved node offerings.
///
public partial class ReservedNode
{
private string _currencyCode;
private int? _duration;
private double? _fixedPrice;
private int? _nodeCount;
private string _nodeType;
private string _offeringType;
private List _recurringCharges = new List();
private string _reservedNodeId;
private string _reservedNodeOfferingId;
private ReservedNodeOfferingType _reservedNodeOfferingType;
private DateTime? _startTime;
private string _state;
private double? _usagePrice;
///
/// Gets and sets the property CurrencyCode.
///
/// The currency code for the reserved cluster.
///
///
[AWSProperty(Max=2147483647)]
public string CurrencyCode
{
get { return this._currencyCode; }
set { this._currencyCode = value; }
}
// Check to see if CurrencyCode property is set
internal bool IsSetCurrencyCode()
{
return this._currencyCode != null;
}
///
/// Gets and sets the property Duration.
///
/// The duration of the node reservation in seconds.
///
///
public int Duration
{
get { return this._duration.GetValueOrDefault(); }
set { this._duration = value; }
}
// Check to see if Duration property is set
internal bool IsSetDuration()
{
return this._duration.HasValue;
}
///
/// Gets and sets the property FixedPrice.
///
/// The fixed cost Amazon Redshift charges you for this reserved node.
///
///
public double FixedPrice
{
get { return this._fixedPrice.GetValueOrDefault(); }
set { this._fixedPrice = value; }
}
// Check to see if FixedPrice property is set
internal bool IsSetFixedPrice()
{
return this._fixedPrice.HasValue;
}
///
/// Gets and sets the property NodeCount.
///
/// The number of reserved compute nodes.
///
///
public int NodeCount
{
get { return this._nodeCount.GetValueOrDefault(); }
set { this._nodeCount = value; }
}
// Check to see if NodeCount property is set
internal bool IsSetNodeCount()
{
return this._nodeCount.HasValue;
}
///
/// Gets and sets the property NodeType.
///
/// The node type of the reserved node.
///
///
[AWSProperty(Max=2147483647)]
public string NodeType
{
get { return this._nodeType; }
set { this._nodeType = value; }
}
// Check to see if NodeType property is set
internal bool IsSetNodeType()
{
return this._nodeType != null;
}
///
/// Gets and sets the property OfferingType.
///
/// The anticipated utilization of the reserved node, as defined in the reserved node
/// offering.
///
///
[AWSProperty(Max=2147483647)]
public string OfferingType
{
get { return this._offeringType; }
set { this._offeringType = value; }
}
// Check to see if OfferingType property is set
internal bool IsSetOfferingType()
{
return this._offeringType != null;
}
///
/// Gets and sets the property RecurringCharges.
///
/// The recurring charges for the reserved node.
///
///
public List RecurringCharges
{
get { return this._recurringCharges; }
set { this._recurringCharges = value; }
}
// Check to see if RecurringCharges property is set
internal bool IsSetRecurringCharges()
{
return this._recurringCharges != null && this._recurringCharges.Count > 0;
}
///
/// Gets and sets the property ReservedNodeId.
///
/// The unique identifier for the reservation.
///
///
[AWSProperty(Max=2147483647)]
public string ReservedNodeId
{
get { return this._reservedNodeId; }
set { this._reservedNodeId = value; }
}
// Check to see if ReservedNodeId property is set
internal bool IsSetReservedNodeId()
{
return this._reservedNodeId != null;
}
///
/// Gets and sets the property ReservedNodeOfferingId.
///
/// The identifier for the reserved node offering.
///
///
[AWSProperty(Max=2147483647)]
public string ReservedNodeOfferingId
{
get { return this._reservedNodeOfferingId; }
set { this._reservedNodeOfferingId = value; }
}
// Check to see if ReservedNodeOfferingId property is set
internal bool IsSetReservedNodeOfferingId()
{
return this._reservedNodeOfferingId != null;
}
///
/// Gets and sets the property ReservedNodeOfferingType.
///
public ReservedNodeOfferingType ReservedNodeOfferingType
{
get { return this._reservedNodeOfferingType; }
set { this._reservedNodeOfferingType = value; }
}
// Check to see if ReservedNodeOfferingType property is set
internal bool IsSetReservedNodeOfferingType()
{
return this._reservedNodeOfferingType != null;
}
///
/// Gets and sets the property StartTime.
///
/// The time the reservation started. You purchase a reserved node offering for a duration.
/// This is the start time of that duration.
///
///
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set { this._startTime = value; }
}
// Check to see if StartTime property is set
internal bool IsSetStartTime()
{
return this._startTime.HasValue;
}
///
/// Gets and sets the property State.
///
/// The state of the reserved compute node.
///
///
///
/// Possible Values:
///
/// -
///
/// pending-payment-This reserved node has recently been purchased, and the sale has been
/// approved, but payment has not yet been confirmed.
///
///
-
///
/// active-This reserved node is owned by the caller and is available for use.
///
///
-
///
/// payment-failed-Payment failed for the purchase attempt.
///
///
-
///
/// retired-The reserved node is no longer available.
///
///
-
///
/// exchanging-The owner is exchanging the reserved node for another reserved node.
///
///
///
[AWSProperty(Max=2147483647)]
public string State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
///
/// Gets and sets the property UsagePrice.
///
/// The hourly rate Amazon Redshift charges you for this reserved node.
///
///
public double UsagePrice
{
get { return this._usagePrice.GetValueOrDefault(); }
set { this._usagePrice = value; }
}
// Check to see if UsagePrice property is set
internal bool IsSetUsagePrice()
{
return this._usagePrice.HasValue;
}
}
}