com.foilen.infra.api.request.RequestChanges Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of foilen-infra-api Show documentation
Show all versions of foilen-infra-api Show documentation
This is the infra service API
The newest version!
/*
Foilen Infra API
https://github.com/foilen/foilen-infra-api
Copyright (c) 2017-2021 Foilen (https://foilen.com)
The MIT License
http://opensource.org/licenses/MIT
*/
package com.foilen.infra.api.request;
import java.util.ArrayList;
import java.util.List;
import com.foilen.infra.api.model.resource.LinkDetails;
import com.foilen.infra.api.model.resource.ResourceDetails;
import com.foilen.infra.api.model.resource.TagDetails;
import com.foilen.smalltools.restapi.model.AbstractApiBase;
/**
* The changes to make. For any {@link ResourceDetails}, you can put
*
* - the resource Id
* - or the resource properties that defines the Primary Key
*
*/
public class RequestChanges extends AbstractApiBase {
private String defaultOwner;
private List resourcesToAdd = new ArrayList<>();
private List resourcesToUpdate = new ArrayList<>();
private List resourcesToDelete = new ArrayList<>();
private List resourcesToRefresh = new ArrayList<>();
private List tagsToAdd = new ArrayList<>();
private List tagsToDelete = new ArrayList<>();
private List linksToAdd = new ArrayList<>();
private List linksToDelete = new ArrayList<>();
public String getDefaultOwner() {
return defaultOwner;
}
public List getLinksToAdd() {
return linksToAdd;
}
public List getLinksToDelete() {
return linksToDelete;
}
public List getResourcesToAdd() {
return resourcesToAdd;
}
public List getResourcesToDelete() {
return resourcesToDelete;
}
public List getResourcesToRefresh() {
return resourcesToRefresh;
}
public List getResourcesToUpdate() {
return resourcesToUpdate;
}
public List getTagsToAdd() {
return tagsToAdd;
}
public List getTagsToDelete() {
return tagsToDelete;
}
public RequestChanges setDefaultOwner(String defaultOwner) {
this.defaultOwner = defaultOwner;
return this;
}
public RequestChanges setLinksToAdd(List linksToAdd) {
this.linksToAdd = linksToAdd;
return this;
}
public RequestChanges setLinksToDelete(List linksToDelete) {
this.linksToDelete = linksToDelete;
return this;
}
public RequestChanges setResourcesToAdd(List resourcesToAdd) {
this.resourcesToAdd = resourcesToAdd;
return this;
}
public RequestChanges setResourcesToDelete(List resourcesToDelete) {
this.resourcesToDelete = resourcesToDelete;
return this;
}
public RequestChanges setResourcesToRefresh(List resourcesToRefresh) {
this.resourcesToRefresh = resourcesToRefresh;
return this;
}
public RequestChanges setResourcesToUpdate(List resourcesToUpdate) {
this.resourcesToUpdate = resourcesToUpdate;
return this;
}
public RequestChanges setTagsToAdd(List tagsToAdd) {
this.tagsToAdd = tagsToAdd;
return this;
}
public RequestChanges setTagsToDelete(List tagsToDelete) {
this.tagsToDelete = tagsToDelete;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy