Class V1HTTPGetAction
java.lang.Object
io.kubernetes.client.openapi.models.V1HTTPGetAction
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1HTTPGetAction
extends Object
HTTPGetAction describes an action based on HTTP Get requests.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddHttpHeadersItem
(V1HTTPHeader httpHeadersItem) boolean
static V1HTTPGetAction
Create an instance of V1HTTPGetAction given an JSON stringgetHost()
Host name to connect to, defaults to the pod IP.Custom headers to set in the request.getPath()
Path to access on the HTTP server.getPort()
IntOrString is a type that can hold an int32 or a string.Scheme to use for connecting to the host.int
hashCode()
httpHeaders
(List<V1HTTPHeader> httpHeaders) port
(IntOrString port) void
void
setHttpHeaders
(List<V1HTTPHeader> httpHeaders) void
void
setPort
(IntOrString port) void
toJson()
Convert an instance of V1HTTPGetAction to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_HOST
- See Also:
-
SERIALIZED_NAME_HTTP_HEADERS
- See Also:
-
SERIALIZED_NAME_PATH
- See Also:
-
SERIALIZED_NAME_PORT
- See Also:
-
SERIALIZED_NAME_SCHEME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1HTTPGetAction
public V1HTTPGetAction()
-
-
Method Details
-
host
-
getHost
Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.- Returns:
- host
-
setHost
-
httpHeaders
-
addHttpHeadersItem
-
getHttpHeaders
Custom headers to set in the request. HTTP allows repeated headers.- Returns:
- httpHeaders
-
setHttpHeaders
-
path
-
getPath
Path to access on the HTTP server.- Returns:
- path
-
setPath
-
port
-
getPort
IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.- Returns:
- port
-
setPort
-
scheme
-
getScheme
Scheme to use for connecting to the host. Defaults to HTTP.- Returns:
- scheme
-
setScheme
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1HTTPGetAction
-
fromJson
Create an instance of V1HTTPGetAction given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1HTTPGetAction
- Throws:
IOException
- if the JSON string is invalid with respect to V1HTTPGetAction
-
toJson
Convert an instance of V1HTTPGetAction to an JSON string- Returns:
- JSON string
-