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

Summarizes all DDoS attacks for a specified time period.

See * Also:

AWS * API Reference

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

The unique identifier (ID) of the attack.

*/ inline const Aws::String& GetAttackId() const{ return m_attackId; } /** *

The unique identifier (ID) of the attack.

*/ inline bool AttackIdHasBeenSet() const { return m_attackIdHasBeenSet; } /** *

The unique identifier (ID) of the attack.

*/ inline void SetAttackId(const Aws::String& value) { m_attackIdHasBeenSet = true; m_attackId = value; } /** *

The unique identifier (ID) of the attack.

*/ inline void SetAttackId(Aws::String&& value) { m_attackIdHasBeenSet = true; m_attackId = std::move(value); } /** *

The unique identifier (ID) of the attack.

*/ inline void SetAttackId(const char* value) { m_attackIdHasBeenSet = true; m_attackId.assign(value); } /** *

The unique identifier (ID) of the attack.

*/ inline AttackSummary& WithAttackId(const Aws::String& value) { SetAttackId(value); return *this;} /** *

The unique identifier (ID) of the attack.

*/ inline AttackSummary& WithAttackId(Aws::String&& value) { SetAttackId(std::move(value)); return *this;} /** *

The unique identifier (ID) of the attack.

*/ inline AttackSummary& WithAttackId(const char* value) { SetAttackId(value); return *this;} /** *

The ARN (Amazon Resource Name) of the resource that was attacked.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

The ARN (Amazon Resource Name) of the resource that was attacked.

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

The ARN (Amazon Resource Name) of the resource that was attacked.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

The ARN (Amazon Resource Name) of the resource that was attacked.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

The ARN (Amazon Resource Name) of the resource that was attacked.

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

The ARN (Amazon Resource Name) of the resource that was attacked.

*/ inline AttackSummary& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

The ARN (Amazon Resource Name) of the resource that was attacked.

*/ inline AttackSummary& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

The ARN (Amazon Resource Name) of the resource that was attacked.

*/ inline AttackSummary& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *

The start time of the attack, in Unix time in seconds.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The start time of the attack, in Unix time in seconds.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The start time of the attack, in Unix time in seconds.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The start time of the attack, in Unix time in seconds.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The start time of the attack, in Unix time in seconds.

*/ inline AttackSummary& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The start time of the attack, in Unix time in seconds.

*/ inline AttackSummary& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The end time of the attack, in Unix time in seconds.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The end time of the attack, in Unix time in seconds.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The end time of the attack, in Unix time in seconds.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The end time of the attack, in Unix time in seconds.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The end time of the attack, in Unix time in seconds.

*/ inline AttackSummary& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The end time of the attack, in Unix time in seconds.

*/ inline AttackSummary& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

The list of attacks for a specified time period.

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

The list of attacks for a specified time period.

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

The list of attacks for a specified time period.

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

The list of attacks for a specified time period.

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

The list of attacks for a specified time period.

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

The list of attacks for a specified time period.

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

The list of attacks for a specified time period.

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

The list of attacks for a specified time period.

*/ inline AttackSummary& AddAttackVectors(AttackVectorDescription&& value) { m_attackVectorsHasBeenSet = true; m_attackVectors.push_back(std::move(value)); return *this; } private: Aws::String m_attackId; bool m_attackIdHasBeenSet = false; Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; Aws::Vector m_attackVectors; bool m_attackVectorsHasBeenSet = false; }; } // namespace Model } // namespace Shield } // namespace Aws