Interface ListObjectsResponse.Builder

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

public static interface ListObjectsResponse.Builder extends S3Response.Builder, SdkPojo, CopyableBuilder<ListObjectsResponse.Builder,ListObjectsResponse>
  • Method Details

    • isTruncated

      ListObjectsResponse.Builder isTruncated(Boolean isTruncated)

      A flag that indicates whether Amazon S3 returned all of the results that satisfied the search criteria.

      Parameters:
      isTruncated - A flag that indicates whether Amazon S3 returned all of the results that satisfied the search criteria.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • marker

      Indicates where in the bucket listing begins. Marker is included in the response if it was sent with the request.

      Parameters:
      marker - Indicates where in the bucket listing begins. Marker is included in the response if it was sent with the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nextMarker

      ListObjectsResponse.Builder nextMarker(String nextMarker)

      When the response is truncated (the IsTruncated element value in the response is true), you can use the key name in this field as the marker parameter in the subsequent request to get the next set of objects. Amazon S3 lists objects in alphabetical order.

      This element is returned only if you have the delimiter request parameter specified. If the response does not include the NextMarker element and it is truncated, you can use the value of the last Key element in the response as the marker parameter in the subsequent request to get the next set of object keys.

      Parameters:
      nextMarker - When the response is truncated (the IsTruncated element value in the response is true), you can use the key name in this field as the marker parameter in the subsequent request to get the next set of objects. Amazon S3 lists objects in alphabetical order.

      This element is returned only if you have the delimiter request parameter specified. If the response does not include the NextMarker element and it is truncated, you can use the value of the last Key element in the response as the marker parameter in the subsequent request to get the next set of object keys.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contents

      Metadata about each object returned.

      Parameters:
      contents - Metadata about each object returned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contents

      ListObjectsResponse.Builder contents(S3Object... contents)

      Metadata about each object returned.

      Parameters:
      contents - Metadata about each object returned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contents

      Metadata about each object returned.

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

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

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

      The bucket name.

      Parameters:
      name - The bucket name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • prefix

      Keys that begin with the indicated prefix.

      Parameters:
      prefix - Keys that begin with the indicated prefix.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • delimiter

      ListObjectsResponse.Builder delimiter(String delimiter)

      Causes keys that contain the same string between the prefix and the first occurrence of the delimiter to be rolled up into a single result element in the CommonPrefixes collection. These rolled-up keys are not returned elsewhere in the response. Each rolled-up result counts as only one return against the MaxKeys value.

      Parameters:
      delimiter - Causes keys that contain the same string between the prefix and the first occurrence of the delimiter to be rolled up into a single result element in the CommonPrefixes collection. These rolled-up keys are not returned elsewhere in the response. Each rolled-up result counts as only one return against the MaxKeys value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxKeys

      The maximum number of keys returned in the response body.

      Parameters:
      maxKeys - The maximum number of keys returned in the response body.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • commonPrefixes

      ListObjectsResponse.Builder commonPrefixes(Collection<CommonPrefix> commonPrefixes)

      All of the keys (up to 1,000) rolled up in a common prefix count as a single return when calculating the number of returns.

      A response can contain CommonPrefixes only if you specify a delimiter.

      CommonPrefixes contains all (if there are any) keys between Prefix and the next occurrence of the string specified by the delimiter.

      CommonPrefixes lists keys that act like subdirectories in the directory specified by Prefix.

      For example, if the prefix is notes/ and the delimiter is a slash (/), as in notes/summer/july, the common prefix is notes/summer/. All of the keys that roll up into a common prefix count as a single return when calculating the number of returns.

      Parameters:
      commonPrefixes - All of the keys (up to 1,000) rolled up in a common prefix count as a single return when calculating the number of returns.

      A response can contain CommonPrefixes only if you specify a delimiter.

      CommonPrefixes contains all (if there are any) keys between Prefix and the next occurrence of the string specified by the delimiter.

      CommonPrefixes lists keys that act like subdirectories in the directory specified by Prefix.

      For example, if the prefix is notes/ and the delimiter is a slash (/), as in notes/summer/july, the common prefix is notes/summer/. All of the keys that roll up into a common prefix count as a single return when calculating the number of returns.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • commonPrefixes

      ListObjectsResponse.Builder commonPrefixes(CommonPrefix... commonPrefixes)

      All of the keys (up to 1,000) rolled up in a common prefix count as a single return when calculating the number of returns.

      A response can contain CommonPrefixes only if you specify a delimiter.

      CommonPrefixes contains all (if there are any) keys between Prefix and the next occurrence of the string specified by the delimiter.

      CommonPrefixes lists keys that act like subdirectories in the directory specified by Prefix.

      For example, if the prefix is notes/ and the delimiter is a slash (/), as in notes/summer/july, the common prefix is notes/summer/. All of the keys that roll up into a common prefix count as a single return when calculating the number of returns.

      Parameters:
      commonPrefixes - All of the keys (up to 1,000) rolled up in a common prefix count as a single return when calculating the number of returns.

      A response can contain CommonPrefixes only if you specify a delimiter.

      CommonPrefixes contains all (if there are any) keys between Prefix and the next occurrence of the string specified by the delimiter.

      CommonPrefixes lists keys that act like subdirectories in the directory specified by Prefix.

      For example, if the prefix is notes/ and the delimiter is a slash (/), as in notes/summer/july, the common prefix is notes/summer/. All of the keys that roll up into a common prefix count as a single return when calculating the number of returns.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • commonPrefixes

      ListObjectsResponse.Builder commonPrefixes(Consumer<CommonPrefix.Builder>... commonPrefixes)

      All of the keys (up to 1,000) rolled up in a common prefix count as a single return when calculating the number of returns.

      A response can contain CommonPrefixes only if you specify a delimiter.

      CommonPrefixes contains all (if there are any) keys between Prefix and the next occurrence of the string specified by the delimiter.

      CommonPrefixes lists keys that act like subdirectories in the directory specified by Prefix.

      For example, if the prefix is notes/ and the delimiter is a slash (/), as in notes/summer/july, the common prefix is notes/summer/. All of the keys that roll up into a common prefix count as a single return when calculating the number of returns.

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

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

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

      ListObjectsResponse.Builder encodingType(String encodingType)

      Encoding type used by Amazon S3 to encode object keys in the response. If using url, non-ASCII characters used in an object's key name will be URL encoded. For example, the object test_file(3).png will appear as test_file%283%29.png.

      Parameters:
      encodingType - Encoding type used by Amazon S3 to encode object keys in the response. If using url, non-ASCII characters used in an object's key name will be URL encoded. For example, the object test_file(3).png will appear as test_file%283%29.png.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • encodingType

      ListObjectsResponse.Builder encodingType(EncodingType encodingType)

      Encoding type used by Amazon S3 to encode object keys in the response. If using url, non-ASCII characters used in an object's key name will be URL encoded. For example, the object test_file(3).png will appear as test_file%283%29.png.

      Parameters:
      encodingType - Encoding type used by Amazon S3 to encode object keys in the response. If using url, non-ASCII characters used in an object's key name will be URL encoded. For example, the object test_file(3).png will appear as test_file%283%29.png.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • requestCharged

      ListObjectsResponse.Builder requestCharged(String requestCharged)
      Sets the value of the RequestCharged property for this object.
      Parameters:
      requestCharged - The new value for the RequestCharged property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • requestCharged

      ListObjectsResponse.Builder requestCharged(RequestCharged requestCharged)
      Sets the value of the RequestCharged property for this object.
      Parameters:
      requestCharged - The new value for the RequestCharged property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: