Class CustomEndpoint

  • All Implemented Interfaces:
    EndpointBuilder

    public class CustomEndpoint
    extends java.lang.Object
    implements EndpointBuilder
    Wraps AwsClientBuilder.EndpointConfiguration for configuration purposes.

    In the adapter configuration file this class is aliased as aws-custom-endpoint which is the preferred alternative to the fully qualified classname when building your configuration.

    • Constructor Detail

      • CustomEndpoint

        public CustomEndpoint()
    • Method Detail

      • isConfigured

        public boolean isConfigured()
        Whether or not this endpoint has configuration.
        Returns:
        true if both serviceEndpoint and signing region have are non-blank
      • rebuild

        public <T extends com.amazonaws.client.builder.AwsClientBuilder<?,​?>> T rebuild​(T builder)
        Specified by:
        rebuild in interface EndpointBuilder
      • withServiceEndpoint

        public CustomEndpoint withServiceEndpoint​(java.lang.String s)
      • withSigningRegion

        public CustomEndpoint withSigningRegion​(java.lang.String s)
      • getServiceEndpoint

        public java.lang.String getServiceEndpoint()
        Set the custom service endpoint (e.g. https://sns.us-west-1.amazonaws.com).
      • setServiceEndpoint

        public void setServiceEndpoint​(java.lang.String serviceEndpoint)
        Set the custom service endpoint (e.g. https://sns.us-west-1.amazonaws.com).
      • getSigningRegion

        public java.lang.String getSigningRegion()
        Set the signing region for the endpoint (e.g. us-west-1).
      • setSigningRegion

        public void setSigningRegion​(java.lang.String signingRegion)
        Set the signing region for the endpoint (e.g. us-west-1).