Interface ImageCriterionRequest.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ImageCriterionRequest.Builder,,ImageCriterionRequest> SdkBuilder<ImageCriterionRequest.Builder,,ImageCriterionRequest> SdkPojo
- Enclosing class:
ImageCriterionRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault ImageCriterionRequest.BuildercreationDateCondition(Consumer<CreationDateConditionRequest.Builder> creationDateCondition) The maximum age for allowed images.creationDateCondition(CreationDateConditionRequest creationDateCondition) The maximum age for allowed images.default ImageCriterionRequest.BuilderdeprecationTimeCondition(Consumer<DeprecationTimeConditionRequest.Builder> deprecationTimeCondition) The maximum period since deprecation for allowed images.deprecationTimeCondition(DeprecationTimeConditionRequest deprecationTimeCondition) The maximum period since deprecation for allowed images.imageNames(String... imageNames) The names of allowed images.imageNames(Collection<String> imageNames) The names of allowed images.imageProviders(String... imageProviders) The image providers whose images are allowed.imageProviders(Collection<String> imageProviders) The image providers whose images are allowed.imageWatermarks(Collection<ImageWatermarkFilterRequest> imageWatermarks) The watermark criteria that an AMI must match to be allowed.imageWatermarks(Consumer<ImageWatermarkFilterRequest.Builder>... imageWatermarks) The watermark criteria that an AMI must match to be allowed.imageWatermarks(ImageWatermarkFilterRequest... imageWatermarks) The watermark criteria that an AMI must match to be allowed.marketplaceProductCodes(String... marketplaceProductCodes) The Amazon Web Services Marketplace product codes for allowed images.marketplaceProductCodes(Collection<String> marketplaceProductCodes) The Amazon Web Services Marketplace product codes for allowed images.default ImageCriterionRequest.BuilderscanResultCondition(Consumer<ScanResultConditionRequest.Builder> scanResultCondition) The Amazon Inspector scan-result criteria that an AMI must meet to be allowed.scanResultCondition(ScanResultConditionRequest scanResultCondition) The Amazon Inspector scan-result criteria that an AMI must meet to be allowed.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
-
imageProviders
The image providers whose images are allowed.
Possible values:
-
amazon: Allow AMIs created by Amazon or verified providers. -
aws-marketplace: Allow AMIs created by verified providers in the Amazon Web Services Marketplace. -
aws-backup-vault: Allow AMIs created by Amazon Web Services Backup. -
12-digit account ID: Allow AMIs created by the specified accounts. One or more account IDs can be specified.
-
none: Allow AMIs created by your own account only. Whennoneis specified, no other values can be specified.
Maximum: 200 values
- Parameters:
imageProviders- The image providers whose images are allowed.Possible values:
-
amazon: Allow AMIs created by Amazon or verified providers. -
aws-marketplace: Allow AMIs created by verified providers in the Amazon Web Services Marketplace. -
aws-backup-vault: Allow AMIs created by Amazon Web Services Backup. -
12-digit account ID: Allow AMIs created by the specified accounts. One or more account IDs can be specified.
-
none: Allow AMIs created by your own account only. Whennoneis specified, no other values can be specified.
Maximum: 200 values
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
imageProviders
The image providers whose images are allowed.
Possible values:
-
amazon: Allow AMIs created by Amazon or verified providers. -
aws-marketplace: Allow AMIs created by verified providers in the Amazon Web Services Marketplace. -
aws-backup-vault: Allow AMIs created by Amazon Web Services Backup. -
12-digit account ID: Allow AMIs created by the specified accounts. One or more account IDs can be specified.
-
none: Allow AMIs created by your own account only. Whennoneis specified, no other values can be specified.
Maximum: 200 values
- Parameters:
imageProviders- The image providers whose images are allowed.Possible values:
-
amazon: Allow AMIs created by Amazon or verified providers. -
aws-marketplace: Allow AMIs created by verified providers in the Amazon Web Services Marketplace. -
aws-backup-vault: Allow AMIs created by Amazon Web Services Backup. -
12-digit account ID: Allow AMIs created by the specified accounts. One or more account IDs can be specified.
-
none: Allow AMIs created by your own account only. Whennoneis specified, no other values can be specified.
Maximum: 200 values
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
marketplaceProductCodes
The Amazon Web Services Marketplace product codes for allowed images.
Length: 1-25 characters
Valid characters: Letters (
A–Z, a–z) and numbers (0–9)Maximum: 50 values
- Parameters:
marketplaceProductCodes- The Amazon Web Services Marketplace product codes for allowed images.Length: 1-25 characters
Valid characters: Letters (
A–Z, a–z) and numbers (0–9)Maximum: 50 values
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
marketplaceProductCodes
The Amazon Web Services Marketplace product codes for allowed images.
Length: 1-25 characters
Valid characters: Letters (
A–Z, a–z) and numbers (0–9)Maximum: 50 values
- Parameters:
marketplaceProductCodes- The Amazon Web Services Marketplace product codes for allowed images.Length: 1-25 characters
Valid characters: Letters (
A–Z, a–z) and numbers (0–9)Maximum: 50 values
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageNames
The names of allowed images. Names can include wildcards (
?and*).Length: 1–128 characters. With
?, the minimum is 3 characters.Valid characters:
-
Letters:
A–Z, a–z -
Numbers:
0–9 -
Special characters:
( ) [ ] . / - ' @ _ * ? -
Spaces
Maximum: 50 values
- Parameters:
imageNames- The names of allowed images. Names can include wildcards (?and*).Length: 1–128 characters. With
?, the minimum is 3 characters.Valid characters:
-
Letters:
A–Z, a–z -
Numbers:
0–9 -
Special characters:
( ) [ ] . / - ' @ _ * ? -
Spaces
Maximum: 50 values
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
imageNames
The names of allowed images. Names can include wildcards (
?and*).Length: 1–128 characters. With
?, the minimum is 3 characters.Valid characters:
-
Letters:
A–Z, a–z -
Numbers:
0–9 -
Special characters:
( ) [ ] . / - ' @ _ * ? -
Spaces
Maximum: 50 values
- Parameters:
imageNames- The names of allowed images. Names can include wildcards (?and*).Length: 1–128 characters. With
?, the minimum is 3 characters.Valid characters:
-
Letters:
A–Z, a–z -
Numbers:
0–9 -
Special characters:
( ) [ ] . / - ' @ _ * ? -
Spaces
Maximum: 50 values
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
deprecationTimeCondition
ImageCriterionRequest.Builder deprecationTimeCondition(DeprecationTimeConditionRequest deprecationTimeCondition) The maximum period since deprecation for allowed images.
- Parameters:
deprecationTimeCondition- The maximum period since deprecation for allowed images.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deprecationTimeCondition
default ImageCriterionRequest.Builder deprecationTimeCondition(Consumer<DeprecationTimeConditionRequest.Builder> deprecationTimeCondition) The maximum period since deprecation for allowed images.
This is a convenience method that creates an instance of theDeprecationTimeConditionRequest.Builderavoiding the need to create one manually viaDeprecationTimeConditionRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todeprecationTimeCondition(DeprecationTimeConditionRequest).- Parameters:
deprecationTimeCondition- a consumer that will call methods onDeprecationTimeConditionRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
creationDateCondition
ImageCriterionRequest.Builder creationDateCondition(CreationDateConditionRequest creationDateCondition) The maximum age for allowed images.
- Parameters:
creationDateCondition- The maximum age for allowed images.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationDateCondition
default ImageCriterionRequest.Builder creationDateCondition(Consumer<CreationDateConditionRequest.Builder> creationDateCondition) The maximum age for allowed images.
This is a convenience method that creates an instance of theCreationDateConditionRequest.Builderavoiding the need to create one manually viaCreationDateConditionRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocreationDateCondition(CreationDateConditionRequest).- Parameters:
creationDateCondition- a consumer that will call methods onCreationDateConditionRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
imageWatermarks
ImageCriterionRequest.Builder imageWatermarks(Collection<ImageWatermarkFilterRequest> imageWatermarks) The watermark criteria that an AMI must match to be allowed. An AMI is allowed if it carries at least one watermark that satisfies an ImageWatermarkFilter. A watermark satisfies a filter when all specified fields in the ImageWatermarkFilter match the corresponding values on the watermark of the AMI.
Maximum: 50 values
- Parameters:
imageWatermarks- The watermark criteria that an AMI must match to be allowed. An AMI is allowed if it carries at least one watermark that satisfies an ImageWatermarkFilter. A watermark satisfies a filter when all specified fields in the ImageWatermarkFilter match the corresponding values on the watermark of the AMI.Maximum: 50 values
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageWatermarks
The watermark criteria that an AMI must match to be allowed. An AMI is allowed if it carries at least one watermark that satisfies an ImageWatermarkFilter. A watermark satisfies a filter when all specified fields in the ImageWatermarkFilter match the corresponding values on the watermark of the AMI.
Maximum: 50 values
- Parameters:
imageWatermarks- The watermark criteria that an AMI must match to be allowed. An AMI is allowed if it carries at least one watermark that satisfies an ImageWatermarkFilter. A watermark satisfies a filter when all specified fields in the ImageWatermarkFilter match the corresponding values on the watermark of the AMI.Maximum: 50 values
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageWatermarks
ImageCriterionRequest.Builder imageWatermarks(Consumer<ImageWatermarkFilterRequest.Builder>... imageWatermarks) The watermark criteria that an AMI must match to be allowed. An AMI is allowed if it carries at least one watermark that satisfies an ImageWatermarkFilter. A watermark satisfies a filter when all specified fields in the ImageWatermarkFilter match the corresponding values on the watermark of the AMI.
Maximum: 50 values
This is a convenience method that creates an instance of theImageWatermarkFilterRequest.Builderavoiding the need to create one manually viaImageWatermarkFilterRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toimageWatermarks(List<ImageWatermarkFilterRequest>).- Parameters:
imageWatermarks- a consumer that will call methods onImageWatermarkFilterRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanResultCondition
The Amazon Inspector scan-result criteria that an AMI must meet to be allowed. The criteria can limit the highest finding severity, the number of days since Amazon Inspector last scanned the AMI, and the number of days since Amazon Inspector reported a fix as available.
- Parameters:
scanResultCondition- The Amazon Inspector scan-result criteria that an AMI must meet to be allowed. The criteria can limit the highest finding severity, the number of days since Amazon Inspector last scanned the AMI, and the number of days since Amazon Inspector reported a fix as available.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanResultCondition
default ImageCriterionRequest.Builder scanResultCondition(Consumer<ScanResultConditionRequest.Builder> scanResultCondition) The Amazon Inspector scan-result criteria that an AMI must meet to be allowed. The criteria can limit the highest finding severity, the number of days since Amazon Inspector last scanned the AMI, and the number of days since Amazon Inspector reported a fix as available.
This is a convenience method that creates an instance of theScanResultConditionRequest.Builderavoiding the need to create one manually viaScanResultConditionRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscanResultCondition(ScanResultConditionRequest).- Parameters:
scanResultCondition- a consumer that will call methods onScanResultConditionRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-