public SegmentImportResource withSize(Integer size) {
        setSize(size);
        return this;
    }
<p>
The number of endpoint definitions that were imported successfully to create the segment.
</p>

@param size
       The number of endpoint definitions that were imported successfully to create the segment.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/SegmentImportResource.java