Class CreateExportTaskRequest

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

public class CreateExportTaskRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
See Also:
  • Constructor Details

    • CreateExportTaskRequest

      public CreateExportTaskRequest()
  • Method Details

    • setTaskName

      public void setTaskName(String taskName)

      The name of the export task.

      Parameters:
      taskName - The name of the export task.
    • getTaskName

      public String getTaskName()

      The name of the export task.

      Returns:
      The name of the export task.
    • withTaskName

      public CreateExportTaskRequest withTaskName(String taskName)

      The name of the export task.

      Parameters:
      taskName - The name of the export task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setLogGroupName

      public void setLogGroupName(String logGroupName)

      The name of the log group to export.

      Parameters:
      logGroupName - The name of the log group to export.
    • getLogGroupName

      public String getLogGroupName()

      The name of the log group to export.

      Returns:
      The name of the log group to export.
    • withLogGroupName

      public CreateExportTaskRequest withLogGroupName(String logGroupName)

      The name of the log group to export.

      Parameters:
      logGroupName - The name of the log group to export.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setLogStreamNamePrefix

      public void setLogStreamNamePrefix(String logStreamNamePrefix)

      Will only export log streams that match the provided logStreamNamePrefix. If you don't specify a value, no prefix filter is applied.

      Parameters:
      logStreamNamePrefix - Will only export log streams that match the provided logStreamNamePrefix. If you don't specify a value, no prefix filter is applied.
    • getLogStreamNamePrefix

      public String getLogStreamNamePrefix()

      Will only export log streams that match the provided logStreamNamePrefix. If you don't specify a value, no prefix filter is applied.

      Returns:
      Will only export log streams that match the provided logStreamNamePrefix. If you don't specify a value, no prefix filter is applied.
    • withLogStreamNamePrefix

      public CreateExportTaskRequest withLogStreamNamePrefix(String logStreamNamePrefix)

      Will only export log streams that match the provided logStreamNamePrefix. If you don't specify a value, no prefix filter is applied.

      Parameters:
      logStreamNamePrefix - Will only export log streams that match the provided logStreamNamePrefix. If you don't specify a value, no prefix filter is applied.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setFrom

      public void setFrom(Long from)

      A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. It indicates the start time of the range for the request. Events with a timestamp prior to this time will not be exported.

      Parameters:
      from - A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. It indicates the start time of the range for the request. Events with a timestamp prior to this time will not be exported.
    • getFrom

      public Long getFrom()

      A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. It indicates the start time of the range for the request. Events with a timestamp prior to this time will not be exported.

      Returns:
      A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. It indicates the start time of the range for the request. Events with a timestamp prior to this time will not be exported.
    • withFrom

      public CreateExportTaskRequest withFrom(Long from)

      A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. It indicates the start time of the range for the request. Events with a timestamp prior to this time will not be exported.

      Parameters:
      from - A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. It indicates the start time of the range for the request. Events with a timestamp prior to this time will not be exported.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setTo

      public void setTo(Long to)

      A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. It indicates the end time of the range for the request. Events with a timestamp later than this time will not be exported.

      Parameters:
      to - A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. It indicates the end time of the range for the request. Events with a timestamp later than this time will not be exported.
    • getTo

      public Long getTo()

      A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. It indicates the end time of the range for the request. Events with a timestamp later than this time will not be exported.

      Returns:
      A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. It indicates the end time of the range for the request. Events with a timestamp later than this time will not be exported.
    • withTo

      public CreateExportTaskRequest withTo(Long to)

      A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. It indicates the end time of the range for the request. Events with a timestamp later than this time will not be exported.

      Parameters:
      to - A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. It indicates the end time of the range for the request. Events with a timestamp later than this time will not be exported.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setDestination

      public void setDestination(String destination)

      Name of Amazon S3 bucket to which the log data will be exported.

      Note: Only buckets in the same AWS region are supported.

      Parameters:
      destination - Name of Amazon S3 bucket to which the log data will be exported.

      Note: Only buckets in the same AWS region are supported.

    • getDestination

      public String getDestination()

      Name of Amazon S3 bucket to which the log data will be exported.

      Note: Only buckets in the same AWS region are supported.

      Returns:
      Name of Amazon S3 bucket to which the log data will be exported.

      Note: Only buckets in the same AWS region are supported.

    • withDestination

      public CreateExportTaskRequest withDestination(String destination)

      Name of Amazon S3 bucket to which the log data will be exported.

      Note: Only buckets in the same AWS region are supported.

      Parameters:
      destination - Name of Amazon S3 bucket to which the log data will be exported.

      Note: Only buckets in the same AWS region are supported.

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

      public void setDestinationPrefix(String destinationPrefix)

      Prefix that will be used as the start of Amazon S3 key for every object exported. If not specified, this defaults to 'exportedlogs'.

      Parameters:
      destinationPrefix - Prefix that will be used as the start of Amazon S3 key for every object exported. If not specified, this defaults to 'exportedlogs'.
    • getDestinationPrefix

      public String getDestinationPrefix()

      Prefix that will be used as the start of Amazon S3 key for every object exported. If not specified, this defaults to 'exportedlogs'.

      Returns:
      Prefix that will be used as the start of Amazon S3 key for every object exported. If not specified, this defaults to 'exportedlogs'.
    • withDestinationPrefix

      public CreateExportTaskRequest withDestinationPrefix(String destinationPrefix)

      Prefix that will be used as the start of Amazon S3 key for every object exported. If not specified, this defaults to 'exportedlogs'.

      Parameters:
      destinationPrefix - Prefix that will be used as the start of Amazon S3 key for every object exported. If not specified, this defaults to 'exportedlogs'.
      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 CreateExportTaskRequest 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: