com.amazonaws.services.rds.model.ModifyTenantDatabaseRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-rds Show documentation
/*
* 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.rds.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ModifyTenantDatabaseRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The identifier of the DB instance that contains the tenant database that you are modifying. This parameter isn't
* case-sensitive.
*
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing DB instance.
*
*
*
*/
private String dBInstanceIdentifier;
/**
*
* The user-supplied name of the tenant database that you want to modify. This parameter isn’t case-sensitive.
*
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing tenant database.
*
*
*
*/
private String tenantDBName;
/**
*
* The new password for the master user of the specified tenant database in your DB instance.
*
*
*
* Amazon RDS operations never return the password, so this action provides a way to regain access to a tenant
* database user if the password is lost. This includes restoring privileges that might have been accidentally
* revoked.
*
*
*
* Constraints:
*
*
* -
*
* Can include any printable ASCII character except /
, "
(double quote), @
,
* &
(ampersand), and '
(single quote).
*
*
*
*
* Length constraints:
*
*
* -
*
* Must contain between 8 and 30 characters.
*
*
*
*/
private String masterUserPassword;
/**
*
* The new name of the tenant database when renaming a tenant database. This parameter isn’t case-sensitive.
*
*
* Constraints:
*
*
* -
*
* Can't be the string null or any other reserved word.
*
*
* -
*
* Can't be longer than 8 characters.
*
*
*
*/
private String newTenantDBName;
/**
*
* The identifier of the DB instance that contains the tenant database that you are modifying. This parameter isn't
* case-sensitive.
*
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing DB instance.
*
*
*
*
* @param dBInstanceIdentifier
* The identifier of the DB instance that contains the tenant database that you are modifying. This parameter
* isn't case-sensitive.
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing DB instance.
*
*
*/
public void setDBInstanceIdentifier(String dBInstanceIdentifier) {
this.dBInstanceIdentifier = dBInstanceIdentifier;
}
/**
*
* The identifier of the DB instance that contains the tenant database that you are modifying. This parameter isn't
* case-sensitive.
*
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing DB instance.
*
*
*
*
* @return The identifier of the DB instance that contains the tenant database that you are modifying. This
* parameter isn't case-sensitive.
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing DB instance.
*
*
*/
public String getDBInstanceIdentifier() {
return this.dBInstanceIdentifier;
}
/**
*
* The identifier of the DB instance that contains the tenant database that you are modifying. This parameter isn't
* case-sensitive.
*
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing DB instance.
*
*
*
*
* @param dBInstanceIdentifier
* The identifier of the DB instance that contains the tenant database that you are modifying. This parameter
* isn't case-sensitive.
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing DB instance.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyTenantDatabaseRequest withDBInstanceIdentifier(String dBInstanceIdentifier) {
setDBInstanceIdentifier(dBInstanceIdentifier);
return this;
}
/**
*
* The user-supplied name of the tenant database that you want to modify. This parameter isn’t case-sensitive.
*
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing tenant database.
*
*
*
*
* @param tenantDBName
* The user-supplied name of the tenant database that you want to modify. This parameter isn’t
* case-sensitive.
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing tenant database.
*
*
*/
public void setTenantDBName(String tenantDBName) {
this.tenantDBName = tenantDBName;
}
/**
*
* The user-supplied name of the tenant database that you want to modify. This parameter isn’t case-sensitive.
*
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing tenant database.
*
*
*
*
* @return The user-supplied name of the tenant database that you want to modify. This parameter isn’t
* case-sensitive.
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing tenant database.
*
*
*/
public String getTenantDBName() {
return this.tenantDBName;
}
/**
*
* The user-supplied name of the tenant database that you want to modify. This parameter isn’t case-sensitive.
*
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing tenant database.
*
*
*
*
* @param tenantDBName
* The user-supplied name of the tenant database that you want to modify. This parameter isn’t
* case-sensitive.
*
* Constraints:
*
*
* -
*
* Must match the identifier of an existing tenant database.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyTenantDatabaseRequest withTenantDBName(String tenantDBName) {
setTenantDBName(tenantDBName);
return this;
}
/**
*
* The new password for the master user of the specified tenant database in your DB instance.
*
*
*
* Amazon RDS operations never return the password, so this action provides a way to regain access to a tenant
* database user if the password is lost. This includes restoring privileges that might have been accidentally
* revoked.
*
*
*
* Constraints:
*
*
* -
*
* Can include any printable ASCII character except /
, "
(double quote), @
,
* &
(ampersand), and '
(single quote).
*
*
*
*
* Length constraints:
*
*
* -
*
* Must contain between 8 and 30 characters.
*
*
*
*
* @param masterUserPassword
* The new password for the master user of the specified tenant database in your DB instance.
*
* Amazon RDS operations never return the password, so this action provides a way to regain access to a
* tenant database user if the password is lost. This includes restoring privileges that might have been
* accidentally revoked.
*
*
*
* Constraints:
*
*
* -
*
* Can include any printable ASCII character except /
, "
(double quote),
* @
, &
(ampersand), and '
(single quote).
*
*
*
*
* Length constraints:
*
*
* -
*
* Must contain between 8 and 30 characters.
*
*
*/
public void setMasterUserPassword(String masterUserPassword) {
this.masterUserPassword = masterUserPassword;
}
/**
*
* The new password for the master user of the specified tenant database in your DB instance.
*
*
*
* Amazon RDS operations never return the password, so this action provides a way to regain access to a tenant
* database user if the password is lost. This includes restoring privileges that might have been accidentally
* revoked.
*
*
*
* Constraints:
*
*
* -
*
* Can include any printable ASCII character except /
, "
(double quote), @
,
* &
(ampersand), and '
(single quote).
*
*
*
*
* Length constraints:
*
*
* -
*
* Must contain between 8 and 30 characters.
*
*
*
*
* @return The new password for the master user of the specified tenant database in your DB instance.
*
* Amazon RDS operations never return the password, so this action provides a way to regain access to a
* tenant database user if the password is lost. This includes restoring privileges that might have been
* accidentally revoked.
*
*
*
* Constraints:
*
*
* -
*
* Can include any printable ASCII character except /
, "
(double quote),
* @
, &
(ampersand), and '
(single quote).
*
*
*
*
* Length constraints:
*
*
* -
*
* Must contain between 8 and 30 characters.
*
*
*/
public String getMasterUserPassword() {
return this.masterUserPassword;
}
/**
*
* The new password for the master user of the specified tenant database in your DB instance.
*
*
*
* Amazon RDS operations never return the password, so this action provides a way to regain access to a tenant
* database user if the password is lost. This includes restoring privileges that might have been accidentally
* revoked.
*
*
*
* Constraints:
*
*
* -
*
* Can include any printable ASCII character except /
, "
(double quote), @
,
* &
(ampersand), and '
(single quote).
*
*
*
*
* Length constraints:
*
*
* -
*
* Must contain between 8 and 30 characters.
*
*
*
*
* @param masterUserPassword
* The new password for the master user of the specified tenant database in your DB instance.
*
* Amazon RDS operations never return the password, so this action provides a way to regain access to a
* tenant database user if the password is lost. This includes restoring privileges that might have been
* accidentally revoked.
*
*
*
* Constraints:
*
*
* -
*
* Can include any printable ASCII character except /
, "
(double quote),
* @
, &
(ampersand), and '
(single quote).
*
*
*
*
* Length constraints:
*
*
* -
*
* Must contain between 8 and 30 characters.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyTenantDatabaseRequest withMasterUserPassword(String masterUserPassword) {
setMasterUserPassword(masterUserPassword);
return this;
}
/**
*
* The new name of the tenant database when renaming a tenant database. This parameter isn’t case-sensitive.
*
*
* Constraints:
*
*
* -
*
* Can't be the string null or any other reserved word.
*
*
* -
*
* Can't be longer than 8 characters.
*
*
*
*
* @param newTenantDBName
* The new name of the tenant database when renaming a tenant database. This parameter isn’t
* case-sensitive.
*
* Constraints:
*
*
* -
*
* Can't be the string null or any other reserved word.
*
*
* -
*
* Can't be longer than 8 characters.
*
*
*/
public void setNewTenantDBName(String newTenantDBName) {
this.newTenantDBName = newTenantDBName;
}
/**
*
* The new name of the tenant database when renaming a tenant database. This parameter isn’t case-sensitive.
*
*
* Constraints:
*
*
* -
*
* Can't be the string null or any other reserved word.
*
*
* -
*
* Can't be longer than 8 characters.
*
*
*
*
* @return The new name of the tenant database when renaming a tenant database. This parameter isn’t
* case-sensitive.
*
* Constraints:
*
*
* -
*
* Can't be the string null or any other reserved word.
*
*
* -
*
* Can't be longer than 8 characters.
*
*
*/
public String getNewTenantDBName() {
return this.newTenantDBName;
}
/**
*
* The new name of the tenant database when renaming a tenant database. This parameter isn’t case-sensitive.
*
*
* Constraints:
*
*
* -
*
* Can't be the string null or any other reserved word.
*
*
* -
*
* Can't be longer than 8 characters.
*
*
*
*
* @param newTenantDBName
* The new name of the tenant database when renaming a tenant database. This parameter isn’t
* case-sensitive.
*
* Constraints:
*
*
* -
*
* Can't be the string null or any other reserved word.
*
*
* -
*
* Can't be longer than 8 characters.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyTenantDatabaseRequest withNewTenantDBName(String newTenantDBName) {
setNewTenantDBName(newTenantDBName);
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 (getDBInstanceIdentifier() != null)
sb.append("DBInstanceIdentifier: ").append(getDBInstanceIdentifier()).append(",");
if (getTenantDBName() != null)
sb.append("TenantDBName: ").append(getTenantDBName()).append(",");
if (getMasterUserPassword() != null)
sb.append("MasterUserPassword: ").append("***Sensitive Data Redacted***").append(",");
if (getNewTenantDBName() != null)
sb.append("NewTenantDBName: ").append(getNewTenantDBName());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ModifyTenantDatabaseRequest == false)
return false;
ModifyTenantDatabaseRequest other = (ModifyTenantDatabaseRequest) obj;
if (other.getDBInstanceIdentifier() == null ^ this.getDBInstanceIdentifier() == null)
return false;
if (other.getDBInstanceIdentifier() != null && other.getDBInstanceIdentifier().equals(this.getDBInstanceIdentifier()) == false)
return false;
if (other.getTenantDBName() == null ^ this.getTenantDBName() == null)
return false;
if (other.getTenantDBName() != null && other.getTenantDBName().equals(this.getTenantDBName()) == false)
return false;
if (other.getMasterUserPassword() == null ^ this.getMasterUserPassword() == null)
return false;
if (other.getMasterUserPassword() != null && other.getMasterUserPassword().equals(this.getMasterUserPassword()) == false)
return false;
if (other.getNewTenantDBName() == null ^ this.getNewTenantDBName() == null)
return false;
if (other.getNewTenantDBName() != null && other.getNewTenantDBName().equals(this.getNewTenantDBName()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDBInstanceIdentifier() == null) ? 0 : getDBInstanceIdentifier().hashCode());
hashCode = prime * hashCode + ((getTenantDBName() == null) ? 0 : getTenantDBName().hashCode());
hashCode = prime * hashCode + ((getMasterUserPassword() == null) ? 0 : getMasterUserPassword().hashCode());
hashCode = prime * hashCode + ((getNewTenantDBName() == null) ? 0 : getNewTenantDBName().hashCode());
return hashCode;
}
@Override
public ModifyTenantDatabaseRequest clone() {
return (ModifyTenantDatabaseRequest) super.clone();
}
}