Class CfnLicenseProps.Builder
java.lang.Object
software.amazon.awscdk.services.licensemanager.CfnLicenseProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLicenseProps>
- Enclosing interface:
CfnLicenseProps
@Stability(Stable)
public static final class CfnLicenseProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLicenseProps>
A builder for
CfnLicenseProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbeneficiary(String beneficiary) Sets the value ofCfnLicenseProps.getBeneficiary()build()Builds the configured instance.consumptionConfiguration(IResolvable consumptionConfiguration) Sets the value ofCfnLicenseProps.getConsumptionConfiguration()consumptionConfiguration(CfnLicense.ConsumptionConfigurationProperty consumptionConfiguration) Sets the value ofCfnLicenseProps.getConsumptionConfiguration()entitlements(List<? extends Object> entitlements) Sets the value ofCfnLicenseProps.getEntitlements()entitlements(IResolvable entitlements) Sets the value ofCfnLicenseProps.getEntitlements()homeRegion(String homeRegion) Sets the value ofCfnLicenseProps.getHomeRegion()issuer(IResolvable issuer) Sets the value ofCfnLicenseProps.getIssuer()issuer(CfnLicense.IssuerDataProperty issuer) Sets the value ofCfnLicenseProps.getIssuer()licenseMetadata(List<? extends Object> licenseMetadata) Sets the value ofCfnLicenseProps.getLicenseMetadata()licenseMetadata(IResolvable licenseMetadata) Sets the value ofCfnLicenseProps.getLicenseMetadata()licenseName(String licenseName) Sets the value ofCfnLicenseProps.getLicenseName()productName(String productName) Sets the value ofCfnLicenseProps.getProductName()productSku(String productSku) Sets the value ofCfnLicenseProps.getProductSku()Sets the value ofCfnLicenseProps.getStatus()validity(IResolvable validity) Sets the value ofCfnLicenseProps.getValidity()Sets the value ofCfnLicenseProps.getValidity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
consumptionConfiguration
@Stability(Stable) public CfnLicenseProps.Builder consumptionConfiguration(IResolvable consumptionConfiguration) Sets the value ofCfnLicenseProps.getConsumptionConfiguration()- Parameters:
consumptionConfiguration- Configuration for consumption of the license. This parameter is required.- Returns:
this
-
consumptionConfiguration
@Stability(Stable) public CfnLicenseProps.Builder consumptionConfiguration(CfnLicense.ConsumptionConfigurationProperty consumptionConfiguration) Sets the value ofCfnLicenseProps.getConsumptionConfiguration()- Parameters:
consumptionConfiguration- Configuration for consumption of the license. This parameter is required.- Returns:
this
-
entitlements
Sets the value ofCfnLicenseProps.getEntitlements()- Parameters:
entitlements- License entitlements. This parameter is required.- Returns:
this
-
entitlements
Sets the value ofCfnLicenseProps.getEntitlements()- Parameters:
entitlements- License entitlements. This parameter is required.- Returns:
this
-
homeRegion
Sets the value ofCfnLicenseProps.getHomeRegion()- Parameters:
homeRegion- Home Region of the license. This parameter is required.- Returns:
this
-
issuer
Sets the value ofCfnLicenseProps.getIssuer()- Parameters:
issuer- License issuer. This parameter is required.- Returns:
this
-
issuer
Sets the value ofCfnLicenseProps.getIssuer()- Parameters:
issuer- License issuer. This parameter is required.- Returns:
this
-
licenseName
Sets the value ofCfnLicenseProps.getLicenseName()- Parameters:
licenseName- License name. This parameter is required.- Returns:
this
-
productName
Sets the value ofCfnLicenseProps.getProductName()- Parameters:
productName- Product name. This parameter is required.- Returns:
this
-
validity
Sets the value ofCfnLicenseProps.getValidity()- Parameters:
validity- Date and time range during which the license is valid, in ISO8601-UTC format. This parameter is required.- Returns:
this
-
validity
@Stability(Stable) public CfnLicenseProps.Builder validity(CfnLicense.ValidityDateFormatProperty validity) Sets the value ofCfnLicenseProps.getValidity()- Parameters:
validity- Date and time range during which the license is valid, in ISO8601-UTC format. This parameter is required.- Returns:
this
-
beneficiary
Sets the value ofCfnLicenseProps.getBeneficiary()- Parameters:
beneficiary- License beneficiary.- Returns:
this
-
licenseMetadata
Sets the value ofCfnLicenseProps.getLicenseMetadata()- Parameters:
licenseMetadata- License metadata.- Returns:
this
-
licenseMetadata
@Stability(Stable) public CfnLicenseProps.Builder licenseMetadata(List<? extends Object> licenseMetadata) Sets the value ofCfnLicenseProps.getLicenseMetadata()- Parameters:
licenseMetadata- License metadata.- Returns:
this
-
productSku
Sets the value ofCfnLicenseProps.getProductSku()- Parameters:
productSku- Product SKU.- Returns:
this
-
status
Sets the value ofCfnLicenseProps.getStatus()- Parameters:
status- License status.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLicenseProps>- Returns:
- a new instance of
CfnLicenseProps - Throws:
NullPointerException- if any required attribute was not provided
-