Interface DataRetrievalPolicy.Builder

  • 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 the DataRetrievalRule.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<DataRetrievalRule>).

      Parameters:
      rules - a consumer that will call methods on DataRetrievalRule.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: