if (getAttributes() != null) sb.append("Attributes: ").append(getAttributes()).append(","); if (getUserAttributes() != null) sb.append("UserAttributes: ").append(getUserAttributes()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getSchemaVersion() == null) ? 0 : getSchemaVersion().hashCode()); hashCode = prime * hashCode + ((getService() == null) ? 0 : getService().hashCode()); hashCode = prime * hashCode + ((getServiceAttributes() == null) ? 0 : getServiceAttributes().hashCode()); hashCode = prime * hashCode + ((getAssetType() == null) ? 0 : getAssetType().hashCode()); hashCode = prime * hashCode + ((getAssetAttributes() == null) ? 0 : getAssetAttributes().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getTitle() == null) ? 0 : getTitle().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getRecommendation() == null) ? 0 : getRecommendation().hashCode()); hashCode = prime * hashCode + ((getSeverity() == null) ? 0 : getSeverity().hashCode()); hashCode = prime * hashCode + ((getNumericSeverity() == null) ? 0 : getNumericSeverity().hashCode()); hashCode = prime * hashCode + ((getConfidence() == null) ? 0 : getConfidence().hashCode()); hashCode = prime * hashCode + ((getIndicatorOfCompromise() == null) ? 0 : getIndicatorOfCompromise().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); hashCode = prime * hashCode + ((getUserAttributes() == null) ? 0 : getUserAttributes().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode()); return hashCode; }
if (other.getAttributes() != null && other.getAttributes().equals(this.getAttributes()) == false) return false; if (other.getUserAttributes() == null ^ this.getUserAttributes() == null) return false; if (other.getUserAttributes() != null && other.getUserAttributes().equals(this.getUserAttributes()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null)
/** * Marshall the given parameter object. */ public void marshall(Finding finding, ProtocolMarshaller protocolMarshaller) { if (finding == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(finding.getArn(), ARN_BINDING); protocolMarshaller.marshall(finding.getSchemaVersion(), SCHEMAVERSION_BINDING); protocolMarshaller.marshall(finding.getService(), SERVICE_BINDING); protocolMarshaller.marshall(finding.getServiceAttributes(), SERVICEATTRIBUTES_BINDING); protocolMarshaller.marshall(finding.getAssetType(), ASSETTYPE_BINDING); protocolMarshaller.marshall(finding.getAssetAttributes(), ASSETATTRIBUTES_BINDING); protocolMarshaller.marshall(finding.getId(), ID_BINDING); protocolMarshaller.marshall(finding.getTitle(), TITLE_BINDING); protocolMarshaller.marshall(finding.getDescription(), DESCRIPTION_BINDING); protocolMarshaller.marshall(finding.getRecommendation(), RECOMMENDATION_BINDING); protocolMarshaller.marshall(finding.getSeverity(), SEVERITY_BINDING); protocolMarshaller.marshall(finding.getNumericSeverity(), NUMERICSEVERITY_BINDING); protocolMarshaller.marshall(finding.getConfidence(), CONFIDENCE_BINDING); protocolMarshaller.marshall(finding.getIndicatorOfCompromise(), INDICATOROFCOMPROMISE_BINDING); protocolMarshaller.marshall(finding.getAttributes(), ATTRIBUTES_BINDING); protocolMarshaller.marshall(finding.getUserAttributes(), USERATTRIBUTES_BINDING); protocolMarshaller.marshall(finding.getCreatedAt(), CREATEDAT_BINDING); protocolMarshaller.marshall(finding.getUpdatedAt(), UPDATEDAT_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
if (getAttributes() != null) sb.append("Attributes: ").append(getAttributes()).append(","); if (getUserAttributes() != null) sb.append("UserAttributes: ").append(getUserAttributes()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getSchemaVersion() == null) ? 0 : getSchemaVersion().hashCode()); hashCode = prime * hashCode + ((getService() == null) ? 0 : getService().hashCode()); hashCode = prime * hashCode + ((getServiceAttributes() == null) ? 0 : getServiceAttributes().hashCode()); hashCode = prime * hashCode + ((getAssetType() == null) ? 0 : getAssetType().hashCode()); hashCode = prime * hashCode + ((getAssetAttributes() == null) ? 0 : getAssetAttributes().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getTitle() == null) ? 0 : getTitle().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getRecommendation() == null) ? 0 : getRecommendation().hashCode()); hashCode = prime * hashCode + ((getSeverity() == null) ? 0 : getSeverity().hashCode()); hashCode = prime * hashCode + ((getNumericSeverity() == null) ? 0 : getNumericSeverity().hashCode()); hashCode = prime * hashCode + ((getConfidence() == null) ? 0 : getConfidence().hashCode()); hashCode = prime * hashCode + ((getIndicatorOfCompromise() == null) ? 0 : getIndicatorOfCompromise().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); hashCode = prime * hashCode + ((getUserAttributes() == null) ? 0 : getUserAttributes().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode()); return hashCode; }
if (other.getAttributes() != null && other.getAttributes().equals(this.getAttributes()) == false) return false; if (other.getUserAttributes() == null ^ this.getUserAttributes() == null) return false; if (other.getUserAttributes() != null && other.getUserAttributes().equals(this.getUserAttributes()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null)
/** * Marshall the given parameter object. */ public void marshall(Finding finding, ProtocolMarshaller protocolMarshaller) { if (finding == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(finding.getArn(), ARN_BINDING); protocolMarshaller.marshall(finding.getSchemaVersion(), SCHEMAVERSION_BINDING); protocolMarshaller.marshall(finding.getService(), SERVICE_BINDING); protocolMarshaller.marshall(finding.getServiceAttributes(), SERVICEATTRIBUTES_BINDING); protocolMarshaller.marshall(finding.getAssetType(), ASSETTYPE_BINDING); protocolMarshaller.marshall(finding.getAssetAttributes(), ASSETATTRIBUTES_BINDING); protocolMarshaller.marshall(finding.getId(), ID_BINDING); protocolMarshaller.marshall(finding.getTitle(), TITLE_BINDING); protocolMarshaller.marshall(finding.getDescription(), DESCRIPTION_BINDING); protocolMarshaller.marshall(finding.getRecommendation(), RECOMMENDATION_BINDING); protocolMarshaller.marshall(finding.getSeverity(), SEVERITY_BINDING); protocolMarshaller.marshall(finding.getNumericSeverity(), NUMERICSEVERITY_BINDING); protocolMarshaller.marshall(finding.getConfidence(), CONFIDENCE_BINDING); protocolMarshaller.marshall(finding.getIndicatorOfCompromise(), INDICATOROFCOMPROMISE_BINDING); protocolMarshaller.marshall(finding.getAttributes(), ATTRIBUTES_BINDING); protocolMarshaller.marshall(finding.getUserAttributes(), USERATTRIBUTES_BINDING); protocolMarshaller.marshall(finding.getCreatedAt(), CREATEDAT_BINDING); protocolMarshaller.marshall(finding.getUpdatedAt(), UPDATEDAT_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }