AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
ServerStepConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/drs/Drs_EXPORTS.h>
9#include <aws/drs/model/RecoveryPlanServer.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace drs {
21namespace Model {
22
30 public:
31 AWS_DRS_API ServerStepConfiguration() = default;
35
37
40 inline const Aws::Vector<RecoveryPlanServer>& GetServers() const { return m_servers; }
41 inline bool ServersHasBeenSet() const { return m_serversHasBeenSet; }
42 template <typename ServersT = Aws::Vector<RecoveryPlanServer>>
43 void SetServers(ServersT&& value) {
44 m_serversHasBeenSet = true;
45 m_servers = std::forward<ServersT>(value);
46 }
47 template <typename ServersT = Aws::Vector<RecoveryPlanServer>>
49 SetServers(std::forward<ServersT>(value));
50 return *this;
51 }
52 template <typename ServersT = RecoveryPlanServer>
54 m_serversHasBeenSet = true;
55 m_servers.emplace_back(std::forward<ServersT>(value));
56 return *this;
57 }
59 private:
61 bool m_serversHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace drs
66} // namespace Aws
ServerStepConfiguration & AddServers(ServersT &&value)
AWS_DRS_API ServerStepConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DRS_API ServerStepConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ServerStepConfiguration & WithServers(ServersT &&value)
AWS_DRS_API ServerStepConfiguration()=default
const Aws::Vector< RecoveryPlanServer > & GetServers() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue