@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DataSource extends Object implements Serializable, Cloneable, StructuredPojo
Information about a data source.
Constructor and Description |
---|
DataSource() |
Modifier and Type | Method and Description |
---|---|
DataSource |
clone() |
boolean |
equals(Object obj) |
String |
getDestination()
The location where your files are mounted in the container image.
|
String |
getName()
The name of the data source.
|
String |
getS3Bucket()
The S3 bucket where the data files are located.
|
List<S3KeyOutput> |
getS3Keys()
The list of S3 keys identifying the data source files.
|
String |
getType()
The data type for the data source that you're using for your container image or simulation job.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDestination(String destination)
The location where your files are mounted in the container image.
|
void |
setName(String name)
The name of the data source.
|
void |
setS3Bucket(String s3Bucket)
The S3 bucket where the data files are located.
|
void |
setS3Keys(Collection<S3KeyOutput> s3Keys)
The list of S3 keys identifying the data source files.
|
void |
setType(String type)
The data type for the data source that you're using for your container image or simulation job.
|
String |
toString()
Returns a string representation of this object.
|
DataSource |
withDestination(String destination)
The location where your files are mounted in the container image.
|
DataSource |
withName(String name)
The name of the data source.
|
DataSource |
withS3Bucket(String s3Bucket)
The S3 bucket where the data files are located.
|
DataSource |
withS3Keys(Collection<S3KeyOutput> s3Keys)
The list of S3 keys identifying the data source files.
|
DataSource |
withS3Keys(S3KeyOutput... s3Keys)
The list of S3 keys identifying the data source files.
|
DataSource |
withType(DataSourceType type)
The data type for the data source that you're using for your container image or simulation job.
|
DataSource |
withType(String type)
The data type for the data source that you're using for your container image or simulation job.
|
public void setName(String name)
The name of the data source.
name
- The name of the data source.public String getName()
The name of the data source.
public DataSource withName(String name)
The name of the data source.
name
- The name of the data source.public void setS3Bucket(String s3Bucket)
The S3 bucket where the data files are located.
s3Bucket
- The S3 bucket where the data files are located.public String getS3Bucket()
The S3 bucket where the data files are located.
public DataSource withS3Bucket(String s3Bucket)
The S3 bucket where the data files are located.
s3Bucket
- The S3 bucket where the data files are located.public List<S3KeyOutput> getS3Keys()
The list of S3 keys identifying the data source files.
public void setS3Keys(Collection<S3KeyOutput> s3Keys)
The list of S3 keys identifying the data source files.
s3Keys
- The list of S3 keys identifying the data source files.public DataSource withS3Keys(S3KeyOutput... s3Keys)
The list of S3 keys identifying the data source files.
NOTE: This method appends the values to the existing list (if any). Use
setS3Keys(java.util.Collection)
or withS3Keys(java.util.Collection)
if you want to override the
existing values.
s3Keys
- The list of S3 keys identifying the data source files.public DataSource withS3Keys(Collection<S3KeyOutput> s3Keys)
The list of S3 keys identifying the data source files.
s3Keys
- The list of S3 keys identifying the data source files.public void setType(String type)
The data type for the data source that you're using for your container image or simulation job. You can use this field to specify whether your data source is an Archive, an Amazon S3 prefix, or a file.
If you don't specify a field, the default value is File
.
type
- The data type for the data source that you're using for your container image or simulation job. You can
use this field to specify whether your data source is an Archive, an Amazon S3 prefix, or a file.
If you don't specify a field, the default value is File
.
DataSourceType
public String getType()
The data type for the data source that you're using for your container image or simulation job. You can use this field to specify whether your data source is an Archive, an Amazon S3 prefix, or a file.
If you don't specify a field, the default value is File
.
If you don't specify a field, the default value is File
.
DataSourceType
public DataSource withType(String type)
The data type for the data source that you're using for your container image or simulation job. You can use this field to specify whether your data source is an Archive, an Amazon S3 prefix, or a file.
If you don't specify a field, the default value is File
.
type
- The data type for the data source that you're using for your container image or simulation job. You can
use this field to specify whether your data source is an Archive, an Amazon S3 prefix, or a file.
If you don't specify a field, the default value is File
.
DataSourceType
public DataSource withType(DataSourceType type)
The data type for the data source that you're using for your container image or simulation job. You can use this field to specify whether your data source is an Archive, an Amazon S3 prefix, or a file.
If you don't specify a field, the default value is File
.
type
- The data type for the data source that you're using for your container image or simulation job. You can
use this field to specify whether your data source is an Archive, an Amazon S3 prefix, or a file.
If you don't specify a field, the default value is File
.
DataSourceType
public void setDestination(String destination)
The location where your files are mounted in the container image.
If you've specified the type
of the data source as an Archive
, you must provide an
Amazon S3 object key to your archive. The object key must point to either a .zip
or
.tar.gz
file.
If you've specified the type
of the data source as a Prefix
, you provide the Amazon S3
prefix that points to the files that you are using for your data source.
If you've specified the type
of the data source as a File
, you provide the Amazon S3
path to the file that you're using as your data source.
destination
- The location where your files are mounted in the container image.
If you've specified the type
of the data source as an Archive
, you must provide
an Amazon S3 object key to your archive. The object key must point to either a .zip
or
.tar.gz
file.
If you've specified the type
of the data source as a Prefix
, you provide the
Amazon S3 prefix that points to the files that you are using for your data source.
If you've specified the type
of the data source as a File
, you provide the
Amazon S3 path to the file that you're using as your data source.
public String getDestination()
The location where your files are mounted in the container image.
If you've specified the type
of the data source as an Archive
, you must provide an
Amazon S3 object key to your archive. The object key must point to either a .zip
or
.tar.gz
file.
If you've specified the type
of the data source as a Prefix
, you provide the Amazon S3
prefix that points to the files that you are using for your data source.
If you've specified the type
of the data source as a File
, you provide the Amazon S3
path to the file that you're using as your data source.
If you've specified the type
of the data source as an Archive
, you must provide
an Amazon S3 object key to your archive. The object key must point to either a .zip
or
.tar.gz
file.
If you've specified the type
of the data source as a Prefix
, you provide the
Amazon S3 prefix that points to the files that you are using for your data source.
If you've specified the type
of the data source as a File
, you provide the
Amazon S3 path to the file that you're using as your data source.
public DataSource withDestination(String destination)
The location where your files are mounted in the container image.
If you've specified the type
of the data source as an Archive
, you must provide an
Amazon S3 object key to your archive. The object key must point to either a .zip
or
.tar.gz
file.
If you've specified the type
of the data source as a Prefix
, you provide the Amazon S3
prefix that points to the files that you are using for your data source.
If you've specified the type
of the data source as a File
, you provide the Amazon S3
path to the file that you're using as your data source.
destination
- The location where your files are mounted in the container image.
If you've specified the type
of the data source as an Archive
, you must provide
an Amazon S3 object key to your archive. The object key must point to either a .zip
or
.tar.gz
file.
If you've specified the type
of the data source as a Prefix
, you provide the
Amazon S3 prefix that points to the files that you are using for your data source.
If you've specified the type
of the data source as a File
, you provide the
Amazon S3 path to the file that you're using as your data source.
public String toString()
toString
in class Object
Object.toString()
public DataSource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.