Class PrivateAccessVirtualNetwork


  • public final class PrivateAccessVirtualNetwork
    extends Object
    Description of a Virtual Network that is useable for private site access.
    • Constructor Detail

      • PrivateAccessVirtualNetwork

        public PrivateAccessVirtualNetwork()
    • Method Detail

      • name

        public String name()
        Get the name property: The name of the Virtual Network.
        Returns:
        the name value.
      • withName

        public PrivateAccessVirtualNetwork withName​(String name)
        Set the name property: The name of the Virtual Network.
        Parameters:
        name - the name value to set.
        Returns:
        the PrivateAccessVirtualNetwork object itself.
      • key

        public Integer key()
        Get the key property: The key (ID) of the Virtual Network.
        Returns:
        the key value.
      • withKey

        public PrivateAccessVirtualNetwork withKey​(Integer key)
        Set the key property: The key (ID) of the Virtual Network.
        Parameters:
        key - the key value to set.
        Returns:
        the PrivateAccessVirtualNetwork object itself.
      • resourceId

        public String resourceId()
        Get the resourceId property: The ARM uri of the Virtual Network.
        Returns:
        the resourceId value.
      • withResourceId

        public PrivateAccessVirtualNetwork withResourceId​(String resourceId)
        Set the resourceId property: The ARM uri of the Virtual Network.
        Parameters:
        resourceId - the resourceId value to set.
        Returns:
        the PrivateAccessVirtualNetwork object itself.
      • subnets

        public List<PrivateAccessSubnet> subnets()
        Get the subnets property: A List of subnets that access is allowed to on this Virtual Network. An empty array (but not null) is interpreted to mean that all subnets are allowed within this Virtual Network.
        Returns:
        the subnets value.
      • withSubnets

        public PrivateAccessVirtualNetwork withSubnets​(List<PrivateAccessSubnet> subnets)
        Set the subnets property: A List of subnets that access is allowed to on this Virtual Network. An empty array (but not null) is interpreted to mean that all subnets are allowed within this Virtual Network.
        Parameters:
        subnets - the subnets value to set.
        Returns:
        the PrivateAccessVirtualNetwork object itself.
      • validate

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