Interface CreateLicenseConfigurationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateLicenseConfigurationRequest.Builder,
,CreateLicenseConfigurationRequest> LicenseManagerRequest.Builder
,SdkBuilder<CreateLicenseConfigurationRequest.Builder,
,CreateLicenseConfigurationRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateLicenseConfigurationRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) Description of the license configuration.disassociateWhenNotFound
(Boolean disassociateWhenNotFound) When true, disassociates a resource when software is uninstalled.licenseCount
(Long licenseCount) Number of licenses managed by the license configuration.licenseCountHardLimit
(Boolean licenseCountHardLimit) Indicates whether hard or soft license enforcement is used.licenseCountingType
(String licenseCountingType) Dimension used to track the license inventory.licenseCountingType
(LicenseCountingType licenseCountingType) Dimension used to track the license inventory.licenseRules
(String... licenseRules) License rules.licenseRules
(Collection<String> licenseRules) License rules.Name of the license configuration.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.productInformationList
(Collection<ProductInformation> productInformationList) Product information.productInformationList
(Consumer<ProductInformation.Builder>... productInformationList) Product information.productInformationList
(ProductInformation... productInformationList) Product information.tags
(Collection<Tag> tags) Tags to add to the license configuration.tags
(Consumer<Tag.Builder>... tags) Tags to add to the license configuration.Tags to add to the license configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.licensemanager.model.LicenseManagerRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
Name of the license configuration.
- Parameters:
name
- Name of the license configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
Description of the license configuration.
- Parameters:
description
- Description of the license configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
licenseCountingType
Dimension used to track the license inventory.
- Parameters:
licenseCountingType
- Dimension used to track the license inventory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
licenseCountingType
CreateLicenseConfigurationRequest.Builder licenseCountingType(LicenseCountingType licenseCountingType) Dimension used to track the license inventory.
- Parameters:
licenseCountingType
- Dimension used to track the license inventory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
licenseCount
Number of licenses managed by the license configuration.
- Parameters:
licenseCount
- Number of licenses managed by the license configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
licenseCountHardLimit
Indicates whether hard or soft license enforcement is used. Exceeding a hard limit blocks the launch of new instances.
- Parameters:
licenseCountHardLimit
- Indicates whether hard or soft license enforcement is used. Exceeding a hard limit blocks the launch of new instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 forallowedTenancy
areEC2-Default
,EC2-DedicatedHost
, andEC2-DedicatedInstance
. The possible values forhonorVcpuOptimization
areTrue
andFalse
.- Parameters:
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 forallowedTenancy
areEC2-Default
,EC2-DedicatedHost
, andEC2-DedicatedInstance
. The possible values forhonorVcpuOptimization
areTrue
andFalse
.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
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 forallowedTenancy
areEC2-Default
,EC2-DedicatedHost
, andEC2-DedicatedInstance
. The possible values forhonorVcpuOptimization
areTrue
andFalse
.- Parameters:
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 forallowedTenancy
areEC2-Default
,EC2-DedicatedHost
, andEC2-DedicatedInstance
. The possible values forhonorVcpuOptimization
areTrue
andFalse
.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
tags
Tags to add to the license configuration.
- Parameters:
tags
- Tags to add to the license configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Tags to add to the license configuration.
- Parameters:
tags
- Tags to add to the license configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Tags to add to the license configuration.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
disassociateWhenNotFound
CreateLicenseConfigurationRequest.Builder disassociateWhenNotFound(Boolean disassociateWhenNotFound) When true, disassociates a resource when software is uninstalled.
- Parameters:
disassociateWhenNotFound
- When true, disassociates a resource when software is uninstalled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
productInformationList
CreateLicenseConfigurationRequest.Builder productInformationList(Collection<ProductInformation> productInformationList) Product information.
- Parameters:
productInformationList
- Product information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
productInformationList
CreateLicenseConfigurationRequest.Builder productInformationList(ProductInformation... productInformationList) Product information.
- Parameters:
productInformationList
- Product information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
productInformationList
CreateLicenseConfigurationRequest.Builder productInformationList(Consumer<ProductInformation.Builder>... productInformationList) Product information.
This is a convenience method that creates an instance of theProductInformation.Builder
avoiding the need to create one manually viaProductInformation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toproductInformationList(List<ProductInformation>)
.- Parameters:
productInformationList
- a consumer that will call methods onProductInformation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateLicenseConfigurationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateLicenseConfigurationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-