Interface ProtectionLimits.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ProtectionLimits.Builder,
,ProtectionLimits> SdkBuilder<ProtectionLimits.Builder,
,ProtectionLimits> SdkPojo
- Enclosing class:
ProtectionLimits
public static interface ProtectionLimits.Builder
extends SdkPojo, CopyableBuilder<ProtectionLimits.Builder,ProtectionLimits>
-
Method Summary
Modifier and TypeMethodDescriptionprotectedResourceTypeLimits
(Collection<Limit> protectedResourceTypeLimits) The maximum number of resource types that you can specify in a protection.protectedResourceTypeLimits
(Consumer<Limit.Builder>... protectedResourceTypeLimits) The maximum number of resource types that you can specify in a protection.protectedResourceTypeLimits
(Limit... protectedResourceTypeLimits) The maximum number of resource types that you can specify in a protection.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
protectedResourceTypeLimits
The maximum number of resource types that you can specify in a protection.
- Parameters:
protectedResourceTypeLimits
- The maximum number of resource types that you can specify in a protection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protectedResourceTypeLimits
The maximum number of resource types that you can specify in a protection.
- Parameters:
protectedResourceTypeLimits
- The maximum number of resource types that you can specify in a protection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protectedResourceTypeLimits
ProtectionLimits.Builder protectedResourceTypeLimits(Consumer<Limit.Builder>... protectedResourceTypeLimits) The maximum number of resource types that you can specify in a protection.
This is a convenience method that creates an instance of theLimit.Builder
avoiding the need to create one manually viaLimit.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprotectedResourceTypeLimits(List<Limit>)
.- Parameters:
protectedResourceTypeLimits
- a consumer that will call methods onLimit.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-