public RepositorySyncDefinition withTarget(String target) {
        setTarget(target);
        return this;
    }
<p>
The target resource specified for a repository sync definition. In some cases, such as CFN_STACK_SYNC, the parent
and target resource are the same.
</p>

@param target
       The target resource specified for a repository sync definition. In some cases, such as CFN_STACK_SYNC, the
       parent and target resource are the same.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codeconnections/src/main/java/com/amazonaws/services/codeconnections/model/RepositorySyncDefinition.java