/*
* 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 outposts-2019-12-03.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.Outposts.Model
{
///
/// Container for the parameters to the CreateOrder operation.
/// Creates an order for an Outpost.
///
public partial class CreateOrderRequest : AmazonOutpostsRequest
{
private List _lineItems = new List();
private string _outpostIdentifier;
private PaymentOption _paymentOption;
private PaymentTerm _paymentTerm;
///
/// Gets and sets the property LineItems.
///
/// The line items that make up the order.
///
///
[AWSProperty(Required=true, Min=1, Max=20)]
public List LineItems
{
get { return this._lineItems; }
set { this._lineItems = value; }
}
// Check to see if LineItems property is set
internal bool IsSetLineItems()
{
return this._lineItems != null && this._lineItems.Count > 0;
}
///
/// Gets and sets the property OutpostIdentifier.
///
/// The ID or the Amazon Resource Name (ARN) of the Outpost.
///
///
[AWSProperty(Required=true, Min=1, Max=180)]
public string OutpostIdentifier
{
get { return this._outpostIdentifier; }
set { this._outpostIdentifier = value; }
}
// Check to see if OutpostIdentifier property is set
internal bool IsSetOutpostIdentifier()
{
return this._outpostIdentifier != null;
}
///
/// Gets and sets the property PaymentOption.
///
/// The payment option.
///
///
[AWSProperty(Required=true)]
public PaymentOption 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 PaymentTerm.
///
/// The payment terms.
///
///
public PaymentTerm PaymentTerm
{
get { return this._paymentTerm; }
set { this._paymentTerm = value; }
}
// Check to see if PaymentTerm property is set
internal bool IsSetPaymentTerm()
{
return this._paymentTerm != null;
}
}
}