public ActivityType withVersion(String version) {
        setVersion(version);
        return this;
    }
<p>
The version of this activity.
</p>
<note>
<p>
The combination of activity type name and version must be unique with in a domain.
</p>
</note>

@param version
       The version of this activity.</p> <note>
       <p>
       The combination of activity type name and version must be unique with in a domain.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-simpleworkflow/src/main/java/com/amazonaws/services/simpleworkflow/model/ActivityType.java