Interface CreateAlertResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudWatchOmniResponse.Builder,CopyableBuilder<CreateAlertResponse.Builder,,CreateAlertResponse> SdkBuilder<CreateAlertResponse.Builder,,CreateAlertResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateAlertResponse
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateAlertResponse.Builderalert(Consumer<Alert.Builder> alert) The alert that was created.The alert that was created.Deprecated.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
-
alertArn
Deprecated. Use
alert.alertArn, which carries the same value. Kept so an existing caller keeps working while it moves toalert.- Parameters:
alertArn- Deprecated. Usealert.alertArn, which carries the same value. Kept so an existing caller keeps working while it moves toalert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alert
The alert that was created. The same
Alertshape GetAlert returns, so a caller need not read the alert back to learn its timestamps or its minted alert id.alert.stateis absent here — see thestatemember ofAlert. Every other member is populated exactly as GetAlert populates it.- Parameters:
alert- The alert that was created. The sameAlertshape GetAlert returns, so a caller need not read the alert back to learn its timestamps or its minted alert id.alert.stateis absent here — see thestatemember ofAlert. Every other member is populated exactly as GetAlert populates it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alert
The alert that was created. The same
Alertshape GetAlert returns, so a caller need not read the alert back to learn its timestamps or its minted alert id.
This is a convenience method that creates an instance of thealert.stateis absent here — see thestatemember ofAlert. Every other member is populated exactly as GetAlert populates it.Alert.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:
-