Class SubnetArgs.Builder

  • Enclosing class:
    SubnetArgs

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

      • Builder

        public Builder()
      • Builder

        public Builder​(SubnetArgs defaults)
    • Method Detail

      • allocationPools

        public SubnetArgs.Builder allocationPools​(@Nullable
                                                  com.pulumi.core.Output<java.util.List<SubnetAllocationPoolArgs>> allocationPools)
        Parameters:
        allocationPools - A block declaring the start and end range of the IP addresses available for use with DHCP in this subnet. Multiple `allocation_pool` blocks can be declared, providing the subnet with more than one range of IP addresses to use with DHCP. However, each IP range must be from the same CIDR that the subnet is part of. The `allocation_pool` block is documented below.
        Returns:
        builder
      • allocationPools

        public SubnetArgs.Builder allocationPools​(java.util.List<SubnetAllocationPoolArgs> allocationPools)
        Parameters:
        allocationPools - A block declaring the start and end range of the IP addresses available for use with DHCP in this subnet. Multiple `allocation_pool` blocks can be declared, providing the subnet with more than one range of IP addresses to use with DHCP. However, each IP range must be from the same CIDR that the subnet is part of. The `allocation_pool` block is documented below.
        Returns:
        builder
      • allocationPools

        public SubnetArgs.Builder allocationPools​(SubnetAllocationPoolArgs... allocationPools)
        Parameters:
        allocationPools - A block declaring the start and end range of the IP addresses available for use with DHCP in this subnet. Multiple `allocation_pool` blocks can be declared, providing the subnet with more than one range of IP addresses to use with DHCP. However, each IP range must be from the same CIDR that the subnet is part of. The `allocation_pool` block is documented below.
        Returns:
        builder
      • allocationPoolsCollection

        @Deprecated
        public SubnetArgs.Builder allocationPoolsCollection​(@Nullable
                                                            com.pulumi.core.Output<java.util.List<SubnetAllocationPoolsCollectionArgs>> allocationPoolsCollection)
        Deprecated.
        use allocation_pool instead
        Parameters:
        allocationPoolsCollection - A block declaring the start and end range of the IP addresses available for use with DHCP in this subnet. The `allocation_pools` block is documented below.
        Returns:
        builder
      • allocationPoolsCollection

        @Deprecated
        public SubnetArgs.Builder allocationPoolsCollection​(java.util.List<SubnetAllocationPoolsCollectionArgs> allocationPoolsCollection)
        Deprecated.
        use allocation_pool instead
        Parameters:
        allocationPoolsCollection - A block declaring the start and end range of the IP addresses available for use with DHCP in this subnet. The `allocation_pools` block is documented below.
        Returns:
        builder
      • allocationPoolsCollection

        @Deprecated
        public SubnetArgs.Builder allocationPoolsCollection​(SubnetAllocationPoolsCollectionArgs... allocationPoolsCollection)
        Deprecated.
        use allocation_pool instead
        Parameters:
        allocationPoolsCollection - A block declaring the start and end range of the IP addresses available for use with DHCP in this subnet. The `allocation_pools` block is documented below.
        Returns:
        builder
      • cidr

        public SubnetArgs.Builder cidr​(@Nullable
                                       com.pulumi.core.Output<java.lang.String> cidr)
        Parameters:
        cidr - CIDR representing IP range for this subnet, based on IP version. You can omit this option if you are creating a subnet from a subnet pool.
        Returns:
        builder
      • cidr

        public SubnetArgs.Builder cidr​(java.lang.String cidr)
        Parameters:
        cidr - CIDR representing IP range for this subnet, based on IP version. You can omit this option if you are creating a subnet from a subnet pool.
        Returns:
        builder
      • description

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

        public SubnetArgs.Builder description​(java.lang.String description)
        Parameters:
        description - Human-readable description of the subnet. Changing this updates the name of the existing subnet.
        Returns:
        builder
      • dnsNameservers

        public SubnetArgs.Builder dnsNameservers​(@Nullable
                                                 com.pulumi.core.Output<java.util.List<java.lang.String>> dnsNameservers)
        Parameters:
        dnsNameservers - An array of DNS name server names used by hosts in this subnet. Changing this updates the DNS name servers for the existing subnet.
        Returns:
        builder
      • dnsNameservers

        public SubnetArgs.Builder dnsNameservers​(java.util.List<java.lang.String> dnsNameservers)
        Parameters:
        dnsNameservers - An array of DNS name server names used by hosts in this subnet. Changing this updates the DNS name servers for the existing subnet.
        Returns:
        builder
      • dnsNameservers

        public SubnetArgs.Builder dnsNameservers​(java.lang.String... dnsNameservers)
        Parameters:
        dnsNameservers - An array of DNS name server names used by hosts in this subnet. Changing this updates the DNS name servers for the existing subnet.
        Returns:
        builder
      • enableDhcp

        public SubnetArgs.Builder enableDhcp​(@Nullable
                                             com.pulumi.core.Output<java.lang.Boolean> enableDhcp)
        Parameters:
        enableDhcp - The administrative state of the network. Acceptable values are "true" and "false". Changing this value enables or disables the DHCP capabilities of the existing subnet. Defaults to true.
        Returns:
        builder
      • enableDhcp

        public SubnetArgs.Builder enableDhcp​(java.lang.Boolean enableDhcp)
        Parameters:
        enableDhcp - The administrative state of the network. Acceptable values are "true" and "false". Changing this value enables or disables the DHCP capabilities of the existing subnet. Defaults to true.
        Returns:
        builder
      • gatewayIp

        public SubnetArgs.Builder gatewayIp​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> gatewayIp)
        Parameters:
        gatewayIp - Default gateway used by devices in this subnet. Leaving this blank and not setting `no_gateway` will cause a default gateway of `.1` to be used. Changing this updates the gateway IP of the existing subnet.
        Returns:
        builder
      • gatewayIp

        public SubnetArgs.Builder gatewayIp​(java.lang.String gatewayIp)
        Parameters:
        gatewayIp - Default gateway used by devices in this subnet. Leaving this blank and not setting `no_gateway` will cause a default gateway of `.1` to be used. Changing this updates the gateway IP of the existing subnet.
        Returns:
        builder
      • hostRoutes

        @Deprecated
        public SubnetArgs.Builder hostRoutes​(@Nullable
                                             com.pulumi.core.Output<java.util.List<SubnetHostRouteArgs>> hostRoutes)
        Deprecated.
        Use openstack_networking_subnet_route_v2 instead
        Parameters:
        hostRoutes - (**Deprecated** - use `openstack.networking.SubnetRoute` instead) An array of routes that should be used by devices with IPs from this subnet (not including local subnet route). The host_route object structure is documented below. Changing this updates the host routes for the existing subnet.
        Returns:
        builder
      • hostRoutes

        @Deprecated
        public SubnetArgs.Builder hostRoutes​(java.util.List<SubnetHostRouteArgs> hostRoutes)
        Deprecated.
        Use openstack_networking_subnet_route_v2 instead
        Parameters:
        hostRoutes - (**Deprecated** - use `openstack.networking.SubnetRoute` instead) An array of routes that should be used by devices with IPs from this subnet (not including local subnet route). The host_route object structure is documented below. Changing this updates the host routes for the existing subnet.
        Returns:
        builder
      • hostRoutes

        @Deprecated
        public SubnetArgs.Builder hostRoutes​(SubnetHostRouteArgs... hostRoutes)
        Deprecated.
        Use openstack_networking_subnet_route_v2 instead
        Parameters:
        hostRoutes - (**Deprecated** - use `openstack.networking.SubnetRoute` instead) An array of routes that should be used by devices with IPs from this subnet (not including local subnet route). The host_route object structure is documented below. Changing this updates the host routes for the existing subnet.
        Returns:
        builder
      • ipVersion

        public SubnetArgs.Builder ipVersion​(@Nullable
                                            com.pulumi.core.Output<java.lang.Integer> ipVersion)
        Parameters:
        ipVersion - IP version, either 4 (default) or 6. Changing this creates a new subnet.
        Returns:
        builder
      • ipVersion

        public SubnetArgs.Builder ipVersion​(java.lang.Integer ipVersion)
        Parameters:
        ipVersion - IP version, either 4 (default) or 6. Changing this creates a new subnet.
        Returns:
        builder
      • ipv6AddressMode

        public SubnetArgs.Builder ipv6AddressMode​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> ipv6AddressMode)
        Parameters:
        ipv6AddressMode - The IPv6 address mode. Valid values are `dhcpv6-stateful`, `dhcpv6-stateless`, or `slaac`.
        Returns:
        builder
      • ipv6AddressMode

        public SubnetArgs.Builder ipv6AddressMode​(java.lang.String ipv6AddressMode)
        Parameters:
        ipv6AddressMode - The IPv6 address mode. Valid values are `dhcpv6-stateful`, `dhcpv6-stateless`, or `slaac`.
        Returns:
        builder
      • ipv6RaMode

        public SubnetArgs.Builder ipv6RaMode​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> ipv6RaMode)
        Parameters:
        ipv6RaMode - The IPv6 Router Advertisement mode. Valid values are `dhcpv6-stateful`, `dhcpv6-stateless`, or `slaac`.
        Returns:
        builder
      • ipv6RaMode

        public SubnetArgs.Builder ipv6RaMode​(java.lang.String ipv6RaMode)
        Parameters:
        ipv6RaMode - The IPv6 Router Advertisement mode. Valid values are `dhcpv6-stateful`, `dhcpv6-stateless`, or `slaac`.
        Returns:
        builder
      • name

        public SubnetArgs.Builder name​(@Nullable
                                       com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - The name of the subnet. Changing this updates the name of the existing subnet.
        Returns:
        builder
      • name

        public SubnetArgs.Builder name​(java.lang.String name)
        Parameters:
        name - The name of the subnet. Changing this updates the name of the existing subnet.
        Returns:
        builder
      • networkId

        public SubnetArgs.Builder networkId​(com.pulumi.core.Output<java.lang.String> networkId)
        Parameters:
        networkId - The UUID of the parent network. Changing this creates a new subnet.
        Returns:
        builder
      • networkId

        public SubnetArgs.Builder networkId​(java.lang.String networkId)
        Parameters:
        networkId - The UUID of the parent network. Changing this creates a new subnet.
        Returns:
        builder
      • noGateway

        public SubnetArgs.Builder noGateway​(@Nullable
                                            com.pulumi.core.Output<java.lang.Boolean> noGateway)
        Parameters:
        noGateway - Do not set a gateway IP on this subnet. Changing this removes or adds a default gateway IP of the existing subnet.
        Returns:
        builder
      • noGateway

        public SubnetArgs.Builder noGateway​(java.lang.Boolean noGateway)
        Parameters:
        noGateway - Do not set a gateway IP on this subnet. Changing this removes or adds a default gateway IP of the existing subnet.
        Returns:
        builder
      • prefixLength

        public SubnetArgs.Builder prefixLength​(@Nullable
                                               com.pulumi.core.Output<java.lang.Integer> prefixLength)
        Parameters:
        prefixLength - The prefix length to use when creating a subnet from a subnet pool. The default subnet pool prefix length that was defined when creating the subnet pool will be used if not provided. Changing this creates a new subnet.
        Returns:
        builder
      • prefixLength

        public SubnetArgs.Builder prefixLength​(java.lang.Integer prefixLength)
        Parameters:
        prefixLength - The prefix length to use when creating a subnet from a subnet pool. The default subnet pool prefix length that was defined when creating the subnet pool will be used if not provided. Changing this creates a new subnet.
        Returns:
        builder
      • region

        public SubnetArgs.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 Neutron subnet. If omitted, the `region` argument of the provider is used. Changing this creates a new subnet.
        Returns:
        builder
      • region

        public SubnetArgs.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 Neutron subnet. If omitted, the `region` argument of the provider is used. Changing this creates a new subnet.
        Returns:
        builder
      • serviceTypes

        public SubnetArgs.Builder serviceTypes​(@Nullable
                                               com.pulumi.core.Output<java.util.List<java.lang.String>> serviceTypes)
        Parameters:
        serviceTypes - An array of service types used by the subnet. Changing this updates the service types for the existing subnet.
        Returns:
        builder
      • serviceTypes

        public SubnetArgs.Builder serviceTypes​(java.util.List<java.lang.String> serviceTypes)
        Parameters:
        serviceTypes - An array of service types used by the subnet. Changing this updates the service types for the existing subnet.
        Returns:
        builder
      • serviceTypes

        public SubnetArgs.Builder serviceTypes​(java.lang.String... serviceTypes)
        Parameters:
        serviceTypes - An array of service types used by the subnet. Changing this updates the service types for the existing subnet.
        Returns:
        builder
      • subnetpoolId

        public SubnetArgs.Builder subnetpoolId​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> subnetpoolId)
        Parameters:
        subnetpoolId - The ID of the subnetpool associated with the subnet.
        Returns:
        builder
      • subnetpoolId

        public SubnetArgs.Builder subnetpoolId​(java.lang.String subnetpoolId)
        Parameters:
        subnetpoolId - The ID of the subnetpool associated with the subnet.
        Returns:
        builder
      • tags

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

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

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

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

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

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