Class HostReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.ec2.HostReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HostReference>
- Enclosing interface:
HostReference
@Stability(Stable)
public static final class HostReference.Builder
extends Object
implements software.amazon.jsii.Builder<HostReference>
A builder for
HostReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofHostReference.getHostId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hostId
Sets the value ofHostReference.getHostId()- Parameters:
hostId- The HostId of the Host resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HostReference>- Returns:
- a new instance of
HostReference - Throws:
NullPointerException- if any required attribute was not provided
-