Class DBProxyTarget

    • 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, type will return TargetType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from typeAsString().

        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, type will return TargetType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from typeAsString().

        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, role will return TargetRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from roleAsString().

        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, role will return TargetRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from roleAsString().

        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.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)