public class RegisterDomainRequest extends AmazonWebServiceRequest implements Serializable
RegisterDomain operation
.
Registers a new domain.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
Action
element to allow or deny permission to
call this action.
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
.
NOOP
Constructor and Description |
---|
RegisterDomainRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDescription()
Textual description of the domain.
|
String |
getName()
Name of the domain to register.
|
String |
getWorkflowExecutionRetentionPeriodInDays()
Specifies the duration--in days--for which the record
(including the history) of workflow executions in this domain should
be kept by the service.
|
int |
hashCode() |
void |
setDescription(String description)
Textual description of the domain.
|
void |
setName(String name)
Name of the domain to register.
|
void |
setWorkflowExecutionRetentionPeriodInDays(String workflowExecutionRetentionPeriodInDays)
Specifies the duration--in days--for which the record
(including the history) of workflow executions in this domain should
be kept by the service.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RegisterDomainRequest |
withDescription(String description)
Textual description of the domain.
|
RegisterDomainRequest |
withName(String name)
Name of the domain to register.
|
RegisterDomainRequest |
withWorkflowExecutionRetentionPeriodInDays(String workflowExecutionRetentionPeriodInDays)
Specifies the duration--in days--for which the record
(including the history) of workflow executions in this domain should
be kept by the service.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public 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(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
- Name of the domain to register. The name must be unique. 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 RegisterDomainRequest withName(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
- Name of the domain to register. The name must be unique. 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 String getDescription()
Constraints:
Length: 0 - 1024
public void setDescription(String description)
Constraints:
Length: 0 - 1024
description
- Textual description of the domain.public RegisterDomainRequest withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1024
description
- Textual description of the domain.public String getWorkflowExecutionRetentionPeriodInDays()
NONE
is specified, the records for workflow
executions in this domain are not retained at all.
Constraints:
Length: 1 - 8
NONE
is specified, the records for workflow
executions in this domain are not retained at all.public void setWorkflowExecutionRetentionPeriodInDays(String workflowExecutionRetentionPeriodInDays)
NONE
is specified, the records for workflow
executions in this domain are not retained at all.
Constraints:
Length: 1 - 8
workflowExecutionRetentionPeriodInDays
- Specifies the duration--in days--for which the record
(including the history) of workflow executions in this domain should
be kept by the service. After the retention period, the workflow
execution will not be available in the results of visibility calls. If
a duration of NONE
is specified, the records for workflow
executions in this domain are not retained at all.public RegisterDomainRequest withWorkflowExecutionRetentionPeriodInDays(String workflowExecutionRetentionPeriodInDays)
NONE
is specified, the records for workflow
executions in this domain are not retained at all.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 8
workflowExecutionRetentionPeriodInDays
- Specifies the duration--in days--for which the record
(including the history) of workflow executions in this domain should
be kept by the service. After the retention period, the workflow
execution will not be available in the results of visibility calls. If
a duration of NONE
is specified, the records for workflow
executions in this domain are not retained at all.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.