AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetSourceNetworks(const Aws::Vector<StartSourceNetworkRecoveryRequestNetworkEntry>& value) { m_sourceNetworksHasBeenSet = true; m_sourceNetworks = value; }
56 inline void SetSourceNetworks(Aws::Vector<StartSourceNetworkRecoveryRequestNetworkEntry>&& value) { m_sourceNetworksHasBeenSet = true; m_sourceNetworks = std::move(value); }
59 inline StartSourceNetworkRecoveryRequest& AddSourceNetworks(const StartSourceNetworkRecoveryRequestNetworkEntry& value) { m_sourceNetworksHasBeenSet = true; m_sourceNetworks.push_back(value); return *this; }
60 inline StartSourceNetworkRecoveryRequest& AddSourceNetworks(StartSourceNetworkRecoveryRequestNetworkEntry&& value) { m_sourceNetworksHasBeenSet = true; m_sourceNetworks.push_back(std::move(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 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
70 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
72 inline StartSourceNetworkRecoveryRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
73 inline StartSourceNetworkRecoveryRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
74 inline StartSourceNetworkRecoveryRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
75 inline StartSourceNetworkRecoveryRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
76 inline StartSourceNetworkRecoveryRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
77 inline StartSourceNetworkRecoveryRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
78 inline StartSourceNetworkRecoveryRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
79 inline StartSourceNetworkRecoveryRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
81 private:
82
83 bool m_deployAsNew;
84 bool m_deployAsNewHasBeenSet = false;
85
87 bool m_sourceNetworksHasBeenSet = false;
88
90 bool m_tagsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace drs
95} // namespace Aws
StartSourceNetworkRecoveryRequest & AddTags(const char *key, const char *value)
StartSourceNetworkRecoveryRequest & WithDeployAsNew(bool value)
StartSourceNetworkRecoveryRequest & AddTags(Aws::String &&key, const Aws::String &value)
StartSourceNetworkRecoveryRequest & AddSourceNetworks(const StartSourceNetworkRecoveryRequestNetworkEntry &value)
StartSourceNetworkRecoveryRequest & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::Vector< StartSourceNetworkRecoveryRequestNetworkEntry > & GetSourceNetworks() const
StartSourceNetworkRecoveryRequest & WithSourceNetworks(const Aws::Vector< StartSourceNetworkRecoveryRequestNetworkEntry > &value)
StartSourceNetworkRecoveryRequest & AddSourceNetworks(StartSourceNetworkRecoveryRequestNetworkEntry &&value)
StartSourceNetworkRecoveryRequest & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
StartSourceNetworkRecoveryRequest & AddTags(const Aws::String &key, Aws::String &&value)
StartSourceNetworkRecoveryRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetSourceNetworks(const Aws::Vector< StartSourceNetworkRecoveryRequestNetworkEntry > &value)
StartSourceNetworkRecoveryRequest & AddTags(const char *key, Aws::String &&value)
StartSourceNetworkRecoveryRequest & AddTags(Aws::String &&key, const char *value)
StartSourceNetworkRecoveryRequest & WithSourceNetworks(Aws::Vector< StartSourceNetworkRecoveryRequestNetworkEntry > &&value)
AWS_DRS_API Aws::String SerializePayload() const override
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetSourceNetworks(Aws::Vector< StartSourceNetworkRecoveryRequestNetworkEntry > &&value)
StartSourceNetworkRecoveryRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &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