/** * RevokeQualificationRequest.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 RevokeQualificationRequest implements java.io.Serializable { private java.lang.String subjectId; private java.lang.String qualificationTypeId; private java.lang.String reason; private java.lang.String[] responseGroup; public RevokeQualificationRequest() { } public RevokeQualificationRequest( java.lang.String subjectId, java.lang.String qualificationTypeId, java.lang.String reason, java.lang.String[] responseGroup) { this.subjectId = subjectId; this.qualificationTypeId = qualificationTypeId; this.reason = reason; this.responseGroup = responseGroup; } /** * Gets the subjectId value for this RevokeQualificationRequest. * * @return subjectId */ public java.lang.String getSubjectId() { return subjectId; } /** * Sets the subjectId value for this RevokeQualificationRequest. * * @param subjectId */ public void setSubjectId(java.lang.String subjectId) { this.subjectId = subjectId; } /** * Gets the qualificationTypeId value for this RevokeQualificationRequest. * * @return qualificationTypeId */ public java.lang.String getQualificationTypeId() { return qualificationTypeId; } /** * Sets the qualificationTypeId value for this RevokeQualificationRequest. * * @param qualificationTypeId */ public void setQualificationTypeId(java.lang.String qualificationTypeId) { this.qualificationTypeId = qualificationTypeId; } /** * Gets the reason value for this RevokeQualificationRequest. * * @return reason */ public java.lang.String getReason() { return reason; } /** * Sets the reason value for this RevokeQualificationRequest. * * @param reason */ public void setReason(java.lang.String reason) { this.reason = reason; } /** * Gets the responseGroup value for this RevokeQualificationRequest. * * @return responseGroup */ public java.lang.String[] getResponseGroup() { return responseGroup; } /** * Sets the responseGroup value for this RevokeQualificationRequest. * * @param responseGroup */ public void setResponseGroup(java.lang.String[] responseGroup) { this.responseGroup = responseGroup; } public java.lang.String getResponseGroup(int i) { return this.responseGroup[i]; } public void setResponseGroup(int i, java.lang.String _value) { this.responseGroup[i] = _value; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof RevokeQualificationRequest)) return false; RevokeQualificationRequest other = (RevokeQualificationRequest) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.subjectId==null && other.getSubjectId()==null) || (this.subjectId!=null && this.subjectId.equals(other.getSubjectId()))) && ((this.qualificationTypeId==null && other.getQualificationTypeId()==null) || (this.qualificationTypeId!=null && this.qualificationTypeId.equals(other.getQualificationTypeId()))) && ((this.reason==null && other.getReason()==null) || (this.reason!=null && this.reason.equals(other.getReason()))) && ((this.responseGroup==null && other.getResponseGroup()==null) || (this.responseGroup!=null && java.util.Arrays.equals(this.responseGroup, other.getResponseGroup()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getSubjectId() != null) { _hashCode += getSubjectId().hashCode(); } if (getQualificationTypeId() != null) { _hashCode += getQualificationTypeId().hashCode(); } if (getReason() != null) { _hashCode += getReason().hashCode(); } if (getResponseGroup() != null) { for (int i=0; i<java.lang.reflect.Array.getLength(getResponseGroup()); i++) { java.lang.Object obj = java.lang.reflect.Array.get(getResponseGroup(), 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(RevokeQualificationRequest.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("http://requester.mturk.amazonaws.com/doc/2007-06-21", "RevokeQualificationRequest")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("subjectId"); elemField.setXmlName(new javax.xml.namespace.QName("http://requester.mturk.amazonaws.com/doc/2007-06-21", "SubjectId")); 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("qualificationTypeId"); elemField.setXmlName(new javax.xml.namespace.QName("http://requester.mturk.amazonaws.com/doc/2007-06-21", "QualificationTypeId")); 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("reason"); elemField.setXmlName(new javax.xml.namespace.QName("http://requester.mturk.amazonaws.com/doc/2007-06-21", "Reason")); 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("responseGroup"); elemField.setXmlName(new javax.xml.namespace.QName("http://requester.mturk.amazonaws.com/doc/2007-06-21", "ResponseGroup")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); elemField.setMinOccurs(0); 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); } }