/*
* 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 medialive-2017-10-14.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.MediaLive.Model
{
///
/// Container for the parameters to the PurchaseOffering operation.
/// Purchase an offering and create a reservation.
///
public partial class PurchaseOfferingRequest : AmazonMediaLiveRequest
{
private int? _count;
private string _name;
private string _offeringId;
private RenewalSettings _renewalSettings;
private string _requestId;
private string _start;
private Dictionary _tags = new Dictionary();
///
/// Gets and sets the property Count. Number of resources
///
[AWSProperty(Required=true, Min=1)]
public int Count
{
get { return this._count.GetValueOrDefault(); }
set { this._count = value; }
}
// Check to see if Count property is set
internal bool IsSetCount()
{
return this._count.HasValue;
}
///
/// Gets and sets the property Name. Name for the new reservation
///
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property OfferingId. Offering to purchase, e.g. '87654321'
///
[AWSProperty(Required=true)]
public string OfferingId
{
get { return this._offeringId; }
set { this._offeringId = value; }
}
// Check to see if OfferingId property is set
internal bool IsSetOfferingId()
{
return this._offeringId != null;
}
///
/// Gets and sets the property RenewalSettings. Renewal settings for the reservation
///
public RenewalSettings RenewalSettings
{
get { return this._renewalSettings; }
set { this._renewalSettings = value; }
}
// Check to see if RenewalSettings property is set
internal bool IsSetRenewalSettings()
{
return this._renewalSettings != null;
}
///
/// Gets and sets the property RequestId. Unique request ID to be specified. This is needed
/// to prevent retries from creating multiple resources.
///
public string RequestId
{
get { return this._requestId; }
set { this._requestId = value; }
}
// Check to see if RequestId property is set
internal bool IsSetRequestId()
{
return this._requestId != null;
}
///
/// Gets and sets the property Start. Requested reservation start time (UTC) in ISO-8601
/// format. The specified time must be between the first day of the current month and
/// one year from now. If no value is given, the default is now.
///
public string Start
{
get { return this._start; }
set { this._start = value; }
}
// Check to see if Start property is set
internal bool IsSetStart()
{
return this._start != null;
}
///
/// Gets and sets the property Tags. A collection of key-value pairs
///
public Dictionary Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}