@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateLicenseConfigurationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateLicenseConfigurationRequest() |
Modifier and Type | Method and Description |
---|---|
CreateLicenseConfigurationRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDescription()
Description of the license configuration.
|
Boolean |
getDisassociateWhenNotFound()
When true, disassociates a resource when software is uninstalled.
|
Long |
getLicenseCount()
Number of licenses managed by the license configuration.
|
Boolean |
getLicenseCountHardLimit()
Indicates whether hard or soft license enforcement is used.
|
String |
getLicenseCountingType()
Dimension used to track the license inventory.
|
List<String> |
getLicenseRules()
License rules.
|
String |
getName()
Name of the license configuration.
|
List<ProductInformation> |
getProductInformationList()
Product information.
|
List<Tag> |
getTags()
Tags to add to the license configuration.
|
int |
hashCode() |
Boolean |
isDisassociateWhenNotFound()
When true, disassociates a resource when software is uninstalled.
|
Boolean |
isLicenseCountHardLimit()
Indicates whether hard or soft license enforcement is used.
|
void |
setDescription(String description)
Description of the license configuration.
|
void |
setDisassociateWhenNotFound(Boolean disassociateWhenNotFound)
When true, disassociates a resource when software is uninstalled.
|
void |
setLicenseCount(Long licenseCount)
Number of licenses managed by the license configuration.
|
void |
setLicenseCountHardLimit(Boolean licenseCountHardLimit)
Indicates whether hard or soft license enforcement is used.
|
void |
setLicenseCountingType(String licenseCountingType)
Dimension used to track the license inventory.
|
void |
setLicenseRules(Collection<String> licenseRules)
License rules.
|
void |
setName(String name)
Name of the license configuration.
|
void |
setProductInformationList(Collection<ProductInformation> productInformationList)
Product information.
|
void |
setTags(Collection<Tag> tags)
Tags to add to the license configuration.
|
String |
toString()
Returns a string representation of this object.
|
CreateLicenseConfigurationRequest |
withDescription(String description)
Description of the license configuration.
|
CreateLicenseConfigurationRequest |
withDisassociateWhenNotFound(Boolean disassociateWhenNotFound)
When true, disassociates a resource when software is uninstalled.
|
CreateLicenseConfigurationRequest |
withLicenseCount(Long licenseCount)
Number of licenses managed by the license configuration.
|
CreateLicenseConfigurationRequest |
withLicenseCountHardLimit(Boolean licenseCountHardLimit)
Indicates whether hard or soft license enforcement is used.
|
CreateLicenseConfigurationRequest |
withLicenseCountingType(LicenseCountingType licenseCountingType)
Dimension used to track the license inventory.
|
CreateLicenseConfigurationRequest |
withLicenseCountingType(String licenseCountingType)
Dimension used to track the license inventory.
|
CreateLicenseConfigurationRequest |
withLicenseRules(Collection<String> licenseRules)
License rules.
|
CreateLicenseConfigurationRequest |
withLicenseRules(String... licenseRules)
License rules.
|
CreateLicenseConfigurationRequest |
withName(String name)
Name of the license configuration.
|
CreateLicenseConfigurationRequest |
withProductInformationList(Collection<ProductInformation> productInformationList)
Product information.
|
CreateLicenseConfigurationRequest |
withProductInformationList(ProductInformation... productInformationList)
Product information.
|
CreateLicenseConfigurationRequest |
withTags(Collection<Tag> tags)
Tags to add to the license configuration.
|
CreateLicenseConfigurationRequest |
withTags(Tag... tags)
Tags to add to the license configuration.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setName(String name)
Name of the license configuration.
name
- Name of the license configuration.public String getName()
Name of the license configuration.
public CreateLicenseConfigurationRequest withName(String name)
Name of the license configuration.
name
- Name of the license configuration.public void setDescription(String description)
Description of the license configuration.
description
- Description of the license configuration.public String getDescription()
Description of the license configuration.
public CreateLicenseConfigurationRequest withDescription(String description)
Description of the license configuration.
description
- Description of the license configuration.public void setLicenseCountingType(String licenseCountingType)
Dimension used to track the license inventory.
licenseCountingType
- Dimension used to track the license inventory.LicenseCountingType
public String getLicenseCountingType()
Dimension used to track the license inventory.
LicenseCountingType
public CreateLicenseConfigurationRequest withLicenseCountingType(String licenseCountingType)
Dimension used to track the license inventory.
licenseCountingType
- Dimension used to track the license inventory.LicenseCountingType
public CreateLicenseConfigurationRequest withLicenseCountingType(LicenseCountingType licenseCountingType)
Dimension used to track the license inventory.
licenseCountingType
- Dimension used to track the license inventory.LicenseCountingType
public void setLicenseCount(Long licenseCount)
Number of licenses managed by the license configuration.
licenseCount
- Number of licenses managed by the license configuration.public Long getLicenseCount()
Number of licenses managed by the license configuration.
public CreateLicenseConfigurationRequest withLicenseCount(Long licenseCount)
Number of licenses managed by the license configuration.
licenseCount
- Number of licenses managed by the license configuration.public void setLicenseCountHardLimit(Boolean licenseCountHardLimit)
Indicates whether hard or soft license enforcement is used. Exceeding a hard limit blocks the launch of new instances.
licenseCountHardLimit
- Indicates whether hard or soft license enforcement is used. Exceeding a hard limit blocks the launch of
new instances.public Boolean getLicenseCountHardLimit()
Indicates whether hard or soft license enforcement is used. Exceeding a hard limit blocks the launch of new instances.
public CreateLicenseConfigurationRequest withLicenseCountHardLimit(Boolean licenseCountHardLimit)
Indicates whether hard or soft license enforcement is used. Exceeding a hard limit blocks the launch of new instances.
licenseCountHardLimit
- Indicates whether hard or soft license enforcement is used. Exceeding a hard limit blocks the launch of
new instances.public Boolean isLicenseCountHardLimit()
Indicates whether hard or soft license enforcement is used. Exceeding a hard limit blocks the launch of new instances.
public List<String> getLicenseRules()
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
.
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 void setLicenseRules(Collection<String> 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
.
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 CreateLicenseConfigurationRequest withLicenseRules(String... 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
.
NOTE: This method appends the values to the existing list (if any). Use
setLicenseRules(java.util.Collection)
or withLicenseRules(java.util.Collection)
if you want to
override the existing values.
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 CreateLicenseConfigurationRequest withLicenseRules(Collection<String> 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
.
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<Tag> getTags()
Tags to add to the license configuration.
public void setTags(Collection<Tag> tags)
Tags to add to the license configuration.
tags
- Tags to add to the license configuration.public CreateLicenseConfigurationRequest withTags(Tag... tags)
Tags to add to the license configuration.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Tags to add to the license configuration.public CreateLicenseConfigurationRequest withTags(Collection<Tag> tags)
Tags to add to the license configuration.
tags
- Tags to add to the license configuration.public void setDisassociateWhenNotFound(Boolean disassociateWhenNotFound)
When true, disassociates a resource when software is uninstalled.
disassociateWhenNotFound
- When true, disassociates a resource when software is uninstalled.public Boolean getDisassociateWhenNotFound()
When true, disassociates a resource when software is uninstalled.
public CreateLicenseConfigurationRequest withDisassociateWhenNotFound(Boolean disassociateWhenNotFound)
When true, disassociates a resource when software is uninstalled.
disassociateWhenNotFound
- When true, disassociates a resource when software is uninstalled.public Boolean isDisassociateWhenNotFound()
When true, disassociates a resource when software is uninstalled.
public List<ProductInformation> getProductInformationList()
Product information.
public void setProductInformationList(Collection<ProductInformation> productInformationList)
Product information.
productInformationList
- Product information.public CreateLicenseConfigurationRequest withProductInformationList(ProductInformation... productInformationList)
Product information.
NOTE: This method appends the values to the existing list (if any). Use
setProductInformationList(java.util.Collection)
or
withProductInformationList(java.util.Collection)
if you want to override the existing values.
productInformationList
- Product information.public CreateLicenseConfigurationRequest withProductInformationList(Collection<ProductInformation> productInformationList)
Product information.
productInformationList
- Product information.public String toString()
toString
in class Object
Object.toString()
public CreateLicenseConfigurationRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()