/* * 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 { /// /// This is the response object from the CheckoutLicense operation. /// public partial class CheckoutLicenseResponse : AmazonWebServiceResponse { private CheckoutType _checkoutType; private List _entitlementsAllowed = new List(); private string _expiration; private string _issuedAt; private string _licenseArn; private string _licenseConsumptionToken; private string _nodeId; private string _signedToken; /// /// Gets and sets the property CheckoutType. /// /// Checkout type. /// /// 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 EntitlementsAllowed. /// /// Allowed license entitlements. /// /// public List EntitlementsAllowed { get { return this._entitlementsAllowed; } set { this._entitlementsAllowed = value; } } // Check to see if EntitlementsAllowed property is set internal bool IsSetEntitlementsAllowed() { return this._entitlementsAllowed != null && this._entitlementsAllowed.Count > 0; } /// /// Gets and sets the property Expiration. /// /// Date and time at which the license checkout expires. /// /// [AWSProperty(Max=50)] public string Expiration { get { return this._expiration; } set { this._expiration = value; } } // Check to see if Expiration property is set internal bool IsSetExpiration() { return this._expiration != null; } /// /// Gets and sets the property IssuedAt. /// /// Date and time at which the license checkout is issued. /// /// [AWSProperty(Max=50)] public string IssuedAt { get { return this._issuedAt; } set { this._issuedAt = value; } } // Check to see if IssuedAt property is set internal bool IsSetIssuedAt() { return this._issuedAt != null; } /// /// Gets and sets the property LicenseArn. /// /// Amazon Resource Name (ARN) of the checkout license. /// /// 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 LicenseConsumptionToken. /// /// License consumption token. /// /// public string LicenseConsumptionToken { get { return this._licenseConsumptionToken; } set { this._licenseConsumptionToken = value; } } // Check to see if LicenseConsumptionToken property is set internal bool IsSetLicenseConsumptionToken() { return this._licenseConsumptionToken != 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 SignedToken. /// /// Signed token. /// /// [AWSProperty(Min=4096)] public string SignedToken { get { return this._signedToken; } set { this._signedToken = value; } } // Check to see if SignedToken property is set internal bool IsSetSignedToken() { return this._signedToken != null; } } }