Class MicrovmHooks
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MicrovmHooks.Builder,MicrovmHooks>
Configuration for lifecycle hooks invoked during MicroVM events such as run, resume, suspend, and terminate.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MicrovmHooks.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final HookStateresume()The path of the hook invoked when the MicroVM resumes from a suspended state.final StringThe path of the hook invoked when the MicroVM resumes from a suspended state.final IntegerThe maximum time in seconds for the resume hook to complete.final HookStaterun()The path of the hook invoked when the MicroVM starts running.final StringThe path of the hook invoked when the MicroVM starts running.final IntegerThe maximum time in seconds for the run hook to complete.static Class<? extends MicrovmHooks.Builder> final HookStatesuspend()The path of the hook invoked when the MicroVM is suspended.final StringThe path of the hook invoked when the MicroVM is suspended.final IntegerThe maximum time in seconds for the suspend hook to complete.final HookStateThe path of the hook invoked when the MicroVM is terminated.final StringThe path of the hook invoked when the MicroVM is terminated.final IntegerThe maximum time in seconds for the terminate hook to complete.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
run
The path of the hook invoked when the MicroVM starts running.
If the service returns an enum value that is not available in the current SDK version,
runwill returnHookState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrunAsString().- Returns:
- The path of the hook invoked when the MicroVM starts running.
- See Also:
-
runAsString
The path of the hook invoked when the MicroVM starts running.
If the service returns an enum value that is not available in the current SDK version,
runwill returnHookState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrunAsString().- Returns:
- The path of the hook invoked when the MicroVM starts running.
- See Also:
-
runTimeoutInSeconds
The maximum time in seconds for the run hook to complete.
- Returns:
- The maximum time in seconds for the run hook to complete.
-
resume
The path of the hook invoked when the MicroVM resumes from a suspended state.
If the service returns an enum value that is not available in the current SDK version,
resumewill returnHookState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresumeAsString().- Returns:
- The path of the hook invoked when the MicroVM resumes from a suspended state.
- See Also:
-
resumeAsString
The path of the hook invoked when the MicroVM resumes from a suspended state.
If the service returns an enum value that is not available in the current SDK version,
resumewill returnHookState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresumeAsString().- Returns:
- The path of the hook invoked when the MicroVM resumes from a suspended state.
- See Also:
-
resumeTimeoutInSeconds
The maximum time in seconds for the resume hook to complete.
- Returns:
- The maximum time in seconds for the resume hook to complete.
-
suspend
The path of the hook invoked when the MicroVM is suspended.
If the service returns an enum value that is not available in the current SDK version,
suspendwill returnHookState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsuspendAsString().- Returns:
- The path of the hook invoked when the MicroVM is suspended.
- See Also:
-
suspendAsString
The path of the hook invoked when the MicroVM is suspended.
If the service returns an enum value that is not available in the current SDK version,
suspendwill returnHookState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsuspendAsString().- Returns:
- The path of the hook invoked when the MicroVM is suspended.
- See Also:
-
suspendTimeoutInSeconds
The maximum time in seconds for the suspend hook to complete.
- Returns:
- The maximum time in seconds for the suspend hook to complete.
-
terminate
The path of the hook invoked when the MicroVM is terminated.
If the service returns an enum value that is not available in the current SDK version,
terminatewill returnHookState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromterminateAsString().- Returns:
- The path of the hook invoked when the MicroVM is terminated.
- See Also:
-
terminateAsString
The path of the hook invoked when the MicroVM is terminated.
If the service returns an enum value that is not available in the current SDK version,
terminatewill returnHookState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromterminateAsString().- Returns:
- The path of the hook invoked when the MicroVM is terminated.
- See Also:
-
terminateTimeoutInSeconds
The maximum time in seconds for the terminate hook to complete.
- Returns:
- The maximum time in seconds for the terminate hook to complete.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<MicrovmHooks.Builder,MicrovmHooks> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-