com.adyen.model.nexo.TransmitRequest Maven / Gradle / Ivy
package com.adyen.model.nexo;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.math.BigInteger;
/**
* Definition: Content of the Transmit Request messageType. -- Usage: It contains a messageType to transmit.
*
* Java class for TransmitRequest complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="TransmitRequest">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Message" type="{}Message"/>
* </sequence>
* <attribute name="WaitResponseFlag" type="{}WaitResponseFlag" default="false" />
* <attribute name="MaximumTransmitTime" use="required" type="{}MaximumTransmitTime" />
* <attribute name="DestinationAddress" use="required" type="{}DestinationAddress" />
* </restriction>
* </complexContent>
* </complexType>
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TransmitRequest", propOrder = {
"message"
})
public class TransmitRequest {
/**
* The Message.
*/
@XmlElement(name = "Message", required = true)
@Schema(description = "Content of a transmitted message.")
protected byte[] message;
/**
* The Wait response flag.
*/
@XmlElement(name = "WaitResponseFlag")
@Schema(description = "Indicates that a response message has to be received.")
protected Boolean waitResponseFlag;
/**
* The Maximum transmit time.
*/
@XmlElement(name = "MaximumTransmitTime", required = true)
@Schema(description = "Maximum time in seconds of transmission.")
protected BigInteger maximumTransmitTime;
/**
* The Destination address.
*/
@XmlElement(name = "DestinationAddress", required = true)
@Schema(description = "Transport address containing the IP address or the DNS (Domain Name Server) address, followed by the character ':' and")
protected String destinationAddress;
/**
* Gets the value of the messageType property.
*
* @return possible object is byte[]
*/
public byte[] getMessage() {
return message;
}
/**
* Sets the value of the messageType property.
*
* @param value allowed object is byte[]
*/
public void setMessage(byte[] value) {
this.message = value;
}
/**
* Gets the value of the waitResponseFlag property.
*
* @return possible object is {@link Boolean }
*/
public boolean isWaitResponseFlag() {
if (waitResponseFlag == null) {
return false;
} else {
return waitResponseFlag;
}
}
/**
* Sets the value of the waitResponseFlag property.
*
* @param value allowed object is {@link Boolean }
*/
public void setWaitResponseFlag(Boolean value) {
this.waitResponseFlag = value;
}
/**
* Gets the value of the maximumTransmitTime property.
*
* @return possible object is {@link BigInteger }
*/
public BigInteger getMaximumTransmitTime() {
return maximumTransmitTime;
}
/**
* Sets the value of the maximumTransmitTime property.
*
* @param value allowed object is {@link BigInteger }
*/
public void setMaximumTransmitTime(BigInteger value) {
this.maximumTransmitTime = value;
}
/**
* Gets the value of the destinationAddress property.
*
* @return possible object is {@link String }
*/
public String getDestinationAddress() {
return destinationAddress;
}
/**
* Sets the value of the destinationAddress property.
*
* @param value allowed object is {@link String }
*/
public void setDestinationAddress(String value) {
this.destinationAddress = value;
}
}