Class Hostname
java.lang.Object
com.azure.resourcemanager.appservice.models.Hostname
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Hostname>
Details of a hostname derived from a domain.
-
Constructor Summary
Constructors -
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.static Hostname
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of Hostname from the JsonReader.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.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
Hostname
public Hostname()Creates an instance of Hostname class.
-
-
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.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<Hostname>
- Throws:
IOException
-
fromJson
Reads an instance of Hostname from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of Hostname if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the Hostname.
-