Interface Network.DefinitionStages.WithCreate
-
- All Superinterfaces:
com.microsoft.azure.management.resources.fluentcore.model.Creatable<Network>
,com.microsoft.azure.management.resources.fluentcore.arm.models.HasName
,com.microsoft.azure.management.resources.fluentcore.model.Indexable
,Network.DefinitionStages.WithDdosProtectionPlan
,Network.DefinitionStages.WithVmProtection
,com.microsoft.azure.management.resources.fluentcore.arm.models.Resource.DefinitionWithTags<Network.DefinitionStages.WithCreate>
- All Known Subinterfaces:
Network.Definition
,Network.DefinitionStages.WithCreateAndSubnet
- Enclosing interface:
- Network.DefinitionStages
public static interface Network.DefinitionStages.WithCreate extends com.microsoft.azure.management.resources.fluentcore.model.Creatable<Network>, com.microsoft.azure.management.resources.fluentcore.arm.models.Resource.DefinitionWithTags<Network.DefinitionStages.WithCreate>, Network.DefinitionStages.WithDdosProtectionPlan, Network.DefinitionStages.WithVmProtection
The stage of the virtual network definition which contains all the minimum required inputs for the resource to be created, but also allows for any other optional settings to be specified, except for adding subnets.Subnets can be added only right after the address space is explicitly specified.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.-
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Creatable
create, createAsync, createAsync
-
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasName
name
-
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Indexable
key
-
Methods inherited from interface com.microsoft.azure.management.network.Network.DefinitionStages.WithDdosProtectionPlan
withExistingDdosProtectionPlan, withNewDdosProtectionPlan
-
Methods inherited from interface com.microsoft.azure.management.network.Network.DefinitionStages.WithVmProtection
withVmProtection
-
-
-
-
Method Detail
-
withDnsServer
Network.DefinitionStages.WithCreate withDnsServer(String ipAddress)
Specifies the IP address of an existing DNS server to associate with the virtual network.Note this method's effect is additive, i.e. each time it is used, a new dns server is added to the network.
- Parameters:
ipAddress
- the IP address of the DNS server- Returns:
- the next stage of the definition
-
withAddressSpace
Network.DefinitionStages.WithCreateAndSubnet withAddressSpace(String cidr)
Explicitly adds an address space to the virtual network.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.
- Parameters:
cidr
- the CIDR representation of the address space- Returns:
- the next stage of the definition
-
-