Class Hostname
- java.lang.Object
-
- com.azure.resourcemanager.appservice.models.Hostname
-
public final 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 the azureResourceName property: Name of the Azure resource the hostname is assigned to.AzureResourceTypeazureResourceType()Get the azureResourceType property: Type of the Azure resource the hostname is assigned to.CustomHostnameDnsRecordTypecustomHostnameDnsRecordType()Get the customHostnameDnsRecordType property: Type of the DNS record.HostnameTypehostnameType()Get the hostnameType property: Type of the hostname.Stringname()Get the name property: Name of the hostname.List<String>siteNames()Get the siteNames property: List of apps the hostname is assigned to.voidvalidate()Validates the instance.HostnamewithAzureResourceName(String azureResourceName)Set the azureResourceName property: Name of the Azure resource the hostname is assigned to.HostnamewithAzureResourceType(AzureResourceType azureResourceType)Set the azureResourceType property: Type of the Azure resource the hostname is assigned to.HostnamewithCustomHostnameDnsRecordType(CustomHostnameDnsRecordType customHostnameDnsRecordType)Set the customHostnameDnsRecordType property: Type of the DNS record.HostnamewithHostnameType(HostnameType hostnameType)Set the hostnameType property: Type of the hostname.HostnamewithName(String name)Set the name property: Name of the hostname.HostnamewithSiteNames(List<String> siteNames)Set the siteNames property: List of apps the hostname is assigned to.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Name of the hostname.- Returns:
- the name value.
-
withName
public Hostname withName(String name)
Set the name property: Name of the hostname.- Parameters:
name- the name value to set.- Returns:
- the Hostname object itself.
-
siteNames
public List<String> 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
public Hostname withSiteNames(List<String> siteNames)
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
public String 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
public Hostname withAzureResourceName(String azureResourceName)
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
public AzureResourceType azureResourceType()
Get the azureResourceType property: Type of the Azure resource the hostname is assigned to.- Returns:
- the azureResourceType value.
-
withAzureResourceType
public Hostname withAzureResourceType(AzureResourceType azureResourceType)
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
public CustomHostnameDnsRecordType 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
public HostnameType hostnameType()
Get the hostnameType property: Type of the hostname.- Returns:
- the hostnameType value.
-
withHostnameType
public Hostname withHostnameType(HostnameType hostnameType)
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.
-
-