Interface InstanceMonitoring.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceMonitoring.Builder,
,InstanceMonitoring> SdkBuilder<InstanceMonitoring.Builder,
,InstanceMonitoring> SdkPojo
- Enclosing class:
InstanceMonitoring
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.Builder
monitoring
(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
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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.Builder
avoiding the need to create one manually viaMonitoring.builder()
.When the
Consumer
completes,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:
-