@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-22T19:35:43.825Z")
public class Endpoint
extends software.amazon.jsii.JsiiObject
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.neptune.*; Endpoint endpoint = new Endpoint("address", 123);
Modifier | Constructor and Description |
---|---|
protected |
Endpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Endpoint(software.amazon.jsii.JsiiObjectRef objRef) |
|
Endpoint(java.lang.String address,
java.lang.Number port) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHostname()
(experimental) The hostname of the endpoint.
|
java.lang.Number |
getPort()
(experimental) The port of the endpoint.
|
java.lang.String |
getSocketAddress()
(experimental) The combination of "HOSTNAME:PORT" for this endpoint.
|
protected Endpoint(software.amazon.jsii.JsiiObjectRef objRef)
protected Endpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public Endpoint(java.lang.String address, java.lang.Number port)
address
- This parameter is required.port
- This parameter is required.public java.lang.String getHostname()
public java.lang.Number getPort()
public java.lang.String getSocketAddress()