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

Details used when updating the replication set.

See Also:

AWS * API Reference

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

Details about the Amazon Web Services Region that you're adding to the * replication set.

*/ inline const AddRegionAction& GetAddRegionAction() const{ return m_addRegionAction; } /** *

Details about the Amazon Web Services Region that you're adding to the * replication set.

*/ inline bool AddRegionActionHasBeenSet() const { return m_addRegionActionHasBeenSet; } /** *

Details about the Amazon Web Services Region that you're adding to the * replication set.

*/ inline void SetAddRegionAction(const AddRegionAction& value) { m_addRegionActionHasBeenSet = true; m_addRegionAction = value; } /** *

Details about the Amazon Web Services Region that you're adding to the * replication set.

*/ inline void SetAddRegionAction(AddRegionAction&& value) { m_addRegionActionHasBeenSet = true; m_addRegionAction = std::move(value); } /** *

Details about the Amazon Web Services Region that you're adding to the * replication set.

*/ inline UpdateReplicationSetAction& WithAddRegionAction(const AddRegionAction& value) { SetAddRegionAction(value); return *this;} /** *

Details about the Amazon Web Services Region that you're adding to the * replication set.

*/ inline UpdateReplicationSetAction& WithAddRegionAction(AddRegionAction&& value) { SetAddRegionAction(std::move(value)); return *this;} /** *

Details about the Amazon Web Services Region that you're deleting to the * replication set.

*/ inline const DeleteRegionAction& GetDeleteRegionAction() const{ return m_deleteRegionAction; } /** *

Details about the Amazon Web Services Region that you're deleting to the * replication set.

*/ inline bool DeleteRegionActionHasBeenSet() const { return m_deleteRegionActionHasBeenSet; } /** *

Details about the Amazon Web Services Region that you're deleting to the * replication set.

*/ inline void SetDeleteRegionAction(const DeleteRegionAction& value) { m_deleteRegionActionHasBeenSet = true; m_deleteRegionAction = value; } /** *

Details about the Amazon Web Services Region that you're deleting to the * replication set.

*/ inline void SetDeleteRegionAction(DeleteRegionAction&& value) { m_deleteRegionActionHasBeenSet = true; m_deleteRegionAction = std::move(value); } /** *

Details about the Amazon Web Services Region that you're deleting to the * replication set.

*/ inline UpdateReplicationSetAction& WithDeleteRegionAction(const DeleteRegionAction& value) { SetDeleteRegionAction(value); return *this;} /** *

Details about the Amazon Web Services Region that you're deleting to the * replication set.

*/ inline UpdateReplicationSetAction& WithDeleteRegionAction(DeleteRegionAction&& value) { SetDeleteRegionAction(std::move(value)); return *this;} private: AddRegionAction m_addRegionAction; bool m_addRegionActionHasBeenSet = false; DeleteRegionAction m_deleteRegionAction; bool m_deleteRegionActionHasBeenSet = false; }; } // namespace Model } // namespace SSMIncidents } // namespace Aws