AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
OnPremConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datasync/DataSync_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataSync {
21namespace Model {
22
30 public:
31 AWS_DATASYNC_API OnPremConfig() = default;
32 AWS_DATASYNC_API OnPremConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
44 inline const Aws::Vector<Aws::String>& GetAgentArns() const { return m_agentArns; }
45 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
46 template <typename AgentArnsT = Aws::Vector<Aws::String>>
47 void SetAgentArns(AgentArnsT&& value) {
48 m_agentArnsHasBeenSet = true;
49 m_agentArns = std::forward<AgentArnsT>(value);
50 }
51 template <typename AgentArnsT = Aws::Vector<Aws::String>>
52 OnPremConfig& WithAgentArns(AgentArnsT&& value) {
53 SetAgentArns(std::forward<AgentArnsT>(value));
54 return *this;
55 }
56 template <typename AgentArnsT = Aws::String>
57 OnPremConfig& AddAgentArns(AgentArnsT&& value) {
58 m_agentArnsHasBeenSet = true;
59 m_agentArns.emplace_back(std::forward<AgentArnsT>(value));
60 return *this;
61 }
63 private:
64 Aws::Vector<Aws::String> m_agentArns;
65 bool m_agentArnsHasBeenSet = false;
66};
67
68} // namespace Model
69} // namespace DataSync
70} // 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