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

com.ksc.epc.model.DescribeEpcAvailableStocksResult Maven / Gradle / Ivy

package com.ksc.epc.model;

import lombok.Data;

import java.io.Serializable;
import com.ksc.internal.SdkInternalList;
import java.util.List;

/**
 * 

* Contains the output of DescribeEpcAvailableStocks. *

*/ @Data public class DescribeEpcAvailableStocksResult implements Serializable, Cloneable { private String RequestId; private SdkInternalList EpcAvailableStockSet; @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; DescribeEpcAvailableStocksResult that = (DescribeEpcAvailableStocksResult) o; if (RequestId != null ? !RequestId.equals(that.RequestId) : that.RequestId != null) return false; if (EpcAvailableStockSet != null ? !EpcAvailableStockSet.equals(that.EpcAvailableStockSet) : that.EpcAvailableStockSet != null) return false; return true; } @Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (RequestId != null ? RequestId.hashCode() : 0); result = 31 * result + (EpcAvailableStockSet != null ? EpcAvailableStockSet.hashCode() : 0); return result; } public void addEpcAvailableStockSet(Stock... stocks) { if (this.EpcAvailableStockSet == null) { this.EpcAvailableStockSet = new SdkInternalList(); } for (Stock stock : stocks) { this.EpcAvailableStockSet.add(stock); } } public void setEpcAvailableStockSet(List stocks) { this.EpcAvailableStockSet = new SdkInternalList(stocks); } @Override public DescribeEpcAvailableStocksResult clone() { try { return (DescribeEpcAvailableStocksResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException( "Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy