All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.fsx.model.CreateStorageVirtualMachineRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon FSx module holds the client classes that are used for communicating with Amazon FSx Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.fsx.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 * @see AWS
 *      API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateStorageVirtualMachineRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* 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 * clients accessing the file system. *

*/ private CreateSvmActiveDirectoryConfiguration activeDirectoryConfiguration; private String clientRequestToken; private String fileSystemId; /** *

* The name of the SVM. *

*/ private String name; /** *

* 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. *

*/ private String svmAdminPassword; private java.util.List tags; /** *

* 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 Microsoft Windows administrator, the majority of users are * SMB clients, and an application accessing the data uses a Microsoft Windows user as the service account. *

    *
  • *
  • *

    * MIXED This is an advanced setting. For more information, see Volume security style in the Amazon FSx for NetApp * ONTAP User Guide. *

    *
  • *
*

*/ private String rootVolumeSecurityStyle; /** *

* 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 * clients accessing the file system. *

* * @param 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 clients accessing the file system. */ public void setActiveDirectoryConfiguration(CreateSvmActiveDirectoryConfiguration activeDirectoryConfiguration) { this.activeDirectoryConfiguration = 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 * clients accessing the file system. *

* * @return 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 clients accessing the file system. */ public CreateSvmActiveDirectoryConfiguration getActiveDirectoryConfiguration() { return this.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 * clients accessing the file system. *

* * @param 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 clients accessing the file system. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStorageVirtualMachineRequest withActiveDirectoryConfiguration(CreateSvmActiveDirectoryConfiguration activeDirectoryConfiguration) { setActiveDirectoryConfiguration(activeDirectoryConfiguration); return this; } /** * @param clientRequestToken */ public void setClientRequestToken(String clientRequestToken) { this.clientRequestToken = clientRequestToken; } /** * @return */ public String getClientRequestToken() { return this.clientRequestToken; } /** * @param clientRequestToken * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStorageVirtualMachineRequest withClientRequestToken(String clientRequestToken) { setClientRequestToken(clientRequestToken); return this; } /** * @param fileSystemId */ public void setFileSystemId(String fileSystemId) { this.fileSystemId = fileSystemId; } /** * @return */ public String getFileSystemId() { return this.fileSystemId; } /** * @param fileSystemId * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStorageVirtualMachineRequest withFileSystemId(String fileSystemId) { setFileSystemId(fileSystemId); return this; } /** *

* The name of the SVM. *

* * @param name * The name of the SVM. */ public void setName(String name) { this.name = name; } /** *

* The name of the SVM. *

* * @return The name of the SVM. */ public String getName() { return this.name; } /** *

* The name of the SVM. *

* * @param name * The name of the SVM. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStorageVirtualMachineRequest withName(String name) { setName(name); 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. *

* * @param 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. */ public void setSvmAdminPassword(String svmAdminPassword) { this.svmAdminPassword = 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. *

* * @return 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. */ public String getSvmAdminPassword() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStorageVirtualMachineRequest withSvmAdminPassword(String svmAdminPassword) { setSvmAdminPassword(svmAdminPassword); return this; } /** * @return */ public java.util.List getTags() { return tags; } /** * @param tags */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *

* * @param tags * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStorageVirtualMachineRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** * @param tags * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStorageVirtualMachineRequest withTags(java.util.Collection tags) { setTags(tags); 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 Microsoft Windows administrator, the majority of users are * SMB clients, and an application accessing the data uses a Microsoft Windows user as the service account. *

    *
  • *
  • *

    * MIXED This is an advanced setting. For more information, see Volume security style in the Amazon FSx for NetApp * ONTAP User Guide. *

    *
  • *
*

* * @param 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 Microsoft Windows administrator, the majority of * users are SMB clients, and an application accessing the data uses a Microsoft Windows user as the service * account. *

    *
  • *
  • *

    * MIXED This is an advanced setting. For more information, see Volume security style in the Amazon FSx for * NetApp ONTAP User Guide. *

    *
  • *
* @see StorageVirtualMachineRootVolumeSecurityStyle */ public void setRootVolumeSecurityStyle(String rootVolumeSecurityStyle) { this.rootVolumeSecurityStyle = 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 Microsoft Windows administrator, the majority of users are * SMB clients, and an application accessing the data uses a Microsoft Windows user as the service account. *

    *
  • *
  • *

    * MIXED This is an advanced setting. For more information, see Volume security style in the Amazon FSx for NetApp * ONTAP User Guide. *

    *
  • *
*

* * @return 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 Microsoft Windows administrator, the majority of * users are SMB clients, and an application accessing the data uses a Microsoft Windows user as the service * account. *

    *
  • *
  • *

    * MIXED This is an advanced setting. For more information, see Volume security style in the Amazon FSx for * NetApp ONTAP User Guide. *

    *
  • *
* @see StorageVirtualMachineRootVolumeSecurityStyle */ public String getRootVolumeSecurityStyle() { return this.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 Microsoft Windows administrator, the majority of users are * SMB clients, and an application accessing the data uses a Microsoft Windows user as the service account. *

    *
  • *
  • *

    * MIXED This is an advanced setting. For more information, see Volume security style in the Amazon FSx for NetApp * ONTAP User Guide. *

    *
  • *
*

* * @param 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 Microsoft Windows administrator, the majority of * users are SMB clients, and an application accessing the data uses a Microsoft Windows user as the service * account. *

    *
  • *
  • *

    * MIXED This is an advanced setting. For more information, see Volume security style in the Amazon FSx for * NetApp ONTAP User Guide. *

    *
  • *
* @return Returns a reference to this object so that method calls can be chained together. * @see StorageVirtualMachineRootVolumeSecurityStyle */ public CreateStorageVirtualMachineRequest withRootVolumeSecurityStyle(String rootVolumeSecurityStyle) { setRootVolumeSecurityStyle(rootVolumeSecurityStyle); 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 Microsoft Windows administrator, the majority of users are * SMB clients, and an application accessing the data uses a Microsoft Windows user as the service account. *

    *
  • *
  • *

    * MIXED This is an advanced setting. For more information, see Volume security style in the Amazon FSx for NetApp * ONTAP User Guide. *

    *
  • *
*

* * @param 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 Microsoft Windows administrator, the majority of * users are SMB clients, and an application accessing the data uses a Microsoft Windows user as the service * account. *

    *
  • *
  • *

    * MIXED This is an advanced setting. For more information, see Volume security style in the Amazon FSx for * NetApp ONTAP User Guide. *

    *
  • *
* @return Returns a reference to this object so that method calls can be chained together. * @see StorageVirtualMachineRootVolumeSecurityStyle */ public CreateStorageVirtualMachineRequest withRootVolumeSecurityStyle(StorageVirtualMachineRootVolumeSecurityStyle rootVolumeSecurityStyle) { this.rootVolumeSecurityStyle = rootVolumeSecurityStyle.toString(); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getActiveDirectoryConfiguration() != null) sb.append("ActiveDirectoryConfiguration: ").append(getActiveDirectoryConfiguration()).append(","); if (getClientRequestToken() != null) sb.append("ClientRequestToken: ").append(getClientRequestToken()).append(","); if (getFileSystemId() != null) sb.append("FileSystemId: ").append(getFileSystemId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getSvmAdminPassword() != null) sb.append("SvmAdminPassword: ").append("***Sensitive Data Redacted***").append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getRootVolumeSecurityStyle() != null) sb.append("RootVolumeSecurityStyle: ").append(getRootVolumeSecurityStyle()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateStorageVirtualMachineRequest == false) return false; CreateStorageVirtualMachineRequest other = (CreateStorageVirtualMachineRequest) obj; if (other.getActiveDirectoryConfiguration() == null ^ this.getActiveDirectoryConfiguration() == null) return false; if (other.getActiveDirectoryConfiguration() != null && other.getActiveDirectoryConfiguration().equals(this.getActiveDirectoryConfiguration()) == false) return false; if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null) return false; if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false) return false; if (other.getFileSystemId() == null ^ this.getFileSystemId() == null) return false; if (other.getFileSystemId() != null && other.getFileSystemId().equals(this.getFileSystemId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getSvmAdminPassword() == null ^ this.getSvmAdminPassword() == null) return false; if (other.getSvmAdminPassword() != null && other.getSvmAdminPassword().equals(this.getSvmAdminPassword()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getRootVolumeSecurityStyle() == null ^ this.getRootVolumeSecurityStyle() == null) return false; if (other.getRootVolumeSecurityStyle() != null && other.getRootVolumeSecurityStyle().equals(this.getRootVolumeSecurityStyle()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getActiveDirectoryConfiguration() == null) ? 0 : getActiveDirectoryConfiguration().hashCode()); hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode()); hashCode = prime * hashCode + ((getFileSystemId() == null) ? 0 : getFileSystemId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getSvmAdminPassword() == null) ? 0 : getSvmAdminPassword().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getRootVolumeSecurityStyle() == null) ? 0 : getRootVolumeSecurityStyle().hashCode()); return hashCode; } @Override public CreateStorageVirtualMachineRequest clone() { return (CreateStorageVirtualMachineRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy