Class MonitoringAlertPolicyDocumentation.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.monitoring_alert_policy.MonitoringAlertPolicyDocumentation.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MonitoringAlertPolicyDocumentation>
- Enclosing interface:
- MonitoringAlertPolicyDocumentation
@Stability(Stable) public static final class MonitoringAlertPolicyDocumentation.Builder extends Object implements software.amazon.jsii.Builder<MonitoringAlertPolicyDocumentation>
A builder forMonitoringAlertPolicyDocumentation
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MonitoringAlertPolicyDocumentationbuild()Builds the configured instance.MonitoringAlertPolicyDocumentation.Buildercontent(String content)Sets the value ofMonitoringAlertPolicyDocumentation.getContent()MonitoringAlertPolicyDocumentation.Builderlinks(com.hashicorp.cdktf.IResolvable links)Sets the value ofMonitoringAlertPolicyDocumentation.getLinks()MonitoringAlertPolicyDocumentation.Builderlinks(List<? extends MonitoringAlertPolicyDocumentationLinks> links)Sets the value ofMonitoringAlertPolicyDocumentation.getLinks()MonitoringAlertPolicyDocumentation.BuildermimeType(String mimeType)Sets the value ofMonitoringAlertPolicyDocumentation.getMimeType()MonitoringAlertPolicyDocumentation.Buildersubject(String subject)Sets the value ofMonitoringAlertPolicyDocumentation.getSubject()
-
-
-
Method Detail
-
content
@Stability(Stable) public MonitoringAlertPolicyDocumentation.Builder content(String content)
Sets the value ofMonitoringAlertPolicyDocumentation.getContent()- Parameters:
content- The text of the documentation, interpreted according to mimeType. The content may not exceed 8,192 Unicode characters and may not exceed more than 10,240 bytes when encoded in UTF-8 format, whichever is smaller. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#content MonitoringAlertPolicy#content}- Returns:
this
-
links
@Stability(Stable) public MonitoringAlertPolicyDocumentation.Builder links(com.hashicorp.cdktf.IResolvable links)
Sets the value ofMonitoringAlertPolicyDocumentation.getLinks()- Parameters:
links- links block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#links MonitoringAlertPolicy#links}- Returns:
this
-
links
@Stability(Stable) public MonitoringAlertPolicyDocumentation.Builder links(List<? extends MonitoringAlertPolicyDocumentationLinks> links)
Sets the value ofMonitoringAlertPolicyDocumentation.getLinks()- Parameters:
links- links block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#links MonitoringAlertPolicy#links}- Returns:
this
-
mimeType
@Stability(Stable) public MonitoringAlertPolicyDocumentation.Builder mimeType(String mimeType)
Sets the value ofMonitoringAlertPolicyDocumentation.getMimeType()- Parameters:
mimeType- The format of the content field. Presently, only the value "text/markdown" is supported. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#mime_type MonitoringAlertPolicy#mime_type}- Returns:
this
-
subject
@Stability(Stable) public MonitoringAlertPolicyDocumentation.Builder subject(String subject)
Sets the value ofMonitoringAlertPolicyDocumentation.getSubject()- Parameters:
subject- The subject line of the notification. The subject line may not exceed 10,240 bytes. In notifications generated by this policy the contents of the subject line after variable expansion will be truncated to 255 bytes or shorter at the latest UTF-8 character boundary. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy#subject MonitoringAlertPolicy#subject}- Returns:
this
-
build
@Stability(Stable) public MonitoringAlertPolicyDocumentation build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MonitoringAlertPolicyDocumentation>- Returns:
- a new instance of
MonitoringAlertPolicyDocumentation - Throws:
NullPointerException- if any required attribute was not provided
-
-