Class HostName
- java.lang.Object
-
- com.microsoft.azure.management.appservice.HostName
-
public class HostName extends Object
Details of a hostname derived from a domain.
-
-
Constructor Summary
Constructors Constructor Description HostName()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringazureResourceName()Get name of the Azure resource the hostname is assigned to.AzureResourceTypeazureResourceType()Get type of the Azure resource the hostname is assigned to.CustomHostNameDnsRecordTypecustomHostNameDnsRecordType()Get type of the DNS record.HostNameTypehostNameType()Get type of the hostname.Stringname()Get name of the hostname.List<String>siteNames()Get list of apps the hostname is assigned to.HostNamewithAzureResourceName(String azureResourceName)Set name of the Azure resource the hostname is assigned to.HostNamewithAzureResourceType(AzureResourceType azureResourceType)Set type of the Azure resource the hostname is assigned to.HostNamewithCustomHostNameDnsRecordType(CustomHostNameDnsRecordType customHostNameDnsRecordType)Set type of the DNS record.HostNamewithHostNameType(HostNameType hostNameType)Set type of the hostname.HostNamewithName(String name)Set name of the hostname.HostNamewithSiteNames(List<String> siteNames)Set list of apps the hostname is assigned to.
-
-
-
Method Detail
-
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.
-
-