/** * 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 drs { namespace Model { /** */ class StartRecoveryRequest : public DrsRequest { public: AWS_DRS_API StartRecoveryRequest(); // 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 "StartRecovery"; } AWS_DRS_API Aws::String SerializePayload() const override; /** *

Whether this Source Server Recovery operation is a drill or not.

*/ inline bool GetIsDrill() const{ return m_isDrill; } /** *

Whether this Source Server Recovery operation is a drill or not.

*/ inline bool IsDrillHasBeenSet() const { return m_isDrillHasBeenSet; } /** *

Whether this Source Server Recovery operation is a drill or not.

*/ inline void SetIsDrill(bool value) { m_isDrillHasBeenSet = true; m_isDrill = value; } /** *

Whether this Source Server Recovery operation is a drill or not.

*/ inline StartRecoveryRequest& WithIsDrill(bool value) { SetIsDrill(value); return *this;} /** *

The Source Servers that we want to start a Recovery Job for.

*/ inline const Aws::Vector& GetSourceServers() const{ return m_sourceServers; } /** *

The Source Servers that we want to start a Recovery Job for.

*/ inline bool SourceServersHasBeenSet() const { return m_sourceServersHasBeenSet; } /** *

The Source Servers that we want to start a Recovery Job for.

*/ inline void SetSourceServers(const Aws::Vector& value) { m_sourceServersHasBeenSet = true; m_sourceServers = value; } /** *

The Source Servers that we want to start a Recovery Job for.

*/ inline void SetSourceServers(Aws::Vector&& value) { m_sourceServersHasBeenSet = true; m_sourceServers = std::move(value); } /** *

The Source Servers that we want to start a Recovery Job for.

*/ inline StartRecoveryRequest& WithSourceServers(const Aws::Vector& value) { SetSourceServers(value); return *this;} /** *

The Source Servers that we want to start a Recovery Job for.

*/ inline StartRecoveryRequest& WithSourceServers(Aws::Vector&& value) { SetSourceServers(std::move(value)); return *this;} /** *

The Source Servers that we want to start a Recovery Job for.

*/ inline StartRecoveryRequest& AddSourceServers(const StartRecoveryRequestSourceServer& value) { m_sourceServersHasBeenSet = true; m_sourceServers.push_back(value); return *this; } /** *

The Source Servers that we want to start a Recovery Job for.

*/ inline StartRecoveryRequest& AddSourceServers(StartRecoveryRequestSourceServer&& value) { m_sourceServersHasBeenSet = true; m_sourceServers.push_back(std::move(value)); return *this; } /** *

The tags to be associated with the Recovery Job.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags to be associated with the Recovery Job.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags to be associated with the Recovery Job.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags to be associated with the Recovery Job.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags to be associated with the Recovery Job.

*/ inline StartRecoveryRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags to be associated with the Recovery Job.

*/ inline StartRecoveryRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags to be associated with the Recovery Job.

*/ inline StartRecoveryRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags to be associated with the Recovery Job.

*/ inline StartRecoveryRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags to be associated with the Recovery Job.

*/ inline StartRecoveryRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags to be associated with the Recovery Job.

*/ inline StartRecoveryRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags to be associated with the Recovery Job.

*/ inline StartRecoveryRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags to be associated with the Recovery Job.

*/ inline StartRecoveryRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags to be associated with the Recovery Job.

*/ inline StartRecoveryRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: bool m_isDrill; bool m_isDrillHasBeenSet = false; Aws::Vector m_sourceServers; bool m_sourceServersHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace drs } // namespace Aws