Interface CreateResourceRecordSetProtectionsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateResourceRecordSetProtectionsRequest.Builder,,CreateResourceRecordSetProtectionsRequest> Route53Request.Builder,SdkBuilder<CreateResourceRecordSetProtectionsRequest.Builder,,CreateResourceRecordSetProtectionsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateResourceRecordSetProtectionsRequest
-
Method Summary
Modifier and TypeMethodDescriptionhostedZoneId(String hostedZoneId) The ID of the hosted zone that contains the resource record sets that you want to protect.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.protections(Collection<ResourceRecordSetProtectionConfig> protections) The protections to create.protections(Consumer<ResourceRecordSetProtectionConfig.Builder>... protections) The protections to create.protections(ResourceRecordSetProtectionConfig... protections) The protections to create.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.route53.model.Route53Request.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
-
hostedZoneId
The ID of the hosted zone that contains the resource record sets that you want to protect.
- Parameters:
hostedZoneId- The ID of the hosted zone that contains the resource record sets that you want to protect.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protections
CreateResourceRecordSetProtectionsRequest.Builder protections(Collection<ResourceRecordSetProtectionConfig> protections) The protections to create. Each entry specifies a resource record set name and type, and an optional comment. The list must contain at least one entry and can contain up to 100 entries. Each name and type can appear only once in the list.
- Parameters:
protections- The protections to create. Each entry specifies a resource record set name and type, and an optional comment. The list must contain at least one entry and can contain up to 100 entries. Each name and type can appear only once in the list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protections
CreateResourceRecordSetProtectionsRequest.Builder protections(ResourceRecordSetProtectionConfig... protections) The protections to create. Each entry specifies a resource record set name and type, and an optional comment. The list must contain at least one entry and can contain up to 100 entries. Each name and type can appear only once in the list.
- Parameters:
protections- The protections to create. Each entry specifies a resource record set name and type, and an optional comment. The list must contain at least one entry and can contain up to 100 entries. Each name and type can appear only once in the list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protections
CreateResourceRecordSetProtectionsRequest.Builder protections(Consumer<ResourceRecordSetProtectionConfig.Builder>... protections) The protections to create. Each entry specifies a resource record set name and type, and an optional comment. The list must contain at least one entry and can contain up to 100 entries. Each name and type can appear only once in the list.
This is a convenience method that creates an instance of theResourceRecordSetProtectionConfig.Builderavoiding the need to create one manually viaResourceRecordSetProtectionConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprotections(List<ResourceRecordSetProtectionConfig>).- Parameters:
protections- a consumer that will call methods onResourceRecordSetProtectionConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateResourceRecordSetProtectionsRequest.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
CreateResourceRecordSetProtectionsRequest.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.
-