class AAIObjectMapper {

    public org.onap.aai.domain.yang.SegmentationAssignments mapToAAISegmentationAssignmentList(
            List<SegmentationAssignment> segmentationAssignmentList) {
        org.onap.aai.domain.yang.SegmentationAssignments segmentationAssignments = null;
        if (!segmentationAssignmentList.isEmpty()) {
            segmentationAssignments = new org.onap.aai.domain.yang.SegmentationAssignments();
            org.onap.aai.domain.yang.SegmentationAssignment segmentationAssignment = null;
            for (SegmentationAssignment segmentationAssignmentSource : segmentationAssignmentList) {
                segmentationAssignment = new org.onap.aai.domain.yang.SegmentationAssignment();
                segmentationAssignment.setSegmentationId(segmentationAssignmentSource.getSegmentationId());
                segmentationAssignments.getSegmentationAssignment().add(segmentationAssignment);
            }
        }
        return segmentationAssignments;
    }

}