public static interface ModifyImageAttributeRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<ModifyImageAttributeRequest.Builder,ModifyImageAttributeRequest>
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildModifyImageAttributeRequest.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(AttributeValue description)
A new description for the AMI.
description - A new description for the AMI.default ModifyImageAttributeRequest.Builder description(Consumer<AttributeValue.Builder> description)
A new description for the AMI.
This is a convenience that creates an instance of theAttributeValue.Builder avoiding the need to
create one manually via AttributeValue.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to description(AttributeValue).description - a consumer that will call methods on AttributeValue.Builderdescription(AttributeValue)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.BuilderlaunchPermission(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,
OperationTypeModifyImageAttributeRequest.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,
OperationTypeModifyImageAttributeRequest.Builder productCodes(Collection<String> productCodes)
The DevPay product codes. After you add a product code to an AMI, it can't be removed.
productCodes - The DevPay product codes. After you add a product code to an AMI, it can't be removed.ModifyImageAttributeRequest.Builder productCodes(String... productCodes)
The DevPay product codes. After you add a product code to an AMI, it can't be removed.
productCodes - The DevPay product codes. After you add a product code to an AMI, it can't be removed.ModifyImageAttributeRequest.Builder userGroups(Collection<String> userGroups)
The user groups. This parameter can be used only when the Attribute parameter is
launchPermission.
userGroups - The user groups. This parameter can be used only when the Attribute parameter is
launchPermission.ModifyImageAttributeRequest.Builder userGroups(String... userGroups)
The user groups. This parameter can be used only when the Attribute parameter is
launchPermission.
userGroups - The user groups. This parameter can be used only when the Attribute parameter is
launchPermission.ModifyImageAttributeRequest.Builder userIds(Collection<String> userIds)
The AWS account IDs. This parameter can be used only when the Attribute parameter is
launchPermission.
userIds - The AWS account IDs. This parameter can be used only when the Attribute parameter is
launchPermission.ModifyImageAttributeRequest.Builder userIds(String... userIds)
The AWS account IDs. This parameter can be used only when the Attribute parameter is
launchPermission.
userIds - The 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 overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderModifyImageAttributeRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2021. All rights reserved.