/** * 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 SESV2 { namespace Model { /** *

An object that contains details about the action of suppression * list.

See Also:

AWS * API Reference

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

The type of action to perform on the address. The following are possible * values:

  • PUT: add the addresses to the suppression list. If the * record already exists, it will override it with the new value.

  • *

    DELETE: remove the addresses from the suppression list.

*/ inline const SuppressionListImportAction& GetSuppressionListImportAction() const{ return m_suppressionListImportAction; } /** *

The type of action to perform on the address. The following are possible * values:

  • PUT: add the addresses to the suppression list. If the * record already exists, it will override it with the new value.

  • *

    DELETE: remove the addresses from the suppression list.

*/ inline bool SuppressionListImportActionHasBeenSet() const { return m_suppressionListImportActionHasBeenSet; } /** *

The type of action to perform on the address. The following are possible * values:

  • PUT: add the addresses to the suppression list. If the * record already exists, it will override it with the new value.

  • *

    DELETE: remove the addresses from the suppression list.

*/ inline void SetSuppressionListImportAction(const SuppressionListImportAction& value) { m_suppressionListImportActionHasBeenSet = true; m_suppressionListImportAction = value; } /** *

The type of action to perform on the address. The following are possible * values:

  • PUT: add the addresses to the suppression list. If the * record already exists, it will override it with the new value.

  • *

    DELETE: remove the addresses from the suppression list.

*/ inline void SetSuppressionListImportAction(SuppressionListImportAction&& value) { m_suppressionListImportActionHasBeenSet = true; m_suppressionListImportAction = std::move(value); } /** *

The type of action to perform on the address. The following are possible * values:

  • PUT: add the addresses to the suppression list. If the * record already exists, it will override it with the new value.

  • *

    DELETE: remove the addresses from the suppression list.

*/ inline SuppressionListDestination& WithSuppressionListImportAction(const SuppressionListImportAction& value) { SetSuppressionListImportAction(value); return *this;} /** *

The type of action to perform on the address. The following are possible * values:

  • PUT: add the addresses to the suppression list. If the * record already exists, it will override it with the new value.

  • *

    DELETE: remove the addresses from the suppression list.

*/ inline SuppressionListDestination& WithSuppressionListImportAction(SuppressionListImportAction&& value) { SetSuppressionListImportAction(std::move(value)); return *this;} private: SuppressionListImportAction m_suppressionListImportAction; bool m_suppressionListImportActionHasBeenSet = false; }; } // namespace Model } // namespace SESV2 } // namespace Aws