Interface CreateEksAnywhereSubscriptionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateEksAnywhereSubscriptionRequest.Builder,
,CreateEksAnywhereSubscriptionRequest> EksRequest.Builder
,SdkBuilder<CreateEksAnywhereSubscriptionRequest.Builder,
,CreateEksAnywhereSubscriptionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateEksAnywhereSubscriptionRequest
-
Method Summary
Modifier and TypeMethodDescriptionA boolean indicating whether the subscription auto renews at the end of the term.clientRequestToken
(String clientRequestToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.licenseQuantity
(Integer licenseQuantity) The number of licenses to purchase with the subscription.licenseType
(String licenseType) The license type for all licenses in the subscription.licenseType
(EksAnywhereSubscriptionLicenseType licenseType) The license type for all licenses in the subscription.The unique name for your subscription.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The metadata for a subscription to assist with categorization and organization.An object representing the term duration and term unit type of your subscription.An object representing the term duration and term unit type of your subscription.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.eks.model.EksRequest.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
The unique name for your subscription. It must be unique in your Amazon Web Services account in the Amazon Web Services Region you're creating the subscription in. The name can contain only alphanumeric characters (case-sensitive), hyphens, and underscores. It must start with an alphabetic character and can't be longer than 100 characters.
- Parameters:
name
- The unique name for your subscription. It must be unique in your Amazon Web Services account in the Amazon Web Services Region you're creating the subscription in. The name can contain only alphanumeric characters (case-sensitive), hyphens, and underscores. It must start with an alphabetic character and can't be longer than 100 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
term
An object representing the term duration and term unit type of your subscription. This determines the term length of your subscription. Valid values are MONTHS for term unit and 12 or 36 for term duration, indicating a 12 month or 36 month subscription. This value cannot be changed after creating the subscription.
- Parameters:
term
- An object representing the term duration and term unit type of your subscription. This determines the term length of your subscription. Valid values are MONTHS for term unit and 12 or 36 for term duration, indicating a 12 month or 36 month subscription. This value cannot be changed after creating the subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
term
default CreateEksAnywhereSubscriptionRequest.Builder term(Consumer<EksAnywhereSubscriptionTerm.Builder> term) An object representing the term duration and term unit type of your subscription. This determines the term length of your subscription. Valid values are MONTHS for term unit and 12 or 36 for term duration, indicating a 12 month or 36 month subscription. This value cannot be changed after creating the subscription.
This is a convenience method that creates an instance of theEksAnywhereSubscriptionTerm.Builder
avoiding the need to create one manually viaEksAnywhereSubscriptionTerm.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toterm(EksAnywhereSubscriptionTerm)
.- Parameters:
term
- a consumer that will call methods onEksAnywhereSubscriptionTerm.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
licenseQuantity
The number of licenses to purchase with the subscription. Valid values are between 1 and 100. This value can't be changed after creating the subscription.
- Parameters:
licenseQuantity
- The number of licenses to purchase with the subscription. Valid values are between 1 and 100. This value can't be changed after creating the subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
licenseType
The license type for all licenses in the subscription. Valid value is CLUSTER. With the CLUSTER license type, each license covers support for a single EKS Anywhere cluster.
- Parameters:
licenseType
- The license type for all licenses in the subscription. Valid value is CLUSTER. With the CLUSTER license type, each license covers support for a single EKS Anywhere cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
licenseType
CreateEksAnywhereSubscriptionRequest.Builder licenseType(EksAnywhereSubscriptionLicenseType licenseType) The license type for all licenses in the subscription. Valid value is CLUSTER. With the CLUSTER license type, each license covers support for a single EKS Anywhere cluster.
- Parameters:
licenseType
- The license type for all licenses in the subscription. Valid value is CLUSTER. With the CLUSTER license type, each license covers support for a single EKS Anywhere cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
autoRenew
A boolean indicating whether the subscription auto renews at the end of the term.
- Parameters:
autoRenew
- A boolean indicating whether the subscription auto renews at the end of the term.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientRequestToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- Parameters:
clientRequestToken
- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The metadata for a subscription to assist with categorization and organization. Each tag consists of a key and an optional value. Subscription tags don't propagate to any other resources associated with the subscription.
- Parameters:
tags
- The metadata for a subscription to assist with categorization and organization. Each tag consists of a key and an optional value. Subscription tags don't propagate to any other resources associated with the subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateEksAnywhereSubscriptionRequest.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
CreateEksAnywhereSubscriptionRequest.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.
-