/* * 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 { /// /// Details of an OpenSearch Reserved Instance. /// public partial class ReservedInstance { private long? _billingSubscriptionId; private string _currencyCode; private int? _duration; private double? _fixedPrice; private int? _instanceCount; private OpenSearchPartitionInstanceType _instanceType; private ReservedInstancePaymentOption _paymentOption; private List _recurringCharges = new List(); private string _reservationName; private string _reservedInstanceId; private string _reservedInstanceOfferingId; private DateTime? _startTime; private string _state; private double? _usagePrice; /// /// Gets and sets the property BillingSubscriptionId. /// /// The unique identifier of the billing subscription. /// /// public long BillingSubscriptionId { get { return this._billingSubscriptionId.GetValueOrDefault(); } set { this._billingSubscriptionId = value; } } // Check to see if BillingSubscriptionId property is set internal bool IsSetBillingSubscriptionId() { return this._billingSubscriptionId.HasValue; } /// /// Gets and sets the property CurrencyCode. /// /// The currency code for the offering. /// /// 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 OpenSearch instance is reserved. /// /// 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 paid to purchase the specific Reserved Instance /// 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 InstanceCount. /// /// The number of OpenSearch instances that have been reserved. /// /// public int InstanceCount { get { return this._instanceCount.GetValueOrDefault(); } set { this._instanceCount = value; } } // Check to see if InstanceCount property is set internal bool IsSetInstanceCount() { return this._instanceCount.HasValue; } /// /// Gets and sets the property InstanceType. /// /// The OpenSearch instance type offered by theReserved Instance offering. /// /// public OpenSearchPartitionInstanceType InstanceType { get { return this._instanceType; } set { this._instanceType = value; } } // Check to see if InstanceType property is set internal bool IsSetInstanceType() { return this._instanceType != null; } /// /// Gets and sets the property PaymentOption. /// /// The payment option as defined in the Reserved Instance offering. /// /// public ReservedInstancePaymentOption PaymentOption { get { return this._paymentOption; } set { this._paymentOption = value; } } // Check to see if PaymentOption property is set internal bool IsSetPaymentOption() { return this._paymentOption != null; } /// /// Gets and sets the property RecurringCharges. /// /// The recurring charge to your account, regardless of whether you create any domains /// using the Reserved Instance offering. /// /// 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 ReservationName. /// /// The customer-specified identifier to track this reservation. /// /// [AWSProperty(Min=5, Max=64)] public string ReservationName { get { return this._reservationName; } set { this._reservationName = value; } } // Check to see if ReservationName property is set internal bool IsSetReservationName() { return this._reservationName != null; } /// /// Gets and sets the property ReservedInstanceId. /// /// The unique identifier for the reservation. /// /// [AWSProperty(Min=36, Max=36)] public string ReservedInstanceId { get { return this._reservedInstanceId; } set { this._reservedInstanceId = value; } } // Check to see if ReservedInstanceId property is set internal bool IsSetReservedInstanceId() { return this._reservedInstanceId != null; } /// /// Gets and sets the property ReservedInstanceOfferingId. /// /// The unique identifier of the Reserved Instance offering. /// /// public string ReservedInstanceOfferingId { get { return this._reservedInstanceOfferingId; } set { this._reservedInstanceOfferingId = value; } } // Check to see if ReservedInstanceOfferingId property is set internal bool IsSetReservedInstanceOfferingId() { return this._reservedInstanceOfferingId != null; } /// /// Gets and sets the property StartTime. /// /// The date and time when the reservation was purchased. /// /// 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 Instance. /// /// 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 at which you're charged for the domain using this Reserved Instance. /// /// 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; } } }