/** * 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 StartSourceNetworkRecoveryRequest : public DrsRequest { public: AWS_DRS_API StartSourceNetworkRecoveryRequest(); // 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 "StartSourceNetworkRecovery"; } AWS_DRS_API Aws::String SerializePayload() const override; /** *

Don't update existing CloudFormation Stack, recover the network using a new * stack.

*/ inline bool GetDeployAsNew() const{ return m_deployAsNew; } /** *

Don't update existing CloudFormation Stack, recover the network using a new * stack.

*/ inline bool DeployAsNewHasBeenSet() const { return m_deployAsNewHasBeenSet; } /** *

Don't update existing CloudFormation Stack, recover the network using a new * stack.

*/ inline void SetDeployAsNew(bool value) { m_deployAsNewHasBeenSet = true; m_deployAsNew = value; } /** *

Don't update existing CloudFormation Stack, recover the network using a new * stack.

*/ inline StartSourceNetworkRecoveryRequest& WithDeployAsNew(bool value) { SetDeployAsNew(value); return *this;} /** *

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

*/ inline const Aws::Vector& GetSourceNetworks() const{ return m_sourceNetworks; } /** *

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

*/ inline bool SourceNetworksHasBeenSet() const { return m_sourceNetworksHasBeenSet; } /** *

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

*/ inline void SetSourceNetworks(const Aws::Vector& value) { m_sourceNetworksHasBeenSet = true; m_sourceNetworks = value; } /** *

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

*/ inline void SetSourceNetworks(Aws::Vector&& value) { m_sourceNetworksHasBeenSet = true; m_sourceNetworks = std::move(value); } /** *

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

*/ inline StartSourceNetworkRecoveryRequest& WithSourceNetworks(const Aws::Vector& value) { SetSourceNetworks(value); return *this;} /** *

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

*/ inline StartSourceNetworkRecoveryRequest& WithSourceNetworks(Aws::Vector&& value) { SetSourceNetworks(std::move(value)); return *this;} /** *

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

*/ inline StartSourceNetworkRecoveryRequest& AddSourceNetworks(const StartSourceNetworkRecoveryRequestNetworkEntry& value) { m_sourceNetworksHasBeenSet = true; m_sourceNetworks.push_back(value); return *this; } /** *

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

*/ inline StartSourceNetworkRecoveryRequest& AddSourceNetworks(StartSourceNetworkRecoveryRequestNetworkEntry&& value) { m_sourceNetworksHasBeenSet = true; m_sourceNetworks.push_back(std::move(value)); return *this; } /** *

The tags to be associated with the Source Network recovery Job.

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

The tags to be associated with the Source Network recovery Job.

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

The tags to be associated with the Source Network recovery Job.

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

The tags to be associated with the Source Network recovery Job.

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

The tags to be associated with the Source Network recovery Job.

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

The tags to be associated with the Source Network recovery Job.

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

The tags to be associated with the Source Network recovery Job.

*/ inline StartSourceNetworkRecoveryRequest& 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 Source Network recovery Job.

*/ inline StartSourceNetworkRecoveryRequest& 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 Source Network recovery Job.

*/ inline StartSourceNetworkRecoveryRequest& 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 Source Network recovery Job.

*/ inline StartSourceNetworkRecoveryRequest& 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 Source Network recovery Job.

*/ inline StartSourceNetworkRecoveryRequest& 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 Source Network recovery Job.

*/ inline StartSourceNetworkRecoveryRequest& 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 Source Network recovery Job.

*/ inline StartSourceNetworkRecoveryRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: bool m_deployAsNew; bool m_deployAsNewHasBeenSet = false; Aws::Vector m_sourceNetworks; bool m_sourceNetworksHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace drs } // namespace Aws