Home
Cloud
Big Data
CI
Install
Samples
Java
Ubuntu
Maven
Archive
mtitek-process-core-ws-default
|
Payload.java
Payload.java
Payload.java
package mtitek.process.ws; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElementWrapper; import javax.xml.bind.annotation.XmlRootElement; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @XmlRootElement(name = "payload") @XmlAccessorType(XmlAccessType.NONE) @ApiModel(value = "payload", description = "Payload resource representation") public class Payload { @XmlElement(name = "id") @ApiModelProperty(value = "Payload's id") private String id; @XmlElement(name = "parameter") @XmlElementWrapper(name = "parameters") @ApiModelProperty(value = "Payload's parameters") private List<PayloadParameter> parameters = new ArrayList<>(); public String getId() { return id; } public void setId(String id) { this.id = id; } public List<PayloadParameter> getParameters() { return new ArrayList<>(parameters); } public void setParameters(List<PayloadParameter> parameters) { this.parameters.clear(); if (parameters != null) { this.parameters.addAll(parameters); } } @Override public String toString() { return "Payload [id=" + id + ", " + parameters + "]"; } }
© 2010-2022
mti
tek