/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Shield { namespace Model { /** *

A summary of information about the attack.

See Also:

AWS * API Reference

*/ class SummarizedAttackVector { public: AWS_SHIELD_API SummarizedAttackVector(); AWS_SHIELD_API SummarizedAttackVector(Aws::Utils::Json::JsonView jsonValue); AWS_SHIELD_API SummarizedAttackVector& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The attack type, for example, SNMP reflection or SYN flood.

*/ inline const Aws::String& GetVectorType() const{ return m_vectorType; } /** *

The attack type, for example, SNMP reflection or SYN flood.

*/ inline bool VectorTypeHasBeenSet() const { return m_vectorTypeHasBeenSet; } /** *

The attack type, for example, SNMP reflection or SYN flood.

*/ inline void SetVectorType(const Aws::String& value) { m_vectorTypeHasBeenSet = true; m_vectorType = value; } /** *

The attack type, for example, SNMP reflection or SYN flood.

*/ inline void SetVectorType(Aws::String&& value) { m_vectorTypeHasBeenSet = true; m_vectorType = std::move(value); } /** *

The attack type, for example, SNMP reflection or SYN flood.

*/ inline void SetVectorType(const char* value) { m_vectorTypeHasBeenSet = true; m_vectorType.assign(value); } /** *

The attack type, for example, SNMP reflection or SYN flood.

*/ inline SummarizedAttackVector& WithVectorType(const Aws::String& value) { SetVectorType(value); return *this;} /** *

The attack type, for example, SNMP reflection or SYN flood.

*/ inline SummarizedAttackVector& WithVectorType(Aws::String&& value) { SetVectorType(std::move(value)); return *this;} /** *

The attack type, for example, SNMP reflection or SYN flood.

*/ inline SummarizedAttackVector& WithVectorType(const char* value) { SetVectorType(value); return *this;} /** *

The list of counters that describe the details of the attack.

*/ inline const Aws::Vector& GetVectorCounters() const{ return m_vectorCounters; } /** *

The list of counters that describe the details of the attack.

*/ inline bool VectorCountersHasBeenSet() const { return m_vectorCountersHasBeenSet; } /** *

The list of counters that describe the details of the attack.

*/ inline void SetVectorCounters(const Aws::Vector& value) { m_vectorCountersHasBeenSet = true; m_vectorCounters = value; } /** *

The list of counters that describe the details of the attack.

*/ inline void SetVectorCounters(Aws::Vector&& value) { m_vectorCountersHasBeenSet = true; m_vectorCounters = std::move(value); } /** *

The list of counters that describe the details of the attack.

*/ inline SummarizedAttackVector& WithVectorCounters(const Aws::Vector& value) { SetVectorCounters(value); return *this;} /** *

The list of counters that describe the details of the attack.

*/ inline SummarizedAttackVector& WithVectorCounters(Aws::Vector&& value) { SetVectorCounters(std::move(value)); return *this;} /** *

The list of counters that describe the details of the attack.

*/ inline SummarizedAttackVector& AddVectorCounters(const SummarizedCounter& value) { m_vectorCountersHasBeenSet = true; m_vectorCounters.push_back(value); return *this; } /** *

The list of counters that describe the details of the attack.

*/ inline SummarizedAttackVector& AddVectorCounters(SummarizedCounter&& value) { m_vectorCountersHasBeenSet = true; m_vectorCounters.push_back(std::move(value)); return *this; } private: Aws::String m_vectorType; bool m_vectorTypeHasBeenSet = false; Aws::Vector m_vectorCounters; bool m_vectorCountersHasBeenSet = false; }; } // namespace Model } // namespace Shield } // namespace Aws