public class RegisterActivityTypeRequest extends AmazonWebServiceRequest implements java.io.Serializable
RegisterActivityType operation.
Registers a new activity type along with its configuration settings in the specified domain.
IMPORTANT: A TypeAlreadyExists fault is returned if the type already exists in the domain. You cannot change any configuration settings of the type after its registration, and it must be registered as a new version.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
Resource element with the domain name to limit the action to only specified domains.Action element to allow or deny permission to call this action.Condition element with the appropriate keys.
defaultTaskList : String constraint. The key is swf:defaultTaskList.name .name : String constraint. The key is swf:name .version : String constraint. The key is swf:version .
If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action
fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
| コンストラクタと説明 |
|---|
RegisterActivityTypeRequest() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDefaultTaskHeartbeatTimeout()
If set, specifies the default maximum time before which a worker
processing a task of this type must report progress by calling
RecordActivityTaskHeartbeat.
|
TaskList |
getDefaultTaskList()
If set, specifies the default task list to use for scheduling tasks of
this activity type.
|
java.lang.String |
getDefaultTaskScheduleToCloseTimeout()
If set, specifies the default maximum duration for a task of this
activity type.
|
java.lang.String |
getDefaultTaskScheduleToStartTimeout()
If set, specifies the default maximum duration that a task of this
activity type can wait before being assigned to a worker.
|
java.lang.String |
getDefaultTaskStartToCloseTimeout()
If set, specifies the default maximum duration that a worker can take
to process tasks of this activity type.
|
java.lang.String |
getDescription()
A textual description of the activity type.
|
java.lang.String |
getDomain()
The name of the domain in which this activity is to be registered.
|
java.lang.String |
getName()
The name of the activity type within the domain.
|
java.lang.String |
getVersion()
The version of the activity type.
|
int |
hashCode() |
void |
setDefaultTaskHeartbeatTimeout(java.lang.String defaultTaskHeartbeatTimeout)
If set, specifies the default maximum time before which a worker
processing a task of this type must report progress by calling
RecordActivityTaskHeartbeat.
|
void |
setDefaultTaskList(TaskList defaultTaskList)
If set, specifies the default task list to use for scheduling tasks of
this activity type.
|
void |
setDefaultTaskScheduleToCloseTimeout(java.lang.String defaultTaskScheduleToCloseTimeout)
If set, specifies the default maximum duration for a task of this
activity type.
|
void |
setDefaultTaskScheduleToStartTimeout(java.lang.String defaultTaskScheduleToStartTimeout)
If set, specifies the default maximum duration that a task of this
activity type can wait before being assigned to a worker.
|
void |
setDefaultTaskStartToCloseTimeout(java.lang.String defaultTaskStartToCloseTimeout)
If set, specifies the default maximum duration that a worker can take
to process tasks of this activity type.
|
void |
setDescription(java.lang.String description)
A textual description of the activity type.
|
void |
setDomain(java.lang.String domain)
The name of the domain in which this activity is to be registered.
|
void |
setName(java.lang.String name)
The name of the activity type within the domain.
|
void |
setVersion(java.lang.String version)
The version of the activity type.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RegisterActivityTypeRequest |
withDefaultTaskHeartbeatTimeout(java.lang.String defaultTaskHeartbeatTimeout)
If set, specifies the default maximum time before which a worker
processing a task of this type must report progress by calling
RecordActivityTaskHeartbeat.
|
RegisterActivityTypeRequest |
withDefaultTaskList(TaskList defaultTaskList)
If set, specifies the default task list to use for scheduling tasks of
this activity type.
|
RegisterActivityTypeRequest |
withDefaultTaskScheduleToCloseTimeout(java.lang.String defaultTaskScheduleToCloseTimeout)
If set, specifies the default maximum duration for a task of this
activity type.
|
RegisterActivityTypeRequest |
withDefaultTaskScheduleToStartTimeout(java.lang.String defaultTaskScheduleToStartTimeout)
If set, specifies the default maximum duration that a task of this
activity type can wait before being assigned to a worker.
|
RegisterActivityTypeRequest |
withDefaultTaskStartToCloseTimeout(java.lang.String defaultTaskStartToCloseTimeout)
If set, specifies the default maximum duration that a worker can take
to process tasks of this activity type.
|
RegisterActivityTypeRequest |
withDescription(java.lang.String description)
A textual description of the activity type.
|
RegisterActivityTypeRequest |
withDomain(java.lang.String domain)
The name of the domain in which this activity is to be registered.
|
RegisterActivityTypeRequest |
withName(java.lang.String name)
The name of the activity type within the domain.
|
RegisterActivityTypeRequest |
withVersion(java.lang.String version)
The version of the activity type.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic java.lang.String getDomain()
Constraints:
Length: 1 - 256
public void setDomain(java.lang.String domain)
Constraints:
Length: 1 - 256
domain - The name of the domain in which this activity is to be registered.public RegisterActivityTypeRequest withDomain(java.lang.String domain)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
domain - The name of the domain in which this activity is to be registered.public java.lang.String getName()
The specified
string must not start or end with whitespace. It must not contain a
: (colon), / (slash), |
(vertical bar), or any control characters ( - | -
). Also, it must not contain the literal string "arn".
Constraints:
Length: 1 - 256
The specified
string must not start or end with whitespace. It must not contain a
: (colon), / (slash), |
(vertical bar), or any control characters ( - | -
). Also, it must not contain the literal string "arn".
public void setName(java.lang.String name)
The specified
string must not start or end with whitespace. It must not contain a
: (colon), / (slash), |
(vertical bar), or any control characters ( - | -
). Also, it must not contain the literal string "arn".
Constraints:
Length: 1 - 256
name - The name of the activity type within the domain. The specified
string must not start or end with whitespace. It must not contain a
: (colon), / (slash), |
(vertical bar), or any control characters ( - | -
). Also, it must not contain the literal string "arn".
public RegisterActivityTypeRequest withName(java.lang.String name)
The specified
string must not start or end with whitespace. It must not contain a
: (colon), / (slash), |
(vertical bar), or any control characters ( - | -
). Also, it must not contain the literal string "arn".
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
name - The name of the activity type within the domain. The specified
string must not start or end with whitespace. It must not contain a
: (colon), / (slash), |
(vertical bar), or any control characters ( - | -
). Also, it must not contain the literal string "arn".
public java.lang.String getVersion()
The specified string must not start or end with
whitespace. It must not contain a : (colon),
/ (slash), | (vertical bar), or any control
characters ( - | - ). Also, it must not
contain the literal string "arn".
Constraints:
Length: 1 - 64
The specified string must not start or end with
whitespace. It must not contain a : (colon),
/ (slash), | (vertical bar), or any control
characters ( - | - ). Also, it must not
contain the literal string "arn".
public void setVersion(java.lang.String version)
The specified string must not start or end with
whitespace. It must not contain a : (colon),
/ (slash), | (vertical bar), or any control
characters ( - | - ). Also, it must not
contain the literal string "arn".
Constraints:
Length: 1 - 64
version - The version of the activity type. The specified string must not start or end with
whitespace. It must not contain a : (colon),
/ (slash), | (vertical bar), or any control
characters ( - | - ). Also, it must not
contain the literal string "arn".
public RegisterActivityTypeRequest withVersion(java.lang.String version)
The specified string must not start or end with
whitespace. It must not contain a : (colon),
/ (slash), | (vertical bar), or any control
characters ( - | - ). Also, it must not
contain the literal string "arn".
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
version - The version of the activity type. The specified string must not start or end with
whitespace. It must not contain a : (colon),
/ (slash), | (vertical bar), or any control
characters ( - | - ). Also, it must not
contain the literal string "arn".
public java.lang.String getDescription()
Constraints:
Length: 0 - 1024
public void setDescription(java.lang.String description)
Constraints:
Length: 0 - 1024
description - A textual description of the activity type.public RegisterActivityTypeRequest withDescription(java.lang.String description)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1024
description - A textual description of the activity type.public java.lang.String getDefaultTaskStartToCloseTimeout()
ScheduleActivityTask Decision. The valid values
are integers greater than or equal to 0. An integer value
can be used to specify the duration in seconds while NONE
can be used to specify unlimited duration.
Constraints:
Length: 0 - 8
ScheduleActivityTask Decision. The valid values
are integers greater than or equal to 0. An integer value
can be used to specify the duration in seconds while NONE
can be used to specify unlimited duration.
public void setDefaultTaskStartToCloseTimeout(java.lang.String defaultTaskStartToCloseTimeout)
ScheduleActivityTask Decision. The valid values
are integers greater than or equal to 0. An integer value
can be used to specify the duration in seconds while NONE
can be used to specify unlimited duration.
Constraints:
Length: 0 - 8
defaultTaskStartToCloseTimeout - If set, specifies the default maximum duration that a worker can take
to process tasks of this activity type. This default can be overridden
when scheduling an activity task using the
ScheduleActivityTask Decision. The valid values
are integers greater than or equal to 0. An integer value
can be used to specify the duration in seconds while NONE
can be used to specify unlimited duration.
public RegisterActivityTypeRequest withDefaultTaskStartToCloseTimeout(java.lang.String defaultTaskStartToCloseTimeout)
ScheduleActivityTask Decision. The valid values
are integers greater than or equal to 0. An integer value
can be used to specify the duration in seconds while NONE
can be used to specify unlimited duration.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 8
defaultTaskStartToCloseTimeout - If set, specifies the default maximum duration that a worker can take
to process tasks of this activity type. This default can be overridden
when scheduling an activity task using the
ScheduleActivityTask Decision. The valid values
are integers greater than or equal to 0. An integer value
can be used to specify the duration in seconds while NONE
can be used to specify unlimited duration.
public java.lang.String getDefaultTaskHeartbeatTimeout()
ScheduleActivityTask Decision. If the activity
worker subsequently attempts to record a heartbeat or returns a
result, the activity worker receives an UnknownResource
fault. In this case, Amazon SWF no longer considers the activity task
to be valid; the activity worker should clean up the activity task.
The valid values are integers greater than or equal to
0. An integer value can be used to specify the duration
in seconds while NONE can be used to specify unlimited
duration.
Constraints:
Length: 0 - 8
ScheduleActivityTask Decision. If the activity
worker subsequently attempts to record a heartbeat or returns a
result, the activity worker receives an UnknownResource
fault. In this case, Amazon SWF no longer considers the activity task
to be valid; the activity worker should clean up the activity task.
The valid values are integers greater than or equal to
0. An integer value can be used to specify the duration
in seconds while NONE can be used to specify unlimited
duration.
public void setDefaultTaskHeartbeatTimeout(java.lang.String defaultTaskHeartbeatTimeout)
ScheduleActivityTask Decision. If the activity
worker subsequently attempts to record a heartbeat or returns a
result, the activity worker receives an UnknownResource
fault. In this case, Amazon SWF no longer considers the activity task
to be valid; the activity worker should clean up the activity task.
The valid values are integers greater than or equal to
0. An integer value can be used to specify the duration
in seconds while NONE can be used to specify unlimited
duration.
Constraints:
Length: 0 - 8
defaultTaskHeartbeatTimeout - If set, specifies the default maximum time before which a worker
processing a task of this type must report progress by calling
RecordActivityTaskHeartbeat. If the timeout is exceeded, the
activity task is automatically timed out. This default can be
overridden when scheduling an activity task using the
ScheduleActivityTask Decision. If the activity
worker subsequently attempts to record a heartbeat or returns a
result, the activity worker receives an UnknownResource
fault. In this case, Amazon SWF no longer considers the activity task
to be valid; the activity worker should clean up the activity task.
The valid values are integers greater than or equal to
0. An integer value can be used to specify the duration
in seconds while NONE can be used to specify unlimited
duration.
public RegisterActivityTypeRequest withDefaultTaskHeartbeatTimeout(java.lang.String defaultTaskHeartbeatTimeout)
ScheduleActivityTask Decision. If the activity
worker subsequently attempts to record a heartbeat or returns a
result, the activity worker receives an UnknownResource
fault. In this case, Amazon SWF no longer considers the activity task
to be valid; the activity worker should clean up the activity task.
The valid values are integers greater than or equal to
0. An integer value can be used to specify the duration
in seconds while NONE can be used to specify unlimited
duration.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 8
defaultTaskHeartbeatTimeout - If set, specifies the default maximum time before which a worker
processing a task of this type must report progress by calling
RecordActivityTaskHeartbeat. If the timeout is exceeded, the
activity task is automatically timed out. This default can be
overridden when scheduling an activity task using the
ScheduleActivityTask Decision. If the activity
worker subsequently attempts to record a heartbeat or returns a
result, the activity worker receives an UnknownResource
fault. In this case, Amazon SWF no longer considers the activity task
to be valid; the activity worker should clean up the activity task.
The valid values are integers greater than or equal to
0. An integer value can be used to specify the duration
in seconds while NONE can be used to specify unlimited
duration.
public TaskList getDefaultTaskList()
ScheduleActivityTask Decision.ScheduleActivityTask Decision.public void setDefaultTaskList(TaskList defaultTaskList)
ScheduleActivityTask Decision.defaultTaskList - If set, specifies the default task list to use for scheduling tasks of
this activity type. This default task list is used if a task list is
not provided when a task is scheduled through the
ScheduleActivityTask Decision.public RegisterActivityTypeRequest withDefaultTaskList(TaskList defaultTaskList)
ScheduleActivityTask Decision.
Returns a reference to this object so that method calls can be chained together.
defaultTaskList - If set, specifies the default task list to use for scheduling tasks of
this activity type. This default task list is used if a task list is
not provided when a task is scheduled through the
ScheduleActivityTask Decision.public java.lang.String getDefaultTaskScheduleToStartTimeout()
ScheduleActivityTask Decision. The valid values
are integers greater than or equal to 0. An integer value
can be used to specify the duration in seconds while NONE
can be used to specify unlimited duration.
Constraints:
Length: 0 - 8
ScheduleActivityTask Decision. The valid values
are integers greater than or equal to 0. An integer value
can be used to specify the duration in seconds while NONE
can be used to specify unlimited duration.
public void setDefaultTaskScheduleToStartTimeout(java.lang.String defaultTaskScheduleToStartTimeout)
ScheduleActivityTask Decision. The valid values
are integers greater than or equal to 0. An integer value
can be used to specify the duration in seconds while NONE
can be used to specify unlimited duration.
Constraints:
Length: 0 - 8
defaultTaskScheduleToStartTimeout - If set, specifies the default maximum duration that a task of this
activity type can wait before being assigned to a worker. This default
can be overridden when scheduling an activity task using the
ScheduleActivityTask Decision. The valid values
are integers greater than or equal to 0. An integer value
can be used to specify the duration in seconds while NONE
can be used to specify unlimited duration.
public RegisterActivityTypeRequest withDefaultTaskScheduleToStartTimeout(java.lang.String defaultTaskScheduleToStartTimeout)
ScheduleActivityTask Decision. The valid values
are integers greater than or equal to 0. An integer value
can be used to specify the duration in seconds while NONE
can be used to specify unlimited duration.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 8
defaultTaskScheduleToStartTimeout - If set, specifies the default maximum duration that a task of this
activity type can wait before being assigned to a worker. This default
can be overridden when scheduling an activity task using the
ScheduleActivityTask Decision. The valid values
are integers greater than or equal to 0. An integer value
can be used to specify the duration in seconds while NONE
can be used to specify unlimited duration.
public java.lang.String getDefaultTaskScheduleToCloseTimeout()
ScheduleActivityTask
Decision. The valid values are integers greater than or
equal to 0. An integer value can be used to specify the
duration in seconds while NONE can be used to specify
unlimited duration.
Constraints:
Length: 0 - 8
ScheduleActivityTask
Decision. The valid values are integers greater than or
equal to 0. An integer value can be used to specify the
duration in seconds while NONE can be used to specify
unlimited duration.
public void setDefaultTaskScheduleToCloseTimeout(java.lang.String defaultTaskScheduleToCloseTimeout)
ScheduleActivityTask
Decision. The valid values are integers greater than or
equal to 0. An integer value can be used to specify the
duration in seconds while NONE can be used to specify
unlimited duration.
Constraints:
Length: 0 - 8
defaultTaskScheduleToCloseTimeout - If set, specifies the default maximum duration for a task of this
activity type. This default can be overridden when scheduling an
activity task using the ScheduleActivityTask
Decision. The valid values are integers greater than or
equal to 0. An integer value can be used to specify the
duration in seconds while NONE can be used to specify
unlimited duration.
public RegisterActivityTypeRequest withDefaultTaskScheduleToCloseTimeout(java.lang.String defaultTaskScheduleToCloseTimeout)
ScheduleActivityTask
Decision. The valid values are integers greater than or
equal to 0. An integer value can be used to specify the
duration in seconds while NONE can be used to specify
unlimited duration.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 8
defaultTaskScheduleToCloseTimeout - If set, specifies the default maximum duration for a task of this
activity type. This default can be overridden when scheduling an
activity task using the ScheduleActivityTask
Decision. The valid values are integers greater than or
equal to 0. An integer value can be used to specify the
duration in seconds while NONE can be used to specify
unlimited duration.
public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object