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

com.ksc.epc.model.DescribeInspectionsResult 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 DescribeInspections. *

*/ @Data public class DescribeInspectionsResult implements Serializable, Cloneable { private String RequestId; private SdkInternalList InspectionSet; private Integer TotalCount; private String NextToken; @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; DescribeInspectionsResult that = (DescribeInspectionsResult) o; if (RequestId != null ? !RequestId.equals(that.RequestId) : that.RequestId != null) return false; if (InspectionSet != null ? !InspectionSet.equals(that.InspectionSet) : that.InspectionSet != null) return false; if (TotalCount != null ? !TotalCount.equals(that.TotalCount) : that.TotalCount != null) return false; if (NextToken != null ? !NextToken.equals(that.NextToken) : that.NextToken != null) return false; return true; } @Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (RequestId != null ? RequestId.hashCode() : 0); result = 31 * result + (InspectionSet != null ? InspectionSet.hashCode() : 0); result = 31 * result + (TotalCount != null ? TotalCount.hashCode() : 0); result = 31 * result + (NextToken != null ? NextToken.hashCode() : 0); return result; } public void addInspectionSet(Inspection... inspections) { if (this.InspectionSet == null) { this.InspectionSet = new SdkInternalList(); } for (Inspection inspection : inspections) { this.InspectionSet.add(inspection); } } public void setInspectionSet(List inspections) { this.InspectionSet = new SdkInternalList(inspections); } @Override public DescribeInspectionsResult clone() { try { return (DescribeInspectionsResult) 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