public static interface Network.DefinitionStages.WithCreate extends Creatable<Network>, Resource.DefinitionWithTags<Network.DefinitionStages.WithCreate>, Network.DefinitionStages.WithDdosProtectionPlan, Network.DefinitionStages.WithVmProtection
Subnets can be added only right after the address space is explicitly specified.
Modifier and Type | Method and Description |
---|---|
Network.DefinitionStages.WithCreateAndSubnet |
withAddressSpace(String cidr)
Explicitly adds an address space to the virtual network.
|
Network.DefinitionStages.WithCreate |
withDnsServer(String ipAddress)
Specifies the IP address of an existing DNS server to associate with the virtual network.
|
create, createAsync, createAsync
key
name
withTag, withTags
withExistingDdosProtectionPlan, withNewDdosProtectionPlan
withVmProtection
Network.DefinitionStages.WithCreate withDnsServer(String ipAddress)
Note this method's effect is additive, i.e. each time it is used, a new dns server is added to the network.
ipAddress
- the IP address of the DNS serverNetwork.DefinitionStages.WithCreateAndSubnet withAddressSpace(String cidr)
If no address spaces are explicitly specified, a default address space with the CIDR "10.0.0.0/16" will be assigned to the virtual network.
Note that this method's effect is additive, i.e. each time it is used, a new address space is added to the network. This method does not check for conflicts or overlaps with other address spaces. If there is a conflict, a cloud exception may be thrown at the time the network is created.
cidr
- the CIDR representation of the address spaceCopyright © 2019. All rights reserved.