Class PutRecordsRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.kinesis.model.PutRecordsRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class PutRecordsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable

A PutRecords request.

See Also:
  • Constructor Details

    • PutRecordsRequest

      public PutRecordsRequest()
  • Method Details

    • getRecords

      public List<PutRecordsRequestEntry> getRecords()

      The records associated with the request.

      Returns:
      The records associated with the request.
    • setRecords

      public void setRecords(Collection<PutRecordsRequestEntry> records)

      The records associated with the request.

      Parameters:
      records - The records associated with the request.
    • withRecords

      public PutRecordsRequest withRecords(PutRecordsRequestEntry... records)

      The records associated with the request.

      NOTE: This method appends the values to the existing list (if any). Use setRecords(java.util.Collection) or withRecords(java.util.Collection) if you want to override the existing values.

      Parameters:
      records - The records associated with the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withRecords

      public PutRecordsRequest withRecords(Collection<PutRecordsRequestEntry> records)

      The records associated with the request.

      Parameters:
      records - The records associated with the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setStreamName

      public void setStreamName(String streamName)

      The stream name associated with the request.

      Parameters:
      streamName - The stream name associated with the request.
    • getStreamName

      public String getStreamName()

      The stream name associated with the request.

      Returns:
      The stream name associated with the request.
    • withStreamName

      public PutRecordsRequest withStreamName(String streamName)

      The stream name associated with the request.

      Parameters:
      streamName - The stream name associated with the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public PutRecordsRequest clone()
      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: