Hostname Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. Hostname
- com.
Implements
public final class Hostname
implements JsonSerializable<Hostname>
Details of a hostname derived from a domain.
Constructor Summary
Constructor | Description |
---|---|
Hostname() |
Creates an instance of Hostname class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
azureResourceName()
Get the azure |
Azure |
azureResourceType()
Get the azure |
Custom |
customHostnameDnsRecordType()
Get the custom |
static Hostname |
fromJson(JsonReader jsonReader)
Reads an instance of Hostname from the Json |
Hostname |
hostnameType()
Get the hostname |
String |
name()
Get the name property: Name of the hostname. |
List<String> |
siteNames()
Get the site |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Hostname |
withAzureResourceName(String azureResourceName)
Set the azure |
Hostname |
withAzureResourceType(AzureResourceType azureResourceType)
Set the azure |
Hostname |
withCustomHostnameDnsRecordType(CustomHostnameDnsRecordType customHostnameDnsRecordType)
Set the custom |
Hostname |
withHostnameType(HostnameType hostnameType)
Set the hostname |
Hostname |
withName(String name)
Set the name property: Name of the hostname. |
Hostname |
withSiteNames(List<String> siteNames)
Set the site |
Methods inherited from java.lang.Object
Constructor Details
Hostname
public Hostname()
Creates an instance of Hostname class.
Method Details
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:
azureResourceType
public AzureResourceType azureResourceType()
Get the azureResourceType property: Type of the Azure resource the hostname is assigned to.
Returns:
customHostnameDnsRecordType
public CustomHostnameDnsRecordType customHostnameDnsRecordType()
Get the customHostnameDnsRecordType property: Type of the DNS record.
Returns:
fromJson
public static Hostname fromJson(JsonReader jsonReader)
Reads an instance of Hostname from the JsonReader.
Parameters:
Returns:
Throws:
hostnameType
public HostnameType hostnameType()
Get the hostnameType property: Type of the hostname.
Returns:
name
public String name()
Get the name property: Name of the hostname.
Returns:
siteNames
public List
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:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
withAzureResourceType
public Hostname withAzureResourceType(AzureResourceType azureResourceType)
Set the azureResourceType property: Type of the Azure resource the hostname is assigned to.
Parameters:
Returns:
withCustomHostnameDnsRecordType
public Hostname withCustomHostnameDnsRecordType(CustomHostnameDnsRecordType customHostnameDnsRecordType)
Set the customHostnameDnsRecordType property: Type of the DNS record.
Parameters:
Returns:
withHostnameType
public Hostname withHostnameType(HostnameType hostnameType)
Set the hostnameType property: Type of the hostname.
Parameters:
Returns:
withName
public Hostname withName(String name)
Set the name property: Name of the hostname.
Parameters:
Returns:
withSiteNames
public Hostname withSiteNames(List
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:
Returns:
Applies to
Azure SDK for Java