Package io.fabric8.kubernetes.api.model
Class HTTPGetAction
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.HTTPGetAction
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<HTTPGetActionBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class HTTPGetAction extends Object implements io.fabric8.kubernetes.api.builder.Editable<HTTPGetActionBuilder>, KubernetesResource
HTTPGetAction describes an action based on HTTP Get requests.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HTTPGetAction()No args constructor for use in serializationHTTPGetAction(String host, List<HTTPHeader> httpHeaders, String path, IntOrString port, String scheme)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HTTPGetActionBuilderedit()Map<String,Object>getAdditionalProperties()StringgetHost()Host name to connect to, defaults to the pod IP.List<HTTPHeader>getHttpHeaders()Custom headers to set in the request.StringgetPath()Path to access on the HTTP server.IntOrStringgetPort()HTTPGetAction describes an action based on HTTP Get requests.StringgetScheme()Scheme to use for connecting to the host.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetHost(String host)Host name to connect to, defaults to the pod IP.voidsetHttpHeaders(List<HTTPHeader> httpHeaders)Custom headers to set in the request.voidsetPath(String path)Path to access on the HTTP server.voidsetPort(IntOrString port)HTTPGetAction describes an action based on HTTP Get requests.voidsetScheme(String scheme)Scheme to use for connecting to the host.HTTPGetActionBuildertoBuilder()
-
-
-
Constructor Detail
-
HTTPGetAction
public HTTPGetAction()
No args constructor for use in serialization
-
HTTPGetAction
public HTTPGetAction(String host, List<HTTPHeader> httpHeaders, String path, IntOrString port, String scheme)
-
-
Method Detail
-
getHost
public String getHost()
Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.
-
setHost
public void setHost(String host)
Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.
-
getHttpHeaders
public List<HTTPHeader> getHttpHeaders()
Custom headers to set in the request. HTTP allows repeated headers.
-
setHttpHeaders
public void setHttpHeaders(List<HTTPHeader> httpHeaders)
Custom headers to set in the request. HTTP allows repeated headers.
-
getPath
public String getPath()
Path to access on the HTTP server.
-
setPath
public void setPath(String path)
Path to access on the HTTP server.
-
getPort
public IntOrString getPort()
HTTPGetAction describes an action based on HTTP Get requests.
-
setPort
public void setPort(IntOrString port)
HTTPGetAction describes an action based on HTTP Get requests.
-
getScheme
public String getScheme()
Scheme to use for connecting to the host. Defaults to HTTP.
-
setScheme
public void setScheme(String scheme)
Scheme to use for connecting to the host. Defaults to HTTP.
-
edit
public HTTPGetActionBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<HTTPGetActionBuilder>
-
toBuilder
public HTTPGetActionBuilder toBuilder()
-
-