AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
UpdateFailbackReplicationConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/drs/DrsRequest.h>
9#include <aws/drs/Drs_EXPORTS.h>
10#include <aws/drs/model/InternetProtocol.h>
11
12#include <utility>
13
14namespace Aws {
15namespace drs {
16namespace Model {
17
21 public:
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateFailbackReplicationConfiguration"; }
29
30 AWS_DRS_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetRecoveryInstanceID() const { return m_recoveryInstanceID; }
37 inline bool RecoveryInstanceIDHasBeenSet() const { return m_recoveryInstanceIDHasBeenSet; }
38 template <typename RecoveryInstanceIDT = Aws::String>
39 void SetRecoveryInstanceID(RecoveryInstanceIDT&& value) {
40 m_recoveryInstanceIDHasBeenSet = true;
41 m_recoveryInstanceID = std::forward<RecoveryInstanceIDT>(value);
42 }
43 template <typename RecoveryInstanceIDT = Aws::String>
45 SetRecoveryInstanceID(std::forward<RecoveryInstanceIDT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 template <typename NameT = Aws::String>
57 void SetName(NameT&& value) {
58 m_nameHasBeenSet = true;
59 m_name = std::forward<NameT>(value);
60 }
61 template <typename NameT = Aws::String>
63 SetName(std::forward<NameT>(value));
64 return *this;
65 }
67
69
73 inline long long GetBandwidthThrottling() const { return m_bandwidthThrottling; }
74 inline bool BandwidthThrottlingHasBeenSet() const { return m_bandwidthThrottlingHasBeenSet; }
75 inline void SetBandwidthThrottling(long long value) {
76 m_bandwidthThrottlingHasBeenSet = true;
77 m_bandwidthThrottling = value;
78 }
81 return *this;
82 }
84
86
90 inline bool GetUsePrivateIP() const { return m_usePrivateIP; }
91 inline bool UsePrivateIPHasBeenSet() const { return m_usePrivateIPHasBeenSet; }
92 inline void SetUsePrivateIP(bool value) {
93 m_usePrivateIPHasBeenSet = true;
94 m_usePrivateIP = value;
95 }
97 SetUsePrivateIP(value);
98 return *this;
99 }
101
103
107 inline InternetProtocol GetInternetProtocol() const { return m_internetProtocol; }
108 inline bool InternetProtocolHasBeenSet() const { return m_internetProtocolHasBeenSet; }
110 m_internetProtocolHasBeenSet = true;
111 m_internetProtocol = value;
112 }
114 SetInternetProtocol(value);
115 return *this;
116 }
118 private:
119 Aws::String m_recoveryInstanceID;
120
121 Aws::String m_name;
122
123 long long m_bandwidthThrottling{0};
124
125 bool m_usePrivateIP{false};
126
128 bool m_recoveryInstanceIDHasBeenSet = false;
129 bool m_nameHasBeenSet = false;
130 bool m_bandwidthThrottlingHasBeenSet = false;
131 bool m_usePrivateIPHasBeenSet = false;
132 bool m_internetProtocolHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace drs
137} // namespace Aws
UpdateFailbackReplicationConfigurationRequest & WithRecoveryInstanceID(RecoveryInstanceIDT &&value)
AWS_DRS_API Aws::String SerializePayload() const override
UpdateFailbackReplicationConfigurationRequest & WithName(NameT &&value)
UpdateFailbackReplicationConfigurationRequest & WithUsePrivateIP(bool value)
UpdateFailbackReplicationConfigurationRequest & WithBandwidthThrottling(long long value)
UpdateFailbackReplicationConfigurationRequest & WithInternetProtocol(InternetProtocol value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String