cz.active24.client.fred.data.update.nsset.NssetUpdateRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fred-client Show documentation
Show all versions of fred-client Show documentation
A Java EPP client for FRED (Free Registry for ENUM and Domains)
package cz.active24.client.fred.data.update.nsset;
import cz.active24.client.fred.data.update.UpdateRequest;
import cz.active24.client.fred.data.EppRequest;
import cz.active24.client.fred.eppclient.objectstrategy.ServerObjectType;
import java.io.Serializable;
/**
* A nsset update command is used to alter details of an nsset.
*
*
* - {@link NssetUpdateRequest#id} - an nsset handle
* - {@link NssetUpdateRequest#add} - a list of items that will be added to this nsset, see {@link NssetAddData}d
* - {@link NssetUpdateRequest#rem} - a list of items that will be removed from this nsset, see {@link NssetRemData}
* - {@link NssetUpdateRequest#chg} - the new values of nsset attributes that will be replaced by this update. Omitted attributes will remain unchanged, see {@link NssetChangeData}
*
*
* @see FRED documentation
*/
public class NssetUpdateRequest extends EppRequest implements Serializable, UpdateRequest {
private String id;
private NssetAddData add;
private NssetRemData rem;
private NssetChangeData chg;
public NssetUpdateRequest(String nssetId) {
setServerObjectType(ServerObjectType.NSSET);
this.id = nssetId;
}
public String getId() {
return id;
}
protected void setId(String id) {
this.id = id;
}
public NssetAddData getAdd() {
return add;
}
public void setAdd(NssetAddData add) {
this.add = add;
}
public NssetRemData getRem() {
return rem;
}
public void setRem(NssetRemData rem) {
this.rem = rem;
}
public NssetChangeData getChg() {
return chg;
}
public void setChg(NssetChangeData chg) {
this.chg = chg;
}
@Override
public String toString() {
final StringBuffer sb = new StringBuffer("NssetUpdateRequest{");
sb.append("id='").append(id).append('\'');
sb.append(", add=").append(add);
sb.append(", rem=").append(rem);
sb.append(", chg=").append(chg);
sb.append(", clientTransactionId='").append(getClientTransactionId()).append('\'');
sb.append(", serverObjectType=").append(getServerObjectType());
sb.append('}');
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy