SubnetOverride Class
- java.
lang. Object - com.
azure. resourcemanager. devtestlabs. models. SubnetOverride
- com.
public final class SubnetOverride
Property overrides on a subnet of a virtual network.
Constructor Summary
Constructor | Description |
---|---|
SubnetOverride() |
Creates an instance of Subnet |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
labSubnetName()
Get the lab |
String |
resourceId()
Get the resource |
Subnet |
sharedPublicIpAddressConfiguration()
Get the shared |
Usage |
useInVmCreationPermission()
Get the use |
Usage |
usePublicIpAddressPermission()
Get the use |
void |
validate()
Validates the instance. |
String |
virtualNetworkPoolName()
Get the virtual |
Subnet |
withLabSubnetName(String labSubnetName)
Set the lab |
Subnet |
withResourceId(String resourceId)
Set the resource |
Subnet |
withSharedPublicIpAddressConfiguration(SubnetSharedPublicIpAddressConfiguration sharedPublicIpAddressConfiguration)
Set the shared |
Subnet |
withUseInVmCreationPermission(UsagePermissionType useInVmCreationPermission)
Set the use |
Subnet |
withUsePublicIpAddressPermission(UsagePermissionType usePublicIpAddressPermission)
Set the use |
Subnet |
withVirtualNetworkPoolName(String virtualNetworkPoolName)
Set the virtual |
Methods inherited from java.lang.Object
Constructor Details
SubnetOverride
public SubnetOverride()
Creates an instance of SubnetOverride class.
Method Details
labSubnetName
public String labSubnetName()
Get the labSubnetName property: The name given to the subnet within the lab.
Returns:
resourceId
public String resourceId()
Get the resourceId property: The resource ID of the subnet.
Returns:
sharedPublicIpAddressConfiguration
public SubnetSharedPublicIpAddressConfiguration sharedPublicIpAddressConfiguration()
Get the sharedPublicIpAddressConfiguration property: Properties that virtual machines on this subnet will share.
Returns:
useInVmCreationPermission
public UsagePermissionType useInVmCreationPermission()
Get the useInVmCreationPermission property: Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
Returns:
usePublicIpAddressPermission
public UsagePermissionType usePublicIpAddressPermission()
Get the usePublicIpAddressPermission property: Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
Returns:
validate
public void validate()
Validates the instance.
virtualNetworkPoolName
public String virtualNetworkPoolName()
Get the virtualNetworkPoolName property: The virtual network pool associated with this subnet.
Returns:
withLabSubnetName
public SubnetOverride withLabSubnetName(String labSubnetName)
Set the labSubnetName property: The name given to the subnet within the lab.
Parameters:
Returns:
withResourceId
public SubnetOverride withResourceId(String resourceId)
Set the resourceId property: The resource ID of the subnet.
Parameters:
Returns:
withSharedPublicIpAddressConfiguration
public SubnetOverride withSharedPublicIpAddressConfiguration(SubnetSharedPublicIpAddressConfiguration sharedPublicIpAddressConfiguration)
Set the sharedPublicIpAddressConfiguration property: Properties that virtual machines on this subnet will share.
Parameters:
Returns:
withUseInVmCreationPermission
public SubnetOverride withUseInVmCreationPermission(UsagePermissionType useInVmCreationPermission)
Set the useInVmCreationPermission property: Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
Parameters:
Returns:
withUsePublicIpAddressPermission
public SubnetOverride withUsePublicIpAddressPermission(UsagePermissionType usePublicIpAddressPermission)
Set the usePublicIpAddressPermission property: Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
Parameters:
Returns:
withVirtualNetworkPoolName
public SubnetOverride withVirtualNetworkPoolName(String virtualNetworkPoolName)
Set the virtualNetworkPoolName property: The virtual network pool associated with this subnet.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for