/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { namespace FSx { namespace Model { /** */ class CreateStorageVirtualMachineRequest : public FSxRequest { public: AWS_FSX_API CreateStorageVirtualMachineRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateStorageVirtualMachine"; } AWS_FSX_API Aws::String SerializePayload() const override; AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Describes the self-managed Microsoft Active Directory to which you want to * join the SVM. Joining an Active Directory provides user authentication and * access control for SMB clients, including Microsoft Windows and macOS client * accessing the file system.

*/ inline const CreateSvmActiveDirectoryConfiguration& GetActiveDirectoryConfiguration() const{ return m_activeDirectoryConfiguration; } /** *

Describes the self-managed Microsoft Active Directory to which you want to * join the SVM. Joining an Active Directory provides user authentication and * access control for SMB clients, including Microsoft Windows and macOS client * accessing the file system.

*/ inline bool ActiveDirectoryConfigurationHasBeenSet() const { return m_activeDirectoryConfigurationHasBeenSet; } /** *

Describes the self-managed Microsoft Active Directory to which you want to * join the SVM. Joining an Active Directory provides user authentication and * access control for SMB clients, including Microsoft Windows and macOS client * accessing the file system.

*/ inline void SetActiveDirectoryConfiguration(const CreateSvmActiveDirectoryConfiguration& value) { m_activeDirectoryConfigurationHasBeenSet = true; m_activeDirectoryConfiguration = value; } /** *

Describes the self-managed Microsoft Active Directory to which you want to * join the SVM. Joining an Active Directory provides user authentication and * access control for SMB clients, including Microsoft Windows and macOS client * accessing the file system.

*/ inline void SetActiveDirectoryConfiguration(CreateSvmActiveDirectoryConfiguration&& value) { m_activeDirectoryConfigurationHasBeenSet = true; m_activeDirectoryConfiguration = std::move(value); } /** *

Describes the self-managed Microsoft Active Directory to which you want to * join the SVM. Joining an Active Directory provides user authentication and * access control for SMB clients, including Microsoft Windows and macOS client * accessing the file system.

*/ inline CreateStorageVirtualMachineRequest& WithActiveDirectoryConfiguration(const CreateSvmActiveDirectoryConfiguration& value) { SetActiveDirectoryConfiguration(value); return *this;} /** *

Describes the self-managed Microsoft Active Directory to which you want to * join the SVM. Joining an Active Directory provides user authentication and * access control for SMB clients, including Microsoft Windows and macOS client * accessing the file system.

*/ inline CreateStorageVirtualMachineRequest& WithActiveDirectoryConfiguration(CreateSvmActiveDirectoryConfiguration&& value) { SetActiveDirectoryConfiguration(std::move(value)); return *this;} inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } inline CreateStorageVirtualMachineRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} inline CreateStorageVirtualMachineRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} inline CreateStorageVirtualMachineRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; } inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; } inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; } inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); } inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); } inline CreateStorageVirtualMachineRequest& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;} inline CreateStorageVirtualMachineRequest& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;} inline CreateStorageVirtualMachineRequest& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;} /** *

The name of the SVM.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the SVM.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the SVM.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the SVM.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the SVM.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the SVM.

*/ inline CreateStorageVirtualMachineRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the SVM.

*/ inline CreateStorageVirtualMachineRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the SVM.

*/ inline CreateStorageVirtualMachineRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The password to use when managing the SVM using the NetApp ONTAP CLI or REST * API. If you do not specify a password, you can still use the file system's * fsxadmin user to manage the SVM.

*/ inline const Aws::String& GetSvmAdminPassword() const{ return m_svmAdminPassword; } /** *

The password to use when managing the SVM using the NetApp ONTAP CLI or REST * API. If you do not specify a password, you can still use the file system's * fsxadmin user to manage the SVM.

*/ inline bool SvmAdminPasswordHasBeenSet() const { return m_svmAdminPasswordHasBeenSet; } /** *

The password to use when managing the SVM using the NetApp ONTAP CLI or REST * API. If you do not specify a password, you can still use the file system's * fsxadmin user to manage the SVM.

*/ inline void SetSvmAdminPassword(const Aws::String& value) { m_svmAdminPasswordHasBeenSet = true; m_svmAdminPassword = value; } /** *

The password to use when managing the SVM using the NetApp ONTAP CLI or REST * API. If you do not specify a password, you can still use the file system's * fsxadmin user to manage the SVM.

*/ inline void SetSvmAdminPassword(Aws::String&& value) { m_svmAdminPasswordHasBeenSet = true; m_svmAdminPassword = std::move(value); } /** *

The password to use when managing the SVM using the NetApp ONTAP CLI or REST * API. If you do not specify a password, you can still use the file system's * fsxadmin user to manage the SVM.

*/ inline void SetSvmAdminPassword(const char* value) { m_svmAdminPasswordHasBeenSet = true; m_svmAdminPassword.assign(value); } /** *

The password to use when managing the SVM using the NetApp ONTAP CLI or REST * API. If you do not specify a password, you can still use the file system's * fsxadmin user to manage the SVM.

*/ inline CreateStorageVirtualMachineRequest& WithSvmAdminPassword(const Aws::String& value) { SetSvmAdminPassword(value); return *this;} /** *

The password to use when managing the SVM using the NetApp ONTAP CLI or REST * API. If you do not specify a password, you can still use the file system's * fsxadmin user to manage the SVM.

*/ inline CreateStorageVirtualMachineRequest& WithSvmAdminPassword(Aws::String&& value) { SetSvmAdminPassword(std::move(value)); return *this;} /** *

The password to use when managing the SVM using the NetApp ONTAP CLI or REST * API. If you do not specify a password, you can still use the file system's * fsxadmin user to manage the SVM.

*/ inline CreateStorageVirtualMachineRequest& WithSvmAdminPassword(const char* value) { SetSvmAdminPassword(value); return *this;} inline const Aws::Vector& GetTags() const{ return m_tags; } inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } inline CreateStorageVirtualMachineRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} inline CreateStorageVirtualMachineRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} inline CreateStorageVirtualMachineRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } inline CreateStorageVirtualMachineRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The security style of the root volume of the SVM. Specify one of the * following values:

  • UNIX if the file system is * managed by a UNIX administrator, the majority of users are NFS clients, and an * application accessing the data uses a UNIX user as the service account.

    *
  • NTFS if the file system is managed by a Windows * administrator, the majority of users are SMB clients, and an application * accessing the data uses a Windows user as the service account.

  • *

    MIXED if the file system is managed by both UNIX and Windows * administrators and users consist of both NFS and SMB clients.

*/ inline const StorageVirtualMachineRootVolumeSecurityStyle& GetRootVolumeSecurityStyle() const{ return m_rootVolumeSecurityStyle; } /** *

The security style of the root volume of the SVM. Specify one of the * following values:

  • UNIX if the file system is * managed by a UNIX administrator, the majority of users are NFS clients, and an * application accessing the data uses a UNIX user as the service account.

    *
  • NTFS if the file system is managed by a Windows * administrator, the majority of users are SMB clients, and an application * accessing the data uses a Windows user as the service account.

  • *

    MIXED if the file system is managed by both UNIX and Windows * administrators and users consist of both NFS and SMB clients.

*/ inline bool RootVolumeSecurityStyleHasBeenSet() const { return m_rootVolumeSecurityStyleHasBeenSet; } /** *

The security style of the root volume of the SVM. Specify one of the * following values:

  • UNIX if the file system is * managed by a UNIX administrator, the majority of users are NFS clients, and an * application accessing the data uses a UNIX user as the service account.

    *
  • NTFS if the file system is managed by a Windows * administrator, the majority of users are SMB clients, and an application * accessing the data uses a Windows user as the service account.

  • *

    MIXED if the file system is managed by both UNIX and Windows * administrators and users consist of both NFS and SMB clients.

*/ inline void SetRootVolumeSecurityStyle(const StorageVirtualMachineRootVolumeSecurityStyle& value) { m_rootVolumeSecurityStyleHasBeenSet = true; m_rootVolumeSecurityStyle = value; } /** *

The security style of the root volume of the SVM. Specify one of the * following values:

  • UNIX if the file system is * managed by a UNIX administrator, the majority of users are NFS clients, and an * application accessing the data uses a UNIX user as the service account.

    *
  • NTFS if the file system is managed by a Windows * administrator, the majority of users are SMB clients, and an application * accessing the data uses a Windows user as the service account.

  • *

    MIXED if the file system is managed by both UNIX and Windows * administrators and users consist of both NFS and SMB clients.

*/ inline void SetRootVolumeSecurityStyle(StorageVirtualMachineRootVolumeSecurityStyle&& value) { m_rootVolumeSecurityStyleHasBeenSet = true; m_rootVolumeSecurityStyle = std::move(value); } /** *

The security style of the root volume of the SVM. Specify one of the * following values:

  • UNIX if the file system is * managed by a UNIX administrator, the majority of users are NFS clients, and an * application accessing the data uses a UNIX user as the service account.

    *
  • NTFS if the file system is managed by a Windows * administrator, the majority of users are SMB clients, and an application * accessing the data uses a Windows user as the service account.

  • *

    MIXED if the file system is managed by both UNIX and Windows * administrators and users consist of both NFS and SMB clients.

*/ inline CreateStorageVirtualMachineRequest& WithRootVolumeSecurityStyle(const StorageVirtualMachineRootVolumeSecurityStyle& value) { SetRootVolumeSecurityStyle(value); return *this;} /** *

The security style of the root volume of the SVM. Specify one of the * following values:

  • UNIX if the file system is * managed by a UNIX administrator, the majority of users are NFS clients, and an * application accessing the data uses a UNIX user as the service account.

    *
  • NTFS if the file system is managed by a Windows * administrator, the majority of users are SMB clients, and an application * accessing the data uses a Windows user as the service account.

  • *

    MIXED if the file system is managed by both UNIX and Windows * administrators and users consist of both NFS and SMB clients.

*/ inline CreateStorageVirtualMachineRequest& WithRootVolumeSecurityStyle(StorageVirtualMachineRootVolumeSecurityStyle&& value) { SetRootVolumeSecurityStyle(std::move(value)); return *this;} private: CreateSvmActiveDirectoryConfiguration m_activeDirectoryConfiguration; bool m_activeDirectoryConfigurationHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; Aws::String m_fileSystemId; bool m_fileSystemIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_svmAdminPassword; bool m_svmAdminPasswordHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; StorageVirtualMachineRootVolumeSecurityStyle m_rootVolumeSecurityStyle; bool m_rootVolumeSecurityStyleHasBeenSet = false; }; } // namespace Model } // namespace FSx } // namespace Aws