Interface GetAlertResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudWatchOmniResponse.Builder,CopyableBuilder<GetAlertResponse.Builder,,GetAlertResponse> SdkBuilder<GetAlertResponse.Builder,,GetAlertResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetAlertResponse
@Mutable
@NotThreadSafe
public static interface GetAlertResponse.Builder
extends CloudWatchOmniResponse.Builder, SdkPojo, CopyableBuilder<GetAlertResponse.Builder,GetAlertResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetAlertResponse.Builderalert(Consumer<Alert.Builder> alert) The full alert entity.The full alert entity.Methods inherited from interface software.amazon.awssdk.services.cloudwatchomni.model.CloudWatchOmniResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
alert
The full alert entity.
- Parameters:
alert- The full alert entity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alert
The full alert entity.
This is a convenience method that creates an instance of theAlert.Builderavoiding the need to create one manually viaAlert.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toalert(Alert).- Parameters:
alert- a consumer that will call methods onAlert.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-