AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
OnPremConfig.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DataSync
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DATASYNC_API OnPremConfig() = default;
37 AWS_DATASYNC_API OnPremConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
50 inline const Aws::Vector<Aws::String>& GetAgentArns() const { return m_agentArns; }
51 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
52 template<typename AgentArnsT = Aws::Vector<Aws::String>>
53 void SetAgentArns(AgentArnsT&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::forward<AgentArnsT>(value); }
54 template<typename AgentArnsT = Aws::Vector<Aws::String>>
55 OnPremConfig& WithAgentArns(AgentArnsT&& value) { SetAgentArns(std::forward<AgentArnsT>(value)); return *this;}
56 template<typename AgentArnsT = Aws::String>
57 OnPremConfig& AddAgentArns(AgentArnsT&& value) { m_agentArnsHasBeenSet = true; m_agentArns.emplace_back(std::forward<AgentArnsT>(value)); return *this; }
59 private:
60
61 Aws::Vector<Aws::String> m_agentArns;
62 bool m_agentArnsHasBeenSet = false;
63 };
64
65} // namespace Model
66} // namespace DataSync
67} // namespace Aws
AWS_DATASYNC_API OnPremConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATASYNC_API OnPremConfig()=default
const Aws::Vector< Aws::String > & GetAgentArns() const
AWS_DATASYNC_API OnPremConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAgentArns(AgentArnsT &&value)
OnPremConfig & WithAgentArns(AgentArnsT &&value)
OnPremConfig & AddAgentArns(AgentArnsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue