/*
* 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 CreateLicenseConfiguration operation.
/// Creates a license configuration.
///
///
///
/// 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), license affinity to
/// host (how long a license must be associated with a host), and the number of licenses
/// purchased and used.
///
///
public partial class CreateLicenseConfigurationRequest : AmazonLicenseManagerRequest
{
private string _description;
private bool? _disassociateWhenNotFound;
private long? _licenseCount;
private bool? _licenseCountHardLimit;
private LicenseCountingType _licenseCountingType;
private List _licenseRules = new List();
private string _name;
private List _productInformationList = new List();
private List _tags = new List();
///
/// 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 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.
///
/// Indicates whether hard or soft license enforcement is used. Exceeding a hard limit
/// blocks the launch of new instances.
///
///
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 used to track the license inventory.
///
///
[AWSProperty(Required=true)]
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. The syntax is #name=value (for example, #allowedTenancy=EC2-DedicatedHost).
/// The available rules vary by dimension, as follows.
///
/// -
///
///
Cores
dimension: allowedTenancy
| licenseAffinityToHost
/// | maximumCores
| minimumCores
///
/// -
///
///
Instances
dimension: allowedTenancy
| maximumCores
/// | minimumCores
| maximumSockets
| minimumSockets
/// | maximumVcpus
| minimumVcpus
///
/// -
///
///
Sockets
dimension: allowedTenancy
| licenseAffinityToHost
/// | maximumSockets
| minimumSockets
///
/// -
///
///
vCPUs
dimension: allowedTenancy
| honorVcpuOptimization
/// | maximumVcpus
| minimumVcpus
///
///
///
/// The unit for licenseAffinityToHost
is days and the range is 1 to 180.
/// The possible values for allowedTenancy
are EC2-Default
,
/// EC2-DedicatedHost
, and EC2-DedicatedInstance
. The possible
/// values for honorVcpuOptimization
are True
and False
.
///
///
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 Name.
///
/// Name of the license configuration.
///
///
[AWSProperty(Required=true)]
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 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 Tags.
///
/// Tags to add to the license configuration.
///
///
public List Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}