/**
* CreateHIT.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.amazonaws.mturk.requester;
public class CreateHIT implements java.io.Serializable {
private java.lang.String AWSAccessKeyId;
private java.util.Calendar timestamp;
private java.lang.String signature;
private java.lang.String validate;
private java.lang.String credential;
private com.amazonaws.mturk.requester.CreateHITRequest[] request;
public CreateHIT() {
}
public CreateHIT(
java.lang.String AWSAccessKeyId,
java.util.Calendar timestamp,
java.lang.String signature,
java.lang.String validate,
java.lang.String credential,
com.amazonaws.mturk.requester.CreateHITRequest[] request) {
this.AWSAccessKeyId = AWSAccessKeyId;
this.timestamp = timestamp;
this.signature = signature;
this.validate = validate;
this.credential = credential;
this.request = request;
}
/**
* Gets the AWSAccessKeyId value for this CreateHIT.
*
* @return AWSAccessKeyId
*/
public java.lang.String getAWSAccessKeyId() {
return AWSAccessKeyId;
}
/**
* Sets the AWSAccessKeyId value for this CreateHIT.
*
* @param AWSAccessKeyId
*/
public void setAWSAccessKeyId(java.lang.String AWSAccessKeyId) {
this.AWSAccessKeyId = AWSAccessKeyId;
}
/**
* Gets the timestamp value for this CreateHIT.
*
* @return timestamp
*/
public java.util.Calendar getTimestamp() {
return timestamp;
}
/**
* Sets the timestamp value for this CreateHIT.
*
* @param timestamp
*/
public void setTimestamp(java.util.Calendar timestamp) {
this.timestamp = timestamp;
}
/**
* Gets the signature value for this CreateHIT.
*
* @return signature
*/
public java.lang.String getSignature() {
return signature;
}
/**
* Sets the signature value for this CreateHIT.
*
* @param signature
*/
public void setSignature(java.lang.String signature) {
this.signature = signature;
}
/**
* Gets the validate value for this CreateHIT.
*
* @return validate
*/
public java.lang.String getValidate() {
return validate;
}
/**
* Sets the validate value for this CreateHIT.
*
* @param validate
*/
public void setValidate(java.lang.String validate) {
this.validate = validate;
}
/**
* Gets the credential value for this CreateHIT.
*
* @return credential
*/
public java.lang.String getCredential() {
return credential;
}
/**
* Sets the credential value for this CreateHIT.
*
* @param credential
*/
public void setCredential(java.lang.String credential) {
this.credential = credential;
}
/**
* Gets the request value for this CreateHIT.
*
* @return request
*/
public com.amazonaws.mturk.requester.CreateHITRequest[] getRequest() {
return request;
}
/**
* Sets the request value for this CreateHIT.
*
* @param request
*/
public void setRequest(com.amazonaws.mturk.requester.CreateHITRequest[] request) {
this.request = request;
}
public com.amazonaws.mturk.requester.CreateHITRequest getRequest(int i) {
return this.request[i];
}
public void setRequest(int i, com.amazonaws.mturk.requester.CreateHITRequest _value) {
this.request[i] = _value;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof CreateHIT)) return false;
CreateHIT other = (CreateHIT) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.AWSAccessKeyId==null && other.getAWSAccessKeyId()==null) ||
(this.AWSAccessKeyId!=null &&
this.AWSAccessKeyId.equals(other.getAWSAccessKeyId()))) &&
((this.timestamp==null && other.getTimestamp()==null) ||
(this.timestamp!=null &&
this.timestamp.equals(other.getTimestamp()))) &&
((this.signature==null && other.getSignature()==null) ||
(this.signature!=null &&
this.signature.equals(other.getSignature()))) &&
((this.validate==null && other.getValidate()==null) ||
(this.validate!=null &&
this.validate.equals(other.getValidate()))) &&
((this.credential==null && other.getCredential()==null) ||
(this.credential!=null &&
this.credential.equals(other.getCredential()))) &&
((this.request==null && other.getRequest()==null) ||
(this.request!=null &&
java.util.Arrays.equals(this.request, other.getRequest())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getAWSAccessKeyId() != null) {
_hashCode += getAWSAccessKeyId().hashCode();
}
if (getTimestamp() != null) {
_hashCode += getTimestamp().hashCode();
}
if (getSignature() != null) {
_hashCode += getSignature().hashCode();
}
if (getValidate() != null) {
_hashCode += getValidate().hashCode();
}
if (getCredential() != null) {
_hashCode += getCredential().hashCode();
}
if (getRequest() != null) {
for (int i=0;
i<java.lang.reflect.Array.getLength(getRequest());
i++) {
java.lang.Object obj = java.lang.reflect.Array.get(getRequest(), i);
if (obj != null &&
!obj.getClass().isArray()) {
_hashCode += obj.hashCode();
}
}
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(CreateHIT.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://requester.mturk.amazonaws.com/doc/2007-06-21", ">CreateHIT"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("AWSAccessKeyId");
elemField.setXmlName(new javax.xml.namespace.QName("http://requester.mturk.amazonaws.com/doc/2007-06-21", "AWSAccessKeyId"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("timestamp");
elemField.setXmlName(new javax.xml.namespace.QName("http://requester.mturk.amazonaws.com/doc/2007-06-21", "Timestamp"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("signature");
elemField.setXmlName(new javax.xml.namespace.QName("http://requester.mturk.amazonaws.com/doc/2007-06-21", "Signature"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("validate");
elemField.setXmlName(new javax.xml.namespace.QName("http://requester.mturk.amazonaws.com/doc/2007-06-21", "Validate"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("credential");
elemField.setXmlName(new javax.xml.namespace.QName("http://requester.mturk.amazonaws.com/doc/2007-06-21", "Credential"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("request");
elemField.setXmlName(new javax.xml.namespace.QName("http://requester.mturk.amazonaws.com/doc/2007-06-21", "Request"));
elemField.setXmlType(new javax.xml.namespace.QName("http://requester.mturk.amazonaws.com/doc/2007-06-21", "CreateHITRequest"));
elemField.setNillable(false);
elemField.setMaxOccursUnbounded(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}