Class ListMessageMoveTasksResultEntry
- java.lang.Object
-
- software.amazon.awssdk.services.sqs.model.ListMessageMoveTasksResultEntry
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ListMessageMoveTasksResultEntry.Builder,ListMessageMoveTasksResultEntry>
@Generated("software.amazon.awssdk:codegen") public final class ListMessageMoveTasksResultEntry extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ListMessageMoveTasksResultEntry.Builder,ListMessageMoveTasksResultEntry>
Contains the details of a message movement task.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ListMessageMoveTasksResultEntry.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
approximateNumberOfMessagesMoved()
The approximate number of messages already moved to the destination queue.Long
approximateNumberOfMessagesToMove()
The number of messages to be moved from the source queue.static ListMessageMoveTasksResultEntry.Builder
builder()
String
destinationArn()
The ARN of the destination queue if it has been specified in theStartMessageMoveTask
request.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
String
failureReason()
The task failure reason (only included if the task status is FAILED).<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Integer
maxNumberOfMessagesPerSecond()
The number of messages to be moved per second (the message movement rate), if it has been specified in theStartMessageMoveTask
request.List<SdkField<?>>
sdkFields()
static Class<? extends ListMessageMoveTasksResultEntry.Builder>
serializableBuilderClass()
String
sourceArn()
The ARN of the queue that contains the messages to be moved to another queue.Long
startedTimestamp()
The timestamp of starting the message movement task.TaskStatus
status()
The status of the message movement task.String
statusAsString()
The status of the message movement task.String
taskHandle()
An identifier associated with a message movement task.ListMessageMoveTasksResultEntry.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
taskHandle
public final String taskHandle()
An identifier associated with a message movement task. When this field is returned in the response of the
ListMessageMoveTasks
action, it is only populated for tasks that are in RUNNING status.- Returns:
- An identifier associated with a message movement task. When this field is returned in the response of the
ListMessageMoveTasks
action, it is only populated for tasks that are in RUNNING status.
-
status
public final TaskStatus status()
The status of the message movement task. Possible values are: RUNNING, COMPLETED, CANCELLING, CANCELLED, and FAILED.
If the service returns an enum value that is not available in the current SDK version,
status
will returnTaskStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The status of the message movement task. Possible values are: RUNNING, COMPLETED, CANCELLING, CANCELLED, and FAILED.
- See Also:
TaskStatus
-
statusAsString
public final String statusAsString()
The status of the message movement task. Possible values are: RUNNING, COMPLETED, CANCELLING, CANCELLED, and FAILED.
If the service returns an enum value that is not available in the current SDK version,
status
will returnTaskStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The status of the message movement task. Possible values are: RUNNING, COMPLETED, CANCELLING, CANCELLED, and FAILED.
- See Also:
TaskStatus
-
sourceArn
public final String sourceArn()
The ARN of the queue that contains the messages to be moved to another queue.
- Returns:
- The ARN of the queue that contains the messages to be moved to another queue.
-
destinationArn
public final String destinationArn()
The ARN of the destination queue if it has been specified in the
StartMessageMoveTask
request. If aDestinationArn
has not been specified in theStartMessageMoveTask
request, this field value will be NULL.- Returns:
- The ARN of the destination queue if it has been specified in the
StartMessageMoveTask
request. If aDestinationArn
has not been specified in theStartMessageMoveTask
request, this field value will be NULL.
-
maxNumberOfMessagesPerSecond
public final Integer maxNumberOfMessagesPerSecond()
The number of messages to be moved per second (the message movement rate), if it has been specified in the
StartMessageMoveTask
request. If aMaxNumberOfMessagesPerSecond
has not been specified in theStartMessageMoveTask
request, this field value will be NULL.- Returns:
- The number of messages to be moved per second (the message movement rate), if it has been specified in
the
StartMessageMoveTask
request. If aMaxNumberOfMessagesPerSecond
has not been specified in theStartMessageMoveTask
request, this field value will be NULL.
-
approximateNumberOfMessagesMoved
public final Long approximateNumberOfMessagesMoved()
The approximate number of messages already moved to the destination queue.
- Returns:
- The approximate number of messages already moved to the destination queue.
-
approximateNumberOfMessagesToMove
public final Long approximateNumberOfMessagesToMove()
The number of messages to be moved from the source queue. This number is obtained at the time of starting the message movement task.
- Returns:
- The number of messages to be moved from the source queue. This number is obtained at the time of starting the message movement task.
-
failureReason
public final String failureReason()
The task failure reason (only included if the task status is FAILED).
- Returns:
- The task failure reason (only included if the task status is FAILED).
-
startedTimestamp
public final Long startedTimestamp()
The timestamp of starting the message movement task.
- Returns:
- The timestamp of starting the message movement task.
-
toBuilder
public ListMessageMoveTasksResultEntry.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<ListMessageMoveTasksResultEntry.Builder,ListMessageMoveTasksResultEntry>
-
builder
public static ListMessageMoveTasksResultEntry.Builder builder()
-
serializableBuilderClass
public static Class<? extends ListMessageMoveTasksResultEntry.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-