Class FloatingIP.CreateBuilder

java.lang.Object
org.jclouds.openstack.neutron.v2.domain.FloatingIP.CreateBuilder
Enclosing class:
FloatingIP

public static class FloatingIP.CreateBuilder extends Object
  • Field Details

  • Method Details

    • build

      Returns:
      a CreateFloatingIP constructed with this Builder.
    • self

      protected FloatingIP.CreateBuilder self()
    • projectId

      public FloatingIP.CreateBuilder projectId(String projectId)
      Provide the project ID for this Floating IP.
      Returns:
      the Builder.
      See Also:
    • tenantId

      public FloatingIP.CreateBuilder tenantId(String tenantId)
      Provide the tenantId for this Floating IP. Admin-only. When keystone is enabled, it is not mandatory to specify tenant_id for resources in create requests, as the tenant identifier will be derived from the Authentication token. Please note that the default authorization settings only allow administrative users to create resources on behalf of a different tenant.
      Returns:
      the Builder.
      See Also:
    • floatingNetworkId

      public FloatingIP.CreateBuilder floatingNetworkId(String floatingNetworkId)
      Provides the floating network id for this Floating IP. Mandatory when creating a floating IP. Floating IPs can only be created on external networks. If the network specified by floating_network_id is not external (for example, router:external=false), a 400 error is returned.
      Returns:
      the Builder.
      See Also:
    • fixedIpAddress

      public FloatingIP.CreateBuilder fixedIpAddress(String fixedIpAddress)
      Provides the fixed ip address for this Floating IP. As an OpenStack Networking port might be associated with multiple IP addresses, the particular IP address to associate with the floating IP can be specified using the fixed_ip_address request body parameter. The default logic of this operation is to associate the floating IP with a single IP address configured on a port; hence, if a port has multiple IP addresses, it is mandatory to specify the fixed_ip_address attribute. If an invalid IP address is specified in fixed_ip_address a 400 error will be returned.
      Returns:
      the Builder.
      See Also:
    • portId

      public FloatingIP.CreateBuilder portId(String portId)
      Provides the port id for this Floating IP. Users can associate the floating IP with an internal port using the port_id attribute in the request body. If an invalid port identifier is specified, a 404 error will be returned. The internal OpenStack Networking port associated with the Floating IP must have at least an IP address configured, otherwise a 400 error will be returned.
      Returns:
      the Builder.
      See Also:
    • availabilityZone

      public FloatingIP.CreateBuilder availabilityZone(String availabilityZone)
      Provides the availability zone for this Floating IP.
      Returns:
      the Builder.
      See Also: