@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:16.887Z") @Stability(value=Experimental) public class Endpoint extends software.amazon.jsii.JsiiObject
Consists of a combination of hostname and port.
| Modifier | Constructor and Description |
|---|---|
protected |
Endpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Endpoint(software.amazon.jsii.JsiiObjectRef objRef) |
|
Endpoint(String address,
Number port)
(experimental) Constructs an Endpoint instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHostname()
(experimental) The hostname of the endpoint.
|
Number |
getPort()
(experimental) The port number of the endpoint.
|
String |
getSocketAddress()
(experimental) The combination of ``HOSTNAME:PORT`` for this endpoint.
|
String |
portAsString()
(experimental) Returns the port number as a string representation that can be used for embedding within other strings.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Endpoint(software.amazon.jsii.JsiiObjectRef objRef)
protected Endpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Endpoint(@NotNull
String address,
@NotNull
Number port)
address - - The hostname or address of the endpoint. This parameter is required.port - - The port number of the endpoint. This parameter is required.@Stability(value=Experimental) @NotNull public String portAsString()
This is intended to deal with CDK's token system. Numeric CDK tokens are not expanded when their string representation is embedded in a string. This function returns the port either as an unresolved string token or as a resolved string representation of the port value.
@Stability(value=Experimental) @NotNull public String getHostname()
@Stability(value=Experimental) @NotNull public Number getPort()
This can potentially be a CDK token. If you need to embed the port in a string (e.g. instance user data script), use {@link Endpoint.portAsString}.
@Stability(value=Experimental) @NotNull public String getSocketAddress()
Copyright © 2021. All rights reserved.