/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DataSync { namespace Model { /** *

A list of Amazon Resource Names (ARNs) of agents to use for a Network File * System (NFS) location.

See Also:

AWS * API Reference

*/ class OnPremConfig { public: AWS_DATASYNC_API OnPremConfig(); AWS_DATASYNC_API OnPremConfig(Aws::Utils::Json::JsonView jsonValue); AWS_DATASYNC_API OnPremConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

ARNs of the agents to use for an NFS location.

*/ inline const Aws::Vector& GetAgentArns() const{ return m_agentArns; } /** *

ARNs of the agents to use for an NFS location.

*/ inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; } /** *

ARNs of the agents to use for an NFS location.

*/ inline void SetAgentArns(const Aws::Vector& value) { m_agentArnsHasBeenSet = true; m_agentArns = value; } /** *

ARNs of the agents to use for an NFS location.

*/ inline void SetAgentArns(Aws::Vector&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::move(value); } /** *

ARNs of the agents to use for an NFS location.

*/ inline OnPremConfig& WithAgentArns(const Aws::Vector& value) { SetAgentArns(value); return *this;} /** *

ARNs of the agents to use for an NFS location.

*/ inline OnPremConfig& WithAgentArns(Aws::Vector&& value) { SetAgentArns(std::move(value)); return *this;} /** *

ARNs of the agents to use for an NFS location.

*/ inline OnPremConfig& AddAgentArns(const Aws::String& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; } /** *

ARNs of the agents to use for an NFS location.

*/ inline OnPremConfig& AddAgentArns(Aws::String&& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(std::move(value)); return *this; } /** *

ARNs of the agents to use for an NFS location.

*/ inline OnPremConfig& AddAgentArns(const char* value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; } private: Aws::Vector m_agentArns; bool m_agentArnsHasBeenSet = false; }; } // namespace Model } // namespace DataSync } // namespace Aws