Interface AssociatedHost.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AssociatedHost.Builder,
,AssociatedHost> SdkBuilder<AssociatedHost.Builder,
,AssociatedHost> SdkPojo
- Enclosing class:
AssociatedHost
@Mutable
@NotThreadSafe
public static interface AssociatedHost.Builder
extends SdkPojo, CopyableBuilder<AssociatedHost.Builder,AssociatedHost>
-
Method Summary
Modifier and TypeMethodDescriptionec2InstanceId
(String ec2InstanceId) The ID of the Amazon EC2 instance.The name of the host.ipAddresses
(Collection<IpAddressMember> ipAddresses) The IP addresses of the associated host.ipAddresses
(Consumer<IpAddressMember.Builder>... ipAddresses) The IP addresses of the associated host.ipAddresses
(IpAddressMember... ipAddresses) The IP addresses of the associated host.The version of the operating system.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
hostname
The name of the host.
- Parameters:
hostname
- The name of the host.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ec2InstanceId
The ID of the Amazon EC2 instance.
- Parameters:
ec2InstanceId
- The ID of the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipAddresses
The IP addresses of the associated host.
- Parameters:
ipAddresses
- The IP addresses of the associated host.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipAddresses
The IP addresses of the associated host.
- Parameters:
ipAddresses
- The IP addresses of the associated host.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipAddresses
The IP addresses of the associated host.
This is a convenience method that creates an instance of theIpAddressMember.Builder
avoiding the need to create one manually viaIpAddressMember.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toipAddresses(List<IpAddressMember>)
.- Parameters:
ipAddresses
- a consumer that will call methods onIpAddressMember.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
osVersion
The version of the operating system.
- Parameters:
osVersion
- The version of the operating system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-