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

The mitigation applied to a DDoS attack.

See Also:

AWS * API Reference

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

The name of the mitigation taken for this attack.

*/ inline const Aws::String& GetMitigationName() const{ return m_mitigationName; } /** *

The name of the mitigation taken for this attack.

*/ inline bool MitigationNameHasBeenSet() const { return m_mitigationNameHasBeenSet; } /** *

The name of the mitigation taken for this attack.

*/ inline void SetMitigationName(const Aws::String& value) { m_mitigationNameHasBeenSet = true; m_mitigationName = value; } /** *

The name of the mitigation taken for this attack.

*/ inline void SetMitigationName(Aws::String&& value) { m_mitigationNameHasBeenSet = true; m_mitigationName = std::move(value); } /** *

The name of the mitigation taken for this attack.

*/ inline void SetMitigationName(const char* value) { m_mitigationNameHasBeenSet = true; m_mitigationName.assign(value); } /** *

The name of the mitigation taken for this attack.

*/ inline Mitigation& WithMitigationName(const Aws::String& value) { SetMitigationName(value); return *this;} /** *

The name of the mitigation taken for this attack.

*/ inline Mitigation& WithMitigationName(Aws::String&& value) { SetMitigationName(std::move(value)); return *this;} /** *

The name of the mitigation taken for this attack.

*/ inline Mitigation& WithMitigationName(const char* value) { SetMitigationName(value); return *this;} private: Aws::String m_mitigationName; bool m_mitigationNameHasBeenSet = false; }; } // namespace Model } // namespace Shield } // namespace Aws