Interface LogStream.Builder

All Superinterfaces:
Buildable, CopyableBuilder<LogStream.Builder,LogStream>, SdkBuilder<LogStream.Builder,LogStream>, SdkPojo
Enclosing class:
LogStream

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

    • logStreamName

      LogStream.Builder logStreamName(String logStreamName)

      The name of the log stream.

      Parameters:
      logStreamName - The name of the log stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • creationTime

      LogStream.Builder creationTime(Long creationTime)

      The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

      Parameters:
      creationTime - The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • firstEventTimestamp

      LogStream.Builder firstEventTimestamp(Long firstEventTimestamp)

      The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

      Parameters:
      firstEventTimestamp - The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastEventTimestamp

      LogStream.Builder lastEventTimestamp(Long lastEventTimestamp)

      The time of the most recent log event in the log stream in CloudWatch Logs. This number is expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. The lastEventTime value updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but in rare situations might take longer.

      Parameters:
      lastEventTimestamp - The time of the most recent log event in the log stream in CloudWatch Logs. This number is expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. The lastEventTime value updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but in rare situations might take longer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastIngestionTime

      LogStream.Builder lastIngestionTime(Long lastIngestionTime)

      The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC The lastIngestionTime value updates on an eventual consistency basis. It typically updates in less than an hour after ingestion, but in rare situations might take longer.

      Parameters:
      lastIngestionTime - The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC The lastIngestionTime value updates on an eventual consistency basis. It typically updates in less than an hour after ingestion, but in rare situations might take longer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • uploadSequenceToken

      LogStream.Builder uploadSequenceToken(String uploadSequenceToken)

      The sequence token.

      The sequence token is now ignored in PutLogEvents actions. PutLogEvents actions are always accepted regardless of receiving an invalid sequence token. You don't need to obtain uploadSequenceToken to use a PutLogEvents action.

      Parameters:
      uploadSequenceToken - The sequence token.

      The sequence token is now ignored in PutLogEvents actions. PutLogEvents actions are always accepted regardless of receiving an invalid sequence token. You don't need to obtain uploadSequenceToken to use a PutLogEvents action.

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

      The Amazon Resource Name (ARN) of the log stream.

      Parameters:
      arn - The Amazon Resource Name (ARN) of the log stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • storedBytes

      @Deprecated LogStream.Builder storedBytes(Long storedBytes)
      Deprecated.
      Starting on June 17, 2019, this parameter will be deprecated for log streams, and will be reported as zero. This change applies only to log streams. The storedBytes parameter for log groups is not affected.

      The number of bytes stored.

      Important: As of June 17, 2019, this parameter is no longer supported for log streams, and is always reported as zero. This change applies only to log streams. The storedBytes parameter for log groups is not affected.

      Parameters:
      storedBytes - The number of bytes stored.

      Important: As of June 17, 2019, this parameter is no longer supported for log streams, and is always reported as zero. This change applies only to log streams. The storedBytes parameter for log groups is not affected.

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