public final class Hostname extends Object
| Constructor and Description |
|---|
Hostname() |
| Modifier and Type | Method and Description |
|---|---|
String |
azureResourceName()
Get the azureResourceName property: Name of the Azure resource the hostname is assigned to.
|
AzureResourceType |
azureResourceType()
Get the azureResourceType property: Type of the Azure resource the hostname is assigned to.
|
CustomHostnameDnsRecordType |
customHostnameDnsRecordType()
Get the customHostnameDnsRecordType property: Type of the DNS record.
|
HostnameType |
hostnameType()
Get the hostnameType property: Type of the hostname.
|
String |
name()
Get the name property: Name of the hostname.
|
List<String> |
siteNames()
Get the siteNames property: List of apps the hostname is assigned to.
|
void |
validate()
Validates the instance.
|
Hostname |
withAzureResourceName(String azureResourceName)
Set the azureResourceName property: Name of the Azure resource the hostname is assigned to.
|
Hostname |
withAzureResourceType(AzureResourceType azureResourceType)
Set the azureResourceType property: Type of the Azure resource the hostname is assigned to.
|
Hostname |
withCustomHostnameDnsRecordType(CustomHostnameDnsRecordType customHostnameDnsRecordType)
Set the customHostnameDnsRecordType property: Type of the DNS record.
|
Hostname |
withHostnameType(HostnameType hostnameType)
Set the hostnameType property: Type of the hostname.
|
Hostname |
withName(String name)
Set the name property: Name of the hostname.
|
Hostname |
withSiteNames(List<String> siteNames)
Set the siteNames property: List of apps the hostname is assigned to.
|
public String name()
public Hostname withName(String name)
name - the name value to set.public List<String> siteNames()
public Hostname withSiteNames(List<String> siteNames)
siteNames - the siteNames value to set.public String azureResourceName()
public Hostname withAzureResourceName(String azureResourceName)
azureResourceName - the azureResourceName value to set.public AzureResourceType azureResourceType()
public Hostname withAzureResourceType(AzureResourceType azureResourceType)
azureResourceType - the azureResourceType value to set.public CustomHostnameDnsRecordType customHostnameDnsRecordType()
public Hostname withCustomHostnameDnsRecordType(CustomHostnameDnsRecordType customHostnameDnsRecordType)
customHostnameDnsRecordType - the customHostnameDnsRecordType value to set.public HostnameType hostnameType()
public Hostname withHostnameType(HostnameType hostnameType)
hostnameType - the hostnameType value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.