Class MonitoringSloConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.monitoring_slo.MonitoringSloConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MonitoringSloConfig>
- Enclosing interface:
- MonitoringSloConfig
@Stability(Stable) public static final class MonitoringSloConfig.Builder extends Object implements software.amazon.jsii.Builder<MonitoringSloConfig>
A builder forMonitoringSloConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
goal
@Stability(Stable) public MonitoringSloConfig.Builder goal(Number goal)
Sets the value ofMonitoringSloConfig.getGoal()- Parameters:
goal- The fraction of service that must be good in order for this objective to be met. This parameter is required. 0 < goal <= 0.999 Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#goal MonitoringSlo#goal}- Returns:
this
-
service
@Stability(Stable) public MonitoringSloConfig.Builder service(String service)
Sets the value ofMonitoringSloConfig.getService()- Parameters:
service- ID of the service to which this SLO belongs. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#service MonitoringSlo#service}- Returns:
this
-
basicSli
@Stability(Stable) public MonitoringSloConfig.Builder basicSli(MonitoringSloBasicSli basicSli)
Sets the value ofMonitoringSloConfig.getBasicSli()- Parameters:
basicSli- basic_sli block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#basic_sli MonitoringSlo#basic_sli}- Returns:
this
-
calendarPeriod
@Stability(Stable) public MonitoringSloConfig.Builder calendarPeriod(String calendarPeriod)
Sets the value ofMonitoringSloConfig.getCalendarPeriod()- Parameters:
calendarPeriod- A calendar period, semantically "since the start of the current". Possible values: ["DAY", "WEEK", "FORTNIGHT", "MONTH"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#calendar_period MonitoringSlo#calendar_period} - Returns:
this
-
displayName
@Stability(Stable) public MonitoringSloConfig.Builder displayName(String displayName)
Sets the value ofMonitoringSloConfig.getDisplayName()- Parameters:
displayName- Name used for UI elements listing this SLO. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#display_name MonitoringSlo#display_name}- Returns:
this
-
id
@Stability(Stable) public MonitoringSloConfig.Builder id(String id)
Sets the value ofMonitoringSloConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#id MonitoringSlo#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
-
project
@Stability(Stable) public MonitoringSloConfig.Builder project(String project)
Sets the value ofMonitoringSloConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#project MonitoringSlo#project}.- Returns:
this
-
requestBasedSli
@Stability(Stable) public MonitoringSloConfig.Builder requestBasedSli(MonitoringSloRequestBasedSli requestBasedSli)
Sets the value ofMonitoringSloConfig.getRequestBasedSli()- Parameters:
requestBasedSli- request_based_sli block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#request_based_sli MonitoringSlo#request_based_sli}- Returns:
this
-
rollingPeriodDays
@Stability(Stable) public MonitoringSloConfig.Builder rollingPeriodDays(Number rollingPeriodDays)
Sets the value ofMonitoringSloConfig.getRollingPeriodDays()- Parameters:
rollingPeriodDays- A rolling time period, semantically "in the past X days". Must be between 1 to 30 days, inclusive. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#rolling_period_days MonitoringSlo#rolling_period_days}- Returns:
this
-
sloId
@Stability(Stable) public MonitoringSloConfig.Builder sloId(String sloId)
Sets the value ofMonitoringSloConfig.getSloId()- Parameters:
sloId- The id to use for this ServiceLevelObjective. If omitted, an id will be generated instead. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#slo_id MonitoringSlo#slo_id}- Returns:
this
-
timeouts
@Stability(Stable) public MonitoringSloConfig.Builder timeouts(MonitoringSloTimeouts timeouts)
Sets the value ofMonitoringSloConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#timeouts MonitoringSlo#timeouts}- Returns:
this
-
userLabels
@Stability(Stable) public MonitoringSloConfig.Builder userLabels(Map<String,String> userLabels)
Sets the value ofMonitoringSloConfig.getUserLabels()- Parameters:
userLabels- This field is intended to be used for organizing and identifying the AlertPolicy 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_slo#user_labels MonitoringSlo#user_labels}- Returns:
this
-
windowsBasedSli
@Stability(Stable) public MonitoringSloConfig.Builder windowsBasedSli(MonitoringSloWindowsBasedSli windowsBasedSli)
Sets the value ofMonitoringSloConfig.getWindowsBasedSli()- Parameters:
windowsBasedSli- windows_based_sli block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo#windows_based_sli MonitoringSlo#windows_based_sli}- Returns:
this
-
connection
@Stability(Experimental) public MonitoringSloConfig.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 MonitoringSloConfig.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 MonitoringSloConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public MonitoringSloConfig.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 MonitoringSloConfig.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 MonitoringSloConfig.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 MonitoringSloConfig.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 MonitoringSloConfig.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 MonitoringSloConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public MonitoringSloConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MonitoringSloConfig>- Returns:
- a new instance of
MonitoringSloConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-