/* * Copyright 2018-2023 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.datasync.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 CreateLocationFsxOpenZfsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The Amazon Resource Name (ARN) of the FSx for OpenZFS file system. *
*/ private String fsxFilesystemArn; /** ** The type of protocol that DataSync uses to access your file system. *
*/ private FsxProtocol protocol; /** ** The ARNs of the security groups that are used to configure the FSx for OpenZFS file system. *
*/ private java.util.List
* A subdirectory in the location's path that must begin with /fsx
. DataSync uses this subdirectory to
* read or write data (depending on whether the file system is a source or destination location).
*
* The key-value pair that represents a tag that you want to add to the resource. The value can be an empty string. * This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for * your location. *
*/ private java.util.List* The Amazon Resource Name (ARN) of the FSx for OpenZFS file system. *
* * @param fsxFilesystemArn * The Amazon Resource Name (ARN) of the FSx for OpenZFS file system. */ public void setFsxFilesystemArn(String fsxFilesystemArn) { this.fsxFilesystemArn = fsxFilesystemArn; } /** ** The Amazon Resource Name (ARN) of the FSx for OpenZFS file system. *
* * @return The Amazon Resource Name (ARN) of the FSx for OpenZFS file system. */ public String getFsxFilesystemArn() { return this.fsxFilesystemArn; } /** ** The Amazon Resource Name (ARN) of the FSx for OpenZFS file system. *
* * @param fsxFilesystemArn * The Amazon Resource Name (ARN) of the FSx for OpenZFS file system. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationFsxOpenZfsRequest withFsxFilesystemArn(String fsxFilesystemArn) { setFsxFilesystemArn(fsxFilesystemArn); return this; } /** ** The type of protocol that DataSync uses to access your file system. *
* * @param protocol * The type of protocol that DataSync uses to access your file system. */ public void setProtocol(FsxProtocol protocol) { this.protocol = protocol; } /** ** The type of protocol that DataSync uses to access your file system. *
* * @return The type of protocol that DataSync uses to access your file system. */ public FsxProtocol getProtocol() { return this.protocol; } /** ** The type of protocol that DataSync uses to access your file system. *
* * @param protocol * The type of protocol that DataSync uses to access your file system. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationFsxOpenZfsRequest withProtocol(FsxProtocol protocol) { setProtocol(protocol); return this; } /** ** The ARNs of the security groups that are used to configure the FSx for OpenZFS file system. *
* * @return The ARNs of the security groups that are used to configure the FSx for OpenZFS file system. */ public java.util.List* The ARNs of the security groups that are used to configure the FSx for OpenZFS file system. *
* * @param securityGroupArns * The ARNs of the security groups that are used to configure the FSx for OpenZFS file system. */ public void setSecurityGroupArns(java.util.Collection* The ARNs of the security groups that are used to configure the FSx for OpenZFS file system. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSecurityGroupArns(java.util.Collection)} or {@link #withSecurityGroupArns(java.util.Collection)} if * you want to override the existing values. *
* * @param securityGroupArns * The ARNs of the security groups that are used to configure the FSx for OpenZFS file system. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationFsxOpenZfsRequest withSecurityGroupArns(String... securityGroupArns) { if (this.securityGroupArns == null) { setSecurityGroupArns(new java.util.ArrayList* The ARNs of the security groups that are used to configure the FSx for OpenZFS file system. *
* * @param securityGroupArns * The ARNs of the security groups that are used to configure the FSx for OpenZFS file system. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationFsxOpenZfsRequest withSecurityGroupArns(java.util.Collection
* A subdirectory in the location's path that must begin with /fsx
. DataSync uses this subdirectory to
* read or write data (depending on whether the file system is a source or destination location).
*
/fsx
. DataSync uses this
* subdirectory to read or write data (depending on whether the file system is a source or destination
* location).
*/
public void setSubdirectory(String subdirectory) {
this.subdirectory = subdirectory;
}
/**
*
* A subdirectory in the location's path that must begin with /fsx
. DataSync uses this subdirectory to
* read or write data (depending on whether the file system is a source or destination location).
*
/fsx
. DataSync uses this
* subdirectory to read or write data (depending on whether the file system is a source or destination
* location).
*/
public String getSubdirectory() {
return this.subdirectory;
}
/**
*
* A subdirectory in the location's path that must begin with /fsx
. DataSync uses this subdirectory to
* read or write data (depending on whether the file system is a source or destination location).
*
/fsx
. DataSync uses this
* subdirectory to read or write data (depending on whether the file system is a source or destination
* location).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLocationFsxOpenZfsRequest withSubdirectory(String subdirectory) {
setSubdirectory(subdirectory);
return this;
}
/**
* * The key-value pair that represents a tag that you want to add to the resource. The value can be an empty string. * This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for * your location. *
* * @return The key-value pair that represents a tag that you want to add to the resource. The value can be an empty * string. This value helps you manage, filter, and search for your resources. We recommend that you create * a name tag for your location. */ public java.util.List* The key-value pair that represents a tag that you want to add to the resource. The value can be an empty string. * This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for * your location. *
* * @param tags * The key-value pair that represents a tag that you want to add to the resource. The value can be an empty * string. This value helps you manage, filter, and search for your resources. We recommend that you create a * name tag for your location. */ public void setTags(java.util.Collection* The key-value pair that represents a tag that you want to add to the resource. The value can be an empty string. * This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for * your location. *
** 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 * The key-value pair that represents a tag that you want to add to the resource. The value can be an empty * string. This value helps you manage, filter, and search for your resources. We recommend that you create a * name tag for your location. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationFsxOpenZfsRequest withTags(TagListEntry... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* The key-value pair that represents a tag that you want to add to the resource. The value can be an empty string. * This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for * your location. *
* * @param tags * The key-value pair that represents a tag that you want to add to the resource. The value can be an empty * string. This value helps you manage, filter, and search for your resources. We recommend that you create a * name tag for your location. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationFsxOpenZfsRequest withTags(java.util.Collection