Interface AwsCloudFrontDistributionCacheBehaviors.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AwsCloudFrontDistributionCacheBehaviors.Builder,,AwsCloudFrontDistributionCacheBehaviors> SdkBuilder<AwsCloudFrontDistributionCacheBehaviors.Builder,,AwsCloudFrontDistributionCacheBehaviors> SdkPojo
- Enclosing class:
AwsCloudFrontDistributionCacheBehaviors
public static interface AwsCloudFrontDistributionCacheBehaviors.Builder
extends SdkPojo, CopyableBuilder<AwsCloudFrontDistributionCacheBehaviors.Builder,AwsCloudFrontDistributionCacheBehaviors>
-
Method Summary
Modifier and TypeMethodDescriptionThe cache behaviors for the distribution.The cache behaviors for the distribution.items(AwsCloudFrontDistributionCacheBehavior... items) The cache behaviors for the distribution.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
items
AwsCloudFrontDistributionCacheBehaviors.Builder items(Collection<AwsCloudFrontDistributionCacheBehavior> items) The cache behaviors for the distribution.
- Parameters:
items- The cache behaviors for the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
AwsCloudFrontDistributionCacheBehaviors.Builder items(AwsCloudFrontDistributionCacheBehavior... items) The cache behaviors for the distribution.
- Parameters:
items- The cache behaviors for the distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
AwsCloudFrontDistributionCacheBehaviors.Builder items(Consumer<AwsCloudFrontDistributionCacheBehavior.Builder>... items) The cache behaviors for the distribution.
This is a convenience method that creates an instance of theAwsCloudFrontDistributionCacheBehavior.Builderavoiding the need to create one manually viaAwsCloudFrontDistributionCacheBehavior.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toitems(List<AwsCloudFrontDistributionCacheBehavior>).- Parameters:
items- a consumer that will call methods onAwsCloudFrontDistributionCacheBehavior.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-