/* * 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.fsx.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The configuration for an NFS data repository association (DRA) created during the creation of the Amazon File Cache * resource. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class FileCacheNFSConfiguration implements Serializable, Cloneable, StructuredPojo { /** *
* The version of the NFS (Network File System) protocol of the NFS data repository. The only supported value is
* NFS3
, which indicates that the data repository must support the NFSv3 protocol.
*
* A list of up to 2 IP addresses of DNS servers used to resolve the NFS file system domain name. The provided IP * addresses can either be the IP addresses of a DNS forwarder or resolver that the customer manages and runs inside * the customer VPC, or the IP addresses of the on-premises DNS servers. *
*/ private java.util.List
* The version of the NFS (Network File System) protocol of the NFS data repository. The only supported value is
* NFS3
, which indicates that the data repository must support the NFSv3 protocol.
*
NFS3
, which indicates that the data repository must support the NFSv3 protocol.
* @see NfsVersion
*/
public void setVersion(String version) {
this.version = version;
}
/**
*
* The version of the NFS (Network File System) protocol of the NFS data repository. The only supported value is
* NFS3
, which indicates that the data repository must support the NFSv3 protocol.
*
NFS3
, which indicates that the data repository must support the NFSv3 protocol.
* @see NfsVersion
*/
public String getVersion() {
return this.version;
}
/**
*
* The version of the NFS (Network File System) protocol of the NFS data repository. The only supported value is
* NFS3
, which indicates that the data repository must support the NFSv3 protocol.
*
NFS3
, which indicates that the data repository must support the NFSv3 protocol.
* @return Returns a reference to this object so that method calls can be chained together.
* @see NfsVersion
*/
public FileCacheNFSConfiguration withVersion(String version) {
setVersion(version);
return this;
}
/**
*
* The version of the NFS (Network File System) protocol of the NFS data repository. The only supported value is
* NFS3
, which indicates that the data repository must support the NFSv3 protocol.
*
NFS3
, which indicates that the data repository must support the NFSv3 protocol.
* @return Returns a reference to this object so that method calls can be chained together.
* @see NfsVersion
*/
public FileCacheNFSConfiguration withVersion(NfsVersion version) {
this.version = version.toString();
return this;
}
/**
* * A list of up to 2 IP addresses of DNS servers used to resolve the NFS file system domain name. The provided IP * addresses can either be the IP addresses of a DNS forwarder or resolver that the customer manages and runs inside * the customer VPC, or the IP addresses of the on-premises DNS servers. *
* * @return A list of up to 2 IP addresses of DNS servers used to resolve the NFS file system domain name. The * provided IP addresses can either be the IP addresses of a DNS forwarder or resolver that the customer * manages and runs inside the customer VPC, or the IP addresses of the on-premises DNS servers. */ public java.util.List* A list of up to 2 IP addresses of DNS servers used to resolve the NFS file system domain name. The provided IP * addresses can either be the IP addresses of a DNS forwarder or resolver that the customer manages and runs inside * the customer VPC, or the IP addresses of the on-premises DNS servers. *
* * @param dnsIps * A list of up to 2 IP addresses of DNS servers used to resolve the NFS file system domain name. The * provided IP addresses can either be the IP addresses of a DNS forwarder or resolver that the customer * manages and runs inside the customer VPC, or the IP addresses of the on-premises DNS servers. */ public void setDnsIps(java.util.Collection* A list of up to 2 IP addresses of DNS servers used to resolve the NFS file system domain name. The provided IP * addresses can either be the IP addresses of a DNS forwarder or resolver that the customer manages and runs inside * the customer VPC, or the IP addresses of the on-premises DNS servers. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDnsIps(java.util.Collection)} or {@link #withDnsIps(java.util.Collection)} if you want to override the * existing values. *
* * @param dnsIps * A list of up to 2 IP addresses of DNS servers used to resolve the NFS file system domain name. The * provided IP addresses can either be the IP addresses of a DNS forwarder or resolver that the customer * manages and runs inside the customer VPC, or the IP addresses of the on-premises DNS servers. * @return Returns a reference to this object so that method calls can be chained together. */ public FileCacheNFSConfiguration withDnsIps(String... dnsIps) { if (this.dnsIps == null) { setDnsIps(new java.util.ArrayList* A list of up to 2 IP addresses of DNS servers used to resolve the NFS file system domain name. The provided IP * addresses can either be the IP addresses of a DNS forwarder or resolver that the customer manages and runs inside * the customer VPC, or the IP addresses of the on-premises DNS servers. *
* * @param dnsIps * A list of up to 2 IP addresses of DNS servers used to resolve the NFS file system domain name. The * provided IP addresses can either be the IP addresses of a DNS forwarder or resolver that the customer * manages and runs inside the customer VPC, or the IP addresses of the on-premises DNS servers. * @return Returns a reference to this object so that method calls can be chained together. */ public FileCacheNFSConfiguration withDnsIps(java.util.Collection