Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.simpleworkflow.model
Class RegisterDomainRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.simpleworkflow.model.RegisterDomainRequest
All Implemented Interfaces:
java.io.Serializable

public class RegisterDomainRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the 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:

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 .

See Also:
AmazonSimpleWorkflow.registerDomain(RegisterDomainRequest), Serialized Form

Constructor Summary
RegisterDomainRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDescription()
          Textual description of the domain.
 java.lang.String getName()
          Name of the domain to register.
 java.lang.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(java.lang.String description)
          Textual description of the domain.
 void setName(java.lang.String name)
          Name of the domain to register.
 void setWorkflowExecutionRetentionPeriodInDays(java.lang.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.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 RegisterDomainRequest withDescription(java.lang.String description)
          Textual description of the domain.
 RegisterDomainRequest withName(java.lang.String name)
          Name of the domain to register.
 RegisterDomainRequest withWorkflowExecutionRetentionPeriodInDays(java.lang.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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegisterDomainRequest

public RegisterDomainRequest()
Method Detail

getName

public java.lang.String getName()
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".

Constraints:
Length: 1 - 256

Returns:
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".


setName

public void setName(java.lang.String 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".

Constraints:
Length: 1 - 256

Parameters:
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".


withName

public RegisterDomainRequest withName(java.lang.String 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".

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 256

Parameters:
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".

Returns:
A reference to this updated object so that method calls can be chained together.

getDescription

public java.lang.String getDescription()
Textual description of the domain.

Constraints:
Length: 0 - 1024

Returns:
Textual description of the domain.

setDescription

public void setDescription(java.lang.String description)
Textual description of the domain.

Constraints:
Length: 0 - 1024

Parameters:
description - Textual description of the domain.

withDescription

public RegisterDomainRequest withDescription(java.lang.String description)
Textual description of the domain.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 1024

Parameters:
description - Textual description of the domain.
Returns:
A reference to this updated object so that method calls can be chained together.

getWorkflowExecutionRetentionPeriodInDays

public java.lang.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. 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.

Constraints:
Length: 1 - 8

Returns:
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.

setWorkflowExecutionRetentionPeriodInDays

public void setWorkflowExecutionRetentionPeriodInDays(java.lang.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. 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.

Constraints:
Length: 1 - 8

Parameters:
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.

withWorkflowExecutionRetentionPeriodInDays

public RegisterDomainRequest withWorkflowExecutionRetentionPeriodInDays(java.lang.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. 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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 8

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.