All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.finra.herd.model.api.xml.DownloadSingleInitiationResponse Maven / Gradle / Ivy

Go to download

This project contains the model API classes. This contains the herd XSD and generates Java POJO's from them. These classes are used for incoming and outgoing calls into the system (e.g. via REST).

There is a newer version: 0.160.0
Show newest version

package org.finra.herd.model.api.xml;

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
import org.jvnet.jaxb2_commons.lang.CopyStrategy2;
import org.jvnet.jaxb2_commons.lang.CopyTo2;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBCopyStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;


/**
 * 

Java class for downloadSingleInitiationResponse complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="downloadSingleInitiationResponse">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="businessObjectData" type="{}businessObjectData"/>
 *         <element name="awsAccessKey" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="awsSecretKey" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="awsSessionToken" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="awsSessionExpirationTime" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
 *         <element name="preSignedUrl" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "downloadSingleInitiationResponse", propOrder = { "businessObjectData", "awsAccessKey", "awsSecretKey", "awsSessionToken", "awsSessionExpirationTime", "preSignedUrl" }) @XmlRootElement(name = "downloadSingleInitiationResponse") public class DownloadSingleInitiationResponse implements Serializable, Cloneable, CopyTo2, Equals2, HashCode2, ToString2 { private final static long serialVersionUID = -1L; @XmlElement(required = true) protected BusinessObjectData businessObjectData; @XmlElement(required = true) protected String awsAccessKey; @XmlElement(required = true) protected String awsSecretKey; @XmlElement(required = true) protected String awsSessionToken; @XmlElement(required = true) @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar awsSessionExpirationTime; @XmlElement(required = true) protected String preSignedUrl; /** * Default no-arg constructor * */ public DownloadSingleInitiationResponse() { super(); } /** * Fully-initialising value constructor * */ public DownloadSingleInitiationResponse(final BusinessObjectData businessObjectData, final String awsAccessKey, final String awsSecretKey, final String awsSessionToken, final XMLGregorianCalendar awsSessionExpirationTime, final String preSignedUrl) { this.businessObjectData = businessObjectData; this.awsAccessKey = awsAccessKey; this.awsSecretKey = awsSecretKey; this.awsSessionToken = awsSessionToken; this.awsSessionExpirationTime = awsSessionExpirationTime; this.preSignedUrl = preSignedUrl; } /** * Gets the value of the businessObjectData property. * * @return * possible object is * {@link BusinessObjectData } * */ public BusinessObjectData getBusinessObjectData() { return businessObjectData; } /** * Sets the value of the businessObjectData property. * * @param value * allowed object is * {@link BusinessObjectData } * */ public void setBusinessObjectData(BusinessObjectData value) { this.businessObjectData = value; } /** * Gets the value of the awsAccessKey property. * * @return * possible object is * {@link String } * */ public String getAwsAccessKey() { return awsAccessKey; } /** * Sets the value of the awsAccessKey property. * * @param value * allowed object is * {@link String } * */ public void setAwsAccessKey(String value) { this.awsAccessKey = value; } /** * Gets the value of the awsSecretKey property. * * @return * possible object is * {@link String } * */ public String getAwsSecretKey() { return awsSecretKey; } /** * Sets the value of the awsSecretKey property. * * @param value * allowed object is * {@link String } * */ public void setAwsSecretKey(String value) { this.awsSecretKey = value; } /** * Gets the value of the awsSessionToken property. * * @return * possible object is * {@link String } * */ public String getAwsSessionToken() { return awsSessionToken; } /** * Sets the value of the awsSessionToken property. * * @param value * allowed object is * {@link String } * */ public void setAwsSessionToken(String value) { this.awsSessionToken = value; } /** * Gets the value of the awsSessionExpirationTime property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getAwsSessionExpirationTime() { return awsSessionExpirationTime; } /** * Sets the value of the awsSessionExpirationTime property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setAwsSessionExpirationTime(XMLGregorianCalendar value) { this.awsSessionExpirationTime = value; } /** * Gets the value of the preSignedUrl property. * * @return * possible object is * {@link String } * */ public String getPreSignedUrl() { return preSignedUrl; } /** * Sets the value of the preSignedUrl property. * * @param value * allowed object is * {@link String } * */ public void setPreSignedUrl(String value) { this.preSignedUrl = value; } public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { BusinessObjectData theBusinessObjectData; theBusinessObjectData = this.getBusinessObjectData(); strategy.appendField(locator, this, "businessObjectData", buffer, theBusinessObjectData, (this.businessObjectData!= null)); } { String theAwsAccessKey; theAwsAccessKey = this.getAwsAccessKey(); strategy.appendField(locator, this, "awsAccessKey", buffer, theAwsAccessKey, (this.awsAccessKey!= null)); } { String theAwsSecretKey; theAwsSecretKey = this.getAwsSecretKey(); strategy.appendField(locator, this, "awsSecretKey", buffer, theAwsSecretKey, (this.awsSecretKey!= null)); } { String theAwsSessionToken; theAwsSessionToken = this.getAwsSessionToken(); strategy.appendField(locator, this, "awsSessionToken", buffer, theAwsSessionToken, (this.awsSessionToken!= null)); } { XMLGregorianCalendar theAwsSessionExpirationTime; theAwsSessionExpirationTime = this.getAwsSessionExpirationTime(); strategy.appendField(locator, this, "awsSessionExpirationTime", buffer, theAwsSessionExpirationTime, (this.awsSessionExpirationTime!= null)); } { String thePreSignedUrl; thePreSignedUrl = this.getPreSignedUrl(); strategy.appendField(locator, this, "preSignedUrl", buffer, thePreSignedUrl, (this.preSignedUrl!= null)); } return buffer; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final DownloadSingleInitiationResponse that = ((DownloadSingleInitiationResponse) object); { BusinessObjectData lhsBusinessObjectData; lhsBusinessObjectData = this.getBusinessObjectData(); BusinessObjectData rhsBusinessObjectData; rhsBusinessObjectData = that.getBusinessObjectData(); if (!strategy.equals(LocatorUtils.property(thisLocator, "businessObjectData", lhsBusinessObjectData), LocatorUtils.property(thatLocator, "businessObjectData", rhsBusinessObjectData), lhsBusinessObjectData, rhsBusinessObjectData, (this.businessObjectData!= null), (that.businessObjectData!= null))) { return false; } } { String lhsAwsAccessKey; lhsAwsAccessKey = this.getAwsAccessKey(); String rhsAwsAccessKey; rhsAwsAccessKey = that.getAwsAccessKey(); if (!strategy.equals(LocatorUtils.property(thisLocator, "awsAccessKey", lhsAwsAccessKey), LocatorUtils.property(thatLocator, "awsAccessKey", rhsAwsAccessKey), lhsAwsAccessKey, rhsAwsAccessKey, (this.awsAccessKey!= null), (that.awsAccessKey!= null))) { return false; } } { String lhsAwsSecretKey; lhsAwsSecretKey = this.getAwsSecretKey(); String rhsAwsSecretKey; rhsAwsSecretKey = that.getAwsSecretKey(); if (!strategy.equals(LocatorUtils.property(thisLocator, "awsSecretKey", lhsAwsSecretKey), LocatorUtils.property(thatLocator, "awsSecretKey", rhsAwsSecretKey), lhsAwsSecretKey, rhsAwsSecretKey, (this.awsSecretKey!= null), (that.awsSecretKey!= null))) { return false; } } { String lhsAwsSessionToken; lhsAwsSessionToken = this.getAwsSessionToken(); String rhsAwsSessionToken; rhsAwsSessionToken = that.getAwsSessionToken(); if (!strategy.equals(LocatorUtils.property(thisLocator, "awsSessionToken", lhsAwsSessionToken), LocatorUtils.property(thatLocator, "awsSessionToken", rhsAwsSessionToken), lhsAwsSessionToken, rhsAwsSessionToken, (this.awsSessionToken!= null), (that.awsSessionToken!= null))) { return false; } } { XMLGregorianCalendar lhsAwsSessionExpirationTime; lhsAwsSessionExpirationTime = this.getAwsSessionExpirationTime(); XMLGregorianCalendar rhsAwsSessionExpirationTime; rhsAwsSessionExpirationTime = that.getAwsSessionExpirationTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "awsSessionExpirationTime", lhsAwsSessionExpirationTime), LocatorUtils.property(thatLocator, "awsSessionExpirationTime", rhsAwsSessionExpirationTime), lhsAwsSessionExpirationTime, rhsAwsSessionExpirationTime, (this.awsSessionExpirationTime!= null), (that.awsSessionExpirationTime!= null))) { return false; } } { String lhsPreSignedUrl; lhsPreSignedUrl = this.getPreSignedUrl(); String rhsPreSignedUrl; rhsPreSignedUrl = that.getPreSignedUrl(); if (!strategy.equals(LocatorUtils.property(thisLocator, "preSignedUrl", lhsPreSignedUrl), LocatorUtils.property(thatLocator, "preSignedUrl", rhsPreSignedUrl), lhsPreSignedUrl, rhsPreSignedUrl, (this.preSignedUrl!= null), (that.preSignedUrl!= null))) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { BusinessObjectData theBusinessObjectData; theBusinessObjectData = this.getBusinessObjectData(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "businessObjectData", theBusinessObjectData), currentHashCode, theBusinessObjectData, (this.businessObjectData!= null)); } { String theAwsAccessKey; theAwsAccessKey = this.getAwsAccessKey(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "awsAccessKey", theAwsAccessKey), currentHashCode, theAwsAccessKey, (this.awsAccessKey!= null)); } { String theAwsSecretKey; theAwsSecretKey = this.getAwsSecretKey(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "awsSecretKey", theAwsSecretKey), currentHashCode, theAwsSecretKey, (this.awsSecretKey!= null)); } { String theAwsSessionToken; theAwsSessionToken = this.getAwsSessionToken(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "awsSessionToken", theAwsSessionToken), currentHashCode, theAwsSessionToken, (this.awsSessionToken!= null)); } { XMLGregorianCalendar theAwsSessionExpirationTime; theAwsSessionExpirationTime = this.getAwsSessionExpirationTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "awsSessionExpirationTime", theAwsSessionExpirationTime), currentHashCode, theAwsSessionExpirationTime, (this.awsSessionExpirationTime!= null)); } { String thePreSignedUrl; thePreSignedUrl = this.getPreSignedUrl(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "preSignedUrl", thePreSignedUrl), currentHashCode, thePreSignedUrl, (this.preSignedUrl!= null)); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public Object clone() { return copyTo(createNewInstance()); } public Object copyTo(Object target) { final CopyStrategy2 strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, strategy); } public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof DownloadSingleInitiationResponse) { final DownloadSingleInitiationResponse copy = ((DownloadSingleInitiationResponse) draftCopy); { Boolean businessObjectDataShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.businessObjectData!= null)); if (businessObjectDataShouldBeCopiedAndSet == Boolean.TRUE) { BusinessObjectData sourceBusinessObjectData; sourceBusinessObjectData = this.getBusinessObjectData(); BusinessObjectData copyBusinessObjectData = ((BusinessObjectData) strategy.copy(LocatorUtils.property(locator, "businessObjectData", sourceBusinessObjectData), sourceBusinessObjectData, (this.businessObjectData!= null))); copy.setBusinessObjectData(copyBusinessObjectData); } else { if (businessObjectDataShouldBeCopiedAndSet == Boolean.FALSE) { copy.businessObjectData = null; } } } { Boolean awsAccessKeyShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.awsAccessKey!= null)); if (awsAccessKeyShouldBeCopiedAndSet == Boolean.TRUE) { String sourceAwsAccessKey; sourceAwsAccessKey = this.getAwsAccessKey(); String copyAwsAccessKey = ((String) strategy.copy(LocatorUtils.property(locator, "awsAccessKey", sourceAwsAccessKey), sourceAwsAccessKey, (this.awsAccessKey!= null))); copy.setAwsAccessKey(copyAwsAccessKey); } else { if (awsAccessKeyShouldBeCopiedAndSet == Boolean.FALSE) { copy.awsAccessKey = null; } } } { Boolean awsSecretKeyShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.awsSecretKey!= null)); if (awsSecretKeyShouldBeCopiedAndSet == Boolean.TRUE) { String sourceAwsSecretKey; sourceAwsSecretKey = this.getAwsSecretKey(); String copyAwsSecretKey = ((String) strategy.copy(LocatorUtils.property(locator, "awsSecretKey", sourceAwsSecretKey), sourceAwsSecretKey, (this.awsSecretKey!= null))); copy.setAwsSecretKey(copyAwsSecretKey); } else { if (awsSecretKeyShouldBeCopiedAndSet == Boolean.FALSE) { copy.awsSecretKey = null; } } } { Boolean awsSessionTokenShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.awsSessionToken!= null)); if (awsSessionTokenShouldBeCopiedAndSet == Boolean.TRUE) { String sourceAwsSessionToken; sourceAwsSessionToken = this.getAwsSessionToken(); String copyAwsSessionToken = ((String) strategy.copy(LocatorUtils.property(locator, "awsSessionToken", sourceAwsSessionToken), sourceAwsSessionToken, (this.awsSessionToken!= null))); copy.setAwsSessionToken(copyAwsSessionToken); } else { if (awsSessionTokenShouldBeCopiedAndSet == Boolean.FALSE) { copy.awsSessionToken = null; } } } { Boolean awsSessionExpirationTimeShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.awsSessionExpirationTime!= null)); if (awsSessionExpirationTimeShouldBeCopiedAndSet == Boolean.TRUE) { XMLGregorianCalendar sourceAwsSessionExpirationTime; sourceAwsSessionExpirationTime = this.getAwsSessionExpirationTime(); XMLGregorianCalendar copyAwsSessionExpirationTime = ((XMLGregorianCalendar) strategy.copy(LocatorUtils.property(locator, "awsSessionExpirationTime", sourceAwsSessionExpirationTime), sourceAwsSessionExpirationTime, (this.awsSessionExpirationTime!= null))); copy.setAwsSessionExpirationTime(copyAwsSessionExpirationTime); } else { if (awsSessionExpirationTimeShouldBeCopiedAndSet == Boolean.FALSE) { copy.awsSessionExpirationTime = null; } } } { Boolean preSignedUrlShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.preSignedUrl!= null)); if (preSignedUrlShouldBeCopiedAndSet == Boolean.TRUE) { String sourcePreSignedUrl; sourcePreSignedUrl = this.getPreSignedUrl(); String copyPreSignedUrl = ((String) strategy.copy(LocatorUtils.property(locator, "preSignedUrl", sourcePreSignedUrl), sourcePreSignedUrl, (this.preSignedUrl!= null))); copy.setPreSignedUrl(copyPreSignedUrl); } else { if (preSignedUrlShouldBeCopiedAndSet == Boolean.FALSE) { copy.preSignedUrl = null; } } } } return draftCopy; } public Object createNewInstance() { return new DownloadSingleInitiationResponse(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy