Class SubnetOverride

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

public final class SubnetOverride extends Object
Property overrides on a subnet of a virtual network.
  • Constructor Details

    • SubnetOverride

      public SubnetOverride()
      Creates an instance of SubnetOverride class.
  • Method Details

    • resourceId

      public String resourceId()
      Get the resourceId property: The resource ID of the subnet.
      Returns:
      the resourceId value.
    • 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.
    • labSubnetName

      public String labSubnetName()
      Get the labSubnetName property: The name given to the subnet within the lab.
      Returns:
      the labSubnetName 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • sharedPublicIpAddressConfiguration

      public SubnetSharedPublicIpAddressConfiguration sharedPublicIpAddressConfiguration()
      Get the sharedPublicIpAddressConfiguration property: Properties that virtual machines on this subnet will share.
      Returns:
      the sharedPublicIpAddressConfiguration value.
    • 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.
    • virtualNetworkPoolName

      public String virtualNetworkPoolName()
      Get the virtualNetworkPoolName property: The virtual network pool associated with this subnet.
      Returns:
      the virtualNetworkPoolName value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.