Interface ImageCriterion.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ImageCriterion.Builder,ImageCriterion>,SdkBuilder<ImageCriterion.Builder,ImageCriterion>,SdkPojo
- Enclosing class:
- ImageCriterion
@Mutable @NotThreadSafe public static interface ImageCriterion.Builder extends SdkPojo, CopyableBuilder<ImageCriterion.Builder,ImageCriterion>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ImageCriterion.BuildercreationDateCondition(Consumer<CreationDateCondition.Builder> creationDateCondition)The maximum age for allowed images.ImageCriterion.BuildercreationDateCondition(CreationDateCondition creationDateCondition)The maximum age for allowed images.default ImageCriterion.BuilderdeprecationTimeCondition(Consumer<DeprecationTimeCondition.Builder> deprecationTimeCondition)The maximum period since deprecation for allowed images.ImageCriterion.BuilderdeprecationTimeCondition(DeprecationTimeCondition deprecationTimeCondition)The maximum period since deprecation for allowed images.ImageCriterion.BuilderimageNames(String... imageNames)The names of allowed images.ImageCriterion.BuilderimageNames(Collection<String> imageNames)The names of allowed images.ImageCriterion.BuilderimageProviders(String... imageProviders)The image providers whose images are allowed.ImageCriterion.BuilderimageProviders(Collection<String> imageProviders)The image providers whose images are allowed.ImageCriterion.BuildermarketplaceProductCodes(String... marketplaceProductCodes)The Amazon Web Services Marketplace product codes for allowed images.ImageCriterion.BuildermarketplaceProductCodes(Collection<String> marketplaceProductCodes)The Amazon Web Services Marketplace product codes for allowed images.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
imageProviders
ImageCriterion.Builder imageProviders(Collection<String> 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 this account. One or more account IDs can be specified.
-
none: Allow AMIs created by your own account only.
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 this account. One or more account IDs can be specified.
-
none: Allow AMIs created by your own account only.
Maximum: 200 values
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
imageProviders
ImageCriterion.Builder imageProviders(String... 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 this account. One or more account IDs can be specified.
-
none: Allow AMIs created by your own account only.
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 this account. One or more account IDs can be specified.
-
none: Allow AMIs created by your own account only.
Maximum: 200 values
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
marketplaceProductCodes
ImageCriterion.Builder marketplaceProductCodes(Collection<String> 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
ImageCriterion.Builder marketplaceProductCodes(String... 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
ImageCriterion.Builder imageNames(Collection<String> 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
ImageCriterion.Builder imageNames(String... 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
ImageCriterion.Builder deprecationTimeCondition(DeprecationTimeCondition 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 ImageCriterion.Builder deprecationTimeCondition(Consumer<DeprecationTimeCondition.Builder> deprecationTimeCondition)
The maximum period since deprecation for allowed images.
This is a convenience method that creates an instance of theDeprecationTimeCondition.Builderavoiding the need to create one manually viaDeprecationTimeCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todeprecationTimeCondition(DeprecationTimeCondition).- Parameters:
deprecationTimeCondition- a consumer that will call methods onDeprecationTimeCondition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
deprecationTimeCondition(DeprecationTimeCondition)
-
creationDateCondition
ImageCriterion.Builder creationDateCondition(CreationDateCondition 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 ImageCriterion.Builder creationDateCondition(Consumer<CreationDateCondition.Builder> creationDateCondition)
The maximum age for allowed images.
This is a convenience method that creates an instance of theCreationDateCondition.Builderavoiding the need to create one manually viaCreationDateCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocreationDateCondition(CreationDateCondition).- Parameters:
creationDateCondition- a consumer that will call methods onCreationDateCondition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
creationDateCondition(CreationDateCondition)
-
-