Interface DataSource.Builder

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

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

    • name

      The name of the data source.

      Parameters:
      name - The name of the data source.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • s3Bucket

      DataSource.Builder s3Bucket(String s3Bucket)

      The S3 bucket where the data files are located.

      Parameters:
      s3Bucket - The S3 bucket where the data files are located.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • s3Keys

      The list of S3 keys identifying the data source files.

      Parameters:
      s3Keys - The list of S3 keys identifying the data source files.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • s3Keys

      DataSource.Builder s3Keys(S3KeyOutput... s3Keys)

      The list of S3 keys identifying the data source files.

      Parameters:
      s3Keys - The list of S3 keys identifying the data source files.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • s3Keys

      The list of S3 keys identifying the data source files.

      This is a convenience method that creates an instance of the S3KeyOutput.Builder avoiding the need to create one manually via S3KeyOutput.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to s3Keys(List<S3KeyOutput>).

      Parameters:
      s3Keys - a consumer that will call methods on S3KeyOutput.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.

      Parameters:
      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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.

      Parameters:
      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.

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

      DataSource.Builder destination(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.

      Parameters:
      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.

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