Package com.signadot.model
Class CreatePreviewEndpointRequest
- java.lang.Object
-
- com.signadot.model.CreatePreviewEndpointRequest
-
public class CreatePreviewEndpointRequest extends Object
CreatePreviewEndpointRequest
-
-
Constructor Summary
Constructors Constructor Description CreatePreviewEndpointRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
CreatePreviewEndpointRequest
forkOf(ForkOf forkOf)
ForkOf
getForkOf()
Get forkOfString
getHost()
Host is the host-name of a service within Kubernetes of the form `service-name.namespace.svc`.String
getName()
Name of this endpoint.Integer
getPort()
Port is the port on the above host that the preview will point to.String
getProtocol()
Protocol of the endpoint that we will be connecting to for this preview URL.String
getRouteType()
RouteType is one of 'static' or 'fork'.int
hashCode()
CreatePreviewEndpointRequest
host(String host)
CreatePreviewEndpointRequest
name(String name)
CreatePreviewEndpointRequest
port(Integer port)
CreatePreviewEndpointRequest
protocol(String protocol)
CreatePreviewEndpointRequest
routeType(String routeType)
void
setForkOf(ForkOf forkOf)
void
setHost(String host)
void
setName(String name)
void
setPort(Integer port)
void
setProtocol(String protocol)
void
setRouteType(String routeType)
String
toString()
-
-
-
Method Detail
-
forkOf
public CreatePreviewEndpointRequest forkOf(ForkOf forkOf)
-
getForkOf
public ForkOf getForkOf()
Get forkOf- Returns:
- forkOf
-
setForkOf
public void setForkOf(ForkOf forkOf)
-
host
public CreatePreviewEndpointRequest host(String host)
-
getHost
public String getHost()
Host is the host-name of a service within Kubernetes of the form `service-name.namespace.svc`. Only required when RouteType is 'static'- Returns:
- host
-
setHost
public void setHost(String host)
-
name
public CreatePreviewEndpointRequest name(String name)
-
getName
public String getName()
Name of this endpoint. If not specified, a name will be generated automatically.- Returns:
- name
-
setName
public void setName(String name)
-
port
public CreatePreviewEndpointRequest port(Integer port)
-
getPort
public Integer getPort()
Port is the port on the above host that the preview will point to. Only required when RouteType is 'static'- Returns:
- port
-
setPort
public void setPort(Integer port)
-
protocol
public CreatePreviewEndpointRequest protocol(String protocol)
-
getProtocol
public String getProtocol()
Protocol of the endpoint that we will be connecting to for this preview URL. One of 'http', 'https', or 'grpc'. If not specified, the default is 'http'.- Returns:
- protocol
-
setProtocol
public void setProtocol(String protocol)
-
routeType
public CreatePreviewEndpointRequest routeType(String routeType)
-
getRouteType
public String getRouteType()
RouteType is one of 'static' or 'fork'. If you choose a route of type 'static', this preview endpoint will route traffic to the Host / Port specified. If you choose a route of type 'fork', this preview endpoint will route traffic to a forked entity as specified in forkOf.- Returns:
- routeType
-
setRouteType
public void setRouteType(String routeType)
-
-