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

com.amazonaws.services.fsx.model.NFSDataRepositoryConfiguration 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.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The configuration for a data repository association that links an Amazon File Cache resource to an NFS data * repository. *

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

* The version of the NFS (Network File System) protocol of the NFS data repository. Currently, the only supported * value is NFS3, which indicates that the data repository must support the NFSv3 protocol. *

*/ private String version; /** *

* 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 dnsIps; /** *

* This parameter is not supported for Amazon File Cache. *

*/ private AutoExportPolicy autoExportPolicy; /** *

* The version of the NFS (Network File System) protocol of the NFS data repository. Currently, the only supported * value is NFS3, which indicates that the data repository must support the NFSv3 protocol. *

* * @param version * The version of the NFS (Network File System) protocol of the NFS data repository. Currently, the only * supported value is 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. Currently, the only supported * value is NFS3, which indicates that the data repository must support the NFSv3 protocol. *

* * @return The version of the NFS (Network File System) protocol of the NFS data repository. Currently, the only * supported value is 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. Currently, the only supported * value is NFS3, which indicates that the data repository must support the NFSv3 protocol. *

* * @param version * The version of the NFS (Network File System) protocol of the NFS data repository. Currently, the only * supported value is 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 NFSDataRepositoryConfiguration withVersion(String version) { setVersion(version); return this; } /** *

* The version of the NFS (Network File System) protocol of the NFS data repository. Currently, the only supported * value is NFS3, which indicates that the data repository must support the NFSv3 protocol. *

* * @param version * The version of the NFS (Network File System) protocol of the NFS data repository. Currently, the only * supported value is 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 NFSDataRepositoryConfiguration 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 getDnsIps() { return 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. *

* * @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 dnsIps) { if (dnsIps == null) { this.dnsIps = null; return; } this.dnsIps = new java.util.ArrayList(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. *

*

* 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 NFSDataRepositoryConfiguration withDnsIps(String... dnsIps) { if (this.dnsIps == null) { setDnsIps(new java.util.ArrayList(dnsIps.length)); } for (String ele : dnsIps) { this.dnsIps.add(ele); } 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. *

* * @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 NFSDataRepositoryConfiguration withDnsIps(java.util.Collection dnsIps) { setDnsIps(dnsIps); return this; } /** *

* This parameter is not supported for Amazon File Cache. *

* * @param autoExportPolicy * This parameter is not supported for Amazon File Cache. */ public void setAutoExportPolicy(AutoExportPolicy autoExportPolicy) { this.autoExportPolicy = autoExportPolicy; } /** *

* This parameter is not supported for Amazon File Cache. *

* * @return This parameter is not supported for Amazon File Cache. */ public AutoExportPolicy getAutoExportPolicy() { return this.autoExportPolicy; } /** *

* This parameter is not supported for Amazon File Cache. *

* * @param autoExportPolicy * This parameter is not supported for Amazon File Cache. * @return Returns a reference to this object so that method calls can be chained together. */ public NFSDataRepositoryConfiguration withAutoExportPolicy(AutoExportPolicy autoExportPolicy) { setAutoExportPolicy(autoExportPolicy); 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 (getVersion() != null) sb.append("Version: ").append(getVersion()).append(","); if (getDnsIps() != null) sb.append("DnsIps: ").append(getDnsIps()).append(","); if (getAutoExportPolicy() != null) sb.append("AutoExportPolicy: ").append(getAutoExportPolicy()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof NFSDataRepositoryConfiguration == false) return false; NFSDataRepositoryConfiguration other = (NFSDataRepositoryConfiguration) obj; if (other.getVersion() == null ^ this.getVersion() == null) return false; if (other.getVersion() != null && other.getVersion().equals(this.getVersion()) == false) return false; if (other.getDnsIps() == null ^ this.getDnsIps() == null) return false; if (other.getDnsIps() != null && other.getDnsIps().equals(this.getDnsIps()) == false) return false; if (other.getAutoExportPolicy() == null ^ this.getAutoExportPolicy() == null) return false; if (other.getAutoExportPolicy() != null && other.getAutoExportPolicy().equals(this.getAutoExportPolicy()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getVersion() == null) ? 0 : getVersion().hashCode()); hashCode = prime * hashCode + ((getDnsIps() == null) ? 0 : getDnsIps().hashCode()); hashCode = prime * hashCode + ((getAutoExportPolicy() == null) ? 0 : getAutoExportPolicy().hashCode()); return hashCode; } @Override public NFSDataRepositoryConfiguration clone() { try { return (NFSDataRepositoryConfiguration) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.fsx.model.transform.NFSDataRepositoryConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy