AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
StartSourceNetworkRecoveryRequest.h
1
6#pragma once
7#include <aws/drs/Drs_EXPORTS.h>
8#include <aws/drs/DrsRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/drs/model/StartSourceNetworkRecoveryRequestNetworkEntry.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <utility>
14
15namespace Aws
16{
17namespace drs
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_DRS_API StartSourceNetworkRecoveryRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "StartSourceNetworkRecovery"; }
34
35 AWS_DRS_API Aws::String SerializePayload() const override;
36
37
39
43 inline bool GetDeployAsNew() const { return m_deployAsNew; }
44 inline bool DeployAsNewHasBeenSet() const { return m_deployAsNewHasBeenSet; }
45 inline void SetDeployAsNew(bool value) { m_deployAsNewHasBeenSet = true; m_deployAsNew = value; }
46 inline StartSourceNetworkRecoveryRequest& WithDeployAsNew(bool value) { SetDeployAsNew(value); return *this;}
48
50
53 inline const Aws::Vector<StartSourceNetworkRecoveryRequestNetworkEntry>& GetSourceNetworks() const { return m_sourceNetworks; }
54 inline bool SourceNetworksHasBeenSet() const { return m_sourceNetworksHasBeenSet; }
55 template<typename SourceNetworksT = Aws::Vector<StartSourceNetworkRecoveryRequestNetworkEntry>>
56 void SetSourceNetworks(SourceNetworksT&& value) { m_sourceNetworksHasBeenSet = true; m_sourceNetworks = std::forward<SourceNetworksT>(value); }
57 template<typename SourceNetworksT = Aws::Vector<StartSourceNetworkRecoveryRequestNetworkEntry>>
58 StartSourceNetworkRecoveryRequest& WithSourceNetworks(SourceNetworksT&& value) { SetSourceNetworks(std::forward<SourceNetworksT>(value)); return *this;}
59 template<typename SourceNetworksT = StartSourceNetworkRecoveryRequestNetworkEntry>
60 StartSourceNetworkRecoveryRequest& AddSourceNetworks(SourceNetworksT&& value) { m_sourceNetworksHasBeenSet = true; m_sourceNetworks.emplace_back(std::forward<SourceNetworksT>(value)); return *this; }
62
64
67 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
68 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
69 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
70 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
71 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
72 StartSourceNetworkRecoveryRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
73 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
74 StartSourceNetworkRecoveryRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
75 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
76 }
78 private:
79
80 bool m_deployAsNew{false};
81 bool m_deployAsNewHasBeenSet = false;
82
84 bool m_sourceNetworksHasBeenSet = false;
85
87 bool m_tagsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace drs
92} // namespace Aws
StartSourceNetworkRecoveryRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
StartSourceNetworkRecoveryRequest & WithDeployAsNew(bool value)
const Aws::Vector< StartSourceNetworkRecoveryRequestNetworkEntry > & GetSourceNetworks() const
StartSourceNetworkRecoveryRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_DRS_API Aws::String SerializePayload() const override
StartSourceNetworkRecoveryRequest & AddSourceNetworks(SourceNetworksT &&value)
StartSourceNetworkRecoveryRequest & WithSourceNetworks(SourceNetworksT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector