Class HTTPGetAction
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.HTTPGetAction
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class HTTPGetAction extends java.lang.Object implements com.marcnuri.yakc.model.Model
HTTPGetAction describes an action based on HTTP Get requests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HTTPGetAction.Builder
-
Constructor Summary
Constructors Constructor Description HTTPGetAction()
HTTPGetAction(java.lang.String host, java.util.List<HTTPHeader> httpHeaders, java.lang.String path, @NonNull java.lang.String port, java.lang.String scheme)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HTTPGetAction.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getHost()
Host name to connect to, defaults to the pod IP.java.util.List<HTTPHeader>
getHttpHeaders()
Custom headers to set in the request.java.lang.String
getPath()
Path to access on the HTTP server.@NonNull java.lang.String
getPort()
java.lang.String
getScheme()
Scheme to use for connecting to the host.int
hashCode()
void
setHost(java.lang.String host)
Host name to connect to, defaults to the pod IP.void
setHttpHeaders(java.util.List<HTTPHeader> httpHeaders)
Custom headers to set in the request.void
setPath(java.lang.String path)
Path to access on the HTTP server.void
setPort(@NonNull java.lang.String port)
void
setScheme(java.lang.String scheme)
Scheme to use for connecting to the host.HTTPGetAction.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
HTTPGetAction
public HTTPGetAction(java.lang.String host, java.util.List<HTTPHeader> httpHeaders, java.lang.String path, @NonNull @NonNull java.lang.String port, java.lang.String scheme)
-
HTTPGetAction
public HTTPGetAction()
-
-
Method Detail
-
builder
public static HTTPGetAction.Builder builder()
-
toBuilder
public HTTPGetAction.Builder toBuilder()
-
getHost
public java.lang.String getHost()
Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.
-
getHttpHeaders
public java.util.List<HTTPHeader> getHttpHeaders()
Custom headers to set in the request. HTTP allows repeated headers.
-
getPath
public java.lang.String getPath()
Path to access on the HTTP server.
-
getPort
@NonNull public @NonNull java.lang.String getPort()
-
getScheme
public java.lang.String getScheme()
Scheme to use for connecting to the host. Defaults to HTTP.
-
setHost
public void setHost(java.lang.String host)
Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.
-
setHttpHeaders
public void setHttpHeaders(java.util.List<HTTPHeader> httpHeaders)
Custom headers to set in the request. HTTP allows repeated headers.
-
setPath
public void setPath(java.lang.String path)
Path to access on the HTTP server.
-
setPort
public void setPort(@NonNull @NonNull java.lang.String port)
-
setScheme
public void setScheme(java.lang.String scheme)
Scheme to use for connecting to the host. Defaults to HTTP.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-