Package com.ibm.cloud.is.vpc.v1.model
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 Classes Modifier and Type Class Description static class
CreateInstanceNetworkAttachmentOptions.Builder
Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
instanceId()
Gets the instanceId.String
name()
Gets the name.CreateInstanceNetworkAttachmentOptions.Builder
newBuilder()
New builder.InstanceNetworkAttachmentPrototypeVirtualNetworkInterface
virtualNetworkInterface()
Gets the virtualNetworkInterface.
-
-
-
Method Detail
-
newBuilder
public CreateInstanceNetworkAttachmentOptions.Builder newBuilder()
New builder.- Returns:
- a CreateInstanceNetworkAttachmentOptions builder
-
instanceId
public String instanceId()
Gets the instanceId. The virtual server instance identifier.- Returns:
- the instanceId
-
virtualNetworkInterface
public InstanceNetworkAttachmentPrototypeVirtualNetworkInterface 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
public String 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
-
-