Class Endpoint

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.rds.Endpoint
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-10-31T19:13:04.395Z") @Stability(Stable) public class Endpoint extends software.amazon.jsii.JsiiObject
Connection endpoint of a database cluster or instance.

Consists of a combination of hostname and port.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.rds.*;
 Endpoint endpoint = new Endpoint("address", 123);
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    Endpoint(String address, Number port)
     
    protected
    Endpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Endpoint(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    The hostname of the endpoint.
    The port of the endpoint.
    The combination of "HOSTNAME:PORT" for this endpoint.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • Endpoint

      protected Endpoint(software.amazon.jsii.JsiiObjectRef objRef)
    • Endpoint

      protected Endpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Endpoint

      @Stability(Stable) public Endpoint(@NotNull String address, @NotNull Number port)
      Parameters:
      address - This parameter is required.
      port - This parameter is required.
  • Method Details

    • getHostname

      @Stability(Stable) @NotNull public String getHostname()
      The hostname of the endpoint.
    • getPort

      @Stability(Stable) @NotNull public Number getPort()
      The port of the endpoint.
    • getSocketAddress

      @Stability(Stable) @NotNull public String getSocketAddress()
      The combination of "HOSTNAME:PORT" for this endpoint.