Package com.ngrok.services
Class ReservedDomains.CreateCallBuilder
java.lang.Object
com.ngrok.services.ReservedDomains.CreateCallBuilder
- Enclosing class:
- ReservedDomains
A builder object encapsulating state for an unsent Create API call.
-
Method Summary
Modifier and TypeMethodDescriptionInitiates the API call and blocks until it returns.call()
Initiates the API call asynchronously.certificateId
(String certificateId) ID of a user-uploaded TLS certificate to use for connections to targeting this domain.certificateId
(Optional<String> certificateId) ID of a user-uploaded TLS certificate to use for connections to targeting this domain.certificateManagementPolicy
(ReservedDomainCertPolicy certificateManagementPolicy) configuration for automatic management of TLS certificates for this domain, or null if automatic management is disabled.certificateManagementPolicy
(Optional<ReservedDomainCertPolicy> certificateManagementPolicy) configuration for automatic management of TLS certificates for this domain, or null if automatic management is disabled.description
(String description) human-readable description of what this reserved domain will be used fordescription
(Optional<String> description) human-readable description of what this reserved domain will be used forarbitrary user-defined machine-readable data of this reserved domain.arbitrary user-defined machine-readable data of this reserved domain.reserve the domain in this geographic ngrok datacenter.reserve the domain in this geographic ngrok datacenter.
-
Method Details
-
region
reserve the domain in this geographic ngrok datacenter. Optional, default is us. (au, eu, ap, us, jp, in, sa)- Parameters:
region
- the value of the region parameter as aString
- Returns:
- the call builder instance
-
region
reserve the domain in this geographic ngrok datacenter. Optional, default is us. (au, eu, ap, us, jp, in, sa) -
description
human-readable description of what this reserved domain will be used for- Parameters:
description
- the value of the description parameter as aString
- Returns:
- the call builder instance
-
description
human-readable description of what this reserved domain will be used for -
metadata
arbitrary user-defined machine-readable data of this reserved domain. Optional, max 4096 bytes.- Parameters:
metadata
- the value of the metadata parameter as aString
- Returns:
- the call builder instance
-
metadata
arbitrary user-defined machine-readable data of this reserved domain. Optional, max 4096 bytes. -
certificateId
ID of a user-uploaded TLS certificate to use for connections to targeting this domain. Optional, mutually exclusive withcertificate_management_policy
.- Parameters:
certificateId
- the value of the certificate_id parameter as aString
- Returns:
- the call builder instance
-
certificateId
ID of a user-uploaded TLS certificate to use for connections to targeting this domain. Optional, mutually exclusive withcertificate_management_policy
. -
certificateManagementPolicy
public ReservedDomains.CreateCallBuilder certificateManagementPolicy(ReservedDomainCertPolicy certificateManagementPolicy) configuration for automatic management of TLS certificates for this domain, or null if automatic management is disabled. Optional, mutually exclusive withcertificate_id
.- Parameters:
certificateManagementPolicy
- the value of the certificate_management_policy parameter as aReservedDomainCertPolicy
- Returns:
- the call builder instance
-
certificateManagementPolicy
public ReservedDomains.CreateCallBuilder certificateManagementPolicy(Optional<ReservedDomainCertPolicy> certificateManagementPolicy) configuration for automatic management of TLS certificates for this domain, or null if automatic management is disabled. Optional, mutually exclusive withcertificate_id
.- Parameters:
certificateManagementPolicy
- the value of the certificate_management_policy parameter as anOptional
ofReservedDomainCertPolicy
- Returns:
- the call builder instance
-
call
Initiates the API call asynchronously.- Returns:
- a
CompletionStage
ofReservedDomain
-
blockingCall
Initiates the API call and blocks until it returns.- Returns:
ReservedDomain
- Throws:
InterruptedException
- if the thread was interrupted during the call
-