Package com.ngrok.definitions
Class ReservedDomain
java.lang.Object
com.ngrok.definitions.ReservedDomain
A class encapsulating the
ReservedDomain
resource.-
Constructor Summary
ConstructorDescriptionReservedDomain
(String id, URI uri, OffsetDateTime createdAt, String description, String metadata, String domain, String region, Optional<String> cnameTarget, Optional<Ref> certificate, Optional<ReservedDomainCertPolicy> certificateManagementPolicy, Optional<ReservedDomainCertStatus> certificateManagementStatus, Optional<String> acmeChallengeCnameTarget) Creates a new instance ofReservedDomain
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
DNS CNAME target for the host _acme-challenge.example.com, where example.com is your reserved domain name.object referencing the TLS certificate used for connections to this domain.configuration for automatic management of TLS certificates for this domain, or null if automatic management is disabledstatus of the automatic certificate management for this domain, or null if automatic management is disabledDNS CNAME target for a custom hostname, or null if the reserved domain is a subdomain of *.ngrok.iotimestamp when the reserved domain was created, RFC 3339 formathuman-readable description of what this reserved domain will be used forhostname of the reserved domaingetId()
unique reserved domain resource identifierarbitrary user-defined machine-readable data of this reserved domain.reserve the domain in this geographic ngrok datacenter.getUri()
URI of the reserved domain API resourceint
hashCode()
toString()
-
Constructor Details
-
ReservedDomain
public ReservedDomain(String id, URI uri, OffsetDateTime createdAt, String description, String metadata, String domain, String region, Optional<String> cnameTarget, Optional<Ref> certificate, Optional<ReservedDomainCertPolicy> certificateManagementPolicy, Optional<ReservedDomainCertStatus> certificateManagementStatus, Optional<String> acmeChallengeCnameTarget) Creates a new instance ofReservedDomain
.- Parameters:
id
- unique reserved domain resource identifieruri
- URI of the reserved domain API resourcecreatedAt
- timestamp when the reserved domain was created, RFC 3339 formatdescription
- human-readable description of what this reserved domain will be used formetadata
- arbitrary user-defined machine-readable data of this reserved domain. Optional, max 4096 bytes.domain
- hostname of the reserved domainregion
- reserve the domain in this geographic ngrok datacenter. Optional, default is us. (au, eu, ap, us, jp, in, sa)cnameTarget
- DNS CNAME target for a custom hostname, or null if the reserved domain is a subdomain of *.ngrok.iocertificate
- object referencing the TLS certificate used for connections to this domain. This can be either a user-uploaded certificate, the most recently issued automatic one, or null otherwise.certificateManagementPolicy
- configuration for automatic management of TLS certificates for this domain, or null if automatic management is disabledcertificateManagementStatus
- status of the automatic certificate management for this domain, or null if automatic management is disabledacmeChallengeCnameTarget
- DNS CNAME target for the host _acme-challenge.example.com, where example.com is your reserved domain name. This is required to issue certificates for wildcard, non-ngrok reserved domains. Must be null for non-wildcard domains and ngrok subdomains.
-
-
Method Details
-
getId
unique reserved domain resource identifier- Returns:
- the value of the property as a
String
-
getUri
URI of the reserved domain API resource- Returns:
- the value of the property as a
URI
-
getCreatedAt
timestamp when the reserved domain was created, RFC 3339 format- Returns:
- the value of the property as a
OffsetDateTime
-
getDescription
human-readable description of what this reserved domain will be used for- Returns:
- the value of the property as a
String
-
getMetadata
arbitrary user-defined machine-readable data of this reserved domain. Optional, max 4096 bytes.- Returns:
- the value of the property as a
String
-
getDomain
hostname of the reserved domain- Returns:
- the value of the property as a
String
-
getRegion
reserve the domain in this geographic ngrok datacenter. Optional, default is us. (au, eu, ap, us, jp, in, sa)- Returns:
- the value of the property as a
String
-
getCnameTarget
DNS CNAME target for a custom hostname, or null if the reserved domain is a subdomain of *.ngrok.io -
getCertificate
object referencing the TLS certificate used for connections to this domain. This can be either a user-uploaded certificate, the most recently issued automatic one, or null otherwise. -
getCertificateManagementPolicy
configuration for automatic management of TLS certificates for this domain, or null if automatic management is disabled- Returns:
- the value of the property as a
ReservedDomainCertPolicy
wrapped in anOptional
-
getCertificateManagementStatus
status of the automatic certificate management for this domain, or null if automatic management is disabled- Returns:
- the value of the property as a
ReservedDomainCertStatus
wrapped in anOptional
-
getAcmeChallengeCnameTarget
DNS CNAME target for the host _acme-challenge.example.com, where example.com is your reserved domain name. This is required to issue certificates for wildcard, non-ngrok reserved domains. Must be null for non-wildcard domains and ngrok subdomains. -
equals
-
hashCode
public int hashCode() -
toString
-