/** * 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 Route53RecoveryReadiness { namespace Model { /** */ class CreateRecoveryGroupRequest : public Route53RecoveryReadinessRequest { public: AWS_ROUTE53RECOVERYREADINESS_API CreateRecoveryGroupRequest(); // 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 "CreateRecoveryGroup"; } AWS_ROUTE53RECOVERYREADINESS_API Aws::String SerializePayload() const override; /** *

A list of the cell Amazon Resource Names (ARNs) in the recovery group.

*/ inline const Aws::Vector& GetCells() const{ return m_cells; } /** *

A list of the cell Amazon Resource Names (ARNs) in the recovery group.

*/ inline bool CellsHasBeenSet() const { return m_cellsHasBeenSet; } /** *

A list of the cell Amazon Resource Names (ARNs) in the recovery group.

*/ inline void SetCells(const Aws::Vector& value) { m_cellsHasBeenSet = true; m_cells = value; } /** *

A list of the cell Amazon Resource Names (ARNs) in the recovery group.

*/ inline void SetCells(Aws::Vector&& value) { m_cellsHasBeenSet = true; m_cells = std::move(value); } /** *

A list of the cell Amazon Resource Names (ARNs) in the recovery group.

*/ inline CreateRecoveryGroupRequest& WithCells(const Aws::Vector& value) { SetCells(value); return *this;} /** *

A list of the cell Amazon Resource Names (ARNs) in the recovery group.

*/ inline CreateRecoveryGroupRequest& WithCells(Aws::Vector&& value) { SetCells(std::move(value)); return *this;} /** *

A list of the cell Amazon Resource Names (ARNs) in the recovery group.

*/ inline CreateRecoveryGroupRequest& AddCells(const Aws::String& value) { m_cellsHasBeenSet = true; m_cells.push_back(value); return *this; } /** *

A list of the cell Amazon Resource Names (ARNs) in the recovery group.

*/ inline CreateRecoveryGroupRequest& AddCells(Aws::String&& value) { m_cellsHasBeenSet = true; m_cells.push_back(std::move(value)); return *this; } /** *

A list of the cell Amazon Resource Names (ARNs) in the recovery group.

*/ inline CreateRecoveryGroupRequest& AddCells(const char* value) { m_cellsHasBeenSet = true; m_cells.push_back(value); return *this; } /** *

The name of the recovery group to create.

*/ inline const Aws::String& GetRecoveryGroupName() const{ return m_recoveryGroupName; } /** *

The name of the recovery group to create.

*/ inline bool RecoveryGroupNameHasBeenSet() const { return m_recoveryGroupNameHasBeenSet; } /** *

The name of the recovery group to create.

*/ inline void SetRecoveryGroupName(const Aws::String& value) { m_recoveryGroupNameHasBeenSet = true; m_recoveryGroupName = value; } /** *

The name of the recovery group to create.

*/ inline void SetRecoveryGroupName(Aws::String&& value) { m_recoveryGroupNameHasBeenSet = true; m_recoveryGroupName = std::move(value); } /** *

The name of the recovery group to create.

*/ inline void SetRecoveryGroupName(const char* value) { m_recoveryGroupNameHasBeenSet = true; m_recoveryGroupName.assign(value); } /** *

The name of the recovery group to create.

*/ inline CreateRecoveryGroupRequest& WithRecoveryGroupName(const Aws::String& value) { SetRecoveryGroupName(value); return *this;} /** *

The name of the recovery group to create.

*/ inline CreateRecoveryGroupRequest& WithRecoveryGroupName(Aws::String&& value) { SetRecoveryGroupName(std::move(value)); return *this;} /** *

The name of the recovery group to create.

*/ inline CreateRecoveryGroupRequest& WithRecoveryGroupName(const char* value) { SetRecoveryGroupName(value); return *this;} inline const Aws::Map& GetTags() const{ return m_tags; } inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } inline CreateRecoveryGroupRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} inline CreateRecoveryGroupRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} inline CreateRecoveryGroupRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } inline CreateRecoveryGroupRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } inline CreateRecoveryGroupRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } inline CreateRecoveryGroupRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } inline CreateRecoveryGroupRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } inline CreateRecoveryGroupRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } inline CreateRecoveryGroupRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::Vector m_cells; bool m_cellsHasBeenSet = false; Aws::String m_recoveryGroupName; bool m_recoveryGroupNameHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Route53RecoveryReadiness } // namespace Aws