org.finra.herd.model.api.xml.UploadSingleCredentialExtensionResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of herd-model-api-15 Show documentation
Show all versions of herd-model-api-15 Show documentation
This project contains the model API classes compiled for JDK 1.5 and above. This project depends on herd-model-api and should not contain any
actual files.
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 uploadSingleCredentialExtensionResponse complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="uploadSingleCredentialExtensionResponse">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <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"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "uploadSingleCredentialExtensionResponse", propOrder = {
"awsAccessKey",
"awsSecretKey",
"awsSessionToken",
"awsSessionExpirationTime"
})
@XmlRootElement(name = "uploadSingleCredentialExtensionResponse")
public class UploadSingleCredentialExtensionResponse implements Serializable, Cloneable, CopyTo2, Equals2, HashCode2, ToString2
{
private final static long serialVersionUID = -1L;
@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;
/**
* Default no-arg constructor
*
*/
public UploadSingleCredentialExtensionResponse() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public UploadSingleCredentialExtensionResponse(final String awsAccessKey, final String awsSecretKey, final String awsSessionToken, final XMLGregorianCalendar awsSessionExpirationTime) {
this.awsAccessKey = awsAccessKey;
this.awsSecretKey = awsSecretKey;
this.awsSessionToken = awsSessionToken;
this.awsSessionExpirationTime = awsSessionExpirationTime;
}
/**
* 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;
}
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) {
{
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));
}
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 UploadSingleCredentialExtensionResponse that = ((UploadSingleCredentialExtensionResponse) object);
{
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;
}
}
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;
{
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));
}
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 UploadSingleCredentialExtensionResponse) {
final UploadSingleCredentialExtensionResponse copy = ((UploadSingleCredentialExtensionResponse) draftCopy);
{
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;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new UploadSingleCredentialExtensionResponse();
}
}