/** * 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 SSMIncidents { namespace Model { /** */ class UpdateReplicationSetRequest : public SSMIncidentsRequest { public: AWS_SSMINCIDENTS_API UpdateReplicationSetRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateReplicationSet"; } AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override; /** *

An action to add or delete a Region.

*/ inline const Aws::Vector& GetActions() const{ return m_actions; } /** *

An action to add or delete a Region.

*/ inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; } /** *

An action to add or delete a Region.

*/ inline void SetActions(const Aws::Vector& value) { m_actionsHasBeenSet = true; m_actions = value; } /** *

An action to add or delete a Region.

*/ inline void SetActions(Aws::Vector&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); } /** *

An action to add or delete a Region.

*/ inline UpdateReplicationSetRequest& WithActions(const Aws::Vector& value) { SetActions(value); return *this;} /** *

An action to add or delete a Region.

*/ inline UpdateReplicationSetRequest& WithActions(Aws::Vector&& value) { SetActions(std::move(value)); return *this;} /** *

An action to add or delete a Region.

*/ inline UpdateReplicationSetRequest& AddActions(const UpdateReplicationSetAction& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; } /** *

An action to add or delete a Region.

*/ inline UpdateReplicationSetRequest& AddActions(UpdateReplicationSetAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Name (ARN) of the replication set you're updating.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the replication set you're updating.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the replication set you're updating.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the replication set you're updating.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the replication set you're updating.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the replication set you're updating.

*/ inline UpdateReplicationSetRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the replication set you're updating.

*/ inline UpdateReplicationSetRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the replication set you're updating.

*/ inline UpdateReplicationSetRequest& WithArn(const char* value) { SetArn(value); return *this;} /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline UpdateReplicationSetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline UpdateReplicationSetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline UpdateReplicationSetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::Vector m_actions; bool m_actionsHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace SSMIncidents } // namespace Aws