public class S3TaskArgs extends Object
Result of arguments will be as a S3 GET command.
Format is the following:
"-URL url of S3 service
-accessKey access Key for S3 service
-secretKey secret Key for S3 service
-bucketName bucket Name where to retrieve the object
-sourceName source Name from the bucket to select the final Object
-file final File path (absolute or relative from IN path)
[-getTags [* or list of tag names comma separated without space]]"
-targetName source Name from the bucket to select the final Object
[-setTags 'name:value,...' without space]"
Modifier and Type | Field and Description |
---|---|
static String |
ARG_ACCESS_KEY |
static String |
ARG_BUCKET_NAME |
static String |
ARG_FILE |
static String |
ARG_GET_TAGS |
static String |
ARG_SECRET_KEY |
static String |
ARG_SET_TAGS |
static String |
ARG_SOURCE_NAME |
static String |
ARG_TARGET_NAME |
static String |
ARG_URL |
protected static String |
EMPTY_STRING_NOT_ALLOWED |
Constructor and Description |
---|
S3TaskArgs(S3TaskFactory.S3TaskType type,
URL url,
String accessKey,
String secretKey,
String bucketName,
String sourceName,
String targetName,
File file,
Set<String> getTags,
Map<String,String> setTags) |
Modifier and Type | Method and Description |
---|---|
String |
getAccessKey() |
String |
getBucketName() |
File |
getFile() |
boolean |
getGetTag() |
Set<String> |
getGetTags() |
static S3TaskArgs |
getS3Params(S3TaskFactory.S3TaskType type,
int rank,
String[] args) |
String |
getSecretKey() |
Map<String,String> |
getSetTags() |
String |
getSourceName() |
String |
getTargetName() |
URL |
getUrl() |
static void |
printHelp(S3TaskFactory.S3TaskType type,
org.apache.commons.cli.Options options)
Print to standard output the help of this command
|
public static final String ARG_URL
public static final String ARG_ACCESS_KEY
public static final String ARG_SECRET_KEY
public static final String ARG_BUCKET_NAME
public static final String ARG_SOURCE_NAME
public static final String ARG_TARGET_NAME
public static final String ARG_FILE
public static final String ARG_GET_TAGS
public static final String ARG_SET_TAGS
protected static final String EMPTY_STRING_NOT_ALLOWED
public static void printHelp(S3TaskFactory.S3TaskType type, org.apache.commons.cli.Options options)
public static S3TaskArgs getS3Params(S3TaskFactory.S3TaskType type, int rank, String[] args)
public final URL getUrl()
public final String getAccessKey()
public final String getSecretKey()
public final String getBucketName()
public final String getSourceName()
public final String getTargetName()
public final File getFile()
public final boolean getGetTag()
Copyright © 2009–2022 Waarp. All rights reserved.