Class Schema2HealthConfig
java.lang.Object
io.github.alersrt.pod4j.openapi.model.Schema2HealthConfig
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class Schema2HealthConfig
extends Object
Schema2HealthConfig is a HealthConfig, which holds configuration settings for the HEALTHCHECK
feature, from docker/docker/api/types/container.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTestItem(String testItem) booleanstatic Schema2HealthConfigCreate an instance of Schema2HealthConfig given an JSON stringA Duration represents the elapsed time between two instants as an int64 nanosecond count.Retries is the number of consecutive failures needed to consider a container as unhealthy.A Duration represents the elapsed time between two instants as an int64 nanosecond count.A Duration represents the elapsed time between two instants as an int64 nanosecond count.getTest()Test is the test to perform to check that the container is healthy.A Duration represents the elapsed time between two instants as an int64 nanosecond count.inthashCode()voidsetInterval(Long interval) voidsetRetries(Long retries) voidsetStartInterval(Long startInterval) voidsetStartPeriod(Long startPeriod) voidvoidsetTimeout(Long timeout) startInterval(Long startInterval) startPeriod(Long startPeriod) toJson()Convert an instance of Schema2HealthConfig to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_INTERVAL
- See Also:
-
SERIALIZED_NAME_RETRIES
- See Also:
-
SERIALIZED_NAME_START_INTERVAL
- See Also:
-
SERIALIZED_NAME_START_PERIOD
- See Also:
-
SERIALIZED_NAME_TEST
- See Also:
-
SERIALIZED_NAME_TIMEOUT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Schema2HealthConfig
public Schema2HealthConfig()
-
-
Method Details
-
interval
-
getInterval
A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.- Returns:
- interval
-
setInterval
-
retries
-
getRetries
Retries is the number of consecutive failures needed to consider a container as unhealthy. Zero means inherit.- Returns:
- retries
-
setRetries
-
startInterval
-
getStartInterval
A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.- Returns:
- startInterval
-
setStartInterval
-
startPeriod
-
getStartPeriod
A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.- Returns:
- startPeriod
-
setStartPeriod
-
test
-
addTestItem
-
getTest
Test is the test to perform to check that the container is healthy. An empty slice means to inherit the default. The options are: {} : inherit healthcheck {\"NONE\"} : disable healthcheck {\"CMD\", args...} : exec arguments directly {\"CMD-SHELL\", command} : run command with system's default shell- Returns:
- test
-
setTest
-
timeout
-
getTimeout
A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.- Returns:
- timeout
-
setTimeout
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to Schema2HealthConfig
-
fromJson
Create an instance of Schema2HealthConfig given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Schema2HealthConfig
- Throws:
IOException- if the JSON string is invalid with respect to Schema2HealthConfig
-
toJson
Convert an instance of Schema2HealthConfig to an JSON string- Returns:
- JSON string
-