Class CustomEndpoint

java.lang.Object
com.adaptris.aws2.CustomEndpoint
All Implemented Interfaces:
EndpointBuilder

public class CustomEndpoint extends Object implements EndpointBuilder
Wraps AwsClientBuilder.EndpointConfiguration for configuration purposes.
Since:
4.3.0

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

  • Constructor Details

    • CustomEndpoint

      public CustomEndpoint()
  • Method Details

    • 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 software.amazon.awssdk.awscore.client.builder.AwsClientBuilder<?, ?>> T rebuild(T builder)
      Specified by:
      rebuild in interface EndpointBuilder
    • withServiceEndpoint

      public CustomEndpoint withServiceEndpoint(String s)
    • withSigningRegion

      public CustomEndpoint withSigningRegion(String s)
    • getServiceEndpoint

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

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

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

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