/* * 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.shield.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A summary of information about the attack. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SummarizedAttackVector implements Serializable, Cloneable, StructuredPojo { /** ** The attack type, for example, SNMP reflection or SYN flood. *
*/ private String vectorType; /** ** The list of counters that describe the details of the attack. *
*/ private java.util.List* The attack type, for example, SNMP reflection or SYN flood. *
* * @param vectorType * The attack type, for example, SNMP reflection or SYN flood. */ public void setVectorType(String vectorType) { this.vectorType = vectorType; } /** ** The attack type, for example, SNMP reflection or SYN flood. *
* * @return The attack type, for example, SNMP reflection or SYN flood. */ public String getVectorType() { return this.vectorType; } /** ** The attack type, for example, SNMP reflection or SYN flood. *
* * @param vectorType * The attack type, for example, SNMP reflection or SYN flood. * @return Returns a reference to this object so that method calls can be chained together. */ public SummarizedAttackVector withVectorType(String vectorType) { setVectorType(vectorType); return this; } /** ** The list of counters that describe the details of the attack. *
* * @return The list of counters that describe the details of the attack. */ public java.util.List* The list of counters that describe the details of the attack. *
* * @param vectorCounters * The list of counters that describe the details of the attack. */ public void setVectorCounters(java.util.Collection* The list of counters that describe the details of the attack. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setVectorCounters(java.util.Collection)} or {@link #withVectorCounters(java.util.Collection)} if you want * to override the existing values. *
* * @param vectorCounters * The list of counters that describe the details of the attack. * @return Returns a reference to this object so that method calls can be chained together. */ public SummarizedAttackVector withVectorCounters(SummarizedCounter... vectorCounters) { if (this.vectorCounters == null) { setVectorCounters(new java.util.ArrayList* The list of counters that describe the details of the attack. *
* * @param vectorCounters * The list of counters that describe the details of the attack. * @return Returns a reference to this object so that method calls can be chained together. */ public SummarizedAttackVector withVectorCounters(java.util.Collection