@Generated(value="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 DescribeDBProxyTargets
action.
Modifier and Type | Class and Description |
---|---|
static interface |
DBProxyTarget.Builder |
Modifier and Type | Method and Description |
---|---|
static DBProxyTarget.Builder |
builder() |
String |
endpoint()
The writer endpoint for the RDS DB instance or Aurora DB cluster.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
port()
The port that the RDS Proxy uses to connect to the target RDS DB instance or Aurora DB cluster.
|
String |
rdsResourceId()
The identifier representing the target.
|
TargetRole |
role()
A value that indicates whether the target of the proxy can be used for read/write or read-only operations.
|
String |
roleAsString()
A value that indicates whether the target of the proxy can be used for read/write or read-only operations.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DBProxyTarget.Builder> |
serializableBuilderClass() |
String |
targetArn()
The Amazon Resource Name (ARN) for the RDS DB instance or Aurora DB cluster.
|
TargetHealth |
targetHealth()
Information about the connection health of the RDS Proxy target.
|
DBProxyTarget.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
trackedClusterId()
The DB cluster identifier when the target represents an Aurora DB cluster.
|
TargetType |
type()
Specifies the kind of database, such as an RDS DB instance or an Aurora DB cluster, that the target represents.
|
String |
typeAsString()
Specifies the kind of database, such as an RDS DB instance or an Aurora DB cluster, that the target represents.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String targetArn()
The Amazon Resource Name (ARN) for the RDS DB instance or Aurora DB cluster.
public final String endpoint()
The writer endpoint for the RDS DB instance or Aurora DB cluster.
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.
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.
public final Integer port()
The port that the RDS Proxy uses to connect to the target RDS DB instance or Aurora DB cluster.
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, type
will return
TargetType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
TargetType
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, type
will return
TargetType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
TargetType
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, role
will return
TargetRole.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
roleAsString()
.
TargetRole
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, role
will return
TargetRole.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
roleAsString()
.
TargetRole
public final TargetHealth targetHealth()
Information about the connection health of the RDS Proxy target.
public DBProxyTarget.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<DBProxyTarget.Builder,DBProxyTarget>
public static DBProxyTarget.Builder builder()
public static Class<? extends DBProxyTarget.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2023. All rights reserved.