Package io.vertx.ext.consul.connect
Class SidecarServiceOptions
- java.lang.Object
-
- io.vertx.ext.consul.connect.SidecarServiceOptions
-
public class SidecarServiceOptions extends Object
-
-
Constructor Summary
Constructors Constructor Description SidecarServiceOptions()Default constructorSidecarServiceOptions(JsonObject options)Constructor from JSON
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<JsonObject>getChecks()intgetPort()ProxyOptionsgetProxy()voidsetChecks(List<JsonObject> checks)SidecarServiceOptionssetPort(int port)SidecarServiceOptionssetProxy(ProxyOptions proxy)JsonObjecttoJson()Convert to JSON
-
-
-
Constructor Detail
-
SidecarServiceOptions
public SidecarServiceOptions()
Default constructor
-
SidecarServiceOptions
public SidecarServiceOptions(JsonObject options)
Constructor from JSON- Parameters:
options- the JSON
-
-
Method Detail
-
toJson
public JsonObject toJson()
Convert to JSON- Returns:
- the JSON
-
getPort
public int getPort()
-
setPort
public SidecarServiceOptions setPort(int port)
-
getProxy
public ProxyOptions getProxy()
-
setProxy
public SidecarServiceOptions setProxy(ProxyOptions proxy)
-
getChecks
public List<JsonObject> getChecks()
-
setChecks
public void setChecks(List<JsonObject> checks)
-
-