Class Hostname
java.lang.Object
com.azure.resourcemanager.appservice.models.Hostname
Details of a hostname derived from a domain.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the azureResourceName property: Name of the Azure resource the hostname is assigned to.Get the azureResourceType property: Type of the Azure resource the hostname is assigned to.Get the customHostnameDnsRecordType property: Type of the DNS record.Get the hostnameType property: Type of the hostname.name()
Get the name property: Name of the hostname.Get the siteNames property: List of apps the hostname is assigned to.void
validate()
Validates the instance.withAzureResourceName
(String azureResourceName) Set the azureResourceName property: Name of the Azure resource the hostname is assigned to.withAzureResourceType
(AzureResourceType azureResourceType) Set the azureResourceType property: Type of the Azure resource the hostname is assigned to.withCustomHostnameDnsRecordType
(CustomHostnameDnsRecordType customHostnameDnsRecordType) Set the customHostnameDnsRecordType property: Type of the DNS record.withHostnameType
(HostnameType hostnameType) Set the hostnameType property: Type of the hostname.Set the name property: Name of the hostname.withSiteNames
(List<String> siteNames) Set the siteNames property: List of apps the hostname is assigned to.
-
Constructor Details
-
Hostname
public Hostname()
-
-
Method Details
-
name
Get the name property: Name of the hostname.- Returns:
- the name value.
-
withName
Set the name property: Name of the hostname.- Parameters:
name
- the name value to set.- Returns:
- the Hostname object itself.
-
siteNames
Get the siteNames property: 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 the siteNames property: 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 the azureResourceName property: 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 the azureResourceName property: 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 the azureResourceType property: Type of the Azure resource the hostname is assigned to.- Returns:
- the azureResourceType value.
-
withAzureResourceType
Set the azureResourceType property: Type of the Azure resource the hostname is assigned to.- Parameters:
azureResourceType
- the azureResourceType value to set.- Returns:
- the Hostname object itself.
-
customHostnameDnsRecordType
Get the customHostnameDnsRecordType property: Type of the DNS record.- Returns:
- the customHostnameDnsRecordType value.
-
withCustomHostnameDnsRecordType
public Hostname withCustomHostnameDnsRecordType(CustomHostnameDnsRecordType customHostnameDnsRecordType) Set the customHostnameDnsRecordType property: Type of the DNS record.- Parameters:
customHostnameDnsRecordType
- the customHostnameDnsRecordType value to set.- Returns:
- the Hostname object itself.
-
hostnameType
Get the hostnameType property: Type of the hostname.- Returns:
- the hostnameType value.
-
withHostnameType
Set the hostnameType property: Type of the hostname.- Parameters:
hostnameType
- the hostnameType value to set.- Returns:
- the Hostname object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-