
com.amazonaws.services.fsx.model.UpdateFileSystemOntapConfiguration Maven / Gradle / Ivy
/*
* Copyright 2017-2022 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 updates for an Amazon FSx for NetApp ONTAP file system.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateFileSystemOntapConfiguration implements Serializable, Cloneable, StructuredPojo {
private Integer automaticBackupRetentionDays;
private String dailyAutomaticBackupStartTime;
/**
*
* The ONTAP administrative password for the fsxadmin
user.
*
*/
private String fsxAdminPassword;
private String weeklyMaintenanceStartTime;
/**
*
* The SSD IOPS (input/output operations per second) configuration for an Amazon FSx for NetApp ONTAP file system.
* The default is 3 IOPS per GB of storage capacity, but you can provision additional IOPS per GB of storage. The
* configuration consists of an IOPS mode (AUTOMATIC
or USER_PROVISIONED
), and in the case
* of USER_PROVISIONED
IOPS, the total number of SSD IOPS provisioned.
*
*/
private DiskIopsConfiguration diskIopsConfiguration;
/**
*
* Specifies the throughput of an FSx for NetApp ONTAP file system, measured in megabytes per second (MBps). Valid
* values are 128, 256, 512, 1024, or 2048 MB/s.
*
*/
private Integer throughputCapacity;
/**
* @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 UpdateFileSystemOntapConfiguration 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 UpdateFileSystemOntapConfiguration withDailyAutomaticBackupStartTime(String dailyAutomaticBackupStartTime) {
setDailyAutomaticBackupStartTime(dailyAutomaticBackupStartTime);
return this;
}
/**
*
* The ONTAP administrative password for the fsxadmin
user.
*
*
* @param fsxAdminPassword
* The ONTAP administrative password for the fsxadmin
user.
*/
public void setFsxAdminPassword(String fsxAdminPassword) {
this.fsxAdminPassword = fsxAdminPassword;
}
/**
*
* The ONTAP administrative password for the fsxadmin
user.
*
*
* @return The ONTAP administrative password for the fsxadmin
user.
*/
public String getFsxAdminPassword() {
return this.fsxAdminPassword;
}
/**
*
* The ONTAP administrative password for the fsxadmin
user.
*
*
* @param fsxAdminPassword
* The ONTAP administrative password for the fsxadmin
user.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFileSystemOntapConfiguration withFsxAdminPassword(String fsxAdminPassword) {
setFsxAdminPassword(fsxAdminPassword);
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 UpdateFileSystemOntapConfiguration withWeeklyMaintenanceStartTime(String weeklyMaintenanceStartTime) {
setWeeklyMaintenanceStartTime(weeklyMaintenanceStartTime);
return this;
}
/**
*
* The SSD IOPS (input/output operations per second) configuration for an Amazon FSx for NetApp ONTAP file system.
* The default is 3 IOPS per GB of storage capacity, but you can provision additional IOPS per GB of storage. The
* configuration consists of an IOPS mode (AUTOMATIC
or USER_PROVISIONED
), and in the case
* of USER_PROVISIONED
IOPS, the total number of SSD IOPS provisioned.
*
*
* @param diskIopsConfiguration
* The SSD IOPS (input/output operations per second) configuration for an Amazon FSx for NetApp ONTAP file
* system. The default is 3 IOPS per GB of storage capacity, but you can provision additional IOPS per GB of
* storage. The configuration consists of an IOPS mode (AUTOMATIC
or
* USER_PROVISIONED
), and in the case of USER_PROVISIONED
IOPS, the total number of
* SSD IOPS provisioned.
*/
public void setDiskIopsConfiguration(DiskIopsConfiguration diskIopsConfiguration) {
this.diskIopsConfiguration = diskIopsConfiguration;
}
/**
*
* The SSD IOPS (input/output operations per second) configuration for an Amazon FSx for NetApp ONTAP file system.
* The default is 3 IOPS per GB of storage capacity, but you can provision additional IOPS per GB of storage. The
* configuration consists of an IOPS mode (AUTOMATIC
or USER_PROVISIONED
), and in the case
* of USER_PROVISIONED
IOPS, the total number of SSD IOPS provisioned.
*
*
* @return The SSD IOPS (input/output operations per second) configuration for an Amazon FSx for NetApp ONTAP file
* system. The default is 3 IOPS per GB of storage capacity, but you can provision additional IOPS per GB of
* storage. The configuration consists of an IOPS mode (AUTOMATIC
or
* USER_PROVISIONED
), and in the case of USER_PROVISIONED
IOPS, the total number
* of SSD IOPS provisioned.
*/
public DiskIopsConfiguration getDiskIopsConfiguration() {
return this.diskIopsConfiguration;
}
/**
*
* The SSD IOPS (input/output operations per second) configuration for an Amazon FSx for NetApp ONTAP file system.
* The default is 3 IOPS per GB of storage capacity, but you can provision additional IOPS per GB of storage. The
* configuration consists of an IOPS mode (AUTOMATIC
or USER_PROVISIONED
), and in the case
* of USER_PROVISIONED
IOPS, the total number of SSD IOPS provisioned.
*
*
* @param diskIopsConfiguration
* The SSD IOPS (input/output operations per second) configuration for an Amazon FSx for NetApp ONTAP file
* system. The default is 3 IOPS per GB of storage capacity, but you can provision additional IOPS per GB of
* storage. The configuration consists of an IOPS mode (AUTOMATIC
or
* USER_PROVISIONED
), and in the case of USER_PROVISIONED
IOPS, the total number of
* SSD IOPS provisioned.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFileSystemOntapConfiguration withDiskIopsConfiguration(DiskIopsConfiguration diskIopsConfiguration) {
setDiskIopsConfiguration(diskIopsConfiguration);
return this;
}
/**
*
* Specifies the throughput of an FSx for NetApp ONTAP file system, measured in megabytes per second (MBps). Valid
* values are 128, 256, 512, 1024, or 2048 MB/s.
*
*
* @param throughputCapacity
* Specifies the throughput of an FSx for NetApp ONTAP file system, measured in megabytes per second (MBps).
* Valid values are 128, 256, 512, 1024, or 2048 MB/s.
*/
public void setThroughputCapacity(Integer throughputCapacity) {
this.throughputCapacity = throughputCapacity;
}
/**
*
* Specifies the throughput of an FSx for NetApp ONTAP file system, measured in megabytes per second (MBps). Valid
* values are 128, 256, 512, 1024, or 2048 MB/s.
*
*
* @return Specifies the throughput of an FSx for NetApp ONTAP file system, measured in megabytes per second (MBps).
* Valid values are 128, 256, 512, 1024, or 2048 MB/s.
*/
public Integer getThroughputCapacity() {
return this.throughputCapacity;
}
/**
*
* Specifies the throughput of an FSx for NetApp ONTAP file system, measured in megabytes per second (MBps). Valid
* values are 128, 256, 512, 1024, or 2048 MB/s.
*
*
* @param throughputCapacity
* Specifies the throughput of an FSx for NetApp ONTAP file system, measured in megabytes per second (MBps).
* Valid values are 128, 256, 512, 1024, or 2048 MB/s.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFileSystemOntapConfiguration withThroughputCapacity(Integer throughputCapacity) {
setThroughputCapacity(throughputCapacity);
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 (getFsxAdminPassword() != null)
sb.append("FsxAdminPassword: ").append("***Sensitive Data Redacted***").append(",");
if (getWeeklyMaintenanceStartTime() != null)
sb.append("WeeklyMaintenanceStartTime: ").append(getWeeklyMaintenanceStartTime()).append(",");
if (getDiskIopsConfiguration() != null)
sb.append("DiskIopsConfiguration: ").append(getDiskIopsConfiguration()).append(",");
if (getThroughputCapacity() != null)
sb.append("ThroughputCapacity: ").append(getThroughputCapacity());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateFileSystemOntapConfiguration == false)
return false;
UpdateFileSystemOntapConfiguration other = (UpdateFileSystemOntapConfiguration) 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.getFsxAdminPassword() == null ^ this.getFsxAdminPassword() == null)
return false;
if (other.getFsxAdminPassword() != null && other.getFsxAdminPassword().equals(this.getFsxAdminPassword()) == false)
return false;
if (other.getWeeklyMaintenanceStartTime() == null ^ this.getWeeklyMaintenanceStartTime() == null)
return false;
if (other.getWeeklyMaintenanceStartTime() != null && other.getWeeklyMaintenanceStartTime().equals(this.getWeeklyMaintenanceStartTime()) == 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.getThroughputCapacity() == null ^ this.getThroughputCapacity() == null)
return false;
if (other.getThroughputCapacity() != null && other.getThroughputCapacity().equals(this.getThroughputCapacity()) == 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 + ((getFsxAdminPassword() == null) ? 0 : getFsxAdminPassword().hashCode());
hashCode = prime * hashCode + ((getWeeklyMaintenanceStartTime() == null) ? 0 : getWeeklyMaintenanceStartTime().hashCode());
hashCode = prime * hashCode + ((getDiskIopsConfiguration() == null) ? 0 : getDiskIopsConfiguration().hashCode());
hashCode = prime * hashCode + ((getThroughputCapacity() == null) ? 0 : getThroughputCapacity().hashCode());
return hashCode;
}
@Override
public UpdateFileSystemOntapConfiguration clone() {
try {
return (UpdateFileSystemOntapConfiguration) 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.UpdateFileSystemOntapConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}