Class Endpoint


  • public class Endpoint
    extends java.lang.Object
    Represents a (global) endpoint in 'deployments.xml'. It contains the name of the endpoint (endpointId) and the name of the container cluster that the endpoint should point to. If the endpoint is not set it will default to the string "default".
    Author:
    ogronnesby
    • Constructor Summary

      Constructors 
      Constructor Description
      Endpoint​(java.util.Optional<java.lang.String> endpointId, java.lang.String containerId, java.util.Set<java.lang.String> regions)  
    • Constructor Detail

      • Endpoint

        public Endpoint​(java.util.Optional<java.lang.String> endpointId,
                        java.lang.String containerId,
                        java.util.Set<java.lang.String> regions)
    • Method Detail

      • endpointId

        public java.lang.String endpointId()
      • containerId

        public java.lang.String containerId()
      • regions

        public java.util.Set<com.yahoo.config.provision.RegionName> regions()
      • withRegions

        public Endpoint withRegions​(java.util.Set<java.lang.String> regions)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object