Interface GetAllowedImagesSettingsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetAllowedImagesSettingsResponse.Builder,
,GetAllowedImagesSettingsResponse> Ec2Response.Builder
,SdkBuilder<GetAllowedImagesSettingsResponse.Builder,
,GetAllowedImagesSettingsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetAllowedImagesSettingsResponse
-
Method Summary
Modifier and TypeMethodDescriptionimageCriteria
(Collection<ImageCriterion> imageCriteria) The list of criteria for images that are discoverable and usable in the account in the specified Amazon Web Services Region.imageCriteria
(Consumer<ImageCriterion.Builder>... imageCriteria) The list of criteria for images that are discoverable and usable in the account in the specified Amazon Web Services Region.imageCriteria
(ImageCriterion... imageCriteria) The list of criteria for images that are discoverable and usable in the account in the specified Amazon Web Services Region.The entity that manages the Allowed AMIs settings.The entity that manages the Allowed AMIs settings.The current state of the Allowed AMIs setting at the account level in the specified Amazon Web Services Region.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
state
The current state of the Allowed AMIs setting at the account level in the specified Amazon Web Services Region.
Possible values:
-
disabled
: All AMIs are allowed. -
audit-mode
: All AMIs are allowed, but theImageAllowed
field is set totrue
if the AMI would be allowed with the current list of criteria if allowed AMIs was enabled. -
enabled
: Only AMIs matching the image criteria are discoverable and available for use.
- Parameters:
state
- The current state of the Allowed AMIs setting at the account level in the specified Amazon Web Services Region.Possible values:
-
disabled
: All AMIs are allowed. -
audit-mode
: All AMIs are allowed, but theImageAllowed
field is set totrue
if the AMI would be allowed with the current list of criteria if allowed AMIs was enabled. -
enabled
: Only AMIs matching the image criteria are discoverable and available for use.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
imageCriteria
The list of criteria for images that are discoverable and usable in the account in the specified Amazon Web Services Region.
- Parameters:
imageCriteria
- The list of criteria for images that are discoverable and usable in the account in the specified Amazon Web Services Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageCriteria
The list of criteria for images that are discoverable and usable in the account in the specified Amazon Web Services Region.
- Parameters:
imageCriteria
- The list of criteria for images that are discoverable and usable in the account in the specified Amazon Web Services Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageCriteria
GetAllowedImagesSettingsResponse.Builder imageCriteria(Consumer<ImageCriterion.Builder>... imageCriteria) The list of criteria for images that are discoverable and usable in the account in the specified Amazon Web Services Region.
This is a convenience method that creates an instance of theImageCriterion.Builder
avoiding the need to create one manually viaImageCriterion.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toimageCriteria(List<ImageCriterion>)
.- Parameters:
imageCriteria
- a consumer that will call methods onImageCriterion.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
managedBy
The entity that manages the Allowed AMIs settings. Possible values include:
-
account
- The Allowed AMIs settings is managed by the account. -
declarative-policy
- The Allowed AMIs settings is managed by a declarative policy and can't be modified by the account.
- Parameters:
managedBy
- The entity that manages the Allowed AMIs settings. Possible values include:-
account
- The Allowed AMIs settings is managed by the account. -
declarative-policy
- The Allowed AMIs settings is managed by a declarative policy and can't be modified by the account.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
managedBy
The entity that manages the Allowed AMIs settings. Possible values include:
-
account
- The Allowed AMIs settings is managed by the account. -
declarative-policy
- The Allowed AMIs settings is managed by a declarative policy and can't be modified by the account.
- Parameters:
managedBy
- The entity that manages the Allowed AMIs settings. Possible values include:-
account
- The Allowed AMIs settings is managed by the account. -
declarative-policy
- The Allowed AMIs settings is managed by a declarative policy and can't be modified by the account.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-