AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
ExecutionServerStepConfiguration.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/RecoveryPlanExecutionServer.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 ExecutionServerStepConfiguration() = default;
35
37
40 inline const Aws::Vector<RecoveryPlanExecutionServer>& GetServers() const { return m_servers; }
41 inline bool ServersHasBeenSet() const { return m_serversHasBeenSet; }
42 template <typename ServersT = Aws::Vector<RecoveryPlanExecutionServer>>
43 void SetServers(ServersT&& value) {
44 m_serversHasBeenSet = true;
45 m_servers = std::forward<ServersT>(value);
46 }
47 template <typename ServersT = Aws::Vector<RecoveryPlanExecutionServer>>
49 SetServers(std::forward<ServersT>(value));
50 return *this;
51 }
52 template <typename ServersT = RecoveryPlanExecutionServer>
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
ExecutionServerStepConfiguration & WithServers(ServersT &&value)
AWS_DRS_API ExecutionServerStepConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_DRS_API ExecutionServerStepConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< RecoveryPlanExecutionServer > & GetServers() const
ExecutionServerStepConfiguration & AddServers(ServersT &&value)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue