uk.org.openbanking.datamodel.event.OBEventPolling1 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openbanking-sdk Show documentation
Show all versions of openbanking-sdk Show documentation
A Java SDK to help implementing the Open Banking standard : https://www.openbanking.org.uk/read-write-apis/
/**
*
* The contents of this file are subject to the terms of the Common Development and
* Distribution License (the License). You may not use this file except in compliance with the
* License.
*
* You can obtain a copy of the License at https://forgerock.org/cddlv1-0/. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
* Header, with the fields enclosed by brackets [] replaced by your own identifying
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2019 ForgeRock AS.
*/
/*
* Aggregated Event Polling API Specification
* Swagger for Aggregated Event Polling API Specification
*
* OpenAPI spec version: v3.1.2-RC1
* Contact: [email protected]
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package uk.org.openbanking.datamodel.event;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
import java.util.*;
/**
* OBEventPolling1
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-13T15:58:23.513+01:00")
public class OBEventPolling1 {
@JsonProperty("maxEvents")
private Integer maxEvents = null;
@JsonProperty("returnImmediately")
private Boolean returnImmediately = null;
@JsonProperty("ack")
private List ack = null;
@JsonProperty("setErrs")
private Map setErrs = null;
public OBEventPolling1 maxEvents(Integer maxEvents) {
this.maxEvents = maxEvents;
return this;
}
/**
* Maximum number of events to be returned. A value of zero indicates the ASPSP should not return events even if available
*
* @return maxEvents
**/
@ApiModelProperty(value = "Maximum number of events to be returned. A value of zero indicates the ASPSP should not return events even if available")
public Integer getMaxEvents() {
return maxEvents;
}
public void setMaxEvents(Integer maxEvents) {
this.maxEvents = maxEvents;
}
public OBEventPolling1 returnImmediately(Boolean returnImmediately) {
this.returnImmediately = returnImmediately;
return this;
}
/**
* Indicates whether an ASPSP should return a response immediately or provide a long poll
*
* @return returnImmediately
**/
@ApiModelProperty(value = "Indicates whether an ASPSP should return a response immediately or provide a long poll")
public Boolean isReturnImmediately() {
return returnImmediately;
}
public void setReturnImmediately(Boolean returnImmediately) {
this.returnImmediately = returnImmediately;
}
public OBEventPolling1 ack(List ack) {
this.ack = ack;
return this;
}
public OBEventPolling1 addAckItem(String ackItem) {
if (this.ack == null) {
this.ack = new ArrayList();
}
this.ack.add(ackItem);
return this;
}
/**
* Get ack
*
* @return ack
**/
@ApiModelProperty(value = "")
public List getAck() {
return ack;
}
public void setAck(List ack) {
this.ack = ack;
}
public OBEventPolling1 setErrs(Map setErrs) {
this.setErrs = setErrs;
return this;
}
public OBEventPolling1 putSetErrsItem(String key, OBEventPolling1SetErrs setErrsItem) {
if (this.setErrs == null) {
this.setErrs = new HashMap();
}
this.setErrs.put(key, setErrsItem);
return this;
}
/**
* An object that encapsulates all negative acknowledgements transmitted by the TPP
*
* @return setErrs
**/
@Valid
@ApiModelProperty(value = "An object that encapsulates all negative acknowledgements transmitted by the TPP")
public Map getSetErrs() {
return setErrs;
}
public void setSetErrs(Map setErrs) {
this.setErrs = setErrs;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OBEventPolling1 obEventPolling1 = (OBEventPolling1) o;
return Objects.equals(this.maxEvents, obEventPolling1.maxEvents) &&
Objects.equals(this.returnImmediately, obEventPolling1.returnImmediately) &&
Objects.equals(this.ack, obEventPolling1.ack) &&
Objects.equals(this.setErrs, obEventPolling1.setErrs);
}
@Override
public int hashCode() {
return Objects.hash(maxEvents, returnImmediately, ack, setErrs);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OBEventPolling1 {\n");
sb.append(" maxEvents: ").append(toIndentedString(maxEvents)).append("\n");
sb.append(" returnImmediately: ").append(toIndentedString(returnImmediately)).append("\n");
sb.append(" ack: ").append(toIndentedString(ack)).append("\n");
sb.append(" setErrs: ").append(toIndentedString(setErrs)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}