Class CreateInstanceNetworkInterfaceOptions

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.CreateInstanceNetworkInterfaceOptions
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class CreateInstanceNetworkInterfaceOptions extends com.ibm.cloud.sdk.core.service.model.GenericModel
The createInstanceNetworkInterface options.
  • Method Details

    • newBuilder

      New builder.
      Returns:
      a CreateInstanceNetworkInterfaceOptions builder
    • instanceId

      public String instanceId()
      Gets the instanceId. The virtual server instance identifier.
      Returns:
      the instanceId
    • subnet

      public SubnetIdentity subnet()
      Gets the subnet. The associated subnet.
      Returns:
      the subnet
    • allowIpSpoofing

      public Boolean allowIpSpoofing()
      Gets the allowIpSpoofing. Indicates whether source IP spoofing is allowed on this instance network interface. If this instance has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and source IP spoofing is managed on the attached virtual network interface.
      Returns:
      the allowIpSpoofing
    • name

      public String name()
      Gets the name. The name for the instance network interface. The name must not be used by another network interface on the virtual server instance. If unspecified, the name will be a hyphenated list of randomly-selected words.
      Returns:
      the name
    • primaryIp

      public NetworkInterfaceIPPrototype primaryIp()
      Gets the primaryIp. The primary IP address to bind to the instance network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP. If an existing reserved IP or a prototype object with an address is specified, it must be available on the instance network interface's subnet. Otherwise, an available address on the subnet will be automatically selected and reserved.
      Returns:
      the primaryIp
    • securityGroups

      public List<SecurityGroupIdentity> securityGroups()
      Gets the securityGroups. The security groups to use for this instance network interface. If unspecified, the VPC's default security group is used.
      Returns:
      the securityGroups