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 CreateExportTaskRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetDestination()Name of Amazon S3 bucket to which the log data will be exported.StringgetDestinationPrefix()Prefix that will be used as the start of Amazon S3 key for every object exported.LonggetFrom()A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.StringgetLogGroupName()The name of the log group to export.StringgetLogStreamNamePrefix()Will only export log streams that match the provided logStreamNamePrefix.StringgetTaskName()The name of the export task.LonggetTo()A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.inthashCode()voidsetDestination(String destination)Name of Amazon S3 bucket to which the log data will be exported.voidsetDestinationPrefix(String destinationPrefix)Prefix that will be used as the start of Amazon S3 key for every object exported.voidsetFrom(Long from)A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.voidsetLogGroupName(String logGroupName)The name of the log group to export.voidsetLogStreamNamePrefix(String logStreamNamePrefix)Will only export log streams that match the provided logStreamNamePrefix.voidsetTaskName(String taskName)The name of the export task.voidsetTo(Long to)A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateExportTaskRequestwithDestination(String destination)Name of Amazon S3 bucket to which the log data will be exported.CreateExportTaskRequestwithDestinationPrefix(String destinationPrefix)Prefix that will be used as the start of Amazon S3 key for every object exported.CreateExportTaskRequestwithFrom(Long from)A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.CreateExportTaskRequestwithLogGroupName(String logGroupName)The name of the log group to export.CreateExportTaskRequestwithLogStreamNamePrefix(String logStreamNamePrefix)Will only export log streams that match the provided logStreamNamePrefix.CreateExportTaskRequestwithTaskName(String taskName)The name of the export task.CreateExportTaskRequestwithTo(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateExportTaskRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-