/* * Copyright 2018-2023 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 files infected with the given threat providing details of malware name and severity. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ScanThreatName implements Serializable, Cloneable, StructuredPojo { /** ** The name of the identified threat. *
*/ private String name; /** ** Severity of threat identified as part of the malware scan. *
*/ private String severity; /** ** Total number of files infected with given threat. *
*/ private Integer itemCount; /** ** List of infected files in EBS volume with details. *
*/ private java.util.List* The name of the identified threat. *
* * @param name * The name of the identified threat. */ public void setName(String name) { this.name = name; } /** ** The name of the identified threat. *
* * @return The name of the identified threat. */ public String getName() { return this.name; } /** ** The name of the identified threat. *
* * @param name * The name of the identified threat. * @return Returns a reference to this object so that method calls can be chained together. */ public ScanThreatName withName(String name) { setName(name); return this; } /** ** Severity of threat identified as part of the malware scan. *
* * @param severity * Severity of threat identified as part of the malware scan. */ public void setSeverity(String severity) { this.severity = severity; } /** ** Severity of threat identified as part of the malware scan. *
* * @return Severity of threat identified as part of the malware scan. */ public String getSeverity() { return this.severity; } /** ** Severity of threat identified as part of the malware scan. *
* * @param severity * Severity of threat identified as part of the malware scan. * @return Returns a reference to this object so that method calls can be chained together. */ public ScanThreatName withSeverity(String severity) { setSeverity(severity); return this; } /** ** Total number of files infected with given threat. *
* * @param itemCount * Total number of files infected with given threat. */ public void setItemCount(Integer itemCount) { this.itemCount = itemCount; } /** ** Total number of files infected with given threat. *
* * @return Total number of files infected with given threat. */ public Integer getItemCount() { return this.itemCount; } /** ** Total number of files infected with given threat. *
* * @param itemCount * Total number of files infected with given threat. * @return Returns a reference to this object so that method calls can be chained together. */ public ScanThreatName withItemCount(Integer itemCount) { setItemCount(itemCount); return this; } /** ** List of infected files in EBS volume with details. *
* * @return List of infected files in EBS volume with details. */ public java.util.List* List of infected files in EBS volume with details. *
* * @param filePaths * List of infected files in EBS volume with details. */ public void setFilePaths(java.util.Collection* List of infected files in EBS volume with details. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setFilePaths(java.util.Collection)} or {@link #withFilePaths(java.util.Collection)} if you want to * override the existing values. *
* * @param filePaths * List of infected files in EBS volume with details. * @return Returns a reference to this object so that method calls can be chained together. */ public ScanThreatName withFilePaths(ScanFilePath... filePaths) { if (this.filePaths == null) { setFilePaths(new java.util.ArrayList* List of infected files in EBS volume with details. *
* * @param filePaths * List of infected files in EBS volume with details. * @return Returns a reference to this object so that method calls can be chained together. */ public ScanThreatName withFilePaths(java.util.Collection