Class MonitoringUptimeCheckConfigHttpCheck.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.monitoring_uptime_check_config.MonitoringUptimeCheckConfigHttpCheck.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MonitoringUptimeCheckConfigHttpCheck>
- Enclosing interface:
- MonitoringUptimeCheckConfigHttpCheck
@Stability(Stable) public static final class MonitoringUptimeCheckConfigHttpCheck.Builder extends Object implements software.amazon.jsii.Builder<MonitoringUptimeCheckConfigHttpCheck>
A builder forMonitoringUptimeCheckConfigHttpCheck
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
acceptedResponseStatusCodes
@Stability(Stable) public MonitoringUptimeCheckConfigHttpCheck.Builder acceptedResponseStatusCodes(com.hashicorp.cdktf.IResolvable acceptedResponseStatusCodes)
Sets the value ofMonitoringUptimeCheckConfigHttpCheck.getAcceptedResponseStatusCodes()- Parameters:
acceptedResponseStatusCodes- accepted_response_status_codes block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#accepted_response_status_codes MonitoringUptimeCheckConfig#accepted_response_status_codes}- Returns:
this
-
acceptedResponseStatusCodes
@Stability(Stable) public MonitoringUptimeCheckConfigHttpCheck.Builder acceptedResponseStatusCodes(List<? extends MonitoringUptimeCheckConfigHttpCheckAcceptedResponseStatusCodes> acceptedResponseStatusCodes)
Sets the value ofMonitoringUptimeCheckConfigHttpCheck.getAcceptedResponseStatusCodes()- Parameters:
acceptedResponseStatusCodes- accepted_response_status_codes block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#accepted_response_status_codes MonitoringUptimeCheckConfig#accepted_response_status_codes}- Returns:
this
-
authInfo
@Stability(Stable) public MonitoringUptimeCheckConfigHttpCheck.Builder authInfo(MonitoringUptimeCheckConfigHttpCheckAuthInfo authInfo)
Sets the value ofMonitoringUptimeCheckConfigHttpCheck.getAuthInfo()- Parameters:
authInfo- auth_info block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#auth_info MonitoringUptimeCheckConfig#auth_info}- Returns:
this
-
body
@Stability(Stable) public MonitoringUptimeCheckConfigHttpCheck.Builder body(String body)
Sets the value ofMonitoringUptimeCheckConfigHttpCheck.getBody()- Parameters:
body- The request body associated with the HTTP POST request. If 'content_type' is 'URL_ENCODED', the body passed in must be URL-encoded. Users can provide a 'Content-Length' header via the 'headers' field or the API will do so. If the 'request_method' is 'GET' and 'body' is not empty, the API will return an error. The maximum byte size is 1 megabyte. Note - As with all bytes fields JSON representations are base64 encoded. e.g. 'foo=bar' in URL-encoded form is 'foo%3Dbar' and in base64 encoding is 'Zm9vJTI1M0RiYXI='. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#body MonitoringUptimeCheckConfig#body}- Returns:
this
-
contentType
@Stability(Stable) public MonitoringUptimeCheckConfigHttpCheck.Builder contentType(String contentType)
Sets the value ofMonitoringUptimeCheckConfigHttpCheck.getContentType()- Parameters:
contentType- The content type to use for the check. Possible values: ["TYPE_UNSPECIFIED", "URL_ENCODED", "USER_PROVIDED"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#content_type MonitoringUptimeCheckConfig#content_type}- Returns:
this
-
customContentType
@Stability(Stable) public MonitoringUptimeCheckConfigHttpCheck.Builder customContentType(String customContentType)
Sets the value ofMonitoringUptimeCheckConfigHttpCheck.getCustomContentType()- Parameters:
customContentType- A user provided content type header to use for the check. The invalid configurations outlined in the 'content_type' field apply to custom_content_type', as well as the following 1. 'content_type' is 'URL_ENCODED' and 'custom_content_type' is set. 2. 'content_type' is 'USER_PROVIDED' and 'custom_content_type' is not set. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#custom_content_type MonitoringUptimeCheckConfig#custom_content_type}- Returns:
this
-
headers
@Stability(Stable) public MonitoringUptimeCheckConfigHttpCheck.Builder headers(Map<String,String> headers)
Sets the value ofMonitoringUptimeCheckConfigHttpCheck.getHeaders()- Parameters:
headers- The list of headers to send as part of the uptime check request. If two headers have the same key and different values, they should be entered as a single header, with the value being a comma-separated list of all the desired values as described in [RFC 2616 (page 31)](https://www.w3.org/Protocols/rfc2616/rfc2616.txt). Entering two separate headers with the same key in a Create call will cause the first to be overwritten by the second. The maximum number of headers allowed is 100. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#headers MonitoringUptimeCheckConfig#headers}- Returns:
this
-
maskHeaders
@Stability(Stable) public MonitoringUptimeCheckConfigHttpCheck.Builder maskHeaders(Boolean maskHeaders)
Sets the value ofMonitoringUptimeCheckConfigHttpCheck.getMaskHeaders()- Parameters:
maskHeaders- Boolean specifying whether to encrypt the header information. Encryption should be specified for any headers related to authentication that you do not wish to be seen when retrieving the configuration. The server will be responsible for encrypting the headers. On Get/List calls, if 'mask_headers' is set to 'true' then the headers will be obscured with '******'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#mask_headers MonitoringUptimeCheckConfig#mask_headers}- Returns:
this
-
maskHeaders
@Stability(Stable) public MonitoringUptimeCheckConfigHttpCheck.Builder maskHeaders(com.hashicorp.cdktf.IResolvable maskHeaders)
Sets the value ofMonitoringUptimeCheckConfigHttpCheck.getMaskHeaders()- Parameters:
maskHeaders- Boolean specifying whether to encrypt the header information. Encryption should be specified for any headers related to authentication that you do not wish to be seen when retrieving the configuration. The server will be responsible for encrypting the headers. On Get/List calls, if 'mask_headers' is set to 'true' then the headers will be obscured with '******'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#mask_headers MonitoringUptimeCheckConfig#mask_headers}- Returns:
this
-
path
@Stability(Stable) public MonitoringUptimeCheckConfigHttpCheck.Builder path(String path)
Sets the value ofMonitoringUptimeCheckConfigHttpCheck.getPath()- Parameters:
path- The path to the page to run the check against. Will be combined with the host (specified within the MonitoredResource) and port to construct the full URL. If the provided path does not begin with '/', a '/' will be prepended automatically. Optional (defaults to '/'). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#path MonitoringUptimeCheckConfig#path}- Returns:
this
-
pingConfig
@Stability(Stable) public MonitoringUptimeCheckConfigHttpCheck.Builder pingConfig(MonitoringUptimeCheckConfigHttpCheckPingConfig pingConfig)
Sets the value ofMonitoringUptimeCheckConfigHttpCheck.getPingConfig()- Parameters:
pingConfig- ping_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#ping_config MonitoringUptimeCheckConfig#ping_config}- Returns:
this
-
port
@Stability(Stable) public MonitoringUptimeCheckConfigHttpCheck.Builder port(Number port)
Sets the value ofMonitoringUptimeCheckConfigHttpCheck.getPort()- Parameters:
port- The port to the page to run the check against. Will be combined with 'host' (specified within the ['monitored_resource'](#nested_monitored_resource)) and path to construct the full URL. Optional (defaults to 80 without SSL, or 443 with SSL). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#port MonitoringUptimeCheckConfig#port}- Returns:
this
-
requestMethod
@Stability(Stable) public MonitoringUptimeCheckConfigHttpCheck.Builder requestMethod(String requestMethod)
Sets the value ofMonitoringUptimeCheckConfigHttpCheck.getRequestMethod()- Parameters:
requestMethod- The HTTP request method to use for the check. If set to 'METHOD_UNSPECIFIED' then 'request_method' defaults to 'GET'. Default value: "GET" Possible values: ["METHOD_UNSPECIFIED", "GET", "POST"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#request_method MonitoringUptimeCheckConfig#request_method}- Returns:
this
-
serviceAgentAuthentication
@Stability(Stable) public MonitoringUptimeCheckConfigHttpCheck.Builder serviceAgentAuthentication(MonitoringUptimeCheckConfigHttpCheckServiceAgentAuthentication serviceAgentAuthentication)
Sets the value ofMonitoringUptimeCheckConfigHttpCheck.getServiceAgentAuthentication()- Parameters:
serviceAgentAuthentication- service_agent_authentication block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#service_agent_authentication MonitoringUptimeCheckConfig#service_agent_authentication}- Returns:
this
-
useSsl
@Stability(Stable) public MonitoringUptimeCheckConfigHttpCheck.Builder useSsl(Boolean useSsl)
Sets the value ofMonitoringUptimeCheckConfigHttpCheck.getUseSsl()- Parameters:
useSsl- If true, use HTTPS instead of HTTP to run the check. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#use_ssl MonitoringUptimeCheckConfig#use_ssl}- Returns:
this
-
useSsl
@Stability(Stable) public MonitoringUptimeCheckConfigHttpCheck.Builder useSsl(com.hashicorp.cdktf.IResolvable useSsl)
Sets the value ofMonitoringUptimeCheckConfigHttpCheck.getUseSsl()- Parameters:
useSsl- If true, use HTTPS instead of HTTP to run the check. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#use_ssl MonitoringUptimeCheckConfig#use_ssl}- Returns:
this
-
validateSsl
@Stability(Stable) public MonitoringUptimeCheckConfigHttpCheck.Builder validateSsl(Boolean validateSsl)
Sets the value ofMonitoringUptimeCheckConfigHttpCheck.getValidateSsl()- Parameters:
validateSsl- Boolean specifying whether to include SSL certificate validation as a part of the Uptime check. Only applies to checks where 'monitored_resource' is set to 'uptime_url'. If 'use_ssl' is 'false', setting 'validate_ssl' to 'true' has no effect. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#validate_ssl MonitoringUptimeCheckConfig#validate_ssl}- Returns:
this
-
validateSsl
@Stability(Stable) public MonitoringUptimeCheckConfigHttpCheck.Builder validateSsl(com.hashicorp.cdktf.IResolvable validateSsl)
Sets the value ofMonitoringUptimeCheckConfigHttpCheck.getValidateSsl()- Parameters:
validateSsl- Boolean specifying whether to include SSL certificate validation as a part of the Uptime check. Only applies to checks where 'monitored_resource' is set to 'uptime_url'. If 'use_ssl' is 'false', setting 'validate_ssl' to 'true' has no effect. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#validate_ssl MonitoringUptimeCheckConfig#validate_ssl}- Returns:
this
-
build
@Stability(Stable) public MonitoringUptimeCheckConfigHttpCheck build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MonitoringUptimeCheckConfigHttpCheck>- Returns:
- a new instance of
MonitoringUptimeCheckConfigHttpCheck - Throws:
NullPointerException- if any required attribute was not provided
-
-