/*
* 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 license-manager-2018-08-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.LicenseManager.Model
{
///
/// Container for the parameters to the CheckoutLicense operation.
/// Checks out the specified license.
///
///
///
/// If the account that created the license is the same that is performing the check out,
/// you must specify the account as the beneficiary.
///
///
///
public partial class CheckoutLicenseRequest : AmazonLicenseManagerRequest
{
private string _beneficiary;
private CheckoutType _checkoutType;
private string _clientToken;
private List _entitlements = new List();
private string _keyFingerprint;
private string _nodeId;
private string _productSKU;
///
/// Gets and sets the property Beneficiary.
///
/// License beneficiary.
///
///
public string Beneficiary
{
get { return this._beneficiary; }
set { this._beneficiary = value; }
}
// Check to see if Beneficiary property is set
internal bool IsSetBeneficiary()
{
return this._beneficiary != null;
}
///
/// Gets and sets the property CheckoutType.
///
/// Checkout type.
///
///
[AWSProperty(Required=true)]
public CheckoutType CheckoutType
{
get { return this._checkoutType; }
set { this._checkoutType = value; }
}
// Check to see if CheckoutType property is set
internal bool IsSetCheckoutType()
{
return this._checkoutType != null;
}
///
/// Gets and sets the property ClientToken.
///
/// Unique, case-sensitive identifier that you provide to ensure the idempotency of the
/// request.
///
///
[AWSProperty(Required=true, Max=2048)]
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
///
/// Gets and sets the property Entitlements.
///
/// License entitlements.
///
///
[AWSProperty(Required=true)]
public List Entitlements
{
get { return this._entitlements; }
set { this._entitlements = value; }
}
// Check to see if Entitlements property is set
internal bool IsSetEntitlements()
{
return this._entitlements != null && this._entitlements.Count > 0;
}
///
/// Gets and sets the property KeyFingerprint.
///
/// Key fingerprint identifying the license.
///
///
[AWSProperty(Required=true)]
public string KeyFingerprint
{
get { return this._keyFingerprint; }
set { this._keyFingerprint = value; }
}
// Check to see if KeyFingerprint property is set
internal bool IsSetKeyFingerprint()
{
return this._keyFingerprint != null;
}
///
/// Gets and sets the property NodeId.
///
/// Node ID.
///
///
public string NodeId
{
get { return this._nodeId; }
set { this._nodeId = value; }
}
// Check to see if NodeId property is set
internal bool IsSetNodeId()
{
return this._nodeId != null;
}
///
/// Gets and sets the property ProductSKU.
///
/// Product SKU.
///
///
[AWSProperty(Required=true)]
public string ProductSKU
{
get { return this._productSKU; }
set { this._productSKU = value; }
}
// Check to see if ProductSKU property is set
internal bool IsSetProductSKU()
{
return this._productSKU != null;
}
}
}