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

com.amazonaws.services.guardduty.model.ScanDetections Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon GuardDuty module holds the client classes that are used for communicating with Amazon GuardDuty Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.guardduty.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Contains a complete view providing malware scan result details. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ScanDetections implements Serializable, Cloneable, StructuredPojo { /** *

* Total number of scanned files. *

*/ private ScannedItemCount scannedItemCount; /** *

* Total number of infected files. *

*/ private ThreatsDetectedItemCount threatsDetectedItemCount; /** *

* Details of the highest severity threat detected during malware scan and number of infected files. *

*/ private HighestSeverityThreatDetails highestSeverityThreatDetails; /** *

* Contains details about identified threats organized by threat name. *

*/ private ThreatDetectedByName threatDetectedByName; /** *

* Total number of scanned files. *

* * @param scannedItemCount * Total number of scanned files. */ public void setScannedItemCount(ScannedItemCount scannedItemCount) { this.scannedItemCount = scannedItemCount; } /** *

* Total number of scanned files. *

* * @return Total number of scanned files. */ public ScannedItemCount getScannedItemCount() { return this.scannedItemCount; } /** *

* Total number of scanned files. *

* * @param scannedItemCount * Total number of scanned files. * @return Returns a reference to this object so that method calls can be chained together. */ public ScanDetections withScannedItemCount(ScannedItemCount scannedItemCount) { setScannedItemCount(scannedItemCount); return this; } /** *

* Total number of infected files. *

* * @param threatsDetectedItemCount * Total number of infected files. */ public void setThreatsDetectedItemCount(ThreatsDetectedItemCount threatsDetectedItemCount) { this.threatsDetectedItemCount = threatsDetectedItemCount; } /** *

* Total number of infected files. *

* * @return Total number of infected files. */ public ThreatsDetectedItemCount getThreatsDetectedItemCount() { return this.threatsDetectedItemCount; } /** *

* Total number of infected files. *

* * @param threatsDetectedItemCount * Total number of infected files. * @return Returns a reference to this object so that method calls can be chained together. */ public ScanDetections withThreatsDetectedItemCount(ThreatsDetectedItemCount threatsDetectedItemCount) { setThreatsDetectedItemCount(threatsDetectedItemCount); return this; } /** *

* Details of the highest severity threat detected during malware scan and number of infected files. *

* * @param highestSeverityThreatDetails * Details of the highest severity threat detected during malware scan and number of infected files. */ public void setHighestSeverityThreatDetails(HighestSeverityThreatDetails highestSeverityThreatDetails) { this.highestSeverityThreatDetails = highestSeverityThreatDetails; } /** *

* Details of the highest severity threat detected during malware scan and number of infected files. *

* * @return Details of the highest severity threat detected during malware scan and number of infected files. */ public HighestSeverityThreatDetails getHighestSeverityThreatDetails() { return this.highestSeverityThreatDetails; } /** *

* Details of the highest severity threat detected during malware scan and number of infected files. *

* * @param highestSeverityThreatDetails * Details of the highest severity threat detected during malware scan and number of infected files. * @return Returns a reference to this object so that method calls can be chained together. */ public ScanDetections withHighestSeverityThreatDetails(HighestSeverityThreatDetails highestSeverityThreatDetails) { setHighestSeverityThreatDetails(highestSeverityThreatDetails); return this; } /** *

* Contains details about identified threats organized by threat name. *

* * @param threatDetectedByName * Contains details about identified threats organized by threat name. */ public void setThreatDetectedByName(ThreatDetectedByName threatDetectedByName) { this.threatDetectedByName = threatDetectedByName; } /** *

* Contains details about identified threats organized by threat name. *

* * @return Contains details about identified threats organized by threat name. */ public ThreatDetectedByName getThreatDetectedByName() { return this.threatDetectedByName; } /** *

* Contains details about identified threats organized by threat name. *

* * @param threatDetectedByName * Contains details about identified threats organized by threat name. * @return Returns a reference to this object so that method calls can be chained together. */ public ScanDetections withThreatDetectedByName(ThreatDetectedByName threatDetectedByName) { setThreatDetectedByName(threatDetectedByName); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getScannedItemCount() != null) sb.append("ScannedItemCount: ").append(getScannedItemCount()).append(","); if (getThreatsDetectedItemCount() != null) sb.append("ThreatsDetectedItemCount: ").append(getThreatsDetectedItemCount()).append(","); if (getHighestSeverityThreatDetails() != null) sb.append("HighestSeverityThreatDetails: ").append(getHighestSeverityThreatDetails()).append(","); if (getThreatDetectedByName() != null) sb.append("ThreatDetectedByName: ").append(getThreatDetectedByName()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ScanDetections == false) return false; ScanDetections other = (ScanDetections) obj; if (other.getScannedItemCount() == null ^ this.getScannedItemCount() == null) return false; if (other.getScannedItemCount() != null && other.getScannedItemCount().equals(this.getScannedItemCount()) == false) return false; if (other.getThreatsDetectedItemCount() == null ^ this.getThreatsDetectedItemCount() == null) return false; if (other.getThreatsDetectedItemCount() != null && other.getThreatsDetectedItemCount().equals(this.getThreatsDetectedItemCount()) == false) return false; if (other.getHighestSeverityThreatDetails() == null ^ this.getHighestSeverityThreatDetails() == null) return false; if (other.getHighestSeverityThreatDetails() != null && other.getHighestSeverityThreatDetails().equals(this.getHighestSeverityThreatDetails()) == false) return false; if (other.getThreatDetectedByName() == null ^ this.getThreatDetectedByName() == null) return false; if (other.getThreatDetectedByName() != null && other.getThreatDetectedByName().equals(this.getThreatDetectedByName()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getScannedItemCount() == null) ? 0 : getScannedItemCount().hashCode()); hashCode = prime * hashCode + ((getThreatsDetectedItemCount() == null) ? 0 : getThreatsDetectedItemCount().hashCode()); hashCode = prime * hashCode + ((getHighestSeverityThreatDetails() == null) ? 0 : getHighestSeverityThreatDetails().hashCode()); hashCode = prime * hashCode + ((getThreatDetectedByName() == null) ? 0 : getThreatDetectedByName().hashCode()); return hashCode; } @Override public ScanDetections clone() { try { return (ScanDetections) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.guardduty.model.transform.ScanDetectionsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy