Interface PutAlertManagerDefinitionResponse.Builder
- All Superinterfaces:
AmpResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<PutAlertManagerDefinitionResponse.Builder,,PutAlertManagerDefinitionResponse> SdkBuilder<PutAlertManagerDefinitionResponse.Builder,,PutAlertManagerDefinitionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
PutAlertManagerDefinitionResponse
@Mutable
@NotThreadSafe
public static interface PutAlertManagerDefinitionResponse.Builder
extends AmpResponse.Builder, SdkPojo, CopyableBuilder<PutAlertManagerDefinitionResponse.Builder,PutAlertManagerDefinitionResponse>
-
Method Summary
Modifier and TypeMethodDescriptionA structure that returns the current status of the alert manager definition.status(AlertManagerDefinitionStatus status) A structure that returns the current status of the alert manager definition.Methods inherited from interface software.amazon.awssdk.services.amp.model.AmpResponse.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
-
status
A structure that returns the current status of the alert manager definition.
- Parameters:
status- A structure that returns the current status of the alert manager definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
default PutAlertManagerDefinitionResponse.Builder status(Consumer<AlertManagerDefinitionStatus.Builder> status) A structure that returns the current status of the alert manager definition.
This is a convenience method that creates an instance of theAlertManagerDefinitionStatus.Builderavoiding the need to create one manually viaAlertManagerDefinitionStatus.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostatus(AlertManagerDefinitionStatus).- Parameters:
status- a consumer that will call methods onAlertManagerDefinitionStatus.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-