@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DBProxyEndpoint extends Object implements Serializable, Cloneable
The data structure representing an endpoint associated with a DB proxy. RDS automatically creates one endpoint for each DB proxy. For Aurora DB clusters, you can associate additional endpoints with the same DB proxy. These endpoints can be read/write or read-only. They can also reside in different VPCs than the associated DB proxy.
This data type is used as a response element in the DescribeDBProxyEndpoints
operation.
Constructor and Description |
---|
DBProxyEndpoint() |
Modifier and Type | Method and Description |
---|---|
DBProxyEndpoint |
clone() |
boolean |
equals(Object obj) |
Date |
getCreatedDate()
The date and time when the DB proxy endpoint was first created.
|
String |
getDBProxyEndpointArn()
The Amazon Resource Name (ARN) for the DB proxy endpoint.
|
String |
getDBProxyEndpointName()
The name for the DB proxy endpoint.
|
String |
getDBProxyName()
The identifier for the DB proxy that is associated with this DB proxy endpoint.
|
String |
getEndpoint()
The endpoint that you can use to connect to the DB proxy.
|
Boolean |
getIsDefault()
Indicates whether this endpoint is the default endpoint for the associated DB proxy.
|
String |
getStatus()
The current status of this DB proxy endpoint.
|
String |
getTargetRole()
A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.
|
String |
getVpcId()
Provides the VPC ID of the DB proxy endpoint.
|
List<String> |
getVpcSecurityGroupIds()
Provides a list of VPC security groups that the DB proxy endpoint belongs to.
|
List<String> |
getVpcSubnetIds()
The EC2 subnet IDs for the DB proxy endpoint.
|
int |
hashCode() |
Boolean |
isDefault()
Indicates whether this endpoint is the default endpoint for the associated DB proxy.
|
void |
setCreatedDate(Date createdDate)
The date and time when the DB proxy endpoint was first created.
|
void |
setDBProxyEndpointArn(String dBProxyEndpointArn)
The Amazon Resource Name (ARN) for the DB proxy endpoint.
|
void |
setDBProxyEndpointName(String dBProxyEndpointName)
The name for the DB proxy endpoint.
|
void |
setDBProxyName(String dBProxyName)
The identifier for the DB proxy that is associated with this DB proxy endpoint.
|
void |
setEndpoint(String endpoint)
The endpoint that you can use to connect to the DB proxy.
|
void |
setIsDefault(Boolean isDefault)
Indicates whether this endpoint is the default endpoint for the associated DB proxy.
|
void |
setStatus(String status)
The current status of this DB proxy endpoint.
|
void |
setTargetRole(String targetRole)
A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.
|
void |
setVpcId(String vpcId)
Provides the VPC ID of the DB proxy endpoint.
|
void |
setVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
Provides a list of VPC security groups that the DB proxy endpoint belongs to.
|
void |
setVpcSubnetIds(Collection<String> vpcSubnetIds)
The EC2 subnet IDs for the DB proxy endpoint.
|
String |
toString()
Returns a string representation of this object.
|
DBProxyEndpoint |
withCreatedDate(Date createdDate)
The date and time when the DB proxy endpoint was first created.
|
DBProxyEndpoint |
withDBProxyEndpointArn(String dBProxyEndpointArn)
The Amazon Resource Name (ARN) for the DB proxy endpoint.
|
DBProxyEndpoint |
withDBProxyEndpointName(String dBProxyEndpointName)
The name for the DB proxy endpoint.
|
DBProxyEndpoint |
withDBProxyName(String dBProxyName)
The identifier for the DB proxy that is associated with this DB proxy endpoint.
|
DBProxyEndpoint |
withEndpoint(String endpoint)
The endpoint that you can use to connect to the DB proxy.
|
DBProxyEndpoint |
withIsDefault(Boolean isDefault)
Indicates whether this endpoint is the default endpoint for the associated DB proxy.
|
DBProxyEndpoint |
withStatus(DBProxyEndpointStatus status)
The current status of this DB proxy endpoint.
|
DBProxyEndpoint |
withStatus(String status)
The current status of this DB proxy endpoint.
|
DBProxyEndpoint |
withTargetRole(DBProxyEndpointTargetRole targetRole)
A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.
|
DBProxyEndpoint |
withTargetRole(String targetRole)
A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.
|
DBProxyEndpoint |
withVpcId(String vpcId)
Provides the VPC ID of the DB proxy endpoint.
|
DBProxyEndpoint |
withVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
Provides a list of VPC security groups that the DB proxy endpoint belongs to.
|
DBProxyEndpoint |
withVpcSecurityGroupIds(String... vpcSecurityGroupIds)
Provides a list of VPC security groups that the DB proxy endpoint belongs to.
|
DBProxyEndpoint |
withVpcSubnetIds(Collection<String> vpcSubnetIds)
The EC2 subnet IDs for the DB proxy endpoint.
|
DBProxyEndpoint |
withVpcSubnetIds(String... vpcSubnetIds)
The EC2 subnet IDs for the DB proxy endpoint.
|
public void setDBProxyEndpointName(String dBProxyEndpointName)
The name for the DB proxy endpoint. 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.
dBProxyEndpointName
- The name for the DB proxy endpoint. 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 getDBProxyEndpointName()
The name for the DB proxy endpoint. 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 DBProxyEndpoint withDBProxyEndpointName(String dBProxyEndpointName)
The name for the DB proxy endpoint. 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.
dBProxyEndpointName
- The name for the DB proxy endpoint. 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 setDBProxyEndpointArn(String dBProxyEndpointArn)
The Amazon Resource Name (ARN) for the DB proxy endpoint.
dBProxyEndpointArn
- The Amazon Resource Name (ARN) for the DB proxy endpoint.public String getDBProxyEndpointArn()
The Amazon Resource Name (ARN) for the DB proxy endpoint.
public DBProxyEndpoint withDBProxyEndpointArn(String dBProxyEndpointArn)
The Amazon Resource Name (ARN) for the DB proxy endpoint.
dBProxyEndpointArn
- The Amazon Resource Name (ARN) for the DB proxy endpoint.public void setDBProxyName(String dBProxyName)
The identifier for the DB proxy that is associated with this DB proxy endpoint.
dBProxyName
- The identifier for the DB proxy that is associated with this DB proxy endpoint.public String getDBProxyName()
The identifier for the DB proxy that is associated with this DB proxy endpoint.
public DBProxyEndpoint withDBProxyName(String dBProxyName)
The identifier for the DB proxy that is associated with this DB proxy endpoint.
dBProxyName
- The identifier for the DB proxy that is associated with this DB proxy endpoint.public void setStatus(String status)
The current status of this DB proxy endpoint. A status of available
means the endpoint is ready to
handle requests. Other values indicate that you must wait for the endpoint to be ready, or take some action to
resolve an issue.
status
- The current status of this DB proxy endpoint. A status of available
means the endpoint is
ready to handle requests. Other values indicate that you must wait for the endpoint to be ready, or take
some action to resolve an issue.DBProxyEndpointStatus
public String getStatus()
The current status of this DB proxy endpoint. A status of available
means the endpoint is ready to
handle requests. Other values indicate that you must wait for the endpoint to be ready, or take some action to
resolve an issue.
available
means the endpoint is
ready to handle requests. Other values indicate that you must wait for the endpoint to be ready, or take
some action to resolve an issue.DBProxyEndpointStatus
public DBProxyEndpoint withStatus(String status)
The current status of this DB proxy endpoint. A status of available
means the endpoint is ready to
handle requests. Other values indicate that you must wait for the endpoint to be ready, or take some action to
resolve an issue.
status
- The current status of this DB proxy endpoint. A status of available
means the endpoint is
ready to handle requests. Other values indicate that you must wait for the endpoint to be ready, or take
some action to resolve an issue.DBProxyEndpointStatus
public DBProxyEndpoint withStatus(DBProxyEndpointStatus status)
The current status of this DB proxy endpoint. A status of available
means the endpoint is ready to
handle requests. Other values indicate that you must wait for the endpoint to be ready, or take some action to
resolve an issue.
status
- The current status of this DB proxy endpoint. A status of available
means the endpoint is
ready to handle requests. Other values indicate that you must wait for the endpoint to be ready, or take
some action to resolve an issue.DBProxyEndpointStatus
public void setVpcId(String vpcId)
Provides the VPC ID of the DB proxy endpoint.
vpcId
- Provides the VPC ID of the DB proxy endpoint.public String getVpcId()
Provides the VPC ID of the DB proxy endpoint.
public DBProxyEndpoint withVpcId(String vpcId)
Provides the VPC ID of the DB proxy endpoint.
vpcId
- Provides the VPC ID of the DB proxy endpoint.public List<String> getVpcSecurityGroupIds()
Provides a list of VPC security groups that the DB proxy endpoint belongs to.
public void setVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
Provides a list of VPC security groups that the DB proxy endpoint belongs to.
vpcSecurityGroupIds
- Provides a list of VPC security groups that the DB proxy endpoint belongs to.public DBProxyEndpoint withVpcSecurityGroupIds(String... vpcSecurityGroupIds)
Provides a list of VPC security groups that the DB proxy endpoint belongs to.
NOTE: This method appends the values to the existing list (if any). Use
setVpcSecurityGroupIds(java.util.Collection)
or withVpcSecurityGroupIds(java.util.Collection)
if you want to override the existing values.
vpcSecurityGroupIds
- Provides a list of VPC security groups that the DB proxy endpoint belongs to.public DBProxyEndpoint withVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
Provides a list of VPC security groups that the DB proxy endpoint belongs to.
vpcSecurityGroupIds
- Provides a list of VPC security groups that the DB proxy endpoint belongs to.public List<String> getVpcSubnetIds()
The EC2 subnet IDs for the DB proxy endpoint.
public void setVpcSubnetIds(Collection<String> vpcSubnetIds)
The EC2 subnet IDs for the DB proxy endpoint.
vpcSubnetIds
- The EC2 subnet IDs for the DB proxy endpoint.public DBProxyEndpoint withVpcSubnetIds(String... vpcSubnetIds)
The EC2 subnet IDs for the DB proxy endpoint.
NOTE: This method appends the values to the existing list (if any). Use
setVpcSubnetIds(java.util.Collection)
or withVpcSubnetIds(java.util.Collection)
if you want to
override the existing values.
vpcSubnetIds
- The EC2 subnet IDs for the DB proxy endpoint.public DBProxyEndpoint withVpcSubnetIds(Collection<String> vpcSubnetIds)
The EC2 subnet IDs for the DB proxy endpoint.
vpcSubnetIds
- The EC2 subnet IDs for the DB proxy endpoint.public void setEndpoint(String endpoint)
The endpoint that you can use to connect to the DB proxy. You include the endpoint value in the connection string for a database client application.
endpoint
- The endpoint that you can use to connect to the DB proxy. You include the endpoint value in the connection
string for a database client application.public String getEndpoint()
The endpoint that you can use to connect to the DB proxy. You include the endpoint value in the connection string for a database client application.
public DBProxyEndpoint withEndpoint(String endpoint)
The endpoint that you can use to connect to the DB proxy. You include the endpoint value in the connection string for a database client application.
endpoint
- The endpoint that you can use to connect to the DB proxy. You include the endpoint value in the connection
string for a database client application.public void setCreatedDate(Date createdDate)
The date and time when the DB proxy endpoint was first created.
createdDate
- The date and time when the DB proxy endpoint was first created.public Date getCreatedDate()
The date and time when the DB proxy endpoint was first created.
public DBProxyEndpoint withCreatedDate(Date createdDate)
The date and time when the DB proxy endpoint was first created.
createdDate
- The date and time when the DB proxy endpoint was first created.public void setTargetRole(String targetRole)
A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.
targetRole
- A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.DBProxyEndpointTargetRole
public String getTargetRole()
A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.
DBProxyEndpointTargetRole
public DBProxyEndpoint withTargetRole(String targetRole)
A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.
targetRole
- A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.DBProxyEndpointTargetRole
public DBProxyEndpoint withTargetRole(DBProxyEndpointTargetRole targetRole)
A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.
targetRole
- A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.DBProxyEndpointTargetRole
public void setIsDefault(Boolean isDefault)
Indicates whether this endpoint is the default endpoint for the associated DB proxy. Default DB proxy endpoints always have read/write capability. Other endpoints that you associate with the DB proxy can be either read/write or read-only.
isDefault
- Indicates whether this endpoint is the default endpoint for the associated DB proxy. Default DB proxy
endpoints always have read/write capability. Other endpoints that you associate with the DB proxy can be
either read/write or read-only.public Boolean getIsDefault()
Indicates whether this endpoint is the default endpoint for the associated DB proxy. Default DB proxy endpoints always have read/write capability. Other endpoints that you associate with the DB proxy can be either read/write or read-only.
public DBProxyEndpoint withIsDefault(Boolean isDefault)
Indicates whether this endpoint is the default endpoint for the associated DB proxy. Default DB proxy endpoints always have read/write capability. Other endpoints that you associate with the DB proxy can be either read/write or read-only.
isDefault
- Indicates whether this endpoint is the default endpoint for the associated DB proxy. Default DB proxy
endpoints always have read/write capability. Other endpoints that you associate with the DB proxy can be
either read/write or read-only.public Boolean isDefault()
Indicates whether this endpoint is the default endpoint for the associated DB proxy. Default DB proxy endpoints always have read/write capability. Other endpoints that you associate with the DB proxy can be either read/write or read-only.
public String toString()
toString
in class Object
Object.toString()
public DBProxyEndpoint clone()