Class PortState.Builder

  • Enclosing class:
    PortState

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

      • Builder

        public Builder()
      • Builder

        public Builder​(PortState defaults)
    • Method Detail

      • adminStateUp

        public PortState.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 PortState.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
      • allFixedIps

        public PortState.Builder allFixedIps​(@Nullable
                                             com.pulumi.core.Output<java.util.List<java.lang.String>> allFixedIps)
        Parameters:
        allFixedIps - The collection of Fixed IP addresses on the port in the order returned by the Network v2 API.
        Returns:
        builder
      • allFixedIps

        public PortState.Builder allFixedIps​(java.util.List<java.lang.String> allFixedIps)
        Parameters:
        allFixedIps - The collection of Fixed IP addresses on the port in the order returned by the Network v2 API.
        Returns:
        builder
      • allFixedIps

        public PortState.Builder allFixedIps​(java.lang.String... allFixedIps)
        Parameters:
        allFixedIps - The collection of Fixed IP addresses on the port in the order returned by the Network v2 API.
        Returns:
        builder
      • allSecurityGroupIds

        public PortState.Builder allSecurityGroupIds​(@Nullable
                                                     com.pulumi.core.Output<java.util.List<java.lang.String>> allSecurityGroupIds)
        Parameters:
        allSecurityGroupIds - The collection of Security Group IDs on the port which have been explicitly and implicitly added.
        Returns:
        builder
      • allSecurityGroupIds

        public PortState.Builder allSecurityGroupIds​(java.util.List<java.lang.String> allSecurityGroupIds)
        Parameters:
        allSecurityGroupIds - The collection of Security Group IDs on the port which have been explicitly and implicitly added.
        Returns:
        builder
      • allSecurityGroupIds

        public PortState.Builder allSecurityGroupIds​(java.lang.String... allSecurityGroupIds)
        Parameters:
        allSecurityGroupIds - The collection of Security Group IDs on the port which have been explicitly and implicitly added.
        Returns:
        builder
      • allTags

        public PortState.Builder allTags​(@Nullable
                                         com.pulumi.core.Output<java.util.List<java.lang.String>> allTags)
        Parameters:
        allTags - The collection of tags assigned on the port, which have been explicitly and implicitly added.
        Returns:
        builder
      • allTags

        public PortState.Builder allTags​(java.util.List<java.lang.String> allTags)
        Parameters:
        allTags - The collection of tags assigned on the port, which have been explicitly and implicitly added.
        Returns:
        builder
      • allTags

        public PortState.Builder allTags​(java.lang.String... allTags)
        Parameters:
        allTags - The collection of tags assigned on the port, which have been explicitly and implicitly added.
        Returns:
        builder
      • allowedAddressPairs

        public PortState.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 PortState.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 PortState.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 PortState.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 PortState.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 PortState.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 PortState.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 PortState.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 PortState.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 PortState.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 PortState.Builder deviceOwner​(java.lang.String deviceOwner)
        Parameters:
        deviceOwner - The device owner of the port. Changing this creates a new port.
        Returns:
        builder
      • dnsAssignments

        public PortState.Builder dnsAssignments​(@Nullable
                                                com.pulumi.core.Output<java.util.List<java.util.Map<java.lang.String,​java.lang.Object>>> dnsAssignments)
        Parameters:
        dnsAssignments - The list of maps representing port DNS assignments.
        Returns:
        builder
      • dnsAssignments

        public PortState.Builder dnsAssignments​(java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> dnsAssignments)
        Parameters:
        dnsAssignments - The list of maps representing port DNS assignments.
        Returns:
        builder
      • dnsAssignments

        public PortState.Builder dnsAssignments​(java.util.Map<java.lang.String,​java.lang.Object>... dnsAssignments)
        Parameters:
        dnsAssignments - The list of maps representing port DNS assignments.
        Returns:
        builder
      • dnsName

        public PortState.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 PortState.Builder dnsName​(java.lang.String dnsName)
        Parameters:
        dnsName - The port DNS name. Available, when Neutron DNS extension is enabled.
        Returns:
        builder
      • extraDhcpOptions

        public PortState.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 PortState.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 PortState.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 PortState.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 PortState.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 PortState.Builder fixedIps​(PortFixedIpArgs... fixedIps)
        Parameters:
        fixedIps - An array of desired IPs for this port. The structure is described below.
        Returns:
        builder
      • macAddress

        public PortState.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 PortState.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 PortState.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 PortState.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 PortState.Builder networkId​(@Nullable
                                           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 PortState.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 PortState.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 PortState.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 PortState.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 PortState.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 PortState.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 PortState.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 PortState.Builder qosPolicyId​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> qosPolicyId)
        Parameters:
        qosPolicyId - Reference to the associated QoS policy.
        Returns:
        builder
      • qosPolicyId

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

        public PortState.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 PortState.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 PortState.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 PortState.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 PortState.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 PortState.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 PortState.Builder tags​(java.util.List<java.lang.String> tags)
        Parameters:
        tags - A set of string tags for the port.
        Returns:
        builder
      • tags

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

        public PortState.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 PortState.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 PortState.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 PortState.Builder valueSpecs​(java.util.Map<java.lang.String,​java.lang.Object> valueSpecs)
        Parameters:
        valueSpecs - Map of additional options.
        Returns:
        builder