/*
* 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 CheckoutBorrowLicense operation.
/// Checks out the specified license for offline use.
///
public partial class CheckoutBorrowLicenseRequest : AmazonLicenseManagerRequest
{
private List _checkoutMetadata = new List();
private string _clientToken;
private DigitalSignatureMethod _digitalSignatureMethod;
private List _entitlements = new List();
private string _licenseArn;
private string _nodeId;
///
/// Gets and sets the property CheckoutMetadata.
///
/// Information about constraints.
///
///
public List CheckoutMetadata
{
get { return this._checkoutMetadata; }
set { this._checkoutMetadata = value; }
}
// Check to see if CheckoutMetadata property is set
internal bool IsSetCheckoutMetadata()
{
return this._checkoutMetadata != null && this._checkoutMetadata.Count > 0;
}
///
/// 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 DigitalSignatureMethod.
///
/// Digital signature method. The possible value is JSON Web Signature (JWS) algorithm
/// PS384. For more information, see RFC
/// 7518 Digital Signature with RSASSA-PSS.
///
///
[AWSProperty(Required=true)]
public DigitalSignatureMethod DigitalSignatureMethod
{
get { return this._digitalSignatureMethod; }
set { this._digitalSignatureMethod = value; }
}
// Check to see if DigitalSignatureMethod property is set
internal bool IsSetDigitalSignatureMethod()
{
return this._digitalSignatureMethod != null;
}
///
/// Gets and sets the property Entitlements.
///
/// License entitlements. Partial checkouts are not supported.
///
///
[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 LicenseArn.
///
/// Amazon Resource Name (ARN) of the license. The license must use the borrow consumption
/// configuration.
///
///
[AWSProperty(Required=true, Max=2048)]
public string LicenseArn
{
get { return this._licenseArn; }
set { this._licenseArn = value; }
}
// Check to see if LicenseArn property is set
internal bool IsSetLicenseArn()
{
return this._licenseArn != 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;
}
}
}