CustomDomainConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. eventgrid. models. CustomDomainConfiguration
- com.
Implements
public final class CustomDomainConfiguration
implements JsonSerializable<CustomDomainConfiguration>
A custom domain configuration that allows users to publish to their own domain name.
Constructor Summary
| Constructor | Description |
|---|---|
| CustomDomainConfiguration() |
Creates an instance of Custom |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
certificateUrl()
Get the certificate |
| String |
expectedTxtRecordName()
Get the expected |
| String |
expectedTxtRecordValue()
Get the expected |
|
static
Custom |
fromJson(JsonReader jsonReader)
Reads an instance of Custom |
| String |
fullyQualifiedDomainName()
Get the fully |
|
Custom |
identity()
Get the identity property: Identity info for accessing the certificate for the custom domain. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Custom |
validationState()
Get the validation |
|
Custom |
withCertificateUrl(String certificateUrl)
Set the certificate |
|
Custom |
withExpectedTxtRecordName(String expectedTxtRecordName)
Set the expected |
|
Custom |
withExpectedTxtRecordValue(String expectedTxtRecordValue)
Set the expected |
|
Custom |
withFullyQualifiedDomainName(String fullyQualifiedDomainName)
Set the fully |
|
Custom |
withIdentity(CustomDomainIdentity identity)
Set the identity property: Identity info for accessing the certificate for the custom domain. |
|
Custom |
withValidationState(CustomDomainValidationState validationState)
Set the validation |
Methods inherited from java.lang.Object
Constructor Details
CustomDomainConfiguration
public CustomDomainConfiguration()
Creates an instance of CustomDomainConfiguration class.
Method Details
certificateUrl
public String certificateUrl()
Get the certificateUrl property: The URL for the certificate that is used for publishing to the custom domain. We currently support certificates stored in Azure Key Vault only. While certificate URL can be either versioned URL of the following format https://{key-vault-name}.vault.azure.net/certificates/{certificate-name}/{version-id}, or unversioned URL of the following format (e.g., https://contosovault.vault.azure.net/certificates/contosocert, we support unversioned certificate URL only (e.g., https://contosovault.vault.azure.net/certificates/contosocert).
Returns:
expectedTxtRecordName
public String expectedTxtRecordName()
Get the expectedTxtRecordName property: Expected DNS TXT record name. Event Grid will check for a TXT record with this name in the DNS record set of the custom domain name to prove ownership over the domain. The values under this TXT record must contain the expected TXT record value.
Returns:
expectedTxtRecordValue
public String expectedTxtRecordValue()
Get the expectedTxtRecordValue property: Expected DNS TXT record value. Event Grid will check for a TXT record with this value in the DNS record set of the custom domain name to prove ownership over the domain.
Returns:
fromJson
public static CustomDomainConfiguration fromJson(JsonReader jsonReader)
Reads an instance of CustomDomainConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
fullyQualifiedDomainName
public String fullyQualifiedDomainName()
Get the fullyQualifiedDomainName property: Fully Qualified Domain Name (FQDN) for the custom domain.
Returns:
identity
public CustomDomainIdentity identity()
Get the identity property: Identity info for accessing the certificate for the custom domain. This identity info must match an identity that has been set on the namespace.
Returns:
toJson
validate
public void validate()
Validates the instance.
validationState
public CustomDomainValidationState validationState()
Get the validationState property: Validation state for the custom domain. This is a read only property and is initially set to 'Pending' and will be updated to 'Approved' by Event Grid only after ownership of the domain name has been successfully validated.
Returns:
withCertificateUrl
public CustomDomainConfiguration withCertificateUrl(String certificateUrl)
Set the certificateUrl property: The URL for the certificate that is used for publishing to the custom domain. We currently support certificates stored in Azure Key Vault only. While certificate URL can be either versioned URL of the following format https://{key-vault-name}.vault.azure.net/certificates/{certificate-name}/{version-id}, or unversioned URL of the following format (e.g., https://contosovault.vault.azure.net/certificates/contosocert, we support unversioned certificate URL only (e.g., https://contosovault.vault.azure.net/certificates/contosocert).
Parameters:
Returns:
withExpectedTxtRecordName
public CustomDomainConfiguration withExpectedTxtRecordName(String expectedTxtRecordName)
Set the expectedTxtRecordName property: Expected DNS TXT record name. Event Grid will check for a TXT record with this name in the DNS record set of the custom domain name to prove ownership over the domain. The values under this TXT record must contain the expected TXT record value.
Parameters:
Returns:
withExpectedTxtRecordValue
public CustomDomainConfiguration withExpectedTxtRecordValue(String expectedTxtRecordValue)
Set the expectedTxtRecordValue property: Expected DNS TXT record value. Event Grid will check for a TXT record with this value in the DNS record set of the custom domain name to prove ownership over the domain.
Parameters:
Returns:
withFullyQualifiedDomainName
public CustomDomainConfiguration withFullyQualifiedDomainName(String fullyQualifiedDomainName)
Set the fullyQualifiedDomainName property: Fully Qualified Domain Name (FQDN) for the custom domain.
Parameters:
Returns:
withIdentity
public CustomDomainConfiguration withIdentity(CustomDomainIdentity identity)
Set the identity property: Identity info for accessing the certificate for the custom domain. This identity info must match an identity that has been set on the namespace.
Parameters:
Returns:
withValidationState
public CustomDomainConfiguration withValidationState(CustomDomainValidationState validationState)
Set the validationState property: Validation state for the custom domain. This is a read only property and is initially set to 'Pending' and will be updated to 'Approved' by Event Grid only after ownership of the domain name has been successfully validated.
Parameters:
Returns: