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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateExportTaskRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateExportTaskRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getDestination()
Name of Amazon S3 bucket to which the log data will be exported.String
getDestinationPrefix()
Prefix that will be used as the start of Amazon S3 key for every object exported.Long
getFrom()
A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.String
getLogGroupName()
The name of the log group to export.String
getLogStreamNamePrefix()
Will only export log streams that match the provided logStreamNamePrefix.String
getTaskName()
The name of the export task.Long
getTo()
A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.int
hashCode()
void
setDestination(String destination)
Name of Amazon S3 bucket to which the log data will be exported.void
setDestinationPrefix(String destinationPrefix)
Prefix that will be used as the start of Amazon S3 key for every object exported.void
setFrom(Long from)
A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.void
setLogGroupName(String logGroupName)
The name of the log group to export.void
setLogStreamNamePrefix(String logStreamNamePrefix)
Will only export log streams that match the provided logStreamNamePrefix.void
setTaskName(String taskName)
The name of the export task.void
setTo(Long to)
A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.String
toString()
Returns a string representation of this object; useful for testing and debugging.CreateExportTaskRequest
withDestination(String destination)
Name of Amazon S3 bucket to which the log data will be exported.CreateExportTaskRequest
withDestinationPrefix(String destinationPrefix)
Prefix that will be used as the start of Amazon S3 key for every object exported.CreateExportTaskRequest
withFrom(Long from)
A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.CreateExportTaskRequest
withLogGroupName(String logGroupName)
The name of the log group to export.CreateExportTaskRequest
withLogStreamNamePrefix(String logStreamNamePrefix)
Will only export log streams that match the provided logStreamNamePrefix.CreateExportTaskRequest
withTaskName(String taskName)
The name of the export task.CreateExportTaskRequest
withTo(Long to)
A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
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 classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-