Interface DataRetrievalPolicy.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<DataRetrievalPolicy.Builder,DataRetrievalPolicy>,SdkBuilder<DataRetrievalPolicy.Builder,DataRetrievalPolicy>,SdkPojo
- Enclosing class:
- DataRetrievalPolicy
public static interface DataRetrievalPolicy.Builder extends SdkPojo, CopyableBuilder<DataRetrievalPolicy.Builder,DataRetrievalPolicy>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataRetrievalPolicy.Builderrules(Collection<DataRetrievalRule> rules)The policy rule.DataRetrievalPolicy.Builderrules(Consumer<DataRetrievalRule.Builder>... rules)The policy rule.DataRetrievalPolicy.Builderrules(DataRetrievalRule... rules)The policy rule.-
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
-
rules
DataRetrievalPolicy.Builder rules(Collection<DataRetrievalRule> rules)
The policy rule. Although this is a list type, currently there must be only one rule, which contains a Strategy field and optionally a BytesPerHour field.
- Parameters:
rules- The policy rule. Although this is a list type, currently there must be only one rule, which contains a Strategy field and optionally a BytesPerHour field.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
DataRetrievalPolicy.Builder rules(DataRetrievalRule... rules)
The policy rule. Although this is a list type, currently there must be only one rule, which contains a Strategy field and optionally a BytesPerHour field.
- Parameters:
rules- The policy rule. Although this is a list type, currently there must be only one rule, which contains a Strategy field and optionally a BytesPerHour field.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
DataRetrievalPolicy.Builder rules(Consumer<DataRetrievalRule.Builder>... rules)
The policy rule. Although this is a list type, currently there must be only one rule, which contains a Strategy field and optionally a BytesPerHour field.
This is a convenience method that creates an instance of theDataRetrievalRule.Builderavoiding the need to create one manually viaDataRetrievalRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#rules(List.) - Parameters:
rules- a consumer that will call methods onDataRetrievalRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#rules(java.util.Collection)
-
-