public enum TransferState extends java.lang.Enum<TransferState>
Enum Constant and Description |
---|
CANCELED
This state represents a transfer that is canceled
|
COMPLETED
This state represents a transfer that is completed
|
FAILED
This state represents a transfer that has failed
|
IN_PROGRESS
This state represents a transfer that is currently uploading or
downloading data
|
PART_COMPLETED
This state represents a transfer that is a completed part of a multi-part
upload.
|
PAUSED
This state represents a transfer that is paused
|
PENDING_CANCEL
This state represents a transfer that has been requested to cancel, but
the service processing transfers has not yet fulfilled this request.
|
PENDING_NETWORK_DISCONNECT
This state represents a transfer that has been requested to pause by the
client because the network has been loss, but the service processing
transfers has not yet fulfilled this request.
|
PENDING_PAUSE
This state represents a transfer that has been requested to pause by the
client, but the service processing transfers has not yet fulfilled this
request.
|
RESUMED_WAITING
This state represents a transfer that has been resumed and queued for
execution, but has not started to actively transfer data
|
UNKNOWN
This is an internal value used to detect if the current transfer is in an
unknown state
|
WAITING
This state represents a transfer that has been queued, but has not yet
started
|
WAITING_FOR_NETWORK
This state represents a transfer that is currently on hold, waiting for
the network to become available
|
Modifier and Type | Method and Description |
---|---|
static TransferState |
getState(java.lang.String stateAsString)
Returns the transfer state from string
|
static TransferState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransferState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransferState WAITING
public static final TransferState IN_PROGRESS
public static final TransferState PAUSED
public static final TransferState RESUMED_WAITING
public static final TransferState COMPLETED
public static final TransferState CANCELED
public static final TransferState FAILED
public static final TransferState WAITING_FOR_NETWORK
public static final TransferState PART_COMPLETED
public static final TransferState PENDING_CANCEL
public static final TransferState PENDING_PAUSE
public static final TransferState PENDING_NETWORK_DISCONNECT
public static final TransferState UNKNOWN
public static TransferState[] values()
for (TransferState c : TransferState.values()) System.out.println(c);
public static TransferState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static TransferState getState(java.lang.String stateAsString)
stateAsString
- state of the transfer represented as string.TransferState
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.