public ObjectTypes withSource(ObjectTypeEnum source) {
        this.source = source.toString();
        return this;
    }
<p>
The type of the object in the source branch.
</p>

@param source
       The type of the object in the source branch.
@return Returns a reference to this object so that method calls can be chained together.
@see ObjectTypeEnum
aws-java-sdk-codecommit/src/main/java/com/amazonaws/services/codecommit/model/ObjectTypes.java