/* * 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 details about identified threats organized by threat name. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ThreatDetectedByName implements Serializable, Cloneable, StructuredPojo { /** ** Total number of infected files identified. *
*/ private Integer itemCount; /** ** Total number of unique threats by name identified, as part of the malware scan. *
*/ private Integer uniqueThreatNameCount; /** ** Flag to determine if the finding contains every single infected file-path and/or every threat. *
*/ private Boolean shortened; /** ** List of identified threats with details, organized by threat name. *
*/ private java.util.List* Total number of infected files identified. *
* * @param itemCount * Total number of infected files identified. */ public void setItemCount(Integer itemCount) { this.itemCount = itemCount; } /** ** Total number of infected files identified. *
* * @return Total number of infected files identified. */ public Integer getItemCount() { return this.itemCount; } /** ** Total number of infected files identified. *
* * @param itemCount * Total number of infected files identified. * @return Returns a reference to this object so that method calls can be chained together. */ public ThreatDetectedByName withItemCount(Integer itemCount) { setItemCount(itemCount); return this; } /** ** Total number of unique threats by name identified, as part of the malware scan. *
* * @param uniqueThreatNameCount * Total number of unique threats by name identified, as part of the malware scan. */ public void setUniqueThreatNameCount(Integer uniqueThreatNameCount) { this.uniqueThreatNameCount = uniqueThreatNameCount; } /** ** Total number of unique threats by name identified, as part of the malware scan. *
* * @return Total number of unique threats by name identified, as part of the malware scan. */ public Integer getUniqueThreatNameCount() { return this.uniqueThreatNameCount; } /** ** Total number of unique threats by name identified, as part of the malware scan. *
* * @param uniqueThreatNameCount * Total number of unique threats by name identified, as part of the malware scan. * @return Returns a reference to this object so that method calls can be chained together. */ public ThreatDetectedByName withUniqueThreatNameCount(Integer uniqueThreatNameCount) { setUniqueThreatNameCount(uniqueThreatNameCount); return this; } /** ** Flag to determine if the finding contains every single infected file-path and/or every threat. *
* * @param shortened * Flag to determine if the finding contains every single infected file-path and/or every threat. */ public void setShortened(Boolean shortened) { this.shortened = shortened; } /** ** Flag to determine if the finding contains every single infected file-path and/or every threat. *
* * @return Flag to determine if the finding contains every single infected file-path and/or every threat. */ public Boolean getShortened() { return this.shortened; } /** ** Flag to determine if the finding contains every single infected file-path and/or every threat. *
* * @param shortened * Flag to determine if the finding contains every single infected file-path and/or every threat. * @return Returns a reference to this object so that method calls can be chained together. */ public ThreatDetectedByName withShortened(Boolean shortened) { setShortened(shortened); return this; } /** ** Flag to determine if the finding contains every single infected file-path and/or every threat. *
* * @return Flag to determine if the finding contains every single infected file-path and/or every threat. */ public Boolean isShortened() { return this.shortened; } /** ** List of identified threats with details, organized by threat name. *
* * @return List of identified threats with details, organized by threat name. */ public java.util.List* List of identified threats with details, organized by threat name. *
* * @param threatNames * List of identified threats with details, organized by threat name. */ public void setThreatNames(java.util.Collection* List of identified threats with details, organized by threat name. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setThreatNames(java.util.Collection)} or {@link #withThreatNames(java.util.Collection)} if you want to * override the existing values. *
* * @param threatNames * List of identified threats with details, organized by threat name. * @return Returns a reference to this object so that method calls can be chained together. */ public ThreatDetectedByName withThreatNames(ScanThreatName... threatNames) { if (this.threatNames == null) { setThreatNames(new java.util.ArrayList* List of identified threats with details, organized by threat name. *
* * @param threatNames * List of identified threats with details, organized by threat name. * @return Returns a reference to this object so that method calls can be chained together. */ public ThreatDetectedByName withThreatNames(java.util.Collection