Interface CreateSubscriptionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateSubscriptionRequest.Builder,,CreateSubscriptionRequest> PricingPlanManagerRequest.Builder,SdkBuilder<CreateSubscriptionRequest.Builder,,CreateSubscriptionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateSubscriptionRequest
-
Method Summary
Modifier and TypeMethodDescriptionapprovalMode(String approvalMode) Determines whether the subscription requires explicit approval before billing starts.approvalMode(ApprovalMode approvalMode) Determines whether the subscription requires explicit approval before billing starts.clientToken(String clientToken) A unique, case-sensitive identifier that you provide to ensure that the request is handled only once.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.planFamily(String planFamily) The pricing plan family to subscribe to, such asCloudFront.The tier level for the subscription, such asFREE,PRO,BUSINESS, orPREMIUM.resourceArns(String... resourceArns) The ARNs of the AWS resources to include in the subscription.resourceArns(Collection<String> resourceArns) The ARNs of the AWS resources to include in the subscription.usageLevel(String usageLevel) The usage level within the plan tier.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.pricingplanmanager.model.PricingPlanManagerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
planFamily
The pricing plan family to subscribe to, such as
CloudFront.- Parameters:
planFamily- The pricing plan family to subscribe to, such asCloudFront.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
planTier
The tier level for the subscription, such as
FREE,PRO,BUSINESS, orPREMIUM.- Parameters:
planTier- The tier level for the subscription, such asFREE,PRO,BUSINESS, orPREMIUM.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageLevel
The usage level within the plan tier. Specify
DEFAULTfor the base configuration, or a higher level if your plan tier supports it.- Parameters:
usageLevel- The usage level within the plan tier. SpecifyDEFAULTfor the base configuration, or a higher level if your plan tier supports it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceArns
The ARNs of the AWS resources to include in the subscription. Specify one or more supported resources.
For subscriptions in the CloudFront plan family, the resources must include exactly one Amazon CloudFront distribution and exactly one AWS WAF web ACL. You can also include other supported resources, such as Amazon Route 53 hosted zones and CloudFront KeyValueStores.
- Parameters:
resourceArns- The ARNs of the AWS resources to include in the subscription. Specify one or more supported resources.For subscriptions in the CloudFront plan family, the resources must include exactly one Amazon CloudFront distribution and exactly one AWS WAF web ACL. You can also include other supported resources, such as Amazon Route 53 hosted zones and CloudFront KeyValueStores.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceArns
The ARNs of the AWS resources to include in the subscription. Specify one or more supported resources.
For subscriptions in the CloudFront plan family, the resources must include exactly one Amazon CloudFront distribution and exactly one AWS WAF web ACL. You can also include other supported resources, such as Amazon Route 53 hosted zones and CloudFront KeyValueStores.
- Parameters:
resourceArns- The ARNs of the AWS resources to include in the subscription. Specify one or more supported resources.For subscriptions in the CloudFront plan family, the resources must include exactly one Amazon CloudFront distribution and exactly one AWS WAF web ACL. You can also include other supported resources, such as Amazon Route 53 hosted zones and CloudFront KeyValueStores.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
approvalMode
Determines whether the subscription requires explicit approval before billing starts. Set to
MANUALto require a separateApprovePaidSubscriptioncall, orIMMEDIATEto activate the subscription right away. Defaults toIMMEDIATEif not specified.- Parameters:
approvalMode- Determines whether the subscription requires explicit approval before billing starts. Set toMANUALto require a separateApprovePaidSubscriptioncall, orIMMEDIATEto activate the subscription right away. Defaults toIMMEDIATEif not specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
approvalMode
Determines whether the subscription requires explicit approval before billing starts. Set to
MANUALto require a separateApprovePaidSubscriptioncall, orIMMEDIATEto activate the subscription right away. Defaults toIMMEDIATEif not specified.- Parameters:
approvalMode- Determines whether the subscription requires explicit approval before billing starts. Set toMANUALto require a separateApprovePaidSubscriptioncall, orIMMEDIATEto activate the subscription right away. Defaults toIMMEDIATEif not specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A unique, case-sensitive identifier that you provide to ensure that the request is handled only once. If you send the same request with the same client token, the API returns the original response without creating a duplicate subscription.
- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure that the request is handled only once. If you send the same request with the same client token, the API returns the original response without creating a duplicate subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateSubscriptionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateSubscriptionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-