Package com.ngrok.services
Class ReservedDomains.UpdateCallBuilder
java.lang.Object
com.ngrok.services.ReservedDomains.UpdateCallBuilder
- Enclosing class:
- ReservedDomains
A builder object encapsulating state for an unsent Update 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 forhttpEndpointConfigurationId(String httpEndpointConfigurationId)ID of an endpoint configuration of type http that will be used to handle inbound http traffic to this domainhttpEndpointConfigurationId(Optional<String> httpEndpointConfigurationId)ID of an endpoint configuration of type http that will be used to handle inbound http traffic to this domainhttpsEndpointConfigurationId(String httpsEndpointConfigurationId)ID of an endpoint configuration of type https that will be used to handle inbound https traffic to this domainhttpsEndpointConfigurationId(Optional<String> httpsEndpointConfigurationId)ID of an endpoint configuration of type https that will be used to handle inbound https traffic to this domainarbitrary user-defined machine-readable data of this reserved domain.arbitrary user-defined machine-readable data of this reserved domain.
-
Method Details
-
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. -
httpEndpointConfigurationId
public ReservedDomains.UpdateCallBuilder httpEndpointConfigurationId(String httpEndpointConfigurationId)ID of an endpoint configuration of type http that will be used to handle inbound http traffic to this domain- Parameters:
httpEndpointConfigurationId- the value of the http_endpoint_configuration_id parameter as aString- Returns:
- the call builder instance
-
httpEndpointConfigurationId
public ReservedDomains.UpdateCallBuilder httpEndpointConfigurationId(Optional<String> httpEndpointConfigurationId)ID of an endpoint configuration of type http that will be used to handle inbound http traffic to this domain -
httpsEndpointConfigurationId
public ReservedDomains.UpdateCallBuilder httpsEndpointConfigurationId(String httpsEndpointConfigurationId)ID of an endpoint configuration of type https that will be used to handle inbound https traffic to this domain- Parameters:
httpsEndpointConfigurationId- the value of the https_endpoint_configuration_id parameter as aString- Returns:
- the call builder instance
-
httpsEndpointConfigurationId
public ReservedDomains.UpdateCallBuilder httpsEndpointConfigurationId(Optional<String> httpsEndpointConfigurationId)ID of an endpoint configuration of type https that will be used to handle inbound https traffic to this domain -
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.UpdateCallBuilder 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.UpdateCallBuilder 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 anOptionalofReservedDomainCertPolicy- Returns:
- the call builder instance
-
call
Initiates the API call asynchronously.- Returns:
- a
CompletionStageofReservedDomain
-
blockingCall
Initiates the API call and blocks until it returns.- Returns:
ReservedDomain- Throws:
InterruptedException- if the thread was interrupted during the call
-