Interface GetAllowedImagesSettingsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetAllowedImagesSettingsResponse.Builder,GetAllowedImagesSettingsResponse>
,Ec2Response.Builder
,SdkBuilder<GetAllowedImagesSettingsResponse.Builder,GetAllowedImagesSettingsResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- GetAllowedImagesSettingsResponse
public static interface GetAllowedImagesSettingsResponse.Builder extends Ec2Response.Builder, SdkPojo, CopyableBuilder<GetAllowedImagesSettingsResponse.Builder,GetAllowedImagesSettingsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetAllowedImagesSettingsResponse.Builder
imageCriteria(Collection<ImageCriterion> imageCriteria)
The list of criteria for images that are discoverable and usable in the account in the specified Amazon Web Services Region.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.GetAllowedImagesSettingsResponse.Builder
imageCriteria(ImageCriterion... imageCriteria)
The list of criteria for images that are discoverable and usable in the account in the specified Amazon Web Services Region.GetAllowedImagesSettingsResponse.Builder
managedBy(String managedBy)
The entity that manages the Allowed AMIs settings.GetAllowedImagesSettingsResponse.Builder
managedBy(ManagedBy managedBy)
The entity that manages the Allowed AMIs settings.GetAllowedImagesSettingsResponse.Builder
state(String state)
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 Detail
-
state
GetAllowedImagesSettingsResponse.Builder state(String 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
GetAllowedImagesSettingsResponse.Builder imageCriteria(Collection<ImageCriterion> 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(ImageCriterion... 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 to#imageCriteria(List
.) - 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:
#imageCriteria(java.util.Collection
)
-
managedBy
GetAllowedImagesSettingsResponse.Builder managedBy(String 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
,ManagedBy
-
-
managedBy
GetAllowedImagesSettingsResponse.Builder managedBy(ManagedBy 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
,ManagedBy
-
-
-