/* * 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 RegisterDBProxyTargetsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The identifier of the DBProxy that is associated with the DBProxyTargetGroup.
*
* The identifier of the DBProxyTargetGroup.
*
* One or more DB instance identifiers. *
*/ private com.amazonaws.internal.SdkInternalList* One or more DB cluster identifiers. *
*/ private com.amazonaws.internal.SdkInternalList
* The identifier of the DBProxy that is associated with the DBProxyTargetGroup.
*
DBProxy that is associated with the DBProxyTargetGroup.
*/
public void setDBProxyName(String dBProxyName) {
this.dBProxyName = dBProxyName;
}
/**
*
* The identifier of the DBProxy that is associated with the DBProxyTargetGroup.
*
DBProxy that is associated with the DBProxyTargetGroup.
*/
public String getDBProxyName() {
return this.dBProxyName;
}
/**
*
* The identifier of the DBProxy that is associated with the DBProxyTargetGroup.
*
DBProxy that is associated with the DBProxyTargetGroup.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RegisterDBProxyTargetsRequest withDBProxyName(String dBProxyName) {
setDBProxyName(dBProxyName);
return this;
}
/**
*
* The identifier of the DBProxyTargetGroup.
*
DBProxyTargetGroup.
*/
public void setTargetGroupName(String targetGroupName) {
this.targetGroupName = targetGroupName;
}
/**
*
* The identifier of the DBProxyTargetGroup.
*
DBProxyTargetGroup.
*/
public String getTargetGroupName() {
return this.targetGroupName;
}
/**
*
* The identifier of the DBProxyTargetGroup.
*
DBProxyTargetGroup.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RegisterDBProxyTargetsRequest withTargetGroupName(String targetGroupName) {
setTargetGroupName(targetGroupName);
return this;
}
/**
* * One or more DB instance identifiers. *
* * @return One or more DB instance identifiers. */ public java.util.List* One or more DB instance identifiers. *
* * @param dBInstanceIdentifiers * One or more DB instance identifiers. */ public void setDBInstanceIdentifiers(java.util.Collection* One or more DB instance identifiers. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDBInstanceIdentifiers(java.util.Collection)} or * {@link #withDBInstanceIdentifiers(java.util.Collection)} if you want to override the existing values. *
* * @param dBInstanceIdentifiers * One or more DB instance identifiers. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterDBProxyTargetsRequest withDBInstanceIdentifiers(String... dBInstanceIdentifiers) { if (this.dBInstanceIdentifiers == null) { setDBInstanceIdentifiers(new com.amazonaws.internal.SdkInternalList* One or more DB instance identifiers. *
* * @param dBInstanceIdentifiers * One or more DB instance identifiers. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterDBProxyTargetsRequest withDBInstanceIdentifiers(java.util.Collection* One or more DB cluster identifiers. *
* * @return One or more DB cluster identifiers. */ public java.util.List* One or more DB cluster identifiers. *
* * @param dBClusterIdentifiers * One or more DB cluster identifiers. */ public void setDBClusterIdentifiers(java.util.Collection* One or more DB cluster identifiers. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDBClusterIdentifiers(java.util.Collection)} or {@link #withDBClusterIdentifiers(java.util.Collection)} * if you want to override the existing values. *
* * @param dBClusterIdentifiers * One or more DB cluster identifiers. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterDBProxyTargetsRequest withDBClusterIdentifiers(String... dBClusterIdentifiers) { if (this.dBClusterIdentifiers == null) { setDBClusterIdentifiers(new com.amazonaws.internal.SdkInternalList* One or more DB cluster identifiers. *
* * @param dBClusterIdentifiers * One or more DB cluster identifiers. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterDBProxyTargetsRequest withDBClusterIdentifiers(java.util.Collection