Interface ListLegalHoldsResponse.Builder

All Superinterfaces:
AwsResponse.Builder, BackupResponse.Builder, Buildable, CopyableBuilder<ListLegalHoldsResponse.Builder,ListLegalHoldsResponse>, SdkBuilder<ListLegalHoldsResponse.Builder,ListLegalHoldsResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
ListLegalHoldsResponse

public static interface ListLegalHoldsResponse.Builder extends BackupResponse.Builder, SdkPojo, CopyableBuilder<ListLegalHoldsResponse.Builder,ListLegalHoldsResponse>
  • Method Details

    • nextToken

      ListLegalHoldsResponse.Builder nextToken(String nextToken)

      The next item following a partial list of returned resources. For example, if a request is made to return MaxResults number of resources, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

      Parameters:
      nextToken - The next item following a partial list of returned resources. For example, if a request is made to return MaxResults number of resources, NextToken allows you to return more items in your list starting at the location pointed to by the next token.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • legalHolds

      This is an array of returned legal holds, both active and previous.

      Parameters:
      legalHolds - This is an array of returned legal holds, both active and previous.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • legalHolds

      ListLegalHoldsResponse.Builder legalHolds(LegalHold... legalHolds)

      This is an array of returned legal holds, both active and previous.

      Parameters:
      legalHolds - This is an array of returned legal holds, both active and previous.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • legalHolds

      This is an array of returned legal holds, both active and previous.

      This is a convenience method that creates an instance of the LegalHold.Builder avoiding the need to create one manually via LegalHold.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to legalHolds(List<LegalHold>).

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