Class HostName
java.lang.Object
com.microsoft.azure.management.appservice.HostName
Details of a hostname derived from a domain.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet name of the Azure resource the hostname is assigned to.Get type of the Azure resource the hostname is assigned to.Get type of the DNS record.Get type of the hostname.name()
Get name of the hostname.Get list of apps the hostname is assigned to.withAzureResourceName
(String azureResourceName) Set name of the Azure resource the hostname is assigned to.withAzureResourceType
(AzureResourceType azureResourceType) Set type of the Azure resource the hostname is assigned to.withCustomHostNameDnsRecordType
(CustomHostNameDnsRecordType customHostNameDnsRecordType) Set type of the DNS record.withHostNameType
(HostNameType hostNameType) Set type of the hostname.Set name of the hostname.withSiteNames
(List<String> siteNames) Set list of apps the hostname is assigned to.
-
Constructor Details
-
HostName
public HostName()
-
-
Method Details
-
name
Get name of the hostname.- Returns:
- the name value
-
withName
Set name of the hostname.- Parameters:
name
- the name value to set- Returns:
- the HostName object itself.
-
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
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
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
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
Get type of the Azure resource the hostname is assigned to. Possible values include: 'Website', 'TrafficManager'.- Returns:
- the azureResourceType value
-
withAzureResourceType
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
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
Get type of the hostname. Possible values include: 'Verified', 'Managed'.- Returns:
- the hostNameType value
-
withHostNameType
Set type of the hostname. Possible values include: 'Verified', 'Managed'.- Parameters:
hostNameType
- the hostNameType value to set- Returns:
- the HostName object itself.
-