org.hisp.dhis.request.orgunit.OrgUnitSplitRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dhis2-java-client Show documentation
Show all versions of dhis2-java-client Show documentation
DHIS 2 API client for Java.
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