Class PortArgs.Builder

  • Enclosing class:
    PortArgs

    public static final class PortArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
      • Builder

        public Builder​(PortArgs defaults)
    • Method Detail

      • adminStateUp

        public PortArgs.Builder adminStateUp​(@Nullable
                                             com.pulumi.core.Output<java.lang.Boolean> adminStateUp)
        Parameters:
        adminStateUp - Administrative up/down status for the port (must be `true` or `false` if provided). Changing this updates the `admin_state_up` of an existing port.
        Returns:
        builder
      • adminStateUp

        public PortArgs.Builder adminStateUp​(java.lang.Boolean adminStateUp)
        Parameters:
        adminStateUp - Administrative up/down status for the port (must be `true` or `false` if provided). Changing this updates the `admin_state_up` of an existing port.
        Returns:
        builder
      • allowedAddressPairs

        public PortArgs.Builder allowedAddressPairs​(@Nullable
                                                    com.pulumi.core.Output<java.util.List<PortAllowedAddressPairArgs>> allowedAddressPairs)
        Parameters:
        allowedAddressPairs - An IP/MAC Address pair of additional IP addresses that can be active on this port. The structure is described below.
        Returns:
        builder
      • allowedAddressPairs

        public PortArgs.Builder allowedAddressPairs​(java.util.List<PortAllowedAddressPairArgs> allowedAddressPairs)
        Parameters:
        allowedAddressPairs - An IP/MAC Address pair of additional IP addresses that can be active on this port. The structure is described below.
        Returns:
        builder
      • allowedAddressPairs

        public PortArgs.Builder allowedAddressPairs​(PortAllowedAddressPairArgs... allowedAddressPairs)
        Parameters:
        allowedAddressPairs - An IP/MAC Address pair of additional IP addresses that can be active on this port. The structure is described below.
        Returns:
        builder
      • binding

        public PortArgs.Builder binding​(@Nullable
                                        com.pulumi.core.Output<PortBindingArgs> binding)
        Parameters:
        binding - The port binding allows to specify binding information for the port. The structure is described below.
        Returns:
        builder
      • binding

        public PortArgs.Builder binding​(PortBindingArgs binding)
        Parameters:
        binding - The port binding allows to specify binding information for the port. The structure is described below.
        Returns:
        builder
      • description

        public PortArgs.Builder description​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - Human-readable description of the port. Changing this updates the `description` of an existing port.
        Returns:
        builder
      • description

        public PortArgs.Builder description​(java.lang.String description)
        Parameters:
        description - Human-readable description of the port. Changing this updates the `description` of an existing port.
        Returns:
        builder
      • deviceId

        public PortArgs.Builder deviceId​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> deviceId)
        Parameters:
        deviceId - The ID of the device attached to the port. Changing this creates a new port.
        Returns:
        builder
      • deviceId

        public PortArgs.Builder deviceId​(java.lang.String deviceId)
        Parameters:
        deviceId - The ID of the device attached to the port. Changing this creates a new port.
        Returns:
        builder
      • deviceOwner

        public PortArgs.Builder deviceOwner​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> deviceOwner)
        Parameters:
        deviceOwner - The device owner of the port. Changing this creates a new port.
        Returns:
        builder
      • deviceOwner

        public PortArgs.Builder deviceOwner​(java.lang.String deviceOwner)
        Parameters:
        deviceOwner - The device owner of the port. Changing this creates a new port.
        Returns:
        builder
      • dnsName

        public PortArgs.Builder dnsName​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> dnsName)
        Parameters:
        dnsName - The port DNS name. Available, when Neutron DNS extension is enabled.
        Returns:
        builder
      • dnsName

        public PortArgs.Builder dnsName​(java.lang.String dnsName)
        Parameters:
        dnsName - The port DNS name. Available, when Neutron DNS extension is enabled.
        Returns:
        builder
      • extraDhcpOptions

        public PortArgs.Builder extraDhcpOptions​(@Nullable
                                                 com.pulumi.core.Output<java.util.List<PortExtraDhcpOptionArgs>> extraDhcpOptions)
        Parameters:
        extraDhcpOptions - An extra DHCP option that needs to be configured on the port. The structure is described below. Can be specified multiple times.
        Returns:
        builder
      • extraDhcpOptions

        public PortArgs.Builder extraDhcpOptions​(java.util.List<PortExtraDhcpOptionArgs> extraDhcpOptions)
        Parameters:
        extraDhcpOptions - An extra DHCP option that needs to be configured on the port. The structure is described below. Can be specified multiple times.
        Returns:
        builder
      • extraDhcpOptions

        public PortArgs.Builder extraDhcpOptions​(PortExtraDhcpOptionArgs... extraDhcpOptions)
        Parameters:
        extraDhcpOptions - An extra DHCP option that needs to be configured on the port. The structure is described below. Can be specified multiple times.
        Returns:
        builder
      • fixedIps

        public PortArgs.Builder fixedIps​(@Nullable
                                         com.pulumi.core.Output<java.util.List<PortFixedIpArgs>> fixedIps)
        Parameters:
        fixedIps - An array of desired IPs for this port. The structure is described below.
        Returns:
        builder
      • fixedIps

        public PortArgs.Builder fixedIps​(java.util.List<PortFixedIpArgs> fixedIps)
        Parameters:
        fixedIps - An array of desired IPs for this port. The structure is described below.
        Returns:
        builder
      • fixedIps

        public PortArgs.Builder fixedIps​(PortFixedIpArgs... fixedIps)
        Parameters:
        fixedIps - An array of desired IPs for this port. The structure is described below.
        Returns:
        builder
      • macAddress

        public PortArgs.Builder macAddress​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> macAddress)
        Parameters:
        macAddress - Specify a specific MAC address for the port. Changing this creates a new port.
        Returns:
        builder
      • macAddress

        public PortArgs.Builder macAddress​(java.lang.String macAddress)
        Parameters:
        macAddress - Specify a specific MAC address for the port. Changing this creates a new port.
        Returns:
        builder
      • name

        public PortArgs.Builder name​(@Nullable
                                     com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - A unique name for the port. Changing this updates the `name` of an existing port.
        Returns:
        builder
      • name

        public PortArgs.Builder name​(java.lang.String name)
        Parameters:
        name - A unique name for the port. Changing this updates the `name` of an existing port.
        Returns:
        builder
      • networkId

        public PortArgs.Builder networkId​(com.pulumi.core.Output<java.lang.String> networkId)
        Parameters:
        networkId - The ID of the network to attach the port to. Changing this creates a new port.
        Returns:
        builder
      • networkId

        public PortArgs.Builder networkId​(java.lang.String networkId)
        Parameters:
        networkId - The ID of the network to attach the port to. Changing this creates a new port.
        Returns:
        builder
      • noFixedIp

        public PortArgs.Builder noFixedIp​(@Nullable
                                          com.pulumi.core.Output<java.lang.Boolean> noFixedIp)
        Parameters:
        noFixedIp - Create a port with no fixed IP address. This will also remove any fixed IPs previously set on a port. `true` is the only valid value for this argument.
        Returns:
        builder
      • noFixedIp

        public PortArgs.Builder noFixedIp​(java.lang.Boolean noFixedIp)
        Parameters:
        noFixedIp - Create a port with no fixed IP address. This will also remove any fixed IPs previously set on a port. `true` is the only valid value for this argument.
        Returns:
        builder
      • noSecurityGroups

        public PortArgs.Builder noSecurityGroups​(@Nullable
                                                 com.pulumi.core.Output<java.lang.Boolean> noSecurityGroups)
        Parameters:
        noSecurityGroups - If set to `true`, then no security groups are applied to the port. If set to `false` and no `security_group_ids` are specified, then the port will yield to the default behavior of the Networking service, which is to usually apply the "default" security group.
        Returns:
        builder
      • noSecurityGroups

        public PortArgs.Builder noSecurityGroups​(java.lang.Boolean noSecurityGroups)
        Parameters:
        noSecurityGroups - If set to `true`, then no security groups are applied to the port. If set to `false` and no `security_group_ids` are specified, then the port will yield to the default behavior of the Networking service, which is to usually apply the "default" security group.
        Returns:
        builder
      • portSecurityEnabled

        public PortArgs.Builder portSecurityEnabled​(@Nullable
                                                    com.pulumi.core.Output<java.lang.Boolean> portSecurityEnabled)
        Parameters:
        portSecurityEnabled - Whether to explicitly enable or disable port security on the port. Port Security is usually enabled by default, so omitting argument will usually result in a value of `true`. Setting this explicitly to `false` will disable port security. In order to disable port security, the port must not have any security groups. Valid values are `true` and `false`.
        Returns:
        builder
      • portSecurityEnabled

        public PortArgs.Builder portSecurityEnabled​(java.lang.Boolean portSecurityEnabled)
        Parameters:
        portSecurityEnabled - Whether to explicitly enable or disable port security on the port. Port Security is usually enabled by default, so omitting argument will usually result in a value of `true`. Setting this explicitly to `false` will disable port security. In order to disable port security, the port must not have any security groups. Valid values are `true` and `false`.
        Returns:
        builder
      • qosPolicyId

        public PortArgs.Builder qosPolicyId​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> qosPolicyId)
        Parameters:
        qosPolicyId - Reference to the associated QoS policy.
        Returns:
        builder
      • qosPolicyId

        public PortArgs.Builder qosPolicyId​(java.lang.String qosPolicyId)
        Parameters:
        qosPolicyId - Reference to the associated QoS policy.
        Returns:
        builder
      • region

        public PortArgs.Builder region​(@Nullable
                                       com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - The region in which to obtain the V2 Networking client. A Networking client is needed to create a port. If omitted, the `region` argument of the provider is used. Changing this creates a new port.
        Returns:
        builder
      • region

        public PortArgs.Builder region​(java.lang.String region)
        Parameters:
        region - The region in which to obtain the V2 Networking client. A Networking client is needed to create a port. If omitted, the `region` argument of the provider is used. Changing this creates a new port.
        Returns:
        builder
      • securityGroupIds

        public PortArgs.Builder securityGroupIds​(@Nullable
                                                 com.pulumi.core.Output<java.util.List<java.lang.String>> securityGroupIds)
        Parameters:
        securityGroupIds - A list of security group IDs to apply to the port. The security groups must be specified by ID and not name (as opposed to how they are configured with the Compute Instance).
        Returns:
        builder
      • securityGroupIds

        public PortArgs.Builder securityGroupIds​(java.util.List<java.lang.String> securityGroupIds)
        Parameters:
        securityGroupIds - A list of security group IDs to apply to the port. The security groups must be specified by ID and not name (as opposed to how they are configured with the Compute Instance).
        Returns:
        builder
      • securityGroupIds

        public PortArgs.Builder securityGroupIds​(java.lang.String... securityGroupIds)
        Parameters:
        securityGroupIds - A list of security group IDs to apply to the port. The security groups must be specified by ID and not name (as opposed to how they are configured with the Compute Instance).
        Returns:
        builder
      • tags

        public PortArgs.Builder tags​(@Nullable
                                     com.pulumi.core.Output<java.util.List<java.lang.String>> tags)
        Parameters:
        tags - A set of string tags for the port.
        Returns:
        builder
      • tags

        public PortArgs.Builder tags​(java.util.List<java.lang.String> tags)
        Parameters:
        tags - A set of string tags for the port.
        Returns:
        builder
      • tags

        public PortArgs.Builder tags​(java.lang.String... tags)
        Parameters:
        tags - A set of string tags for the port.
        Returns:
        builder
      • tenantId

        public PortArgs.Builder tenantId​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> tenantId)
        Parameters:
        tenantId - The owner of the port. Required if admin wants to create a port for another tenant. Changing this creates a new port.
        Returns:
        builder
      • tenantId

        public PortArgs.Builder tenantId​(java.lang.String tenantId)
        Parameters:
        tenantId - The owner of the port. Required if admin wants to create a port for another tenant. Changing this creates a new port.
        Returns:
        builder
      • valueSpecs

        public PortArgs.Builder valueSpecs​(@Nullable
                                           com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.Object>> valueSpecs)
        Parameters:
        valueSpecs - Map of additional options.
        Returns:
        builder
      • valueSpecs

        public PortArgs.Builder valueSpecs​(java.util.Map<java.lang.String,​java.lang.Object> valueSpecs)
        Parameters:
        valueSpecs - Map of additional options.
        Returns:
        builder