Interface InstanceMonitoring.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceMonitoring.Builder,,InstanceMonitoring> SdkBuilder<InstanceMonitoring.Builder,,InstanceMonitoring> SdkPojo
- Enclosing class:
InstanceMonitoring
@Mutable
@NotThreadSafe
public static interface InstanceMonitoring.Builder
extends SdkPojo, CopyableBuilder<InstanceMonitoring.Builder,InstanceMonitoring>
-
Method Summary
Modifier and TypeMethodDescriptioninstanceId(String instanceId) The ID of the instance.default InstanceMonitoring.Buildermonitoring(Consumer<Monitoring.Builder> monitoring) The monitoring for the instance.monitoring(Monitoring monitoring) The monitoring for the instance.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
-
instanceId
The ID of the instance.
- Parameters:
instanceId- The ID of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monitoring
The monitoring for the instance.
- Parameters:
monitoring- The monitoring for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monitoring
The monitoring for the instance.
This is a convenience method that creates an instance of theMonitoring.Builderavoiding the need to create one manually viaMonitoring.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomonitoring(Monitoring).- Parameters:
monitoring- a consumer that will call methods onMonitoring.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-