/* * 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 offering. /// public partial class ReservedNodeOffering { private string _currencyCode; private int? _duration; private double? _fixedPrice; private string _nodeType; private string _offeringType; private List _recurringCharges = new List(); private string _reservedNodeOfferingId; private ReservedNodeOfferingType _reservedNodeOfferingType; private double? _usagePrice; /// /// Gets and sets the property CurrencyCode. /// /// The currency code for the compute nodes offering. /// /// [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, in seconds, for which the offering will reserve the node. /// /// 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 upfront fixed charge you will pay to purchase the specific reserved node offering. /// /// 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 NodeType. /// /// The node type offered by the reserved node offering. /// /// [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 charge to your account regardless of whether you are creating any clusters using /// the node offering. Recurring charges are only in effect for heavy-utilization reserved /// nodes. /// /// 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 ReservedNodeOfferingId. /// /// The offering identifier. /// /// [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 UsagePrice. /// /// The rate you are charged for each hour the cluster that is using the offering is running. /// /// 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; } } }