Interface AmiConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AmiConfiguration.Builder,,AmiConfiguration> SdkBuilder<AmiConfiguration.Builder,,AmiConfiguration> SdkPojo
- Enclosing class:
AmiConfiguration
@Mutable
@NotThreadSafe
public static interface AmiConfiguration.Builder
extends SdkPojo, CopyableBuilder<AmiConfiguration.Builder,AmiConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptioncreatedWithin(String createdWithin) Restricts scanning to AMIs that were created within the specified duration.createdWithin(AmiScanDuration createdWithin) Restricts scanning to AMIs that were created within the specified duration.lastLaunchedWithin(String lastLaunchedWithin) Restricts scanning to AMIs that were last launched within the specified duration.lastLaunchedWithin(AmiScanDuration lastLaunchedWithin) Restricts scanning to AMIs that were last launched within the specified duration.default AmiConfiguration.BuilderscanModeConfiguration(Consumer<AmiScanModeConfiguration.Builder> scanModeConfiguration) The scan mode configuration that determines which AMIs are scanned.scanModeConfiguration(AmiScanModeConfiguration scanModeConfiguration) The scan mode configuration that determines which AMIs are scanned.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
-
lastLaunchedWithin
Restricts scanning to AMIs that were last launched within the specified duration.
- Parameters:
lastLaunchedWithin- Restricts scanning to AMIs that were last launched within the specified duration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lastLaunchedWithin
Restricts scanning to AMIs that were last launched within the specified duration.
- Parameters:
lastLaunchedWithin- Restricts scanning to AMIs that were last launched within the specified duration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdWithin
Restricts scanning to AMIs that were created within the specified duration.
- Parameters:
createdWithin- Restricts scanning to AMIs that were created within the specified duration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdWithin
Restricts scanning to AMIs that were created within the specified duration.
- Parameters:
createdWithin- Restricts scanning to AMIs that were created within the specified duration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanModeConfiguration
The scan mode configuration that determines which AMIs are scanned.
- Parameters:
scanModeConfiguration- The scan mode configuration that determines which AMIs are scanned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanModeConfiguration
default AmiConfiguration.Builder scanModeConfiguration(Consumer<AmiScanModeConfiguration.Builder> scanModeConfiguration) The scan mode configuration that determines which AMIs are scanned.
This is a convenience method that creates an instance of theAmiScanModeConfiguration.Builderavoiding the need to create one manually viaAmiScanModeConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscanModeConfiguration(AmiScanModeConfiguration).- Parameters:
scanModeConfiguration- a consumer that will call methods onAmiScanModeConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-