Interface AssociatedHost.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AssociatedHost.Builder,,AssociatedHost> SdkBuilder<AssociatedHost.Builder,,AssociatedHost> SdkPojo
- Enclosing class:
AssociatedHost
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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.Builderavoiding the need to create one manually viaIpAddressMember.builder().When the
Consumercompletes,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.
-