Package io.lakefs.clients.sdk.model
Class HookRun
- java.lang.Object
-
- io.lakefs.clients.sdk.model.HookRun
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class HookRun extends Object
HookRun
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHookRun.CustomTypeAdapterFactorystatic classHookRun.StatusEnumGets or Sets status
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ACTIONstatic StringSERIALIZED_NAME_END_TIMEstatic StringSERIALIZED_NAME_HOOK_IDstatic StringSERIALIZED_NAME_HOOK_RUN_IDstatic StringSERIALIZED_NAME_START_TIMEstatic StringSERIALIZED_NAME_STATUS
-
Constructor Summary
Constructors Constructor Description HookRun()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HookRunaction(String action)HookRunendTime(OffsetDateTime endTime)booleanequals(Object o)static HookRunfromJson(String jsonString)Create an instance of HookRun given an JSON stringStringgetAction()Get actionMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.OffsetDateTimegetEndTime()Get endTimeStringgetHookId()Get hookIdStringgetHookRunId()Get hookRunIdOffsetDateTimegetStartTime()Get startTimeHookRun.StatusEnumgetStatus()Get statusinthashCode()HookRunhookId(String hookId)HookRunhookRunId(String hookRunId)HookRunputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.voidsetAction(String action)voidsetEndTime(OffsetDateTime endTime)voidsetHookId(String hookId)voidsetHookRunId(String hookRunId)voidsetStartTime(OffsetDateTime startTime)voidsetStatus(HookRun.StatusEnum status)HookRunstartTime(OffsetDateTime startTime)HookRunstatus(HookRun.StatusEnum status)StringtoJson()Convert an instance of HookRun to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_HOOK_RUN_ID
public static final String SERIALIZED_NAME_HOOK_RUN_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACTION
public static final String SERIALIZED_NAME_ACTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HOOK_ID
public static final String SERIALIZED_NAME_HOOK_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_START_TIME
public static final String SERIALIZED_NAME_START_TIME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_END_TIME
public static final String SERIALIZED_NAME_END_TIME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
setHookRunId
public void setHookRunId(String hookRunId)
-
setAction
public void setAction(String action)
-
setHookId
public void setHookId(String hookId)
-
startTime
public HookRun startTime(OffsetDateTime startTime)
-
getStartTime
@Nonnull public OffsetDateTime getStartTime()
Get startTime- Returns:
- startTime
-
setStartTime
public void setStartTime(OffsetDateTime startTime)
-
endTime
public HookRun endTime(OffsetDateTime endTime)
-
getEndTime
@Nullable public OffsetDateTime getEndTime()
Get endTime- Returns:
- endTime
-
setEndTime
public void setEndTime(OffsetDateTime endTime)
-
status
public HookRun status(HookRun.StatusEnum status)
-
getStatus
@Nonnull public HookRun.StatusEnum getStatus()
Get status- Returns:
- status
-
setStatus
public void setStatus(HookRun.StatusEnum status)
-
putAdditionalProperty
public HookRun putAdditionalProperty(String key, Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the HookRun instance itself
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public Object getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates 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 HookRun
-
fromJson
public static HookRun fromJson(String jsonString) throws IOException
Create an instance of HookRun given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of HookRun
- Throws:
IOException- if the JSON string is invalid with respect to HookRun
-
toJson
public String toJson()
Convert an instance of HookRun to an JSON string- Returns:
- JSON string
-
-