/** * 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 FSx { namespace Model { /** *

Specifies who can mount an OpenZFS file system and the options available * while mounting the file system.

See Also:

AWS * API Reference

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

A value that specifies who can mount the file system. You can provide a * wildcard character (*), an IP address (0.0.0.0), or a * CIDR address (192.0.2.0/24). By default, Amazon FSx uses the * wildcard character when specifying the client.

*/ inline const Aws::String& GetClients() const{ return m_clients; } /** *

A value that specifies who can mount the file system. You can provide a * wildcard character (*), an IP address (0.0.0.0), or a * CIDR address (192.0.2.0/24). By default, Amazon FSx uses the * wildcard character when specifying the client.

*/ inline bool ClientsHasBeenSet() const { return m_clientsHasBeenSet; } /** *

A value that specifies who can mount the file system. You can provide a * wildcard character (*), an IP address (0.0.0.0), or a * CIDR address (192.0.2.0/24). By default, Amazon FSx uses the * wildcard character when specifying the client.

*/ inline void SetClients(const Aws::String& value) { m_clientsHasBeenSet = true; m_clients = value; } /** *

A value that specifies who can mount the file system. You can provide a * wildcard character (*), an IP address (0.0.0.0), or a * CIDR address (192.0.2.0/24). By default, Amazon FSx uses the * wildcard character when specifying the client.

*/ inline void SetClients(Aws::String&& value) { m_clientsHasBeenSet = true; m_clients = std::move(value); } /** *

A value that specifies who can mount the file system. You can provide a * wildcard character (*), an IP address (0.0.0.0), or a * CIDR address (192.0.2.0/24). By default, Amazon FSx uses the * wildcard character when specifying the client.

*/ inline void SetClients(const char* value) { m_clientsHasBeenSet = true; m_clients.assign(value); } /** *

A value that specifies who can mount the file system. You can provide a * wildcard character (*), an IP address (0.0.0.0), or a * CIDR address (192.0.2.0/24). By default, Amazon FSx uses the * wildcard character when specifying the client.

*/ inline OpenZFSClientConfiguration& WithClients(const Aws::String& value) { SetClients(value); return *this;} /** *

A value that specifies who can mount the file system. You can provide a * wildcard character (*), an IP address (0.0.0.0), or a * CIDR address (192.0.2.0/24). By default, Amazon FSx uses the * wildcard character when specifying the client.

*/ inline OpenZFSClientConfiguration& WithClients(Aws::String&& value) { SetClients(std::move(value)); return *this;} /** *

A value that specifies who can mount the file system. You can provide a * wildcard character (*), an IP address (0.0.0.0), or a * CIDR address (192.0.2.0/24). By default, Amazon FSx uses the * wildcard character when specifying the client.

*/ inline OpenZFSClientConfiguration& WithClients(const char* value) { SetClients(value); return *this;} /** *

The options to use when mounting the file system. For a list of options that * you can use with Network File System (NFS), see the exports(5) - Linux man page. When * choosing your options, consider the following:

  • * crossmnt is used by default. If you don't specify * crossmnt when changing the client configuration, you won't be able * to see or access snapshots in your file system's snapshot directory.

  • *
  • sync is used by default. If you instead specify * async, the system acknowledges writes before writing to disk. If * the system crashes before the writes are finished, you lose the unwritten data. *

*/ inline const Aws::Vector& GetOptions() const{ return m_options; } /** *

The options to use when mounting the file system. For a list of options that * you can use with Network File System (NFS), see the exports(5) - Linux man page. When * choosing your options, consider the following:

  • * crossmnt is used by default. If you don't specify * crossmnt when changing the client configuration, you won't be able * to see or access snapshots in your file system's snapshot directory.

  • *
  • sync is used by default. If you instead specify * async, the system acknowledges writes before writing to disk. If * the system crashes before the writes are finished, you lose the unwritten data. *

*/ inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; } /** *

The options to use when mounting the file system. For a list of options that * you can use with Network File System (NFS), see the exports(5) - Linux man page. When * choosing your options, consider the following:

  • * crossmnt is used by default. If you don't specify * crossmnt when changing the client configuration, you won't be able * to see or access snapshots in your file system's snapshot directory.

  • *
  • sync is used by default. If you instead specify * async, the system acknowledges writes before writing to disk. If * the system crashes before the writes are finished, you lose the unwritten data. *

*/ inline void SetOptions(const Aws::Vector& value) { m_optionsHasBeenSet = true; m_options = value; } /** *

The options to use when mounting the file system. For a list of options that * you can use with Network File System (NFS), see the exports(5) - Linux man page. When * choosing your options, consider the following:

  • * crossmnt is used by default. If you don't specify * crossmnt when changing the client configuration, you won't be able * to see or access snapshots in your file system's snapshot directory.

  • *
  • sync is used by default. If you instead specify * async, the system acknowledges writes before writing to disk. If * the system crashes before the writes are finished, you lose the unwritten data. *

*/ inline void SetOptions(Aws::Vector&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); } /** *

The options to use when mounting the file system. For a list of options that * you can use with Network File System (NFS), see the exports(5) - Linux man page. When * choosing your options, consider the following:

  • * crossmnt is used by default. If you don't specify * crossmnt when changing the client configuration, you won't be able * to see or access snapshots in your file system's snapshot directory.

  • *
  • sync is used by default. If you instead specify * async, the system acknowledges writes before writing to disk. If * the system crashes before the writes are finished, you lose the unwritten data. *

*/ inline OpenZFSClientConfiguration& WithOptions(const Aws::Vector& value) { SetOptions(value); return *this;} /** *

The options to use when mounting the file system. For a list of options that * you can use with Network File System (NFS), see the exports(5) - Linux man page. When * choosing your options, consider the following:

  • * crossmnt is used by default. If you don't specify * crossmnt when changing the client configuration, you won't be able * to see or access snapshots in your file system's snapshot directory.

  • *
  • sync is used by default. If you instead specify * async, the system acknowledges writes before writing to disk. If * the system crashes before the writes are finished, you lose the unwritten data. *

*/ inline OpenZFSClientConfiguration& WithOptions(Aws::Vector&& value) { SetOptions(std::move(value)); return *this;} /** *

The options to use when mounting the file system. For a list of options that * you can use with Network File System (NFS), see the exports(5) - Linux man page. When * choosing your options, consider the following:

  • * crossmnt is used by default. If you don't specify * crossmnt when changing the client configuration, you won't be able * to see or access snapshots in your file system's snapshot directory.

  • *
  • sync is used by default. If you instead specify * async, the system acknowledges writes before writing to disk. If * the system crashes before the writes are finished, you lose the unwritten data. *

*/ inline OpenZFSClientConfiguration& AddOptions(const Aws::String& value) { m_optionsHasBeenSet = true; m_options.push_back(value); return *this; } /** *

The options to use when mounting the file system. For a list of options that * you can use with Network File System (NFS), see the exports(5) - Linux man page. When * choosing your options, consider the following:

  • * crossmnt is used by default. If you don't specify * crossmnt when changing the client configuration, you won't be able * to see or access snapshots in your file system's snapshot directory.

  • *
  • sync is used by default. If you instead specify * async, the system acknowledges writes before writing to disk. If * the system crashes before the writes are finished, you lose the unwritten data. *

*/ inline OpenZFSClientConfiguration& AddOptions(Aws::String&& value) { m_optionsHasBeenSet = true; m_options.push_back(std::move(value)); return *this; } /** *

The options to use when mounting the file system. For a list of options that * you can use with Network File System (NFS), see the exports(5) - Linux man page. When * choosing your options, consider the following:

  • * crossmnt is used by default. If you don't specify * crossmnt when changing the client configuration, you won't be able * to see or access snapshots in your file system's snapshot directory.

  • *
  • sync is used by default. If you instead specify * async, the system acknowledges writes before writing to disk. If * the system crashes before the writes are finished, you lose the unwritten data. *

*/ inline OpenZFSClientConfiguration& AddOptions(const char* value) { m_optionsHasBeenSet = true; m_options.push_back(value); return *this; } private: Aws::String m_clients; bool m_clientsHasBeenSet = false; Aws::Vector m_options; bool m_optionsHasBeenSet = false; }; } // namespace Model } // namespace FSx } // namespace Aws