Interface LifecycleHookAction.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<LifecycleHookAction.Builder,,LifecycleHookAction> SdkBuilder<LifecycleHookAction.Builder,,LifecycleHookAction> SdkPojo
- Enclosing class:
LifecycleHookAction
@Mutable
@NotThreadSafe
public static interface LifecycleHookAction.Builder
extends SdkPojo, CopyableBuilder<LifecycleHookAction.Builder,LifecycleHookAction>
-
Method Summary
Modifier and TypeMethodDescriptiondefault LifecycleHookAction.BuilderhttpPost(Consumer<HttpPostLifecycleHookAction.Builder> httpPost) Sends an HTTPPOSTrequest to your agent's container on the specified port and path to run the hook.httpPost(HttpPostLifecycleHookAction httpPost) Sends an HTTPPOSTrequest to your agent's container on the specified port and path to run the hook.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
httpPost
Sends an HTTP
POSTrequest to your agent's container on the specified port and path to run the hook. The hook succeeds if your container returns a2xxresponse. The hook fails if your container returns any other response or doesn't respond before the hook times out.- Parameters:
httpPost- Sends an HTTPPOSTrequest to your agent's container on the specified port and path to run the hook. The hook succeeds if your container returns a2xxresponse. The hook fails if your container returns any other response or doesn't respond before the hook times out.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
httpPost
default LifecycleHookAction.Builder httpPost(Consumer<HttpPostLifecycleHookAction.Builder> httpPost) Sends an HTTP
This is a convenience method that creates an instance of thePOSTrequest to your agent's container on the specified port and path to run the hook. The hook succeeds if your container returns a2xxresponse. The hook fails if your container returns any other response or doesn't respond before the hook times out.HttpPostLifecycleHookAction.Builderavoiding the need to create one manually viaHttpPostLifecycleHookAction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohttpPost(HttpPostLifecycleHookAction).- Parameters:
httpPost- a consumer that will call methods onHttpPostLifecycleHookAction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-