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
Modifier and TypeMethodDescriptionrules
(Collection<DataRetrievalRule> rules) The policy rule.rules
(Consumer<DataRetrievalRule.Builder>... rules) The policy rule.rules
(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 Details
-
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
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
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.Builder
avoiding the need to create one manually viaDataRetrievalRule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torules(List<DataRetrievalRule>)
.- 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:
-