java.lang.Object
com.microsoft.azure.management.appservice.HostName

public class HostName extends Object
Details of a hostname derived from a domain.
  • Constructor Details

    • HostName

      public HostName()
  • Method Details

    • name

      public String name()
      Get name of the hostname.
      Returns:
      the name value
    • withName

      public HostName withName(String name)
      Set name of the hostname.
      Parameters:
      name - the name value to set
      Returns:
      the HostName object itself.
    • siteNames

      public List<String> siteNames()
      Get list of apps the hostname is assigned to. This list will have more than one app only if the hostname is pointing to a Traffic Manager.
      Returns:
      the siteNames value
    • withSiteNames

      public HostName withSiteNames(List<String> siteNames)
      Set list of apps the hostname is assigned to. This list will have more than one app only if the hostname is pointing to a Traffic Manager.
      Parameters:
      siteNames - the siteNames value to set
      Returns:
      the HostName object itself.
    • azureResourceName

      public String azureResourceName()
      Get name of the Azure resource the hostname is assigned to. If it is assigned to a Traffic Manager then it will be the Traffic Manager name otherwise it will be the app name.
      Returns:
      the azureResourceName value
    • withAzureResourceName

      public HostName withAzureResourceName(String azureResourceName)
      Set name of the Azure resource the hostname is assigned to. If it is assigned to a Traffic Manager then it will be the Traffic Manager name otherwise it will be the app name.
      Parameters:
      azureResourceName - the azureResourceName value to set
      Returns:
      the HostName object itself.
    • azureResourceType

      public AzureResourceType azureResourceType()
      Get type of the Azure resource the hostname is assigned to. Possible values include: 'Website', 'TrafficManager'.
      Returns:
      the azureResourceType value
    • withAzureResourceType

      public HostName withAzureResourceType(AzureResourceType azureResourceType)
      Set type of the Azure resource the hostname is assigned to. Possible values include: 'Website', 'TrafficManager'.
      Parameters:
      azureResourceType - the azureResourceType value to set
      Returns:
      the HostName object itself.
    • customHostNameDnsRecordType

      public CustomHostNameDnsRecordType customHostNameDnsRecordType()
      Get type of the DNS record. Possible values include: 'CName', 'A'.
      Returns:
      the customHostNameDnsRecordType value
    • withCustomHostNameDnsRecordType

      public HostName withCustomHostNameDnsRecordType(CustomHostNameDnsRecordType customHostNameDnsRecordType)
      Set type of the DNS record. Possible values include: 'CName', 'A'.
      Parameters:
      customHostNameDnsRecordType - the customHostNameDnsRecordType value to set
      Returns:
      the HostName object itself.
    • hostNameType

      public HostNameType hostNameType()
      Get type of the hostname. Possible values include: 'Verified', 'Managed'.
      Returns:
      the hostNameType value
    • withHostNameType

      public HostName withHostNameType(HostNameType hostNameType)
      Set type of the hostname. Possible values include: 'Verified', 'Managed'.
      Parameters:
      hostNameType - the hostNameType value to set
      Returns:
      the HostName object itself.