AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FileCacheNFSConfiguration.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/fsx/model/NfsVersion.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace FSx
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_FSX_API FileCacheNFSConfiguration() = default;
41
42
44
49 inline NfsVersion GetVersion() const { return m_version; }
50 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
51 inline void SetVersion(NfsVersion value) { m_versionHasBeenSet = true; m_version = value; }
52 inline FileCacheNFSConfiguration& WithVersion(NfsVersion value) { SetVersion(value); return *this;}
54
56
62 inline const Aws::Vector<Aws::String>& GetDnsIps() const { return m_dnsIps; }
63 inline bool DnsIpsHasBeenSet() const { return m_dnsIpsHasBeenSet; }
64 template<typename DnsIpsT = Aws::Vector<Aws::String>>
65 void SetDnsIps(DnsIpsT&& value) { m_dnsIpsHasBeenSet = true; m_dnsIps = std::forward<DnsIpsT>(value); }
66 template<typename DnsIpsT = Aws::Vector<Aws::String>>
67 FileCacheNFSConfiguration& WithDnsIps(DnsIpsT&& value) { SetDnsIps(std::forward<DnsIpsT>(value)); return *this;}
68 template<typename DnsIpsT = Aws::String>
69 FileCacheNFSConfiguration& AddDnsIps(DnsIpsT&& value) { m_dnsIpsHasBeenSet = true; m_dnsIps.emplace_back(std::forward<DnsIpsT>(value)); return *this; }
71 private:
72
74 bool m_versionHasBeenSet = false;
75
77 bool m_dnsIpsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace FSx
82} // namespace Aws
FileCacheNFSConfiguration & WithVersion(NfsVersion value)
AWS_FSX_API FileCacheNFSConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FSX_API FileCacheNFSConfiguration()=default
FileCacheNFSConfiguration & AddDnsIps(DnsIpsT &&value)
const Aws::Vector< Aws::String > & GetDnsIps() const
AWS_FSX_API FileCacheNFSConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
FileCacheNFSConfiguration & WithDnsIps(DnsIpsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue