All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hisp.dhis.request.orgunit.OrgUnitSplitRequest Maven / Gradle / Ivy

There is a newer version: 2.0.4
Show newest version
package org.hisp.dhis.request.orgunit;

import java.util.ArrayList;
import java.util.List;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import com.fasterxml.jackson.annotation.JsonProperty;

@Getter
@Setter
@Accessors( chain = true )
public class OrgUnitSplitRequest
{
    @JsonProperty
    private String source;

    @JsonProperty
    private List targets = new ArrayList<>();

    @JsonProperty
    private String primaryTarget;

    @JsonProperty
    private Boolean deleteSource;

    public OrgUnitSplitRequest addTarget( String target )
    {
        this.targets.add( target );
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy