Class SubnetState.Builder
- java.lang.Object
-
- com.pulumi.openstack.networking.inputs.SubnetState.Builder
-
- Enclosing class:
- SubnetState
public static final class SubnetState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(SubnetState defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SubnetState.BuilderallocationPools(com.pulumi.core.Output<java.util.List<SubnetAllocationPoolArgs>> allocationPools)SubnetState.BuilderallocationPools(SubnetAllocationPoolArgs... allocationPools)SubnetState.BuilderallocationPools(java.util.List<SubnetAllocationPoolArgs> allocationPools)SubnetState.BuilderallocationPoolsCollection(com.pulumi.core.Output<java.util.List<SubnetAllocationPoolsCollectionArgs>> allocationPoolsCollection)Deprecated.use allocation_pool insteadSubnetState.BuilderallocationPoolsCollection(SubnetAllocationPoolsCollectionArgs... allocationPoolsCollection)Deprecated.use allocation_pool insteadSubnetState.BuilderallocationPoolsCollection(java.util.List<SubnetAllocationPoolsCollectionArgs> allocationPoolsCollection)Deprecated.use allocation_pool insteadSubnetState.BuilderallTags(com.pulumi.core.Output<java.util.List<java.lang.String>> allTags)SubnetState.BuilderallTags(java.lang.String... allTags)SubnetState.BuilderallTags(java.util.List<java.lang.String> allTags)SubnetStatebuild()SubnetState.Buildercidr(com.pulumi.core.Output<java.lang.String> cidr)SubnetState.Buildercidr(java.lang.String cidr)SubnetState.Builderdescription(com.pulumi.core.Output<java.lang.String> description)SubnetState.Builderdescription(java.lang.String description)SubnetState.BuilderdnsNameservers(com.pulumi.core.Output<java.util.List<java.lang.String>> dnsNameservers)SubnetState.BuilderdnsNameservers(java.lang.String... dnsNameservers)SubnetState.BuilderdnsNameservers(java.util.List<java.lang.String> dnsNameservers)SubnetState.BuilderenableDhcp(com.pulumi.core.Output<java.lang.Boolean> enableDhcp)SubnetState.BuilderenableDhcp(java.lang.Boolean enableDhcp)SubnetState.BuildergatewayIp(com.pulumi.core.Output<java.lang.String> gatewayIp)SubnetState.BuildergatewayIp(java.lang.String gatewayIp)SubnetState.BuilderhostRoutes(com.pulumi.core.Output<java.util.List<SubnetHostRouteArgs>> hostRoutes)Deprecated.Use openstack_networking_subnet_route_v2 insteadSubnetState.BuilderhostRoutes(SubnetHostRouteArgs... hostRoutes)Deprecated.Use openstack_networking_subnet_route_v2 insteadSubnetState.BuilderhostRoutes(java.util.List<SubnetHostRouteArgs> hostRoutes)Deprecated.Use openstack_networking_subnet_route_v2 insteadSubnetState.Builderipv6AddressMode(com.pulumi.core.Output<java.lang.String> ipv6AddressMode)SubnetState.Builderipv6AddressMode(java.lang.String ipv6AddressMode)SubnetState.Builderipv6RaMode(com.pulumi.core.Output<java.lang.String> ipv6RaMode)SubnetState.Builderipv6RaMode(java.lang.String ipv6RaMode)SubnetState.BuilderipVersion(com.pulumi.core.Output<java.lang.Integer> ipVersion)SubnetState.BuilderipVersion(java.lang.Integer ipVersion)SubnetState.Buildername(com.pulumi.core.Output<java.lang.String> name)SubnetState.Buildername(java.lang.String name)SubnetState.BuildernetworkId(com.pulumi.core.Output<java.lang.String> networkId)SubnetState.BuildernetworkId(java.lang.String networkId)SubnetState.BuildernoGateway(com.pulumi.core.Output<java.lang.Boolean> noGateway)SubnetState.BuildernoGateway(java.lang.Boolean noGateway)SubnetState.BuilderprefixLength(com.pulumi.core.Output<java.lang.Integer> prefixLength)SubnetState.BuilderprefixLength(java.lang.Integer prefixLength)SubnetState.Builderregion(com.pulumi.core.Output<java.lang.String> region)SubnetState.Builderregion(java.lang.String region)SubnetState.BuilderserviceTypes(com.pulumi.core.Output<java.util.List<java.lang.String>> serviceTypes)SubnetState.BuilderserviceTypes(java.lang.String... serviceTypes)SubnetState.BuilderserviceTypes(java.util.List<java.lang.String> serviceTypes)SubnetState.BuildersubnetpoolId(com.pulumi.core.Output<java.lang.String> subnetpoolId)SubnetState.BuildersubnetpoolId(java.lang.String subnetpoolId)SubnetState.Buildertags(com.pulumi.core.Output<java.util.List<java.lang.String>> tags)SubnetState.Buildertags(java.lang.String... tags)SubnetState.Buildertags(java.util.List<java.lang.String> tags)SubnetState.BuildertenantId(com.pulumi.core.Output<java.lang.String> tenantId)SubnetState.BuildertenantId(java.lang.String tenantId)SubnetState.BuildervalueSpecs(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.Object>> valueSpecs)SubnetState.BuildervalueSpecs(java.util.Map<java.lang.String,java.lang.Object> valueSpecs)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(SubnetState defaults)
-
-
Method Detail
-
allTags
public SubnetState.Builder allTags(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> allTags)
- Parameters:
allTags- The collection of ags assigned on the subnet, which have been explicitly and implicitly added.- Returns:
- builder
-
allTags
public SubnetState.Builder allTags(java.util.List<java.lang.String> allTags)
- Parameters:
allTags- The collection of ags assigned on the subnet, which have been explicitly and implicitly added.- Returns:
- builder
-
allTags
public SubnetState.Builder allTags(java.lang.String... allTags)
- Parameters:
allTags- The collection of ags assigned on the subnet, which have been explicitly and implicitly added.- Returns:
- builder
-
allocationPools
public SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.Builder networkId(@Nullable 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 SubnetState.Builder networkId(java.lang.String networkId)
- Parameters:
networkId- The UUID of the parent network. Changing this creates a new subnet.- Returns:
- builder
-
noGateway
public SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.Builder subnetpoolId(java.lang.String subnetpoolId)
- Parameters:
subnetpoolId- The ID of the subnetpool associated with the subnet.- Returns:
- builder
-
tags
public SubnetState.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 SubnetState.Builder tags(java.util.List<java.lang.String> tags)
- Parameters:
tags- A set of string tags for the subnet.- Returns:
- builder
-
tags
public SubnetState.Builder tags(java.lang.String... tags)
- Parameters:
tags- A set of string tags for the subnet.- Returns:
- builder
-
tenantId
public SubnetState.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 SubnetState.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 SubnetState.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 SubnetState.Builder valueSpecs(java.util.Map<java.lang.String,java.lang.Object> valueSpecs)
- Parameters:
valueSpecs- Map of additional options.- Returns:
- builder
-
build
public SubnetState build()
-
-