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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AssociatedHost.Builderec2InstanceId(String ec2InstanceId)The ID of the Amazon EC2 instance.AssociatedHost.Builderhostname(String hostname)The name of the host.AssociatedHost.BuilderipAddresses(Collection<IpAddressMember> ipAddresses)The IP addresses of the associated host.AssociatedHost.BuilderipAddresses(Consumer<IpAddressMember.Builder>... ipAddresses)The IP addresses of the associated host.AssociatedHost.BuilderipAddresses(IpAddressMember... ipAddresses)The IP addresses of the associated host.AssociatedHost.BuilderosVersion(String osVersion)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, sdkFields
-
-
-
-
Method Detail
-
hostname
AssociatedHost.Builder hostname(String 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
AssociatedHost.Builder ec2InstanceId(String 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
AssociatedHost.Builder ipAddresses(Collection<IpAddressMember> 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
AssociatedHost.Builder ipAddresses(IpAddressMember... 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
AssociatedHost.Builder ipAddresses(Consumer<IpAddressMember.Builder>... 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 to#ipAddresses(List.) - 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:
#ipAddresses(java.util.Collection)
-
osVersion
AssociatedHost.Builder osVersion(String 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.
-
-