Class MonitoringUptimeCheckConfigConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.monitoring_uptime_check_config.MonitoringUptimeCheckConfigConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MonitoringUptimeCheckConfigConfig>
- Enclosing interface:
- MonitoringUptimeCheckConfigConfig
@Stability(Stable) public static final class MonitoringUptimeCheckConfigConfig.Builder extends Object implements software.amazon.jsii.Builder<MonitoringUptimeCheckConfigConfig>
A builder forMonitoringUptimeCheckConfigConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
displayName
@Stability(Stable) public MonitoringUptimeCheckConfigConfig.Builder displayName(String displayName)
Sets the value ofMonitoringUptimeCheckConfigConfig.getDisplayName()- Parameters:
displayName- A human-friendly name for the uptime check configuration. This parameter is required. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#display_name MonitoringUptimeCheckConfig#display_name}- Returns:
this
-
timeout
@Stability(Stable) public MonitoringUptimeCheckConfigConfig.Builder timeout(String timeout)
Sets the value ofMonitoringUptimeCheckConfigConfig.getTimeout()- Parameters:
timeout- The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). This parameter is required. [See the accepted formats](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration) Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#timeout MonitoringUptimeCheckConfig#timeout}- Returns:
this
-
checkerType
@Stability(Stable) public MonitoringUptimeCheckConfigConfig.Builder checkerType(String checkerType)
Sets the value ofMonitoringUptimeCheckConfigConfig.getCheckerType()- Parameters:
checkerType- The checker type to use for the check. If the monitored resource type is 'servicedirectory_service', 'checker_type' must be set to 'VPC_CHECKERS'. Possible values: ["STATIC_IP_CHECKERS", "VPC_CHECKERS"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#checker_type MonitoringUptimeCheckConfig#checker_type}- Returns:
this
-
contentMatchers
@Stability(Stable) public MonitoringUptimeCheckConfigConfig.Builder contentMatchers(com.hashicorp.cdktf.IResolvable contentMatchers)
Sets the value ofMonitoringUptimeCheckConfigConfig.getContentMatchers()- Parameters:
contentMatchers- content_matchers block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#content_matchers MonitoringUptimeCheckConfig#content_matchers}- Returns:
this
-
contentMatchers
@Stability(Stable) public MonitoringUptimeCheckConfigConfig.Builder contentMatchers(List<? extends MonitoringUptimeCheckConfigContentMatchers> contentMatchers)
Sets the value ofMonitoringUptimeCheckConfigConfig.getContentMatchers()- Parameters:
contentMatchers- content_matchers block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#content_matchers MonitoringUptimeCheckConfig#content_matchers}- Returns:
this
-
httpCheck
@Stability(Stable) public MonitoringUptimeCheckConfigConfig.Builder httpCheck(MonitoringUptimeCheckConfigHttpCheck httpCheck)
Sets the value ofMonitoringUptimeCheckConfigConfig.getHttpCheck()- Parameters:
httpCheck- http_check block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#http_check MonitoringUptimeCheckConfig#http_check}- Returns:
this
-
id
@Stability(Stable) public MonitoringUptimeCheckConfigConfig.Builder id(String id)
Sets the value ofMonitoringUptimeCheckConfigConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#id MonitoringUptimeCheckConfig#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
monitoredResource
@Stability(Stable) public MonitoringUptimeCheckConfigConfig.Builder monitoredResource(MonitoringUptimeCheckConfigMonitoredResource monitoredResource)
Sets the value ofMonitoringUptimeCheckConfigConfig.getMonitoredResource()- Parameters:
monitoredResource- monitored_resource block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#monitored_resource MonitoringUptimeCheckConfig#monitored_resource}- Returns:
this
-
period
@Stability(Stable) public MonitoringUptimeCheckConfigConfig.Builder period(String period)
Sets the value ofMonitoringUptimeCheckConfigConfig.getPeriod()- Parameters:
period- How often, in seconds, the uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 300s. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#period MonitoringUptimeCheckConfig#period}- Returns:
this
-
project
@Stability(Stable) public MonitoringUptimeCheckConfigConfig.Builder project(String project)
Sets the value ofMonitoringUptimeCheckConfigConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#project MonitoringUptimeCheckConfig#project}.- Returns:
this
-
resourceGroup
@Stability(Stable) public MonitoringUptimeCheckConfigConfig.Builder resourceGroup(MonitoringUptimeCheckConfigResourceGroup resourceGroup)
Sets the value ofMonitoringUptimeCheckConfigConfig.getResourceGroup()- Parameters:
resourceGroup- resource_group block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#resource_group MonitoringUptimeCheckConfig#resource_group}- Returns:
this
-
selectedRegions
@Stability(Stable) public MonitoringUptimeCheckConfigConfig.Builder selectedRegions(List<String> selectedRegions)
Sets the value ofMonitoringUptimeCheckConfigConfig.getSelectedRegions()- Parameters:
selectedRegions- The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions to include a minimum of 3 locations must be provided, or an error message is returned. Not specifying this field will result in uptime checks running from all regions. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#selected_regions MonitoringUptimeCheckConfig#selected_regions}- Returns:
this
-
syntheticMonitor
@Stability(Stable) public MonitoringUptimeCheckConfigConfig.Builder syntheticMonitor(MonitoringUptimeCheckConfigSyntheticMonitor syntheticMonitor)
Sets the value ofMonitoringUptimeCheckConfigConfig.getSyntheticMonitor()- Parameters:
syntheticMonitor- synthetic_monitor block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#synthetic_monitor MonitoringUptimeCheckConfig#synthetic_monitor}- Returns:
this
-
tcpCheck
@Stability(Stable) public MonitoringUptimeCheckConfigConfig.Builder tcpCheck(MonitoringUptimeCheckConfigTcpCheck tcpCheck)
Sets the value ofMonitoringUptimeCheckConfigConfig.getTcpCheck()- Parameters:
tcpCheck- tcp_check block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#tcp_check MonitoringUptimeCheckConfig#tcp_check}- Returns:
this
-
timeouts
@Stability(Stable) public MonitoringUptimeCheckConfigConfig.Builder timeouts(MonitoringUptimeCheckConfigTimeouts timeouts)
Sets the value ofMonitoringUptimeCheckConfigConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#timeouts MonitoringUptimeCheckConfig#timeouts}- Returns:
this
-
userLabels
@Stability(Stable) public MonitoringUptimeCheckConfigConfig.Builder userLabels(Map<String,String> userLabels)
Sets the value ofMonitoringUptimeCheckConfigConfig.getUserLabels()- Parameters:
userLabels- User-supplied key/value data to be used for organizing and identifying the 'UptimeCheckConfig' objects. The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_uptime_check_config#user_labels MonitoringUptimeCheckConfig#user_labels}- Returns:
this
-
connection
@Stability(Experimental) public MonitoringUptimeCheckConfigConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public MonitoringUptimeCheckConfigConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public MonitoringUptimeCheckConfigConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public MonitoringUptimeCheckConfigConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public MonitoringUptimeCheckConfigConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public MonitoringUptimeCheckConfigConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public MonitoringUptimeCheckConfigConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public MonitoringUptimeCheckConfigConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public MonitoringUptimeCheckConfigConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public MonitoringUptimeCheckConfigConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MonitoringUptimeCheckConfigConfig>- Returns:
- a new instance of
MonitoringUptimeCheckConfigConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-