software.amazon.awscdk.services.redshift.Endpoint Maven / Gradle / Ivy
Show all versions of redshift Show documentation
package software.amazon.awscdk.services.redshift;
/**
* Connection endpoint of a redshift cluster.
*
* Consists of a combination of hostname and port.
*
* EXPERIMENTAL
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.6.0 (build 248e75b)", date = "2020-06-04T14:11:11.432Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.redshift.$Module.class, fqn = "@aws-cdk/aws-redshift.Endpoint")
public class Endpoint extends software.amazon.jsii.JsiiObject {
protected Endpoint(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected Endpoint(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* EXPERIMENTAL
*
* @param address This parameter is required.
* @param port This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Endpoint(final @org.jetbrains.annotations.NotNull java.lang.String address, final @org.jetbrains.annotations.NotNull java.lang.Number port) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(address, "address is required"), java.util.Objects.requireNonNull(port, "port is required") });
}
/**
* The hostname of the endpoint.
*
* EXPERIMENTAL
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.lang.String getHostname() {
return this.jsiiGet("hostname", java.lang.String.class);
}
/**
* The port of the endpoint.
*
* EXPERIMENTAL
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.lang.Number getPort() {
return this.jsiiGet("port", java.lang.Number.class);
}
/**
* The combination of "HOSTNAME:PORT" for this endpoint.
*
* EXPERIMENTAL
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.lang.String getSocketAddress() {
return this.jsiiGet("socketAddress", java.lang.String.class);
}
}