Class MicrovmImageHooks
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MicrovmImageHooks.Builder,MicrovmImageHooks>
Configuration for hooks invoked during MicroVM image build events such as ready and validate.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MicrovmImageHooks.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 HookStateready()The path of the hook invoked when the MicroVM image build is ready.final StringThe path of the hook invoked when the MicroVM image build is ready.final IntegerThe maximum time in seconds for the ready hook to complete.static Class<? extends MicrovmImageHooks.Builder> 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.final HookStatevalidate()The path of the hook invoked to validate the MicroVM image build.final StringThe path of the hook invoked to validate the MicroVM image build.final IntegerThe maximum time in seconds for the validate hook to complete.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
ready
The path of the hook invoked when the MicroVM image build is ready.
If the service returns an enum value that is not available in the current SDK version,
readywill returnHookState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreadyAsString().- Returns:
- The path of the hook invoked when the MicroVM image build is ready.
- See Also:
-
readyAsString
The path of the hook invoked when the MicroVM image build is ready.
If the service returns an enum value that is not available in the current SDK version,
readywill returnHookState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreadyAsString().- Returns:
- The path of the hook invoked when the MicroVM image build is ready.
- See Also:
-
readyTimeoutInSeconds
The maximum time in seconds for the ready hook to complete.
- Returns:
- The maximum time in seconds for the ready hook to complete.
-
validate
The path of the hook invoked to validate the MicroVM image build.
If the service returns an enum value that is not available in the current SDK version,
validatewill returnHookState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvalidateAsString().- Returns:
- The path of the hook invoked to validate the MicroVM image build.
- See Also:
-
validateAsString
The path of the hook invoked to validate the MicroVM image build.
If the service returns an enum value that is not available in the current SDK version,
validatewill returnHookState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvalidateAsString().- Returns:
- The path of the hook invoked to validate the MicroVM image build.
- See Also:
-
validateTimeoutInSeconds
The maximum time in seconds for the validate hook to complete.
- Returns:
- The maximum time in seconds for the validate 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<MicrovmImageHooks.Builder,MicrovmImageHooks> - 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.
-