/*
* 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
{
///
/// A license configuration is an abstraction of a customer license agreement that can
/// be consumed and enforced by License Manager. Components include specifications for
/// the license type (licensing by instance, socket, CPU, or vCPU), allowed tenancy (shared
/// tenancy, Dedicated Instance, Dedicated Host, or all of these), host affinity (how
/// long a VM must be associated with a host), and the number of licenses purchased and
/// used.
///
public partial class LicenseConfiguration
{
private AutomatedDiscoveryInformation _automatedDiscoveryInformation;
private long? _consumedLicenses;
private List _consumedLicenseSummaryList = new List();
private string _description;
private bool? _disassociateWhenNotFound;
private string _licenseConfigurationArn;
private string _licenseConfigurationId;
private long? _licenseCount;
private bool? _licenseCountHardLimit;
private LicenseCountingType _licenseCountingType;
private List _licenseRules = new List();
private List _managedResourceSummaryList = new List();
private string _name;
private string _ownerAccountId;
private List _productInformationList = new List();
private string _status;
///
/// Gets and sets the property AutomatedDiscoveryInformation.
///
/// Automated discovery information.
///
///
public AutomatedDiscoveryInformation AutomatedDiscoveryInformation
{
get { return this._automatedDiscoveryInformation; }
set { this._automatedDiscoveryInformation = value; }
}
// Check to see if AutomatedDiscoveryInformation property is set
internal bool IsSetAutomatedDiscoveryInformation()
{
return this._automatedDiscoveryInformation != null;
}
///
/// Gets and sets the property ConsumedLicenses.
///
/// Number of licenses consumed.
///
///
public long ConsumedLicenses
{
get { return this._consumedLicenses.GetValueOrDefault(); }
set { this._consumedLicenses = value; }
}
// Check to see if ConsumedLicenses property is set
internal bool IsSetConsumedLicenses()
{
return this._consumedLicenses.HasValue;
}
///
/// Gets and sets the property ConsumedLicenseSummaryList.
///
/// Summaries for licenses consumed by various resources.
///
///
public List ConsumedLicenseSummaryList
{
get { return this._consumedLicenseSummaryList; }
set { this._consumedLicenseSummaryList = value; }
}
// Check to see if ConsumedLicenseSummaryList property is set
internal bool IsSetConsumedLicenseSummaryList()
{
return this._consumedLicenseSummaryList != null && this._consumedLicenseSummaryList.Count > 0;
}
///
/// Gets and sets the property Description.
///
/// Description of the license configuration.
///
///
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property DisassociateWhenNotFound.
///
/// When true, disassociates a resource when software is uninstalled.
///
///
public bool DisassociateWhenNotFound
{
get { return this._disassociateWhenNotFound.GetValueOrDefault(); }
set { this._disassociateWhenNotFound = value; }
}
// Check to see if DisassociateWhenNotFound property is set
internal bool IsSetDisassociateWhenNotFound()
{
return this._disassociateWhenNotFound.HasValue;
}
///
/// Gets and sets the property LicenseConfigurationArn.
///
/// Amazon Resource Name (ARN) of the license configuration.
///
///
public string LicenseConfigurationArn
{
get { return this._licenseConfigurationArn; }
set { this._licenseConfigurationArn = value; }
}
// Check to see if LicenseConfigurationArn property is set
internal bool IsSetLicenseConfigurationArn()
{
return this._licenseConfigurationArn != null;
}
///
/// Gets and sets the property LicenseConfigurationId.
///
/// Unique ID of the license configuration.
///
///
public string LicenseConfigurationId
{
get { return this._licenseConfigurationId; }
set { this._licenseConfigurationId = value; }
}
// Check to see if LicenseConfigurationId property is set
internal bool IsSetLicenseConfigurationId()
{
return this._licenseConfigurationId != null;
}
///
/// Gets and sets the property LicenseCount.
///
/// Number of licenses managed by the license configuration.
///
///
public long LicenseCount
{
get { return this._licenseCount.GetValueOrDefault(); }
set { this._licenseCount = value; }
}
// Check to see if LicenseCount property is set
internal bool IsSetLicenseCount()
{
return this._licenseCount.HasValue;
}
///
/// Gets and sets the property LicenseCountHardLimit.
///
/// Number of available licenses as a hard limit.
///
///
public bool LicenseCountHardLimit
{
get { return this._licenseCountHardLimit.GetValueOrDefault(); }
set { this._licenseCountHardLimit = value; }
}
// Check to see if LicenseCountHardLimit property is set
internal bool IsSetLicenseCountHardLimit()
{
return this._licenseCountHardLimit.HasValue;
}
///
/// Gets and sets the property LicenseCountingType.
///
/// Dimension to use to track the license inventory.
///
///
public LicenseCountingType LicenseCountingType
{
get { return this._licenseCountingType; }
set { this._licenseCountingType = value; }
}
// Check to see if LicenseCountingType property is set
internal bool IsSetLicenseCountingType()
{
return this._licenseCountingType != null;
}
///
/// Gets and sets the property LicenseRules.
///
/// License rules.
///
///
public List LicenseRules
{
get { return this._licenseRules; }
set { this._licenseRules = value; }
}
// Check to see if LicenseRules property is set
internal bool IsSetLicenseRules()
{
return this._licenseRules != null && this._licenseRules.Count > 0;
}
///
/// Gets and sets the property ManagedResourceSummaryList.
///
/// Summaries for managed resources.
///
///
public List ManagedResourceSummaryList
{
get { return this._managedResourceSummaryList; }
set { this._managedResourceSummaryList = value; }
}
// Check to see if ManagedResourceSummaryList property is set
internal bool IsSetManagedResourceSummaryList()
{
return this._managedResourceSummaryList != null && this._managedResourceSummaryList.Count > 0;
}
///
/// Gets and sets the property Name.
///
/// Name of the license configuration.
///
///
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 OwnerAccountId.
///
/// Account ID of the license configuration's owner.
///
///
public string OwnerAccountId
{
get { return this._ownerAccountId; }
set { this._ownerAccountId = value; }
}
// Check to see if OwnerAccountId property is set
internal bool IsSetOwnerAccountId()
{
return this._ownerAccountId != null;
}
///
/// Gets and sets the property ProductInformationList.
///
/// Product information.
///
///
public List ProductInformationList
{
get { return this._productInformationList; }
set { this._productInformationList = value; }
}
// Check to see if ProductInformationList property is set
internal bool IsSetProductInformationList()
{
return this._productInformationList != null && this._productInformationList.Count > 0;
}
///
/// Gets and sets the property Status.
///
/// Status of the license configuration.
///
///
public string Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}