Class DBProxyTarget
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<DBProxyTarget.Builder,
DBProxyTarget>
Contains the details for an RDS Proxy target. It represents an RDS DB instance or Aurora DB cluster that the proxy can connect to. One or more targets are associated with an RDS Proxy target group.
This data type is used as a response element in the DescribeDBProxyTargets
action.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic DBProxyTarget.Builder
builder()
final String
endpoint()
The writer endpoint for the RDS DB instance or Aurora DB cluster.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final Integer
port()
The port that the RDS Proxy uses to connect to the target RDS DB instance or Aurora DB cluster.final String
The identifier representing the target.final TargetRole
role()
A value that indicates whether the target of the proxy can be used for read/write or read-only operations.final String
A value that indicates whether the target of the proxy can be used for read/write or read-only operations.static Class
<? extends DBProxyTarget.Builder> final String
The Amazon Resource Name (ARN) for the RDS DB instance or Aurora DB cluster.final TargetHealth
Information about the connection health of the RDS Proxy target.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final String
The DB cluster identifier when the target represents an Aurora DB cluster.final TargetType
type()
Specifies the kind of database, such as an RDS DB instance or an Aurora DB cluster, that the target represents.final String
Specifies the kind of database, such as an RDS DB instance or an Aurora DB cluster, that the target represents.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
targetArn
The Amazon Resource Name (ARN) for the RDS DB instance or Aurora DB cluster.
- Returns:
- The Amazon Resource Name (ARN) for the RDS DB instance or Aurora DB cluster.
-
endpoint
The writer endpoint for the RDS DB instance or Aurora DB cluster.
- Returns:
- The writer endpoint for the RDS DB instance or Aurora DB cluster.
-
trackedClusterId
The DB cluster identifier when the target represents an Aurora DB cluster. This field is blank when the target represents an RDS DB instance.
- Returns:
- The DB cluster identifier when the target represents an Aurora DB cluster. This field is blank when the target represents an RDS DB instance.
-
rdsResourceId
The identifier representing the target. It can be the instance identifier for an RDS DB instance, or the cluster identifier for an Aurora DB cluster.
- Returns:
- The identifier representing the target. It can be the instance identifier for an RDS DB instance, or the cluster identifier for an Aurora DB cluster.
-
port
The port that the RDS Proxy uses to connect to the target RDS DB instance or Aurora DB cluster.
- Returns:
- The port that the RDS Proxy uses to connect to the target RDS DB instance or Aurora DB cluster.
-
type
Specifies the kind of database, such as an RDS DB instance or an Aurora DB cluster, that the target represents.
If the service returns an enum value that is not available in the current SDK version,
type
will returnTargetType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- Specifies the kind of database, such as an RDS DB instance or an Aurora DB cluster, that the target represents.
- See Also:
-
typeAsString
Specifies the kind of database, such as an RDS DB instance or an Aurora DB cluster, that the target represents.
If the service returns an enum value that is not available in the current SDK version,
type
will returnTargetType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- Specifies the kind of database, such as an RDS DB instance or an Aurora DB cluster, that the target represents.
- See Also:
-
role
A value that indicates whether the target of the proxy can be used for read/write or read-only operations.
If the service returns an enum value that is not available in the current SDK version,
role
will returnTargetRole.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromroleAsString()
.- Returns:
- A value that indicates whether the target of the proxy can be used for read/write or read-only operations.
- See Also:
-
roleAsString
A value that indicates whether the target of the proxy can be used for read/write or read-only operations.
If the service returns an enum value that is not available in the current SDK version,
role
will returnTargetRole.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromroleAsString()
.- Returns:
- A value that indicates whether the target of the proxy can be used for read/write or read-only operations.
- See Also:
-
targetHealth
Information about the connection health of the RDS Proxy target.
- Returns:
- Information about the connection health of the RDS Proxy target.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<DBProxyTarget.Builder,
DBProxyTarget> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-