Interface DescribeInstanceAttributeResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeInstanceAttributeResponse.Builder,
,DescribeInstanceAttributeResponse> Ec2Response.Builder
,SdkBuilder<DescribeInstanceAttributeResponse.Builder,
,DescribeInstanceAttributeResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribeInstanceAttributeResponse
-
Method Summary
Modifier and TypeMethodDescriptionblockDeviceMappings
(Collection<InstanceBlockDeviceMapping> blockDeviceMappings) The block device mapping of the instance.blockDeviceMappings
(Consumer<InstanceBlockDeviceMapping.Builder>... blockDeviceMappings) The block device mapping of the instance.blockDeviceMappings
(InstanceBlockDeviceMapping... blockDeviceMappings) The block device mapping of the instance.disableApiStop
(Consumer<AttributeBooleanValue.Builder> disableApiStop) Indicates whether stop protection is enabled for the instance.disableApiStop
(AttributeBooleanValue disableApiStop) Indicates whether stop protection is enabled for the instance.disableApiTermination
(Consumer<AttributeBooleanValue.Builder> disableApiTermination) Indicates whether termination protection is enabled.disableApiTermination
(AttributeBooleanValue disableApiTermination) Indicates whether termination protection is enabled.ebsOptimized
(Consumer<AttributeBooleanValue.Builder> ebsOptimized) Indicates whether the instance is optimized for Amazon EBS I/O.ebsOptimized
(AttributeBooleanValue ebsOptimized) Indicates whether the instance is optimized for Amazon EBS I/O.enaSupport
(Consumer<AttributeBooleanValue.Builder> enaSupport) Indicates whether enhanced networking with ENA is enabled.enaSupport
(AttributeBooleanValue enaSupport) Indicates whether enhanced networking with ENA is enabled.enclaveOptions
(Consumer<EnclaveOptions.Builder> enclaveOptions) Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.enclaveOptions
(EnclaveOptions enclaveOptions) Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.groups
(Collection<GroupIdentifier> groups) The security groups associated with the instance.groups
(Consumer<GroupIdentifier.Builder>... groups) The security groups associated with the instance.groups
(GroupIdentifier... groups) The security groups associated with the instance.instanceId
(String instanceId) The ID of the instance.instanceInitiatedShutdownBehavior
(Consumer<AttributeValue.Builder> instanceInitiatedShutdownBehavior) Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).instanceInitiatedShutdownBehavior
(AttributeValue instanceInitiatedShutdownBehavior) Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).instanceType
(Consumer<AttributeValue.Builder> instanceType) The instance type.instanceType
(AttributeValue instanceType) The instance type.kernelId
(Consumer<AttributeValue.Builder> kernelId) The kernel ID.kernelId
(AttributeValue kernelId) The kernel ID.productCodes
(Collection<ProductCode> productCodes) The product codes.productCodes
(Consumer<ProductCode.Builder>... productCodes) The product codes.productCodes
(ProductCode... productCodes) The product codes.ramdiskId
(Consumer<AttributeValue.Builder> ramdiskId) The RAM disk ID.ramdiskId
(AttributeValue ramdiskId) The RAM disk ID.rootDeviceName
(Consumer<AttributeValue.Builder> rootDeviceName) The device name of the root device volume (for example,/dev/sda1
).rootDeviceName
(AttributeValue rootDeviceName) The device name of the root device volume (for example,/dev/sda1
).sourceDestCheck
(Consumer<AttributeBooleanValue.Builder> sourceDestCheck) Indicates whether source/destination checks are enabled.sourceDestCheck
(AttributeBooleanValue sourceDestCheck) Indicates whether source/destination checks are enabled.sriovNetSupport
(Consumer<AttributeValue.Builder> sriovNetSupport) Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.sriovNetSupport
(AttributeValue sriovNetSupport) Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.userData
(Consumer<AttributeValue.Builder> userData) The user data.userData
(AttributeValue userData) The user data.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
-
blockDeviceMappings
DescribeInstanceAttributeResponse.Builder blockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings) The block device mapping of the instance.
- Parameters:
blockDeviceMappings
- The block device mapping of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappings
DescribeInstanceAttributeResponse.Builder blockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings) The block device mapping of the instance.
- Parameters:
blockDeviceMappings
- The block device mapping of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappings
DescribeInstanceAttributeResponse.Builder blockDeviceMappings(Consumer<InstanceBlockDeviceMapping.Builder>... blockDeviceMappings) The block device mapping of the instance.
This is a convenience method that creates an instance of theInstanceBlockDeviceMapping.Builder
avoiding the need to create one manually viaInstanceBlockDeviceMapping.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toblockDeviceMappings(List<InstanceBlockDeviceMapping>)
.- Parameters:
blockDeviceMappings
- a consumer that will call methods onInstanceBlockDeviceMapping.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
disableApiTermination
DescribeInstanceAttributeResponse.Builder disableApiTermination(AttributeBooleanValue disableApiTermination) Indicates whether termination protection is enabled. If the value is
true
, you can't terminate the instance using the Amazon EC2 console, command line tools, or API.- Parameters:
disableApiTermination
- Indicates whether termination protection is enabled. If the value istrue
, you can't terminate the instance using the Amazon EC2 console, command line tools, or API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
disableApiTermination
default DescribeInstanceAttributeResponse.Builder disableApiTermination(Consumer<AttributeBooleanValue.Builder> disableApiTermination) Indicates whether termination protection is enabled. If the value is
This is a convenience method that creates an instance of thetrue
, you can't terminate the instance using the Amazon EC2 console, command line tools, or API.AttributeBooleanValue.Builder
avoiding the need to create one manually viaAttributeBooleanValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todisableApiTermination(AttributeBooleanValue)
.- Parameters:
disableApiTermination
- a consumer that will call methods onAttributeBooleanValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
enaSupport
Indicates whether enhanced networking with ENA is enabled.
- Parameters:
enaSupport
- Indicates whether enhanced networking with ENA is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enaSupport
default DescribeInstanceAttributeResponse.Builder enaSupport(Consumer<AttributeBooleanValue.Builder> enaSupport) Indicates whether enhanced networking with ENA is enabled.
This is a convenience method that creates an instance of theAttributeBooleanValue.Builder
avoiding the need to create one manually viaAttributeBooleanValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toenaSupport(AttributeBooleanValue)
.- Parameters:
enaSupport
- a consumer that will call methods onAttributeBooleanValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
enclaveOptions
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
- Parameters:
enclaveOptions
- Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enclaveOptions
default DescribeInstanceAttributeResponse.Builder enclaveOptions(Consumer<EnclaveOptions.Builder> enclaveOptions) Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
This is a convenience method that creates an instance of theEnclaveOptions.Builder
avoiding the need to create one manually viaEnclaveOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toenclaveOptions(EnclaveOptions)
.- Parameters:
enclaveOptions
- a consumer that will call methods onEnclaveOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ebsOptimized
Indicates whether the instance is optimized for Amazon EBS I/O.
- Parameters:
ebsOptimized
- Indicates whether the instance is optimized for Amazon EBS I/O.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebsOptimized
default DescribeInstanceAttributeResponse.Builder ebsOptimized(Consumer<AttributeBooleanValue.Builder> ebsOptimized) Indicates whether the instance is optimized for Amazon EBS I/O.
This is a convenience method that creates an instance of theAttributeBooleanValue.Builder
avoiding the need to create one manually viaAttributeBooleanValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toebsOptimized(AttributeBooleanValue)
.- Parameters:
ebsOptimized
- a consumer that will call methods onAttributeBooleanValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceId
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceInitiatedShutdownBehavior
DescribeInstanceAttributeResponse.Builder instanceInitiatedShutdownBehavior(AttributeValue instanceInitiatedShutdownBehavior) Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
- Parameters:
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceInitiatedShutdownBehavior
default DescribeInstanceAttributeResponse.Builder instanceInitiatedShutdownBehavior(Consumer<AttributeValue.Builder> instanceInitiatedShutdownBehavior) Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
This is a convenience method that creates an instance of theAttributeValue.Builder
avoiding the need to create one manually viaAttributeValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstanceInitiatedShutdownBehavior(AttributeValue)
.- Parameters:
instanceInitiatedShutdownBehavior
- a consumer that will call methods onAttributeValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceType
The instance type.
- Parameters:
instanceType
- The instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceType
default DescribeInstanceAttributeResponse.Builder instanceType(Consumer<AttributeValue.Builder> instanceType) The instance type.
This is a convenience method that creates an instance of theAttributeValue.Builder
avoiding the need to create one manually viaAttributeValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstanceType(AttributeValue)
.- Parameters:
instanceType
- a consumer that will call methods onAttributeValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
kernelId
The kernel ID.
- Parameters:
kernelId
- The kernel ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kernelId
default DescribeInstanceAttributeResponse.Builder kernelId(Consumer<AttributeValue.Builder> kernelId) The kernel ID.
This is a convenience method that creates an instance of theAttributeValue.Builder
avoiding the need to create one manually viaAttributeValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tokernelId(AttributeValue)
.- Parameters:
kernelId
- a consumer that will call methods onAttributeValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
productCodes
The product codes.
- Parameters:
productCodes
- The product codes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
productCodes
The product codes.
- Parameters:
productCodes
- The product codes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
productCodes
DescribeInstanceAttributeResponse.Builder productCodes(Consumer<ProductCode.Builder>... productCodes) The product codes.
This is a convenience method that creates an instance of theProductCode.Builder
avoiding the need to create one manually viaProductCode.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toproductCodes(List<ProductCode>)
.- Parameters:
productCodes
- a consumer that will call methods onProductCode.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ramdiskId
The RAM disk ID.
- Parameters:
ramdiskId
- The RAM disk ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ramdiskId
default DescribeInstanceAttributeResponse.Builder ramdiskId(Consumer<AttributeValue.Builder> ramdiskId) The RAM disk ID.
This is a convenience method that creates an instance of theAttributeValue.Builder
avoiding the need to create one manually viaAttributeValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toramdiskId(AttributeValue)
.- Parameters:
ramdiskId
- a consumer that will call methods onAttributeValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rootDeviceName
The device name of the root device volume (for example,
/dev/sda1
).- Parameters:
rootDeviceName
- The device name of the root device volume (for example,/dev/sda1
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rootDeviceName
default DescribeInstanceAttributeResponse.Builder rootDeviceName(Consumer<AttributeValue.Builder> rootDeviceName) The device name of the root device volume (for example,
This is a convenience method that creates an instance of the/dev/sda1
).AttributeValue.Builder
avoiding the need to create one manually viaAttributeValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torootDeviceName(AttributeValue)
.- Parameters:
rootDeviceName
- a consumer that will call methods onAttributeValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourceDestCheck
Indicates whether source/destination checks are enabled.
- Parameters:
sourceDestCheck
- Indicates whether source/destination checks are enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceDestCheck
default DescribeInstanceAttributeResponse.Builder sourceDestCheck(Consumer<AttributeBooleanValue.Builder> sourceDestCheck) Indicates whether source/destination checks are enabled.
This is a convenience method that creates an instance of theAttributeBooleanValue.Builder
avoiding the need to create one manually viaAttributeBooleanValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosourceDestCheck(AttributeBooleanValue)
.- Parameters:
sourceDestCheck
- a consumer that will call methods onAttributeBooleanValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sriovNetSupport
Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
- Parameters:
sriovNetSupport
- Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sriovNetSupport
default DescribeInstanceAttributeResponse.Builder sriovNetSupport(Consumer<AttributeValue.Builder> sriovNetSupport) Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
This is a convenience method that creates an instance of theAttributeValue.Builder
avoiding the need to create one manually viaAttributeValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosriovNetSupport(AttributeValue)
.- Parameters:
sriovNetSupport
- a consumer that will call methods onAttributeValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
userData
The user data.
- Parameters:
userData
- The user data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userData
default DescribeInstanceAttributeResponse.Builder userData(Consumer<AttributeValue.Builder> userData) The user data.
This is a convenience method that creates an instance of theAttributeValue.Builder
avoiding the need to create one manually viaAttributeValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed touserData(AttributeValue)
.- Parameters:
userData
- a consumer that will call methods onAttributeValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
disableApiStop
Indicates whether stop protection is enabled for the instance.
- Parameters:
disableApiStop
- Indicates whether stop protection is enabled for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
disableApiStop
default DescribeInstanceAttributeResponse.Builder disableApiStop(Consumer<AttributeBooleanValue.Builder> disableApiStop) Indicates whether stop protection is enabled for the instance.
This is a convenience method that creates an instance of theAttributeBooleanValue.Builder
avoiding the need to create one manually viaAttributeBooleanValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todisableApiStop(AttributeBooleanValue)
.- Parameters:
disableApiStop
- a consumer that will call methods onAttributeBooleanValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
groups
The security groups associated with the instance.
- Parameters:
groups
- The security groups associated with the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
The security groups associated with the instance.
- Parameters:
groups
- The security groups associated with the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
The security groups associated with the instance.
This is a convenience method that creates an instance of theGroupIdentifier.Builder
avoiding the need to create one manually viaGroupIdentifier.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togroups(List<GroupIdentifier>)
.- Parameters:
groups
- a consumer that will call methods onGroupIdentifier.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-