@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3InputFileLocation extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the customer input Amazon S3 file location. If it is used inside
copyStepDetails.DestinationFileLocation
, it should be the S3 copy destination.
You need to provide the bucket and key. The key can represent either a path or a file. This is determined by whether or not you end the key value with the forward slash (/) character. If the final character is "/", then your file is copied to the folder, and its name does not change. If, rather, the final character is alphanumeric, your uploaded file is renamed to the path value. In this case, if a file with that name already exists, it is overwritten.
For example, if your path is shared-files/bob/
, your uploaded files are copied to the
shared-files/bob/
, folder. If your path is shared-files/today
, each uploaded file is copied
to the shared-files
folder and named today
: each upload overwrites the previous version of
the bob file.
Constructor and Description |
---|
S3InputFileLocation() |
Modifier and Type | Method and Description |
---|---|
S3InputFileLocation |
clone() |
boolean |
equals(Object obj) |
String |
getBucket()
Specifies the S3 bucket for the customer input file.
|
String |
getKey()
The name assigned to the file when it was created in Amazon S3.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBucket(String bucket)
Specifies the S3 bucket for the customer input file.
|
void |
setKey(String key)
The name assigned to the file when it was created in Amazon S3.
|
String |
toString()
Returns a string representation of this object.
|
S3InputFileLocation |
withBucket(String bucket)
Specifies the S3 bucket for the customer input file.
|
S3InputFileLocation |
withKey(String key)
The name assigned to the file when it was created in Amazon S3.
|
public void setBucket(String bucket)
Specifies the S3 bucket for the customer input file.
bucket
- Specifies the S3 bucket for the customer input file.public String getBucket()
Specifies the S3 bucket for the customer input file.
public S3InputFileLocation withBucket(String bucket)
Specifies the S3 bucket for the customer input file.
bucket
- Specifies the S3 bucket for the customer input file.public void setKey(String key)
The name assigned to the file when it was created in Amazon S3. You use the object key to retrieve the object.
key
- The name assigned to the file when it was created in Amazon S3. You use the object key to retrieve the
object.public String getKey()
The name assigned to the file when it was created in Amazon S3. You use the object key to retrieve the object.
public S3InputFileLocation withKey(String key)
The name assigned to the file when it was created in Amazon S3. You use the object key to retrieve the object.
key
- The name assigned to the file when it was created in Amazon S3. You use the object key to retrieve the
object.public String toString()
toString
in class Object
Object.toString()
public S3InputFileLocation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.