All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.rds.model.ModifyDBProxyEndpointRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon RDS module holds the client classes that are used for communicating with Amazon Relational Database Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2016-2021 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 ModifyDBProxyEndpointRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The name of the DB proxy sociated with the DB proxy endpoint that you want to modify. *

*/ private String dBProxyEndpointName; /** *

* The new identifier for the DBProxyEndpoint. 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. *

*/ private String newDBProxyEndpointName; /** *

* The VPC security group IDs for the DB proxy endpoint. When the DB proxy endpoint uses a different VPC than the * original proxy, you also specify a different set of security group IDs than for the original proxy. *

*/ private com.amazonaws.internal.SdkInternalList vpcSecurityGroupIds; /** *

* The name of the DB proxy sociated with the DB proxy endpoint that you want to modify. *

* * @param dBProxyEndpointName * The name of the DB proxy sociated with the DB proxy endpoint that you want to modify. */ public void setDBProxyEndpointName(String dBProxyEndpointName) { this.dBProxyEndpointName = dBProxyEndpointName; } /** *

* The name of the DB proxy sociated with the DB proxy endpoint that you want to modify. *

* * @return The name of the DB proxy sociated with the DB proxy endpoint that you want to modify. */ public String getDBProxyEndpointName() { return this.dBProxyEndpointName; } /** *

* The name of the DB proxy sociated with the DB proxy endpoint that you want to modify. *

* * @param dBProxyEndpointName * The name of the DB proxy sociated with the DB proxy endpoint that you want to modify. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyDBProxyEndpointRequest withDBProxyEndpointName(String dBProxyEndpointName) { setDBProxyEndpointName(dBProxyEndpointName); return this; } /** *

* The new identifier for the DBProxyEndpoint. 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. *

* * @param newDBProxyEndpointName * The new identifier for the DBProxyEndpoint. 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 setNewDBProxyEndpointName(String newDBProxyEndpointName) { this.newDBProxyEndpointName = newDBProxyEndpointName; } /** *

* The new identifier for the DBProxyEndpoint. 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 The new identifier for the DBProxyEndpoint. 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 getNewDBProxyEndpointName() { return this.newDBProxyEndpointName; } /** *

* The new identifier for the DBProxyEndpoint. 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. *

* * @param newDBProxyEndpointName * The new identifier for the DBProxyEndpoint. 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 ModifyDBProxyEndpointRequest withNewDBProxyEndpointName(String newDBProxyEndpointName) { setNewDBProxyEndpointName(newDBProxyEndpointName); return this; } /** *

* The VPC security group IDs for the DB proxy endpoint. When the DB proxy endpoint uses a different VPC than the * original proxy, you also specify a different set of security group IDs than for the original proxy. *

* * @return The VPC security group IDs for the DB proxy endpoint. When the DB proxy endpoint uses a different VPC * than the original proxy, you also specify a different set of security group IDs than for the original * proxy. */ public java.util.List getVpcSecurityGroupIds() { if (vpcSecurityGroupIds == null) { vpcSecurityGroupIds = new com.amazonaws.internal.SdkInternalList(); } return vpcSecurityGroupIds; } /** *

* The VPC security group IDs for the DB proxy endpoint. When the DB proxy endpoint uses a different VPC than the * original proxy, you also specify a different set of security group IDs than for the original proxy. *

* * @param vpcSecurityGroupIds * The VPC security group IDs for the DB proxy endpoint. When the DB proxy endpoint uses a different VPC than * the original proxy, you also specify a different set of security group IDs than for the original proxy. */ public void setVpcSecurityGroupIds(java.util.Collection vpcSecurityGroupIds) { if (vpcSecurityGroupIds == null) { this.vpcSecurityGroupIds = null; return; } this.vpcSecurityGroupIds = new com.amazonaws.internal.SdkInternalList(vpcSecurityGroupIds); } /** *

* The VPC security group IDs for the DB proxy endpoint. When the DB proxy endpoint uses a different VPC than the * original proxy, you also specify a different set of security group IDs than for the original proxy. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setVpcSecurityGroupIds(java.util.Collection)} or {@link #withVpcSecurityGroupIds(java.util.Collection)} * if you want to override the existing values. *

* * @param vpcSecurityGroupIds * The VPC security group IDs for the DB proxy endpoint. When the DB proxy endpoint uses a different VPC than * the original proxy, you also specify a different set of security group IDs than for the original proxy. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyDBProxyEndpointRequest withVpcSecurityGroupIds(String... vpcSecurityGroupIds) { if (this.vpcSecurityGroupIds == null) { setVpcSecurityGroupIds(new com.amazonaws.internal.SdkInternalList(vpcSecurityGroupIds.length)); } for (String ele : vpcSecurityGroupIds) { this.vpcSecurityGroupIds.add(ele); } return this; } /** *

* The VPC security group IDs for the DB proxy endpoint. When the DB proxy endpoint uses a different VPC than the * original proxy, you also specify a different set of security group IDs than for the original proxy. *

* * @param vpcSecurityGroupIds * The VPC security group IDs for the DB proxy endpoint. When the DB proxy endpoint uses a different VPC than * the original proxy, you also specify a different set of security group IDs than for the original proxy. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyDBProxyEndpointRequest withVpcSecurityGroupIds(java.util.Collection vpcSecurityGroupIds) { setVpcSecurityGroupIds(vpcSecurityGroupIds); 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 (getDBProxyEndpointName() != null) sb.append("DBProxyEndpointName: ").append(getDBProxyEndpointName()).append(","); if (getNewDBProxyEndpointName() != null) sb.append("NewDBProxyEndpointName: ").append(getNewDBProxyEndpointName()).append(","); if (getVpcSecurityGroupIds() != null) sb.append("VpcSecurityGroupIds: ").append(getVpcSecurityGroupIds()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ModifyDBProxyEndpointRequest == false) return false; ModifyDBProxyEndpointRequest other = (ModifyDBProxyEndpointRequest) obj; if (other.getDBProxyEndpointName() == null ^ this.getDBProxyEndpointName() == null) return false; if (other.getDBProxyEndpointName() != null && other.getDBProxyEndpointName().equals(this.getDBProxyEndpointName()) == false) return false; if (other.getNewDBProxyEndpointName() == null ^ this.getNewDBProxyEndpointName() == null) return false; if (other.getNewDBProxyEndpointName() != null && other.getNewDBProxyEndpointName().equals(this.getNewDBProxyEndpointName()) == false) return false; if (other.getVpcSecurityGroupIds() == null ^ this.getVpcSecurityGroupIds() == null) return false; if (other.getVpcSecurityGroupIds() != null && other.getVpcSecurityGroupIds().equals(this.getVpcSecurityGroupIds()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDBProxyEndpointName() == null) ? 0 : getDBProxyEndpointName().hashCode()); hashCode = prime * hashCode + ((getNewDBProxyEndpointName() == null) ? 0 : getNewDBProxyEndpointName().hashCode()); hashCode = prime * hashCode + ((getVpcSecurityGroupIds() == null) ? 0 : getVpcSecurityGroupIds().hashCode()); return hashCode; } @Override public ModifyDBProxyEndpointRequest clone() { return (ModifyDBProxyEndpointRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy