Interface AllowedMethods.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<AllowedMethods.Builder,AllowedMethods>
,SdkBuilder<AllowedMethods.Builder,AllowedMethods>
,SdkPojo
- Enclosing class:
- AllowedMethods
public static interface AllowedMethods.Builder extends SdkPojo, CopyableBuilder<AllowedMethods.Builder,AllowedMethods>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AllowedMethods.Builder
cachedMethods(Consumer<CachedMethods.Builder> cachedMethods)
Sets the value of the CachedMethods property for this object.AllowedMethods.Builder
cachedMethods(CachedMethods cachedMethods)
Sets the value of the CachedMethods property for this object.AllowedMethods.Builder
items(Collection<Method> items)
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.AllowedMethods.Builder
items(Method... items)
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.AllowedMethods.Builder
itemsWithStrings(String... items)
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.AllowedMethods.Builder
itemsWithStrings(Collection<String> items)
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.AllowedMethods.Builder
quantity(Integer quantity)
The number of HTTP methods that you want CloudFront to forward to your origin.-
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 Detail
-
quantity
AllowedMethods.Builder quantity(Integer quantity)
The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for
GET
andHEAD
requests), 3 (forGET
,HEAD
, andOPTIONS
requests) and 7 (forGET, HEAD, OPTIONS, PUT, PATCH, POST
, andDELETE
requests).- Parameters:
quantity
- The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (forGET
andHEAD
requests), 3 (forGET
,HEAD
, andOPTIONS
requests) and 7 (forGET, HEAD, OPTIONS, PUT, PATCH, POST
, andDELETE
requests).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
itemsWithStrings
AllowedMethods.Builder itemsWithStrings(Collection<String> items)
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
- Parameters:
items
- A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
itemsWithStrings
AllowedMethods.Builder itemsWithStrings(String... items)
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
- Parameters:
items
- A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
AllowedMethods.Builder items(Collection<Method> items)
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
- Parameters:
items
- A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
AllowedMethods.Builder items(Method... items)
A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
- Parameters:
items
- A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cachedMethods
AllowedMethods.Builder cachedMethods(CachedMethods cachedMethods)
Sets the value of the CachedMethods property for this object.- Parameters:
cachedMethods
- The new value for the CachedMethods property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cachedMethods
default AllowedMethods.Builder cachedMethods(Consumer<CachedMethods.Builder> cachedMethods)
Sets the value of the CachedMethods property for this object. This is a convenience method that creates an instance of theCachedMethods.Builder
avoiding the need to create one manually viaCachedMethods.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocachedMethods(CachedMethods)
.- Parameters:
cachedMethods
- a consumer that will call methods onCachedMethods.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
cachedMethods(CachedMethods)
-
-