Class CreateInstanceNetworkAttachmentOptions
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.CreateInstanceNetworkAttachmentOptions
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class CreateInstanceNetworkAttachmentOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The createInstanceNetworkAttachment options.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder. -
Method Summary
Modifier and TypeMethodDescriptionGets the instanceId.name()
Gets the name.New builder.Gets the virtualNetworkInterface.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a CreateInstanceNetworkAttachmentOptions builder
-
instanceId
Gets the instanceId. The virtual server instance identifier.- Returns:
- the instanceId
-
virtualNetworkInterface
Gets the virtualNetworkInterface. A virtual network interface for the instance network attachment. This can be specified using an existing virtual network interface, or a prototype object for a new virtual network interface. If an existing virtual network interface is specified, `enable_infrastructure_nat` must be `true`.- Returns:
- the virtualNetworkInterface
-
name
Gets the name. The name for this network attachment. Names must be unique within the instance the network attachment resides in. If unspecified, the name will be a hyphenated list of randomly-selected words.- Returns:
- the name
-