SubnetOverride Class

  • java.lang.Object
    • com.azure.resourcemanager.devtestlabs.models.SubnetOverride

public final class SubnetOverride

Property overrides on a subnet of a virtual network.

Constructor Summary

Constructor Description
SubnetOverride()

Creates an instance of SubnetOverride class.

Method Summary

Modifier and Type Method and Description
String labSubnetName()

Get the labSubnetName property: The name given to the subnet within the lab.

String resourceId()

Get the resourceId property: The resource ID of the subnet.

SubnetSharedPublicIpAddressConfiguration sharedPublicIpAddressConfiguration()

Get the sharedPublicIpAddressConfiguration property: Properties that virtual machines on this subnet will share.

UsagePermissionType useInVmCreationPermission()

Get the useInVmCreationPermission property: Indicates whether this subnet can be used during virtual machine creation (i.e.

UsagePermissionType usePublicIpAddressPermission()

Get the usePublicIpAddressPermission property: Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e.

void validate()

Validates the instance.

String virtualNetworkPoolName()

Get the virtualNetworkPoolName property: The virtual network pool associated with this subnet.

SubnetOverride withLabSubnetName(String labSubnetName)

Set the labSubnetName property: The name given to the subnet within the lab.

SubnetOverride withResourceId(String resourceId)

Set the resourceId property: The resource ID of the subnet.

SubnetOverride withSharedPublicIpAddressConfiguration(SubnetSharedPublicIpAddressConfiguration sharedPublicIpAddressConfiguration)

Set the sharedPublicIpAddressConfiguration property: Properties that virtual machines on this subnet will share.

SubnetOverride withUseInVmCreationPermission(UsagePermissionType useInVmCreationPermission)

Set the useInVmCreationPermission property: Indicates whether this subnet can be used during virtual machine creation (i.e.

SubnetOverride withUsePublicIpAddressPermission(UsagePermissionType usePublicIpAddressPermission)

Set the usePublicIpAddressPermission property: Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e.

SubnetOverride withVirtualNetworkPoolName(String virtualNetworkPoolName)

Set the virtualNetworkPoolName property: The virtual network pool associated with this subnet.

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:

the labSubnetName value.

resourceId

public String resourceId()

Get the resourceId property: The resource ID of the subnet.

Returns:

the resourceId value.

sharedPublicIpAddressConfiguration

public SubnetSharedPublicIpAddressConfiguration sharedPublicIpAddressConfiguration()

Get the sharedPublicIpAddressConfiguration property: Properties that virtual machines on this subnet will share.

Returns:

the sharedPublicIpAddressConfiguration value.

useInVmCreationPermission

public UsagePermissionType useInVmCreationPermission()

Get the useInVmCreationPermission property: Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).

Returns:

the useInVmCreationPermission value.

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:

the usePublicIpAddressPermission value.

validate

public void validate()

Validates the instance.

virtualNetworkPoolName

public String virtualNetworkPoolName()

Get the virtualNetworkPoolName property: The virtual network pool associated with this subnet.

Returns:

the virtualNetworkPoolName value.

withLabSubnetName

public SubnetOverride withLabSubnetName(String labSubnetName)

Set the labSubnetName property: The name given to the subnet within the lab.

Parameters:

labSubnetName - the labSubnetName value to set.

Returns:

the SubnetOverride object itself.

withResourceId

public SubnetOverride withResourceId(String resourceId)

Set the resourceId property: The resource ID of the subnet.

Parameters:

resourceId - the resourceId value to set.

Returns:

the SubnetOverride object itself.

withSharedPublicIpAddressConfiguration

public SubnetOverride withSharedPublicIpAddressConfiguration(SubnetSharedPublicIpAddressConfiguration sharedPublicIpAddressConfiguration)

Set the sharedPublicIpAddressConfiguration property: Properties that virtual machines on this subnet will share.

Parameters:

sharedPublicIpAddressConfiguration - the sharedPublicIpAddressConfiguration value to set.

Returns:

the SubnetOverride object itself.

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:

useInVmCreationPermission - the useInVmCreationPermission value to set.

Returns:

the SubnetOverride object itself.

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:

usePublicIpAddressPermission - the usePublicIpAddressPermission value to set.

Returns:

the SubnetOverride object itself.

withVirtualNetworkPoolName

public SubnetOverride withVirtualNetworkPoolName(String virtualNetworkPoolName)

Set the virtualNetworkPoolName property: The virtual network pool associated with this subnet.

Parameters:

virtualNetworkPoolName - the virtualNetworkPoolName value to set.

Returns:

the SubnetOverride object itself.

Applies to