AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
41
42
44
49 inline const NfsVersion& GetVersion() const{ return m_version; }
50 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
51 inline void SetVersion(const NfsVersion& value) { m_versionHasBeenSet = true; m_version = value; }
52 inline void SetVersion(NfsVersion&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
53 inline FileCacheNFSConfiguration& WithVersion(const NfsVersion& value) { SetVersion(value); return *this;}
54 inline FileCacheNFSConfiguration& WithVersion(NfsVersion&& value) { SetVersion(std::move(value)); return *this;}
56
58
64 inline const Aws::Vector<Aws::String>& GetDnsIps() const{ return m_dnsIps; }
65 inline bool DnsIpsHasBeenSet() const { return m_dnsIpsHasBeenSet; }
66 inline void SetDnsIps(const Aws::Vector<Aws::String>& value) { m_dnsIpsHasBeenSet = true; m_dnsIps = value; }
67 inline void SetDnsIps(Aws::Vector<Aws::String>&& value) { m_dnsIpsHasBeenSet = true; m_dnsIps = std::move(value); }
68 inline FileCacheNFSConfiguration& WithDnsIps(const Aws::Vector<Aws::String>& value) { SetDnsIps(value); return *this;}
69 inline FileCacheNFSConfiguration& WithDnsIps(Aws::Vector<Aws::String>&& value) { SetDnsIps(std::move(value)); return *this;}
70 inline FileCacheNFSConfiguration& AddDnsIps(const Aws::String& value) { m_dnsIpsHasBeenSet = true; m_dnsIps.push_back(value); return *this; }
71 inline FileCacheNFSConfiguration& AddDnsIps(Aws::String&& value) { m_dnsIpsHasBeenSet = true; m_dnsIps.push_back(std::move(value)); return *this; }
72 inline FileCacheNFSConfiguration& AddDnsIps(const char* value) { m_dnsIpsHasBeenSet = true; m_dnsIps.push_back(value); return *this; }
74 private:
75
76 NfsVersion m_version;
77 bool m_versionHasBeenSet = false;
78
80 bool m_dnsIpsHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace FSx
85} // namespace Aws
AWS_FSX_API FileCacheNFSConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetDnsIps(const Aws::Vector< Aws::String > &value)
FileCacheNFSConfiguration & AddDnsIps(Aws::String &&value)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
FileCacheNFSConfiguration & WithVersion(const NfsVersion &value)
FileCacheNFSConfiguration & AddDnsIps(const char *value)
void SetDnsIps(Aws::Vector< Aws::String > &&value)
FileCacheNFSConfiguration & WithDnsIps(const Aws::Vector< Aws::String > &value)
FileCacheNFSConfiguration & AddDnsIps(const Aws::String &value)
const Aws::Vector< Aws::String > & GetDnsIps() const
FileCacheNFSConfiguration & WithVersion(NfsVersion &&value)
AWS_FSX_API FileCacheNFSConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
FileCacheNFSConfiguration & WithDnsIps(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue