public static interface DataRetrievalPolicy.Builder extends SdkPojo, CopyableBuilder<DataRetrievalPolicy.Builder,DataRetrievalPolicy>
| Modifier and Type | Method and Description |
|---|---|
DataRetrievalPolicy.Builder |
rules(Collection<DataRetrievalRule> rules)
The policy rule.
|
DataRetrievalPolicy.Builder |
rules(Consumer<DataRetrievalRule.Builder>... rules)
The policy rule.
|
DataRetrievalPolicy.Builder |
rules(DataRetrievalRule... rules)
The policy rule.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildDataRetrievalPolicy.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.
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.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.
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.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.Builder avoiding the need to create
one manually via DataRetrievalRule.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #rules(List.
rules - a consumer that will call methods on
DataRetrievalRule.Builder#rules(java.util.Collection) Copyright © 2023. All rights reserved.