/* * 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.securityhub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Changes to a DB instance that are currently pending. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsRdsDbPendingModifiedValues implements Serializable, Cloneable, StructuredPojo { /** ** The new DB instance class for the DB instance. *
*/ private String dbInstanceClass; /** ** The new value of the allocated storage for the DB instance. *
*/ private Integer allocatedStorage; /** ** The new master user password for the DB instance. *
*/ private String masterUserPassword; /** ** The new port for the DB instance. *
*/ private Integer port; /** ** The new backup retention period for the DB instance. *
*/ private Integer backupRetentionPeriod; /** ** Indicates that a single Availability Zone DB instance is changing to a multiple Availability Zone deployment. *
*/ private Boolean multiAZ; /** ** The new engine version for the DB instance. *
*/ private String engineVersion; /** ** The new license model value for the DB instance. *
*/ private String licenseModel; /** ** The new provisioned IOPS value for the DB instance. *
*/ private Integer iops; /** ** The new DB instance identifier for the DB instance. *
*/ private String dbInstanceIdentifier; /** ** The new storage type for the DB instance. *
*/ private String storageType; /** ** The new CA certificate identifier for the DB instance. *
*/ private String caCertificateIdentifier; /** ** The name of the new subnet group for the DB instance. *
*/ private String dbSubnetGroupName; /** ** A list of log types that are being enabled or disabled. *
*/ private AwsRdsPendingCloudWatchLogsExports pendingCloudWatchLogsExports; /** ** Processor features that are being updated. *
*/ private java.util.List* The new DB instance class for the DB instance. *
* * @param dbInstanceClass * The new DB instance class for the DB instance. */ public void setDbInstanceClass(String dbInstanceClass) { this.dbInstanceClass = dbInstanceClass; } /** ** The new DB instance class for the DB instance. *
* * @return The new DB instance class for the DB instance. */ public String getDbInstanceClass() { return this.dbInstanceClass; } /** ** The new DB instance class for the DB instance. *
* * @param dbInstanceClass * The new DB instance class for the DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRdsDbPendingModifiedValues withDbInstanceClass(String dbInstanceClass) { setDbInstanceClass(dbInstanceClass); return this; } /** ** The new value of the allocated storage for the DB instance. *
* * @param allocatedStorage * The new value of the allocated storage for the DB instance. */ public void setAllocatedStorage(Integer allocatedStorage) { this.allocatedStorage = allocatedStorage; } /** ** The new value of the allocated storage for the DB instance. *
* * @return The new value of the allocated storage for the DB instance. */ public Integer getAllocatedStorage() { return this.allocatedStorage; } /** ** The new value of the allocated storage for the DB instance. *
* * @param allocatedStorage * The new value of the allocated storage for the DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRdsDbPendingModifiedValues withAllocatedStorage(Integer allocatedStorage) { setAllocatedStorage(allocatedStorage); return this; } /** ** The new master user password for the DB instance. *
* * @param masterUserPassword * The new master user password for the DB instance. */ public void setMasterUserPassword(String masterUserPassword) { this.masterUserPassword = masterUserPassword; } /** ** The new master user password for the DB instance. *
* * @return The new master user password for the DB instance. */ public String getMasterUserPassword() { return this.masterUserPassword; } /** ** The new master user password for the DB instance. *
* * @param masterUserPassword * The new master user password for the DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRdsDbPendingModifiedValues withMasterUserPassword(String masterUserPassword) { setMasterUserPassword(masterUserPassword); return this; } /** ** The new port for the DB instance. *
* * @param port * The new port for the DB instance. */ public void setPort(Integer port) { this.port = port; } /** ** The new port for the DB instance. *
* * @return The new port for the DB instance. */ public Integer getPort() { return this.port; } /** ** The new port for the DB instance. *
* * @param port * The new port for the DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRdsDbPendingModifiedValues withPort(Integer port) { setPort(port); return this; } /** ** The new backup retention period for the DB instance. *
* * @param backupRetentionPeriod * The new backup retention period for the DB instance. */ public void setBackupRetentionPeriod(Integer backupRetentionPeriod) { this.backupRetentionPeriod = backupRetentionPeriod; } /** ** The new backup retention period for the DB instance. *
* * @return The new backup retention period for the DB instance. */ public Integer getBackupRetentionPeriod() { return this.backupRetentionPeriod; } /** ** The new backup retention period for the DB instance. *
* * @param backupRetentionPeriod * The new backup retention period for the DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRdsDbPendingModifiedValues withBackupRetentionPeriod(Integer backupRetentionPeriod) { setBackupRetentionPeriod(backupRetentionPeriod); return this; } /** ** Indicates that a single Availability Zone DB instance is changing to a multiple Availability Zone deployment. *
* * @param multiAZ * Indicates that a single Availability Zone DB instance is changing to a multiple Availability Zone * deployment. */ public void setMultiAZ(Boolean multiAZ) { this.multiAZ = multiAZ; } /** ** Indicates that a single Availability Zone DB instance is changing to a multiple Availability Zone deployment. *
* * @return Indicates that a single Availability Zone DB instance is changing to a multiple Availability Zone * deployment. */ public Boolean getMultiAZ() { return this.multiAZ; } /** ** Indicates that a single Availability Zone DB instance is changing to a multiple Availability Zone deployment. *
* * @param multiAZ * Indicates that a single Availability Zone DB instance is changing to a multiple Availability Zone * deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRdsDbPendingModifiedValues withMultiAZ(Boolean multiAZ) { setMultiAZ(multiAZ); return this; } /** ** Indicates that a single Availability Zone DB instance is changing to a multiple Availability Zone deployment. *
* * @return Indicates that a single Availability Zone DB instance is changing to a multiple Availability Zone * deployment. */ public Boolean isMultiAZ() { return this.multiAZ; } /** ** The new engine version for the DB instance. *
* * @param engineVersion * The new engine version for the DB instance. */ public void setEngineVersion(String engineVersion) { this.engineVersion = engineVersion; } /** ** The new engine version for the DB instance. *
* * @return The new engine version for the DB instance. */ public String getEngineVersion() { return this.engineVersion; } /** ** The new engine version for the DB instance. *
* * @param engineVersion * The new engine version for the DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRdsDbPendingModifiedValues withEngineVersion(String engineVersion) { setEngineVersion(engineVersion); return this; } /** ** The new license model value for the DB instance. *
* * @param licenseModel * The new license model value for the DB instance. */ public void setLicenseModel(String licenseModel) { this.licenseModel = licenseModel; } /** ** The new license model value for the DB instance. *
* * @return The new license model value for the DB instance. */ public String getLicenseModel() { return this.licenseModel; } /** ** The new license model value for the DB instance. *
* * @param licenseModel * The new license model value for the DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRdsDbPendingModifiedValues withLicenseModel(String licenseModel) { setLicenseModel(licenseModel); return this; } /** ** The new provisioned IOPS value for the DB instance. *
* * @param iops * The new provisioned IOPS value for the DB instance. */ public void setIops(Integer iops) { this.iops = iops; } /** ** The new provisioned IOPS value for the DB instance. *
* * @return The new provisioned IOPS value for the DB instance. */ public Integer getIops() { return this.iops; } /** ** The new provisioned IOPS value for the DB instance. *
* * @param iops * The new provisioned IOPS value for the DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRdsDbPendingModifiedValues withIops(Integer iops) { setIops(iops); return this; } /** ** The new DB instance identifier for the DB instance. *
* * @param dbInstanceIdentifier * The new DB instance identifier for the DB instance. */ public void setDbInstanceIdentifier(String dbInstanceIdentifier) { this.dbInstanceIdentifier = dbInstanceIdentifier; } /** ** The new DB instance identifier for the DB instance. *
* * @return The new DB instance identifier for the DB instance. */ public String getDbInstanceIdentifier() { return this.dbInstanceIdentifier; } /** ** The new DB instance identifier for the DB instance. *
* * @param dbInstanceIdentifier * The new DB instance identifier for the DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRdsDbPendingModifiedValues withDbInstanceIdentifier(String dbInstanceIdentifier) { setDbInstanceIdentifier(dbInstanceIdentifier); return this; } /** ** The new storage type for the DB instance. *
* * @param storageType * The new storage type for the DB instance. */ public void setStorageType(String storageType) { this.storageType = storageType; } /** ** The new storage type for the DB instance. *
* * @return The new storage type for the DB instance. */ public String getStorageType() { return this.storageType; } /** ** The new storage type for the DB instance. *
* * @param storageType * The new storage type for the DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRdsDbPendingModifiedValues withStorageType(String storageType) { setStorageType(storageType); return this; } /** ** The new CA certificate identifier for the DB instance. *
* * @param caCertificateIdentifier * The new CA certificate identifier for the DB instance. */ public void setCaCertificateIdentifier(String caCertificateIdentifier) { this.caCertificateIdentifier = caCertificateIdentifier; } /** ** The new CA certificate identifier for the DB instance. *
* * @return The new CA certificate identifier for the DB instance. */ public String getCaCertificateIdentifier() { return this.caCertificateIdentifier; } /** ** The new CA certificate identifier for the DB instance. *
* * @param caCertificateIdentifier * The new CA certificate identifier for the DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRdsDbPendingModifiedValues withCaCertificateIdentifier(String caCertificateIdentifier) { setCaCertificateIdentifier(caCertificateIdentifier); return this; } /** ** The name of the new subnet group for the DB instance. *
* * @param dbSubnetGroupName * The name of the new subnet group for the DB instance. */ public void setDbSubnetGroupName(String dbSubnetGroupName) { this.dbSubnetGroupName = dbSubnetGroupName; } /** ** The name of the new subnet group for the DB instance. *
* * @return The name of the new subnet group for the DB instance. */ public String getDbSubnetGroupName() { return this.dbSubnetGroupName; } /** ** The name of the new subnet group for the DB instance. *
* * @param dbSubnetGroupName * The name of the new subnet group for the DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRdsDbPendingModifiedValues withDbSubnetGroupName(String dbSubnetGroupName) { setDbSubnetGroupName(dbSubnetGroupName); return this; } /** ** A list of log types that are being enabled or disabled. *
* * @param pendingCloudWatchLogsExports * A list of log types that are being enabled or disabled. */ public void setPendingCloudWatchLogsExports(AwsRdsPendingCloudWatchLogsExports pendingCloudWatchLogsExports) { this.pendingCloudWatchLogsExports = pendingCloudWatchLogsExports; } /** ** A list of log types that are being enabled or disabled. *
* * @return A list of log types that are being enabled or disabled. */ public AwsRdsPendingCloudWatchLogsExports getPendingCloudWatchLogsExports() { return this.pendingCloudWatchLogsExports; } /** ** A list of log types that are being enabled or disabled. *
* * @param pendingCloudWatchLogsExports * A list of log types that are being enabled or disabled. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRdsDbPendingModifiedValues withPendingCloudWatchLogsExports(AwsRdsPendingCloudWatchLogsExports pendingCloudWatchLogsExports) { setPendingCloudWatchLogsExports(pendingCloudWatchLogsExports); return this; } /** ** Processor features that are being updated. *
* * @return Processor features that are being updated. */ public java.util.List* Processor features that are being updated. *
* * @param processorFeatures * Processor features that are being updated. */ public void setProcessorFeatures(java.util.Collection* Processor features that are being updated. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setProcessorFeatures(java.util.Collection)} or {@link #withProcessorFeatures(java.util.Collection)} if * you want to override the existing values. *
* * @param processorFeatures * Processor features that are being updated. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRdsDbPendingModifiedValues withProcessorFeatures(AwsRdsDbProcessorFeature... processorFeatures) { if (this.processorFeatures == null) { setProcessorFeatures(new java.util.ArrayList* Processor features that are being updated. *
* * @param processorFeatures * Processor features that are being updated. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRdsDbPendingModifiedValues withProcessorFeatures(java.util.Collection