Class AwsSecondaryNetworkInterface.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<AwsSecondaryNetworkInterface>
co.yellowdog.platform.model.AwsSecondaryNetworkInterface.Builder
- Enclosing class:
AwsSecondaryNetworkInterface
public static class AwsSecondaryNetworkInterface.Builder
extends ValidatedBuilder<AwsSecondaryNetworkInterface>
A builder that can be used to build a new AwsSecondaryNetworkInterface that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionBuilds the object without enforcing validation constraints.networkInterfaceType
(AwsNetworkInterfaceType networkInterfaceType) Determines the type of the network interface.securityGroupId
(String securityGroupId) Optional securityGroupId for this network interface.Optional subnetId for this network interface.toString()
Methods inherited from class co.yellowdog.platform.model.builders.ValidatedBuilder
build, validate
-
Method Details
-
networkInterfaceType
public AwsSecondaryNetworkInterface.Builder networkInterfaceType(AwsNetworkInterfaceType networkInterfaceType) Determines the type of the network interface.- Returns:
this
.
-
subnetId
Optional subnetId for this network interface. If not specified the subnetId of the parent source is used.- Returns:
this
.
-
securityGroupId
Optional securityGroupId for this network interface. If not specified the subnetId of the parent source is used.- Returns:
this
.
-
buildUnchecked
Description copied from class:ValidatedBuilder
Builds the object without enforcing validation constraints. This should only be used for testing purposes- Overrides:
buildUnchecked
in classValidatedBuilder<AwsSecondaryNetworkInterface>
- Returns:
- the object being built
-
toString
-