Class DBProxyTarget
- java.lang.Object
-
- software.amazon.awssdk.services.rds.model.DBProxyTarget
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DBProxyTarget.Builder,DBProxyTarget>
@Generated("software.amazon.awssdk:codegen") public final class DBProxyTarget extends Object implements SdkPojo, Serializable, 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
DescribeDBProxyTargetsaction.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDBProxyTarget.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DBProxyTarget.Builderbuilder()Stringendpoint()The writer endpoint for the RDS DB instance or Aurora DB cluster.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Integerport()The port that the RDS Proxy uses to connect to the target RDS DB instance or Aurora DB cluster.StringrdsResourceId()The identifier representing the target.TargetRolerole()A value that indicates whether the target of the proxy can be used for read/write or read-only operations.StringroleAsString()A value that indicates whether the target of the proxy can be used for read/write or read-only operations.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends DBProxyTarget.Builder>serializableBuilderClass()StringtargetArn()The Amazon Resource Name (ARN) for the RDS DB instance or Aurora DB cluster.TargetHealthtargetHealth()Information about the connection health of the RDS Proxy target.DBProxyTarget.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringtrackedClusterId()The DB cluster identifier when the target represents an Aurora DB cluster.TargetTypetype()Specifies the kind of database, such as an RDS DB instance or an Aurora DB cluster, that the target represents.StringtypeAsString()Specifies the kind of database, such as an RDS DB instance or an Aurora DB cluster, that the target represents.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
targetArn
public final String 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
public final String 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
public final String 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
public final String 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
public final Integer 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
public final TargetType 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:
TargetType
-
typeAsString
public final String 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:
TargetType
-
role
public final TargetRole 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:
TargetRole
-
roleAsString
public final String 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:
TargetRole
-
targetHealth
public final TargetHealth targetHealth()
Information about the connection health of the RDS Proxy target.
- Returns:
- Information about the connection health of the RDS Proxy target.
-
toBuilder
public DBProxyTarget.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DBProxyTarget.Builder,DBProxyTarget>
-
builder
public static DBProxyTarget.Builder builder()
-
serializableBuilderClass
public static Class<? extends DBProxyTarget.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-