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

The attack information for the specified SubResource.

See * Also:

AWS * API Reference

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

The SubResource type.

*/ inline const SubResourceType& GetType() const{ return m_type; } /** *

The SubResource type.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The SubResource type.

*/ inline void SetType(const SubResourceType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The SubResource type.

*/ inline void SetType(SubResourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The SubResource type.

*/ inline SubResourceSummary& WithType(const SubResourceType& value) { SetType(value); return *this;} /** *

The SubResource type.

*/ inline SubResourceSummary& WithType(SubResourceType&& value) { SetType(std::move(value)); return *this;} /** *

The unique identifier (ID) of the SubResource.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique identifier (ID) of the SubResource.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique identifier (ID) of the SubResource.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique identifier (ID) of the SubResource.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique identifier (ID) of the SubResource.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique identifier (ID) of the SubResource.

*/ inline SubResourceSummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier (ID) of the SubResource.

*/ inline SubResourceSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique identifier (ID) of the SubResource.

*/ inline SubResourceSummary& WithId(const char* value) { SetId(value); return *this;} /** *

The list of attack types and associated counters.

*/ inline const Aws::Vector& GetAttackVectors() const{ return m_attackVectors; } /** *

The list of attack types and associated counters.

*/ inline bool AttackVectorsHasBeenSet() const { return m_attackVectorsHasBeenSet; } /** *

The list of attack types and associated counters.

*/ inline void SetAttackVectors(const Aws::Vector& value) { m_attackVectorsHasBeenSet = true; m_attackVectors = value; } /** *

The list of attack types and associated counters.

*/ inline void SetAttackVectors(Aws::Vector&& value) { m_attackVectorsHasBeenSet = true; m_attackVectors = std::move(value); } /** *

The list of attack types and associated counters.

*/ inline SubResourceSummary& WithAttackVectors(const Aws::Vector& value) { SetAttackVectors(value); return *this;} /** *

The list of attack types and associated counters.

*/ inline SubResourceSummary& WithAttackVectors(Aws::Vector&& value) { SetAttackVectors(std::move(value)); return *this;} /** *

The list of attack types and associated counters.

*/ inline SubResourceSummary& AddAttackVectors(const SummarizedAttackVector& value) { m_attackVectorsHasBeenSet = true; m_attackVectors.push_back(value); return *this; } /** *

The list of attack types and associated counters.

*/ inline SubResourceSummary& AddAttackVectors(SummarizedAttackVector&& value) { m_attackVectorsHasBeenSet = true; m_attackVectors.push_back(std::move(value)); return *this; } /** *

The counters that describe the details of the attack.

*/ inline const Aws::Vector& GetCounters() const{ return m_counters; } /** *

The counters that describe the details of the attack.

*/ inline bool CountersHasBeenSet() const { return m_countersHasBeenSet; } /** *

The counters that describe the details of the attack.

*/ inline void SetCounters(const Aws::Vector& value) { m_countersHasBeenSet = true; m_counters = value; } /** *

The counters that describe the details of the attack.

*/ inline void SetCounters(Aws::Vector&& value) { m_countersHasBeenSet = true; m_counters = std::move(value); } /** *

The counters that describe the details of the attack.

*/ inline SubResourceSummary& WithCounters(const Aws::Vector& value) { SetCounters(value); return *this;} /** *

The counters that describe the details of the attack.

*/ inline SubResourceSummary& WithCounters(Aws::Vector&& value) { SetCounters(std::move(value)); return *this;} /** *

The counters that describe the details of the attack.

*/ inline SubResourceSummary& AddCounters(const SummarizedCounter& value) { m_countersHasBeenSet = true; m_counters.push_back(value); return *this; } /** *

The counters that describe the details of the attack.

*/ inline SubResourceSummary& AddCounters(SummarizedCounter&& value) { m_countersHasBeenSet = true; m_counters.push_back(std::move(value)); return *this; } private: SubResourceType m_type; bool m_typeHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::Vector m_attackVectors; bool m_attackVectorsHasBeenSet = false; Aws::Vector m_counters; bool m_countersHasBeenSet = false; }; } // namespace Model } // namespace Shield } // namespace Aws