Interface OriginGroup.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<OriginGroup.Builder,
,OriginGroup> SdkBuilder<OriginGroup.Builder,
,OriginGroup> SdkPojo
- Enclosing class:
OriginGroup
-
Method Summary
Modifier and TypeMethodDescriptiondefault OriginGroup.Builder
failoverCriteria
(Consumer<OriginGroupFailoverCriteria.Builder> failoverCriteria) A complex type that contains information about the failover criteria for an origin group.failoverCriteria
(OriginGroupFailoverCriteria failoverCriteria) A complex type that contains information about the failover criteria for an origin group.The origin group's ID.default OriginGroup.Builder
members
(Consumer<OriginGroupMembers.Builder> members) A complex type that contains information about the origins in an origin group.members
(OriginGroupMembers members) A complex type that contains information about the origins in an origin group.selectionCriteria
(String selectionCriteria) The selection criteria for the origin group.selectionCriteria
(OriginGroupSelectionCriteria selectionCriteria) The selection criteria for the origin group.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, sdkFieldNameToField, sdkFields
-
Method Details
-
id
The origin group's ID.
- Parameters:
id
- The origin group's ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failoverCriteria
A complex type that contains information about the failover criteria for an origin group.
- Parameters:
failoverCriteria
- A complex type that contains information about the failover criteria for an origin group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failoverCriteria
default OriginGroup.Builder failoverCriteria(Consumer<OriginGroupFailoverCriteria.Builder> failoverCriteria) A complex type that contains information about the failover criteria for an origin group.
This is a convenience method that creates an instance of theOriginGroupFailoverCriteria.Builder
avoiding the need to create one manually viaOriginGroupFailoverCriteria.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofailoverCriteria(OriginGroupFailoverCriteria)
.- Parameters:
failoverCriteria
- a consumer that will call methods onOriginGroupFailoverCriteria.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
members
A complex type that contains information about the origins in an origin group.
- Parameters:
members
- A complex type that contains information about the origins in an origin group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
members
A complex type that contains information about the origins in an origin group.
This is a convenience method that creates an instance of theOriginGroupMembers.Builder
avoiding the need to create one manually viaOriginGroupMembers.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomembers(OriginGroupMembers)
.- Parameters:
members
- a consumer that will call methods onOriginGroupMembers.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
selectionCriteria
The selection criteria for the origin group. For more information, see Create an origin group in the Amazon CloudFront Developer Guide.
- Parameters:
selectionCriteria
- The selection criteria for the origin group. For more information, see Create an origin group in the Amazon CloudFront Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
selectionCriteria
The selection criteria for the origin group. For more information, see Create an origin group in the Amazon CloudFront Developer Guide.
- Parameters:
selectionCriteria
- The selection criteria for the origin group. For more information, see Create an origin group in the Amazon CloudFront Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-