
com.amazonaws.services.fsx.model.CreateFileSystemOntapConfiguration Maven / Gradle / Ivy
/*
* 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 ONTAP configuration properties of the FSx for ONTAP file system that you are creating.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateFileSystemOntapConfiguration implements Serializable, Cloneable, StructuredPojo {
private Integer automaticBackupRetentionDays;
private String dailyAutomaticBackupStartTime;
/**
*
* Specifies the FSx for ONTAP file system deployment type to use in creating the file system.
*
*
* -
*
* MULTI_AZ_1
- (Default) A high availability file system configured for Multi-AZ redundancy to
* tolerate temporary Availability Zone (AZ) unavailability.
*
*
* -
*
* SINGLE_AZ_1
- A file system configured for Single-AZ redundancy.
*
*
*
*
* For information about the use cases for Multi-AZ and Single-AZ deployments, refer to Choosing a file system
* deployment type.
*
*/
private String deploymentType;
/**
*
* (Multi-AZ only) Specifies the IP address range in which the endpoints to access your file system will be created.
* By default in the Amazon FSx API, Amazon FSx selects an unused IP address range for you from the 198.19.* range.
* By default in the Amazon FSx console, Amazon FSx chooses the last 64 IP addresses from the VPC’s primary CIDR
* range to use as the endpoint IP address range for the file system. You can have overlapping endpoint IP addresses
* for file systems deployed in the same VPC/route tables, as long as they don't overlap with any subnet.
*
*/
private String endpointIpAddressRange;
/**
*
* The ONTAP administrative password for the fsxadmin
user with which you administer your file system
* using the NetApp ONTAP CLI and REST API.
*
*/
private String fsxAdminPassword;
/**
*
* The SSD IOPS configuration for the FSx for ONTAP file system.
*
*/
private DiskIopsConfiguration diskIopsConfiguration;
/**
*
* Required when DeploymentType
is set to MULTI_AZ_1
. This specifies the subnet in which
* you want the preferred file server to be located.
*
*/
private String preferredSubnetId;
/**
*
* (Multi-AZ only) Specifies the virtual private cloud (VPC) route tables in which your file system's endpoints will
* be created. You should specify all VPC route tables associated with the subnets in which your clients are
* located. By default, Amazon FSx selects your VPC's default route table.
*
*/
private java.util.List routeTableIds;
/**
*
* Sets the throughput capacity for the file system that you're creating. Valid values are 128, 256, 512, 1024,
* 2048, and 4096 MBps.
*
*/
private Integer throughputCapacity;
private String weeklyMaintenanceStartTime;
/**
* @param automaticBackupRetentionDays
*/
public void setAutomaticBackupRetentionDays(Integer automaticBackupRetentionDays) {
this.automaticBackupRetentionDays = automaticBackupRetentionDays;
}
/**
* @return
*/
public Integer getAutomaticBackupRetentionDays() {
return this.automaticBackupRetentionDays;
}
/**
* @param automaticBackupRetentionDays
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemOntapConfiguration withAutomaticBackupRetentionDays(Integer automaticBackupRetentionDays) {
setAutomaticBackupRetentionDays(automaticBackupRetentionDays);
return this;
}
/**
* @param dailyAutomaticBackupStartTime
*/
public void setDailyAutomaticBackupStartTime(String dailyAutomaticBackupStartTime) {
this.dailyAutomaticBackupStartTime = dailyAutomaticBackupStartTime;
}
/**
* @return
*/
public String getDailyAutomaticBackupStartTime() {
return this.dailyAutomaticBackupStartTime;
}
/**
* @param dailyAutomaticBackupStartTime
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemOntapConfiguration withDailyAutomaticBackupStartTime(String dailyAutomaticBackupStartTime) {
setDailyAutomaticBackupStartTime(dailyAutomaticBackupStartTime);
return this;
}
/**
*
* Specifies the FSx for ONTAP file system deployment type to use in creating the file system.
*
*
* -
*
* MULTI_AZ_1
- (Default) A high availability file system configured for Multi-AZ redundancy to
* tolerate temporary Availability Zone (AZ) unavailability.
*
*
* -
*
* SINGLE_AZ_1
- A file system configured for Single-AZ redundancy.
*
*
*
*
* For information about the use cases for Multi-AZ and Single-AZ deployments, refer to Choosing a file system
* deployment type.
*
*
* @param deploymentType
* Specifies the FSx for ONTAP file system deployment type to use in creating the file system.
*
* -
*
* MULTI_AZ_1
- (Default) A high availability file system configured for Multi-AZ redundancy to
* tolerate temporary Availability Zone (AZ) unavailability.
*
*
* -
*
* SINGLE_AZ_1
- A file system configured for Single-AZ redundancy.
*
*
*
*
* For information about the use cases for Multi-AZ and Single-AZ deployments, refer to Choosing a file system
* deployment type.
* @see OntapDeploymentType
*/
public void setDeploymentType(String deploymentType) {
this.deploymentType = deploymentType;
}
/**
*
* Specifies the FSx for ONTAP file system deployment type to use in creating the file system.
*
*
* -
*
* MULTI_AZ_1
- (Default) A high availability file system configured for Multi-AZ redundancy to
* tolerate temporary Availability Zone (AZ) unavailability.
*
*
* -
*
* SINGLE_AZ_1
- A file system configured for Single-AZ redundancy.
*
*
*
*
* For information about the use cases for Multi-AZ and Single-AZ deployments, refer to Choosing a file system
* deployment type.
*
*
* @return Specifies the FSx for ONTAP file system deployment type to use in creating the file system.
*
* -
*
* MULTI_AZ_1
- (Default) A high availability file system configured for Multi-AZ redundancy to
* tolerate temporary Availability Zone (AZ) unavailability.
*
*
* -
*
* SINGLE_AZ_1
- A file system configured for Single-AZ redundancy.
*
*
*
*
* For information about the use cases for Multi-AZ and Single-AZ deployments, refer to Choosing a file system
* deployment type.
* @see OntapDeploymentType
*/
public String getDeploymentType() {
return this.deploymentType;
}
/**
*
* Specifies the FSx for ONTAP file system deployment type to use in creating the file system.
*
*
* -
*
* MULTI_AZ_1
- (Default) A high availability file system configured for Multi-AZ redundancy to
* tolerate temporary Availability Zone (AZ) unavailability.
*
*
* -
*
* SINGLE_AZ_1
- A file system configured for Single-AZ redundancy.
*
*
*
*
* For information about the use cases for Multi-AZ and Single-AZ deployments, refer to Choosing a file system
* deployment type.
*
*
* @param deploymentType
* Specifies the FSx for ONTAP file system deployment type to use in creating the file system.
*
* -
*
* MULTI_AZ_1
- (Default) A high availability file system configured for Multi-AZ redundancy to
* tolerate temporary Availability Zone (AZ) unavailability.
*
*
* -
*
* SINGLE_AZ_1
- A file system configured for Single-AZ redundancy.
*
*
*
*
* For information about the use cases for Multi-AZ and Single-AZ deployments, refer to Choosing a file system
* deployment type.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OntapDeploymentType
*/
public CreateFileSystemOntapConfiguration withDeploymentType(String deploymentType) {
setDeploymentType(deploymentType);
return this;
}
/**
*
* Specifies the FSx for ONTAP file system deployment type to use in creating the file system.
*
*
* -
*
* MULTI_AZ_1
- (Default) A high availability file system configured for Multi-AZ redundancy to
* tolerate temporary Availability Zone (AZ) unavailability.
*
*
* -
*
* SINGLE_AZ_1
- A file system configured for Single-AZ redundancy.
*
*
*
*
* For information about the use cases for Multi-AZ and Single-AZ deployments, refer to Choosing a file system
* deployment type.
*
*
* @param deploymentType
* Specifies the FSx for ONTAP file system deployment type to use in creating the file system.
*
* -
*
* MULTI_AZ_1
- (Default) A high availability file system configured for Multi-AZ redundancy to
* tolerate temporary Availability Zone (AZ) unavailability.
*
*
* -
*
* SINGLE_AZ_1
- A file system configured for Single-AZ redundancy.
*
*
*
*
* For information about the use cases for Multi-AZ and Single-AZ deployments, refer to Choosing a file system
* deployment type.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OntapDeploymentType
*/
public CreateFileSystemOntapConfiguration withDeploymentType(OntapDeploymentType deploymentType) {
this.deploymentType = deploymentType.toString();
return this;
}
/**
*
* (Multi-AZ only) Specifies the IP address range in which the endpoints to access your file system will be created.
* By default in the Amazon FSx API, Amazon FSx selects an unused IP address range for you from the 198.19.* range.
* By default in the Amazon FSx console, Amazon FSx chooses the last 64 IP addresses from the VPC’s primary CIDR
* range to use as the endpoint IP address range for the file system. You can have overlapping endpoint IP addresses
* for file systems deployed in the same VPC/route tables, as long as they don't overlap with any subnet.
*
*
* @param endpointIpAddressRange
* (Multi-AZ only) Specifies the IP address range in which the endpoints to access your file system will be
* created. By default in the Amazon FSx API, Amazon FSx selects an unused IP address range for you from the
* 198.19.* range. By default in the Amazon FSx console, Amazon FSx chooses the last 64 IP addresses from the
* VPC’s primary CIDR range to use as the endpoint IP address range for the file system. You can have
* overlapping endpoint IP addresses for file systems deployed in the same VPC/route tables, as long as they
* don't overlap with any subnet.
*/
public void setEndpointIpAddressRange(String endpointIpAddressRange) {
this.endpointIpAddressRange = endpointIpAddressRange;
}
/**
*
* (Multi-AZ only) Specifies the IP address range in which the endpoints to access your file system will be created.
* By default in the Amazon FSx API, Amazon FSx selects an unused IP address range for you from the 198.19.* range.
* By default in the Amazon FSx console, Amazon FSx chooses the last 64 IP addresses from the VPC’s primary CIDR
* range to use as the endpoint IP address range for the file system. You can have overlapping endpoint IP addresses
* for file systems deployed in the same VPC/route tables, as long as they don't overlap with any subnet.
*
*
* @return (Multi-AZ only) Specifies the IP address range in which the endpoints to access your file system will be
* created. By default in the Amazon FSx API, Amazon FSx selects an unused IP address range for you from the
* 198.19.* range. By default in the Amazon FSx console, Amazon FSx chooses the last 64 IP addresses from
* the VPC’s primary CIDR range to use as the endpoint IP address range for the file system. You can have
* overlapping endpoint IP addresses for file systems deployed in the same VPC/route tables, as long as they
* don't overlap with any subnet.
*/
public String getEndpointIpAddressRange() {
return this.endpointIpAddressRange;
}
/**
*
* (Multi-AZ only) Specifies the IP address range in which the endpoints to access your file system will be created.
* By default in the Amazon FSx API, Amazon FSx selects an unused IP address range for you from the 198.19.* range.
* By default in the Amazon FSx console, Amazon FSx chooses the last 64 IP addresses from the VPC’s primary CIDR
* range to use as the endpoint IP address range for the file system. You can have overlapping endpoint IP addresses
* for file systems deployed in the same VPC/route tables, as long as they don't overlap with any subnet.
*
*
* @param endpointIpAddressRange
* (Multi-AZ only) Specifies the IP address range in which the endpoints to access your file system will be
* created. By default in the Amazon FSx API, Amazon FSx selects an unused IP address range for you from the
* 198.19.* range. By default in the Amazon FSx console, Amazon FSx chooses the last 64 IP addresses from the
* VPC’s primary CIDR range to use as the endpoint IP address range for the file system. You can have
* overlapping endpoint IP addresses for file systems deployed in the same VPC/route tables, as long as they
* don't overlap with any subnet.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemOntapConfiguration withEndpointIpAddressRange(String endpointIpAddressRange) {
setEndpointIpAddressRange(endpointIpAddressRange);
return this;
}
/**
*
* The ONTAP administrative password for the fsxadmin
user with which you administer your file system
* using the NetApp ONTAP CLI and REST API.
*
*
* @param fsxAdminPassword
* The ONTAP administrative password for the fsxadmin
user with which you administer your file
* system using the NetApp ONTAP CLI and REST API.
*/
public void setFsxAdminPassword(String fsxAdminPassword) {
this.fsxAdminPassword = fsxAdminPassword;
}
/**
*
* The ONTAP administrative password for the fsxadmin
user with which you administer your file system
* using the NetApp ONTAP CLI and REST API.
*
*
* @return The ONTAP administrative password for the fsxadmin
user with which you administer your file
* system using the NetApp ONTAP CLI and REST API.
*/
public String getFsxAdminPassword() {
return this.fsxAdminPassword;
}
/**
*
* The ONTAP administrative password for the fsxadmin
user with which you administer your file system
* using the NetApp ONTAP CLI and REST API.
*
*
* @param fsxAdminPassword
* The ONTAP administrative password for the fsxadmin
user with which you administer your file
* system using the NetApp ONTAP CLI and REST API.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemOntapConfiguration withFsxAdminPassword(String fsxAdminPassword) {
setFsxAdminPassword(fsxAdminPassword);
return this;
}
/**
*
* The SSD IOPS configuration for the FSx for ONTAP file system.
*
*
* @param diskIopsConfiguration
* The SSD IOPS configuration for the FSx for ONTAP file system.
*/
public void setDiskIopsConfiguration(DiskIopsConfiguration diskIopsConfiguration) {
this.diskIopsConfiguration = diskIopsConfiguration;
}
/**
*
* The SSD IOPS configuration for the FSx for ONTAP file system.
*
*
* @return The SSD IOPS configuration for the FSx for ONTAP file system.
*/
public DiskIopsConfiguration getDiskIopsConfiguration() {
return this.diskIopsConfiguration;
}
/**
*
* The SSD IOPS configuration for the FSx for ONTAP file system.
*
*
* @param diskIopsConfiguration
* The SSD IOPS configuration for the FSx for ONTAP file system.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemOntapConfiguration withDiskIopsConfiguration(DiskIopsConfiguration diskIopsConfiguration) {
setDiskIopsConfiguration(diskIopsConfiguration);
return this;
}
/**
*
* Required when DeploymentType
is set to MULTI_AZ_1
. This specifies the subnet in which
* you want the preferred file server to be located.
*
*
* @param preferredSubnetId
* Required when DeploymentType
is set to MULTI_AZ_1
. This specifies the subnet in
* which you want the preferred file server to be located.
*/
public void setPreferredSubnetId(String preferredSubnetId) {
this.preferredSubnetId = preferredSubnetId;
}
/**
*
* Required when DeploymentType
is set to MULTI_AZ_1
. This specifies the subnet in which
* you want the preferred file server to be located.
*
*
* @return Required when DeploymentType
is set to MULTI_AZ_1
. This specifies the subnet in
* which you want the preferred file server to be located.
*/
public String getPreferredSubnetId() {
return this.preferredSubnetId;
}
/**
*
* Required when DeploymentType
is set to MULTI_AZ_1
. This specifies the subnet in which
* you want the preferred file server to be located.
*
*
* @param preferredSubnetId
* Required when DeploymentType
is set to MULTI_AZ_1
. This specifies the subnet in
* which you want the preferred file server to be located.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemOntapConfiguration withPreferredSubnetId(String preferredSubnetId) {
setPreferredSubnetId(preferredSubnetId);
return this;
}
/**
*
* (Multi-AZ only) Specifies the virtual private cloud (VPC) route tables in which your file system's endpoints will
* be created. You should specify all VPC route tables associated with the subnets in which your clients are
* located. By default, Amazon FSx selects your VPC's default route table.
*
*
* @return (Multi-AZ only) Specifies the virtual private cloud (VPC) route tables in which your file system's
* endpoints will be created. You should specify all VPC route tables associated with the subnets in which
* your clients are located. By default, Amazon FSx selects your VPC's default route table.
*/
public java.util.List getRouteTableIds() {
return routeTableIds;
}
/**
*
* (Multi-AZ only) Specifies the virtual private cloud (VPC) route tables in which your file system's endpoints will
* be created. You should specify all VPC route tables associated with the subnets in which your clients are
* located. By default, Amazon FSx selects your VPC's default route table.
*
*
* @param routeTableIds
* (Multi-AZ only) Specifies the virtual private cloud (VPC) route tables in which your file system's
* endpoints will be created. You should specify all VPC route tables associated with the subnets in which
* your clients are located. By default, Amazon FSx selects your VPC's default route table.
*/
public void setRouteTableIds(java.util.Collection routeTableIds) {
if (routeTableIds == null) {
this.routeTableIds = null;
return;
}
this.routeTableIds = new java.util.ArrayList(routeTableIds);
}
/**
*
* (Multi-AZ only) Specifies the virtual private cloud (VPC) route tables in which your file system's endpoints will
* be created. You should specify all VPC route tables associated with the subnets in which your clients are
* located. By default, Amazon FSx selects your VPC's default route table.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setRouteTableIds(java.util.Collection)} or {@link #withRouteTableIds(java.util.Collection)} if you want
* to override the existing values.
*
*
* @param routeTableIds
* (Multi-AZ only) Specifies the virtual private cloud (VPC) route tables in which your file system's
* endpoints will be created. You should specify all VPC route tables associated with the subnets in which
* your clients are located. By default, Amazon FSx selects your VPC's default route table.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemOntapConfiguration withRouteTableIds(String... routeTableIds) {
if (this.routeTableIds == null) {
setRouteTableIds(new java.util.ArrayList(routeTableIds.length));
}
for (String ele : routeTableIds) {
this.routeTableIds.add(ele);
}
return this;
}
/**
*
* (Multi-AZ only) Specifies the virtual private cloud (VPC) route tables in which your file system's endpoints will
* be created. You should specify all VPC route tables associated with the subnets in which your clients are
* located. By default, Amazon FSx selects your VPC's default route table.
*
*
* @param routeTableIds
* (Multi-AZ only) Specifies the virtual private cloud (VPC) route tables in which your file system's
* endpoints will be created. You should specify all VPC route tables associated with the subnets in which
* your clients are located. By default, Amazon FSx selects your VPC's default route table.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemOntapConfiguration withRouteTableIds(java.util.Collection routeTableIds) {
setRouteTableIds(routeTableIds);
return this;
}
/**
*
* Sets the throughput capacity for the file system that you're creating. Valid values are 128, 256, 512, 1024,
* 2048, and 4096 MBps.
*
*
* @param throughputCapacity
* Sets the throughput capacity for the file system that you're creating. Valid values are 128, 256, 512,
* 1024, 2048, and 4096 MBps.
*/
public void setThroughputCapacity(Integer throughputCapacity) {
this.throughputCapacity = throughputCapacity;
}
/**
*
* Sets the throughput capacity for the file system that you're creating. Valid values are 128, 256, 512, 1024,
* 2048, and 4096 MBps.
*
*
* @return Sets the throughput capacity for the file system that you're creating. Valid values are 128, 256, 512,
* 1024, 2048, and 4096 MBps.
*/
public Integer getThroughputCapacity() {
return this.throughputCapacity;
}
/**
*
* Sets the throughput capacity for the file system that you're creating. Valid values are 128, 256, 512, 1024,
* 2048, and 4096 MBps.
*
*
* @param throughputCapacity
* Sets the throughput capacity for the file system that you're creating. Valid values are 128, 256, 512,
* 1024, 2048, and 4096 MBps.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemOntapConfiguration withThroughputCapacity(Integer throughputCapacity) {
setThroughputCapacity(throughputCapacity);
return this;
}
/**
* @param weeklyMaintenanceStartTime
*/
public void setWeeklyMaintenanceStartTime(String weeklyMaintenanceStartTime) {
this.weeklyMaintenanceStartTime = weeklyMaintenanceStartTime;
}
/**
* @return
*/
public String getWeeklyMaintenanceStartTime() {
return this.weeklyMaintenanceStartTime;
}
/**
* @param weeklyMaintenanceStartTime
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemOntapConfiguration withWeeklyMaintenanceStartTime(String weeklyMaintenanceStartTime) {
setWeeklyMaintenanceStartTime(weeklyMaintenanceStartTime);
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 (getAutomaticBackupRetentionDays() != null)
sb.append("AutomaticBackupRetentionDays: ").append(getAutomaticBackupRetentionDays()).append(",");
if (getDailyAutomaticBackupStartTime() != null)
sb.append("DailyAutomaticBackupStartTime: ").append(getDailyAutomaticBackupStartTime()).append(",");
if (getDeploymentType() != null)
sb.append("DeploymentType: ").append(getDeploymentType()).append(",");
if (getEndpointIpAddressRange() != null)
sb.append("EndpointIpAddressRange: ").append(getEndpointIpAddressRange()).append(",");
if (getFsxAdminPassword() != null)
sb.append("FsxAdminPassword: ").append("***Sensitive Data Redacted***").append(",");
if (getDiskIopsConfiguration() != null)
sb.append("DiskIopsConfiguration: ").append(getDiskIopsConfiguration()).append(",");
if (getPreferredSubnetId() != null)
sb.append("PreferredSubnetId: ").append(getPreferredSubnetId()).append(",");
if (getRouteTableIds() != null)
sb.append("RouteTableIds: ").append(getRouteTableIds()).append(",");
if (getThroughputCapacity() != null)
sb.append("ThroughputCapacity: ").append(getThroughputCapacity()).append(",");
if (getWeeklyMaintenanceStartTime() != null)
sb.append("WeeklyMaintenanceStartTime: ").append(getWeeklyMaintenanceStartTime());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateFileSystemOntapConfiguration == false)
return false;
CreateFileSystemOntapConfiguration other = (CreateFileSystemOntapConfiguration) obj;
if (other.getAutomaticBackupRetentionDays() == null ^ this.getAutomaticBackupRetentionDays() == null)
return false;
if (other.getAutomaticBackupRetentionDays() != null && other.getAutomaticBackupRetentionDays().equals(this.getAutomaticBackupRetentionDays()) == false)
return false;
if (other.getDailyAutomaticBackupStartTime() == null ^ this.getDailyAutomaticBackupStartTime() == null)
return false;
if (other.getDailyAutomaticBackupStartTime() != null
&& other.getDailyAutomaticBackupStartTime().equals(this.getDailyAutomaticBackupStartTime()) == false)
return false;
if (other.getDeploymentType() == null ^ this.getDeploymentType() == null)
return false;
if (other.getDeploymentType() != null && other.getDeploymentType().equals(this.getDeploymentType()) == false)
return false;
if (other.getEndpointIpAddressRange() == null ^ this.getEndpointIpAddressRange() == null)
return false;
if (other.getEndpointIpAddressRange() != null && other.getEndpointIpAddressRange().equals(this.getEndpointIpAddressRange()) == false)
return false;
if (other.getFsxAdminPassword() == null ^ this.getFsxAdminPassword() == null)
return false;
if (other.getFsxAdminPassword() != null && other.getFsxAdminPassword().equals(this.getFsxAdminPassword()) == false)
return false;
if (other.getDiskIopsConfiguration() == null ^ this.getDiskIopsConfiguration() == null)
return false;
if (other.getDiskIopsConfiguration() != null && other.getDiskIopsConfiguration().equals(this.getDiskIopsConfiguration()) == false)
return false;
if (other.getPreferredSubnetId() == null ^ this.getPreferredSubnetId() == null)
return false;
if (other.getPreferredSubnetId() != null && other.getPreferredSubnetId().equals(this.getPreferredSubnetId()) == false)
return false;
if (other.getRouteTableIds() == null ^ this.getRouteTableIds() == null)
return false;
if (other.getRouteTableIds() != null && other.getRouteTableIds().equals(this.getRouteTableIds()) == false)
return false;
if (other.getThroughputCapacity() == null ^ this.getThroughputCapacity() == null)
return false;
if (other.getThroughputCapacity() != null && other.getThroughputCapacity().equals(this.getThroughputCapacity()) == false)
return false;
if (other.getWeeklyMaintenanceStartTime() == null ^ this.getWeeklyMaintenanceStartTime() == null)
return false;
if (other.getWeeklyMaintenanceStartTime() != null && other.getWeeklyMaintenanceStartTime().equals(this.getWeeklyMaintenanceStartTime()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAutomaticBackupRetentionDays() == null) ? 0 : getAutomaticBackupRetentionDays().hashCode());
hashCode = prime * hashCode + ((getDailyAutomaticBackupStartTime() == null) ? 0 : getDailyAutomaticBackupStartTime().hashCode());
hashCode = prime * hashCode + ((getDeploymentType() == null) ? 0 : getDeploymentType().hashCode());
hashCode = prime * hashCode + ((getEndpointIpAddressRange() == null) ? 0 : getEndpointIpAddressRange().hashCode());
hashCode = prime * hashCode + ((getFsxAdminPassword() == null) ? 0 : getFsxAdminPassword().hashCode());
hashCode = prime * hashCode + ((getDiskIopsConfiguration() == null) ? 0 : getDiskIopsConfiguration().hashCode());
hashCode = prime * hashCode + ((getPreferredSubnetId() == null) ? 0 : getPreferredSubnetId().hashCode());
hashCode = prime * hashCode + ((getRouteTableIds() == null) ? 0 : getRouteTableIds().hashCode());
hashCode = prime * hashCode + ((getThroughputCapacity() == null) ? 0 : getThroughputCapacity().hashCode());
hashCode = prime * hashCode + ((getWeeklyMaintenanceStartTime() == null) ? 0 : getWeeklyMaintenanceStartTime().hashCode());
return hashCode;
}
@Override
public CreateFileSystemOntapConfiguration clone() {
try {
return (CreateFileSystemOntapConfiguration) 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.CreateFileSystemOntapConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}