/* * 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.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 ModifyDBProxyRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The identifier for the DBProxy
to modify.
*
* The new identifier for the DBProxy
. An identifier must begin with a letter and must contain only
* ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens.
*
* The new authentication settings for the DBProxy
.
*
* Whether Transport Layer Security (TLS) encryption is required for connections to the proxy. By enabling this * setting, you can enforce encrypted TLS connections to the proxy, even if the associated database doesn't use TLS. *
*/ private Boolean requireTLS; /** ** The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it. You can set * this value higher or lower than the connection timeout limit for the associated database. *
*/ private Integer idleClientTimeout; /** ** Whether the proxy includes detailed information about SQL statements in its logs. This information helps you to * debug issues involving SQL behavior or the performance and scalability of the proxy connections. The debug * information includes the text of SQL statements that you submit through the proxy. Thus, only enable this setting * when needed for debugging, and only when you have security measures in place to safeguard any sensitive * information that appears in the logs. *
*/ private Boolean debugLogging; /** ** The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in Amazon Web Services * Secrets Manager. *
*/ private String roleArn; /** *
* The new list of security groups for the DBProxy
.
*
* The identifier for the DBProxy
to modify.
*
DBProxy
to modify.
*/
public void setDBProxyName(String dBProxyName) {
this.dBProxyName = dBProxyName;
}
/**
*
* The identifier for the DBProxy
to modify.
*
DBProxy
to modify.
*/
public String getDBProxyName() {
return this.dBProxyName;
}
/**
*
* The identifier for the DBProxy
to modify.
*
DBProxy
to modify.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyDBProxyRequest withDBProxyName(String dBProxyName) {
setDBProxyName(dBProxyName);
return this;
}
/**
*
* The new identifier for the DBProxy
. An identifier must begin with a letter and must contain only
* ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens.
*
DBProxy
. An identifier must begin with a letter and must contain
* only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens.
*/
public void setNewDBProxyName(String newDBProxyName) {
this.newDBProxyName = newDBProxyName;
}
/**
*
* The new identifier for the DBProxy
. An identifier must begin with a letter and must contain only
* ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens.
*
DBProxy
. An identifier must begin with a letter and must contain
* only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens.
*/
public String getNewDBProxyName() {
return this.newDBProxyName;
}
/**
*
* The new identifier for the DBProxy
. An identifier must begin with a letter and must contain only
* ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens.
*
DBProxy
. An identifier must begin with a letter and must contain
* only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyDBProxyRequest withNewDBProxyName(String newDBProxyName) {
setNewDBProxyName(newDBProxyName);
return this;
}
/**
*
* The new authentication settings for the DBProxy
.
*
DBProxy
.
*/
public java.util.List
* The new authentication settings for the DBProxy
.
*
DBProxy
.
*/
public void setAuth(java.util.Collection
* The new authentication settings for the DBProxy
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setAuth(java.util.Collection)} or {@link #withAuth(java.util.Collection)} if you want to override the * existing values. *
* * @param auth * The new authentication settings for theDBProxy
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyDBProxyRequest withAuth(UserAuthConfig... auth) {
if (this.auth == null) {
setAuth(new com.amazonaws.internal.SdkInternalList
* The new authentication settings for the DBProxy
.
*
DBProxy
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyDBProxyRequest withAuth(java.util.Collection* Whether Transport Layer Security (TLS) encryption is required for connections to the proxy. By enabling this * setting, you can enforce encrypted TLS connections to the proxy, even if the associated database doesn't use TLS. *
* * @param requireTLS * Whether Transport Layer Security (TLS) encryption is required for connections to the proxy. By enabling * this setting, you can enforce encrypted TLS connections to the proxy, even if the associated database * doesn't use TLS. */ public void setRequireTLS(Boolean requireTLS) { this.requireTLS = requireTLS; } /** ** Whether Transport Layer Security (TLS) encryption is required for connections to the proxy. By enabling this * setting, you can enforce encrypted TLS connections to the proxy, even if the associated database doesn't use TLS. *
* * @return Whether Transport Layer Security (TLS) encryption is required for connections to the proxy. By enabling * this setting, you can enforce encrypted TLS connections to the proxy, even if the associated database * doesn't use TLS. */ public Boolean getRequireTLS() { return this.requireTLS; } /** ** Whether Transport Layer Security (TLS) encryption is required for connections to the proxy. By enabling this * setting, you can enforce encrypted TLS connections to the proxy, even if the associated database doesn't use TLS. *
* * @param requireTLS * Whether Transport Layer Security (TLS) encryption is required for connections to the proxy. By enabling * this setting, you can enforce encrypted TLS connections to the proxy, even if the associated database * doesn't use TLS. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyDBProxyRequest withRequireTLS(Boolean requireTLS) { setRequireTLS(requireTLS); return this; } /** ** Whether Transport Layer Security (TLS) encryption is required for connections to the proxy. By enabling this * setting, you can enforce encrypted TLS connections to the proxy, even if the associated database doesn't use TLS. *
* * @return Whether Transport Layer Security (TLS) encryption is required for connections to the proxy. By enabling * this setting, you can enforce encrypted TLS connections to the proxy, even if the associated database * doesn't use TLS. */ public Boolean isRequireTLS() { return this.requireTLS; } /** ** The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it. You can set * this value higher or lower than the connection timeout limit for the associated database. *
* * @param idleClientTimeout * The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it. You * can set this value higher or lower than the connection timeout limit for the associated database. */ public void setIdleClientTimeout(Integer idleClientTimeout) { this.idleClientTimeout = idleClientTimeout; } /** ** The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it. You can set * this value higher or lower than the connection timeout limit for the associated database. *
* * @return The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it. You * can set this value higher or lower than the connection timeout limit for the associated database. */ public Integer getIdleClientTimeout() { return this.idleClientTimeout; } /** ** The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it. You can set * this value higher or lower than the connection timeout limit for the associated database. *
* * @param idleClientTimeout * The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it. You * can set this value higher or lower than the connection timeout limit for the associated database. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyDBProxyRequest withIdleClientTimeout(Integer idleClientTimeout) { setIdleClientTimeout(idleClientTimeout); return this; } /** ** Whether the proxy includes detailed information about SQL statements in its logs. This information helps you to * debug issues involving SQL behavior or the performance and scalability of the proxy connections. The debug * information includes the text of SQL statements that you submit through the proxy. Thus, only enable this setting * when needed for debugging, and only when you have security measures in place to safeguard any sensitive * information that appears in the logs. *
* * @param debugLogging * Whether the proxy includes detailed information about SQL statements in its logs. This information helps * you to debug issues involving SQL behavior or the performance and scalability of the proxy connections. * The debug information includes the text of SQL statements that you submit through the proxy. Thus, only * enable this setting when needed for debugging, and only when you have security measures in place to * safeguard any sensitive information that appears in the logs. */ public void setDebugLogging(Boolean debugLogging) { this.debugLogging = debugLogging; } /** ** Whether the proxy includes detailed information about SQL statements in its logs. This information helps you to * debug issues involving SQL behavior or the performance and scalability of the proxy connections. The debug * information includes the text of SQL statements that you submit through the proxy. Thus, only enable this setting * when needed for debugging, and only when you have security measures in place to safeguard any sensitive * information that appears in the logs. *
* * @return Whether the proxy includes detailed information about SQL statements in its logs. This information helps * you to debug issues involving SQL behavior or the performance and scalability of the proxy connections. * The debug information includes the text of SQL statements that you submit through the proxy. Thus, only * enable this setting when needed for debugging, and only when you have security measures in place to * safeguard any sensitive information that appears in the logs. */ public Boolean getDebugLogging() { return this.debugLogging; } /** ** Whether the proxy includes detailed information about SQL statements in its logs. This information helps you to * debug issues involving SQL behavior or the performance and scalability of the proxy connections. The debug * information includes the text of SQL statements that you submit through the proxy. Thus, only enable this setting * when needed for debugging, and only when you have security measures in place to safeguard any sensitive * information that appears in the logs. *
* * @param debugLogging * Whether the proxy includes detailed information about SQL statements in its logs. This information helps * you to debug issues involving SQL behavior or the performance and scalability of the proxy connections. * The debug information includes the text of SQL statements that you submit through the proxy. Thus, only * enable this setting when needed for debugging, and only when you have security measures in place to * safeguard any sensitive information that appears in the logs. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyDBProxyRequest withDebugLogging(Boolean debugLogging) { setDebugLogging(debugLogging); return this; } /** ** Whether the proxy includes detailed information about SQL statements in its logs. This information helps you to * debug issues involving SQL behavior or the performance and scalability of the proxy connections. The debug * information includes the text of SQL statements that you submit through the proxy. Thus, only enable this setting * when needed for debugging, and only when you have security measures in place to safeguard any sensitive * information that appears in the logs. *
* * @return Whether the proxy includes detailed information about SQL statements in its logs. This information helps * you to debug issues involving SQL behavior or the performance and scalability of the proxy connections. * The debug information includes the text of SQL statements that you submit through the proxy. Thus, only * enable this setting when needed for debugging, and only when you have security measures in place to * safeguard any sensitive information that appears in the logs. */ public Boolean isDebugLogging() { return this.debugLogging; } /** ** The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in Amazon Web Services * Secrets Manager. *
* * @param roleArn * The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in Amazon Web * Services Secrets Manager. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** ** The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in Amazon Web Services * Secrets Manager. *
* * @return The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in Amazon Web * Services Secrets Manager. */ public String getRoleArn() { return this.roleArn; } /** ** The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in Amazon Web Services * Secrets Manager. *
* * @param roleArn * The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in Amazon Web * Services Secrets Manager. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyDBProxyRequest withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** *
* The new list of security groups for the DBProxy
.
*
DBProxy
.
*/
public java.util.List
* The new list of security groups for the DBProxy
.
*
DBProxy
.
*/
public void setSecurityGroups(java.util.Collection
* The new list of security groups for the DBProxy
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSecurityGroups(java.util.Collection)} or {@link #withSecurityGroups(java.util.Collection)} if you want * to override the existing values. *
* * @param securityGroups * The new list of security groups for theDBProxy
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyDBProxyRequest withSecurityGroups(String... securityGroups) {
if (this.securityGroups == null) {
setSecurityGroups(new com.amazonaws.internal.SdkInternalList
* The new list of security groups for the DBProxy
.
*
DBProxy
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyDBProxyRequest withSecurityGroups(java.util.Collection