public static interface ModifyImageAttributeRequest.Builder extends EC2Request.Builder, CopyableBuilder<ModifyImageAttributeRequest.Builder,ModifyImageAttributeRequest>
build
requestOverrideConfig, requestOverrideConfig
copy
apply, build
ModifyImageAttributeRequest.Builder attribute(String attribute)
The name of the attribute to modify. The valid values are description
,
launchPermission
, and productCodes
.
attribute
- The name of the attribute to modify. The valid values are description
,
launchPermission
, and productCodes
.ModifyImageAttributeRequest.Builder description(String description)
A new description for the AMI.
description
- A new description for the AMI.ModifyImageAttributeRequest.Builder imageId(String imageId)
The ID of the AMI.
imageId
- The ID of the AMI.ModifyImageAttributeRequest.Builder launchPermission(LaunchPermissionModifications launchPermission)
A new launch permission for the AMI.
launchPermission
- A new launch permission for the AMI.default ModifyImageAttributeRequest.Builder launchPermission(Consumer<LaunchPermissionModifications.Builder> launchPermission)
A new launch permission for the AMI.
This is a convenience that creates an instance of theLaunchPermissionModifications.Builder
avoiding
the need to create one manually via LaunchPermissionModifications.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to launchPermission(LaunchPermissionModifications)
.launchPermission
- a consumer that will call methods on LaunchPermissionModifications.Builder
launchPermission(LaunchPermissionModifications)
ModifyImageAttributeRequest.Builder operationType(String operationType)
The operation type. This parameter can be used only when the Attribute
parameter is
launchPermission
.
operationType
- The operation type. This parameter can be used only when the Attribute
parameter is
launchPermission
.OperationType
,
OperationType
ModifyImageAttributeRequest.Builder operationType(OperationType operationType)
The operation type. This parameter can be used only when the Attribute
parameter is
launchPermission
.
operationType
- The operation type. This parameter can be used only when the Attribute
parameter is
launchPermission
.OperationType
,
OperationType
ModifyImageAttributeRequest.Builder productCodes(Collection<String> productCodes)
One or more DevPay product codes. After you add a product code to an AMI, it can't be removed.
productCodes
- One or more DevPay product codes. After you add a product code to an AMI, it can't be removed.ModifyImageAttributeRequest.Builder productCodes(String... productCodes)
One or more DevPay product codes. After you add a product code to an AMI, it can't be removed.
productCodes
- One or more DevPay product codes. After you add a product code to an AMI, it can't be removed.ModifyImageAttributeRequest.Builder userGroups(Collection<String> userGroups)
One or more user groups. This parameter can be used only when the Attribute
parameter is
launchPermission
.
userGroups
- One or more user groups. This parameter can be used only when the Attribute
parameter is
launchPermission
.ModifyImageAttributeRequest.Builder userGroups(String... userGroups)
One or more user groups. This parameter can be used only when the Attribute
parameter is
launchPermission
.
userGroups
- One or more user groups. This parameter can be used only when the Attribute
parameter is
launchPermission
.ModifyImageAttributeRequest.Builder userIds(Collection<String> userIds)
One or more AWS account IDs. This parameter can be used only when the Attribute
parameter is
launchPermission
.
userIds
- One or more AWS account IDs. This parameter can be used only when the Attribute
parameter
is launchPermission
.ModifyImageAttributeRequest.Builder userIds(String... userIds)
One or more AWS account IDs. This parameter can be used only when the Attribute
parameter is
launchPermission
.
userIds
- One or more AWS account IDs. This parameter can be used only when the Attribute
parameter
is launchPermission
.ModifyImageAttributeRequest.Builder value(String value)
The value of the attribute being modified. This parameter can be used only when the Attribute
parameter is description
or productCodes
.
value
- The value of the attribute being modified. This parameter can be used only when the
Attribute
parameter is description
or productCodes
.ModifyImageAttributeRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
awsRequestOverrideConfig
- The override configuration.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.