
com.fedex.rate.stub.RateRequest Maven / Gradle / Ivy
The newest version!
/**
* RateRequest.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.fedex.rate.stub;
public class RateRequest implements java.io.Serializable {
/* Descriptive data to be used in authentication of the sender's
* identity (and right to use FedEx web services). */
private com.fedex.rate.stub.WebAuthenticationDetail webAuthenticationDetail;
private com.fedex.rate.stub.ClientDetail clientDetail;
private com.fedex.rate.stub.TransactionDetail transactionDetail;
private com.fedex.rate.stub.VersionId version;
/* Allows the caller to specify that the transit time and commit
* data are to be returned in the reply. */
private java.lang.Boolean returnTransitAndCommit;
/* Candidate carriers for rate-shopping use case. This field is
* only considered if requestedShipment/serviceType is omitted. */
private com.fedex.rate.stub.CarrierCodeType[] carrierCodes;
/* Contains zero or more service options whose combinations are
* to be considered when replying with available services. */
private com.fedex.rate.stub.ServiceOptionType[] variableOptions;
/* If provided, identifies the consolidation to which this open
* shipment should be added after successful creation. */
private com.fedex.rate.stub.ConsolidationKey consolidationKey;
/* The shipment for which a rate quote (or rate-shopping comparison)
* is desired. */
private com.fedex.rate.stub.RequestedShipment requestedShipment;
public RateRequest() {
}
public RateRequest(
com.fedex.rate.stub.WebAuthenticationDetail webAuthenticationDetail,
com.fedex.rate.stub.ClientDetail clientDetail,
com.fedex.rate.stub.TransactionDetail transactionDetail,
com.fedex.rate.stub.VersionId version,
java.lang.Boolean returnTransitAndCommit,
com.fedex.rate.stub.CarrierCodeType[] carrierCodes,
com.fedex.rate.stub.ServiceOptionType[] variableOptions,
com.fedex.rate.stub.ConsolidationKey consolidationKey,
com.fedex.rate.stub.RequestedShipment requestedShipment) {
this.webAuthenticationDetail = webAuthenticationDetail;
this.clientDetail = clientDetail;
this.transactionDetail = transactionDetail;
this.version = version;
this.returnTransitAndCommit = returnTransitAndCommit;
this.carrierCodes = carrierCodes;
this.variableOptions = variableOptions;
this.consolidationKey = consolidationKey;
this.requestedShipment = requestedShipment;
}
/**
* Gets the webAuthenticationDetail value for this RateRequest.
*
* @return webAuthenticationDetail * Descriptive data to be used in authentication of the sender's
* identity (and right to use FedEx web services).
*/
public com.fedex.rate.stub.WebAuthenticationDetail getWebAuthenticationDetail() {
return webAuthenticationDetail;
}
/**
* Sets the webAuthenticationDetail value for this RateRequest.
*
* @param webAuthenticationDetail * Descriptive data to be used in authentication of the sender's
* identity (and right to use FedEx web services).
*/
public void setWebAuthenticationDetail(com.fedex.rate.stub.WebAuthenticationDetail webAuthenticationDetail) {
this.webAuthenticationDetail = webAuthenticationDetail;
}
/**
* Gets the clientDetail value for this RateRequest.
*
* @return clientDetail
*/
public com.fedex.rate.stub.ClientDetail getClientDetail() {
return clientDetail;
}
/**
* Sets the clientDetail value for this RateRequest.
*
* @param clientDetail
*/
public void setClientDetail(com.fedex.rate.stub.ClientDetail clientDetail) {
this.clientDetail = clientDetail;
}
/**
* Gets the transactionDetail value for this RateRequest.
*
* @return transactionDetail
*/
public com.fedex.rate.stub.TransactionDetail getTransactionDetail() {
return transactionDetail;
}
/**
* Sets the transactionDetail value for this RateRequest.
*
* @param transactionDetail
*/
public void setTransactionDetail(com.fedex.rate.stub.TransactionDetail transactionDetail) {
this.transactionDetail = transactionDetail;
}
/**
* Gets the version value for this RateRequest.
*
* @return version
*/
public com.fedex.rate.stub.VersionId getVersion() {
return version;
}
/**
* Sets the version value for this RateRequest.
*
* @param version
*/
public void setVersion(com.fedex.rate.stub.VersionId version) {
this.version = version;
}
/**
* Gets the returnTransitAndCommit value for this RateRequest.
*
* @return returnTransitAndCommit * Allows the caller to specify that the transit time and commit
* data are to be returned in the reply.
*/
public java.lang.Boolean getReturnTransitAndCommit() {
return returnTransitAndCommit;
}
/**
* Sets the returnTransitAndCommit value for this RateRequest.
*
* @param returnTransitAndCommit * Allows the caller to specify that the transit time and commit
* data are to be returned in the reply.
*/
public void setReturnTransitAndCommit(java.lang.Boolean returnTransitAndCommit) {
this.returnTransitAndCommit = returnTransitAndCommit;
}
/**
* Gets the carrierCodes value for this RateRequest.
*
* @return carrierCodes * Candidate carriers for rate-shopping use case. This field is
* only considered if requestedShipment/serviceType is omitted.
*/
public com.fedex.rate.stub.CarrierCodeType[] getCarrierCodes() {
return carrierCodes;
}
/**
* Sets the carrierCodes value for this RateRequest.
*
* @param carrierCodes * Candidate carriers for rate-shopping use case. This field is
* only considered if requestedShipment/serviceType is omitted.
*/
public void setCarrierCodes(com.fedex.rate.stub.CarrierCodeType[] carrierCodes) {
this.carrierCodes = carrierCodes;
}
public com.fedex.rate.stub.CarrierCodeType getCarrierCodes(int i) {
return this.carrierCodes[i];
}
public void setCarrierCodes(int i, com.fedex.rate.stub.CarrierCodeType _value) {
this.carrierCodes[i] = _value;
}
/**
* Gets the variableOptions value for this RateRequest.
*
* @return variableOptions * Contains zero or more service options whose combinations are
* to be considered when replying with available services.
*/
public com.fedex.rate.stub.ServiceOptionType[] getVariableOptions() {
return variableOptions;
}
/**
* Sets the variableOptions value for this RateRequest.
*
* @param variableOptions * Contains zero or more service options whose combinations are
* to be considered when replying with available services.
*/
public void setVariableOptions(com.fedex.rate.stub.ServiceOptionType[] variableOptions) {
this.variableOptions = variableOptions;
}
public com.fedex.rate.stub.ServiceOptionType getVariableOptions(int i) {
return this.variableOptions[i];
}
public void setVariableOptions(int i, com.fedex.rate.stub.ServiceOptionType _value) {
this.variableOptions[i] = _value;
}
/**
* Gets the consolidationKey value for this RateRequest.
*
* @return consolidationKey * If provided, identifies the consolidation to which this open
* shipment should be added after successful creation.
*/
public com.fedex.rate.stub.ConsolidationKey getConsolidationKey() {
return consolidationKey;
}
/**
* Sets the consolidationKey value for this RateRequest.
*
* @param consolidationKey * If provided, identifies the consolidation to which this open
* shipment should be added after successful creation.
*/
public void setConsolidationKey(com.fedex.rate.stub.ConsolidationKey consolidationKey) {
this.consolidationKey = consolidationKey;
}
/**
* Gets the requestedShipment value for this RateRequest.
*
* @return requestedShipment * The shipment for which a rate quote (or rate-shopping comparison)
* is desired.
*/
public com.fedex.rate.stub.RequestedShipment getRequestedShipment() {
return requestedShipment;
}
/**
* Sets the requestedShipment value for this RateRequest.
*
* @param requestedShipment * The shipment for which a rate quote (or rate-shopping comparison)
* is desired.
*/
public void setRequestedShipment(com.fedex.rate.stub.RequestedShipment requestedShipment) {
this.requestedShipment = requestedShipment;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof RateRequest)) return false;
RateRequest other = (RateRequest) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.webAuthenticationDetail==null && other.getWebAuthenticationDetail()==null) ||
(this.webAuthenticationDetail!=null &&
this.webAuthenticationDetail.equals(other.getWebAuthenticationDetail()))) &&
((this.clientDetail==null && other.getClientDetail()==null) ||
(this.clientDetail!=null &&
this.clientDetail.equals(other.getClientDetail()))) &&
((this.transactionDetail==null && other.getTransactionDetail()==null) ||
(this.transactionDetail!=null &&
this.transactionDetail.equals(other.getTransactionDetail()))) &&
((this.version==null && other.getVersion()==null) ||
(this.version!=null &&
this.version.equals(other.getVersion()))) &&
((this.returnTransitAndCommit==null && other.getReturnTransitAndCommit()==null) ||
(this.returnTransitAndCommit!=null &&
this.returnTransitAndCommit.equals(other.getReturnTransitAndCommit()))) &&
((this.carrierCodes==null && other.getCarrierCodes()==null) ||
(this.carrierCodes!=null &&
java.util.Arrays.equals(this.carrierCodes, other.getCarrierCodes()))) &&
((this.variableOptions==null && other.getVariableOptions()==null) ||
(this.variableOptions!=null &&
java.util.Arrays.equals(this.variableOptions, other.getVariableOptions()))) &&
((this.consolidationKey==null && other.getConsolidationKey()==null) ||
(this.consolidationKey!=null &&
this.consolidationKey.equals(other.getConsolidationKey()))) &&
((this.requestedShipment==null && other.getRequestedShipment()==null) ||
(this.requestedShipment!=null &&
this.requestedShipment.equals(other.getRequestedShipment())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getWebAuthenticationDetail() != null) {
_hashCode += getWebAuthenticationDetail().hashCode();
}
if (getClientDetail() != null) {
_hashCode += getClientDetail().hashCode();
}
if (getTransactionDetail() != null) {
_hashCode += getTransactionDetail().hashCode();
}
if (getVersion() != null) {
_hashCode += getVersion().hashCode();
}
if (getReturnTransitAndCommit() != null) {
_hashCode += getReturnTransitAndCommit().hashCode();
}
if (getCarrierCodes() != null) {
for (int i=0;
i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy