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.Builderbuilder()final Stringendpoint()The writer endpoint for the RDS DB instance or Aurora DB cluster.final booleanfinal booleanequalsBySdkFields(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 inthashCode()final Integerport()The port that the RDS Proxy uses to connect to the target RDS DB instance or Aurora DB cluster.final StringThe identifier representing the target.final TargetRolerole()A value that indicates whether the target of the proxy can be used for read/write or read-only operations.final StringA 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 StringThe Amazon Resource Name (ARN) for the RDS DB instance or Aurora DB cluster.final TargetHealthInformation 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 StringtoString()Returns a string representation of this object.final StringThe DB cluster identifier when the target represents an Aurora DB cluster.final TargetTypetype()Specifies the kind of database, such as an RDS DB instance or an Aurora DB cluster, that the target represents.final StringSpecifies 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,
typewill 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,
typewill 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,
rolewill 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,
rolewill 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:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<DBProxyTarget.Builder,DBProxyTarget> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-