Class CreateVirtualNetworkInterfaceOptions

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

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

    • newBuilder

      New builder.
      Returns:
      a CreateVirtualNetworkInterfaceOptions builder
    • allowIpSpoofing

      public Boolean allowIpSpoofing()
      Gets the allowIpSpoofing. Indicates whether source IP spoofing is allowed on this interface. If `false`, source IP spoofing is prevented on this interface. If `true`, source IP spoofing is allowed on this interface.
      Returns:
      the allowIpSpoofing
    • autoDelete

      public Boolean autoDelete()
      Gets the autoDelete. Indicates whether this virtual network interface will be automatically deleted when `target` is deleted. Must be `false` if the virtual network interface is unbound.
      Returns:
      the autoDelete
    • enableInfrastructureNat

      public Boolean enableInfrastructureNat()
      Gets the enableInfrastructureNat. If `true`: - The VPC infrastructure performs any needed NAT operations. - `floating_ips` must not have more than one floating IP. If `false`: - Packets are passed unchanged to/from the virtual network interface, allowing the workload to perform any needed NAT operations. - `allow_ip_spoofing` must be `false`. - Can only be attached to a `target` with a `resource_type` of `bare_metal_server_network_attachment`.
      Returns:
      the enableInfrastructureNat
    • ips

      Gets the ips. Additional IP addresses to bind to the virtual network interface. Each item may be either a reserved IP identity, or a reserved IP prototype object which will be used to create a new reserved IP. All IP addresses must be in the primary IP's subnet. If reserved IP identities are provided, the specified reserved IPs must be unbound. If reserved IP prototype objects with addresses are provided, the addresses must be available on the virtual network interface's subnet. For any prototype objects that do not specify an address, an available address on the subnet will be automatically selected and reserved.
      Returns:
      the ips
    • name

      public String name()
      Gets the name. The name for this virtual network interface. The name must not be used by another virtual network interface in the VPC. If unspecified, the name will be a hyphenated list of randomly-selected words. Names beginning with `ibm-` are reserved for provider-owned resources, and are not allowed.
      Returns:
      the name
    • primaryIp

      Gets the primaryIp. The primary IP address to bind to the virtual network interface. May be either a reserved IP identity, or a reserved IP prototype object which will be used to create a new reserved IP. If a reserved IP identity is provided, the specified reserved IP must be unbound. If a reserved IP prototype object with an address is provided, the address must be available on the virtual network interface's subnet. If no address is specified, an available address on the subnet will be automatically selected and reserved.
      Returns:
      the primaryIp
    • protocolStateFilteringMode

      public String protocolStateFilteringMode()
      Gets the protocolStateFilteringMode. The protocol state filtering mode to use for this virtual network interface. If `auto`, protocol state packet filtering is enabled or disabled based on the virtual network interface's `target` resource type: - `bare_metal_server_network_attachment`: disabled - `instance_network_attachment`: enabled - `share_mount_target`: enabled Protocol state filtering monitors each network connection flowing over this virtual network interface, and drops any packets that are invalid based on the current connection state and protocol. See [Protocol state filtering mode](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#protocol-state-filtering) for more information.
      Returns:
      the protocolStateFilteringMode
    • resourceGroup

      public ResourceGroupIdentity resourceGroup()
      Gets the resourceGroup. The resource group to use. If unspecified, the account's [default resource group](https://cloud.ibm.com/apidocs/resource-manager#introduction) will be used.
      Returns:
      the resourceGroup
    • securityGroups

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

      public SubnetIdentity subnet()
      Gets the subnet. The associated subnet. Required if `primary_ip` does not specify a reserved IP identity.
      Returns:
      the subnet