Package com.yahoo.config.application.api
Class Endpoint
- java.lang.Object
-
- com.yahoo.config.application.api.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
containerId()
java.lang.String
endpointId()
boolean
equals(java.lang.Object o)
int
hashCode()
java.util.Set<com.yahoo.config.provision.RegionName>
regions()
java.lang.String
toString()
Endpoint
withRegions(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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-