Class EssentialContactsContactConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.essential_contacts_contact.EssentialContactsContactConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EssentialContactsContactConfig>
- Enclosing interface:
- EssentialContactsContactConfig
@Stability(Stable) public static final class EssentialContactsContactConfig.Builder extends Object implements software.amazon.jsii.Builder<EssentialContactsContactConfig>
A builder forEssentialContactsContactConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EssentialContactsContactConfigbuild()Builds the configured instance.EssentialContactsContactConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()EssentialContactsContactConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()EssentialContactsContactConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()EssentialContactsContactConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()EssentialContactsContactConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()EssentialContactsContactConfig.Builderemail(String email)Sets the value ofEssentialContactsContactConfig.getEmail()EssentialContactsContactConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()EssentialContactsContactConfig.Builderid(String id)Sets the value ofEssentialContactsContactConfig.getId()EssentialContactsContactConfig.BuilderlanguageTag(String languageTag)Sets the value ofEssentialContactsContactConfig.getLanguageTag()EssentialContactsContactConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()EssentialContactsContactConfig.BuildernotificationCategorySubscriptions(List<String> notificationCategorySubscriptions)Sets the value ofEssentialContactsContactConfig.getNotificationCategorySubscriptions()EssentialContactsContactConfig.Builderparent(String parent)Sets the value ofEssentialContactsContactConfig.getParent()EssentialContactsContactConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()EssentialContactsContactConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()EssentialContactsContactConfig.Buildertimeouts(EssentialContactsContactTimeouts timeouts)Sets the value ofEssentialContactsContactConfig.getTimeouts()
-
-
-
Method Detail
-
email
@Stability(Stable) public EssentialContactsContactConfig.Builder email(String email)
Sets the value ofEssentialContactsContactConfig.getEmail()- Parameters:
email- The email address to send notifications to. This does not need to be a Google account. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/essential_contacts_contact#email EssentialContactsContact#email}- Returns:
this
-
languageTag
@Stability(Stable) public EssentialContactsContactConfig.Builder languageTag(String languageTag)
Sets the value ofEssentialContactsContactConfig.getLanguageTag()- Parameters:
languageTag- The preferred language for notifications, as a ISO 639-1 language code. This parameter is required. See Supported languages for a list of supported languages. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/essential_contacts_contact#language_tag EssentialContactsContact#language_tag}- Returns:
this
-
notificationCategorySubscriptions
@Stability(Stable) public EssentialContactsContactConfig.Builder notificationCategorySubscriptions(List<String> notificationCategorySubscriptions)
Sets the value ofEssentialContactsContactConfig.getNotificationCategorySubscriptions()- Parameters:
notificationCategorySubscriptions- The categories of notifications that the contact will receive communications for. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/essential_contacts_contact#notification_category_subscriptions EssentialContactsContact#notification_category_subscriptions}- Returns:
this
-
parent
@Stability(Stable) public EssentialContactsContactConfig.Builder parent(String parent)
Sets the value ofEssentialContactsContactConfig.getParent()- Parameters:
parent- The resource to save this contact for. Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id}. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/essential_contacts_contact#parent EssentialContactsContact#parent}- Returns:
this
-
id
@Stability(Stable) public EssentialContactsContactConfig.Builder id(String id)
Sets the value ofEssentialContactsContactConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/essential_contacts_contact#id EssentialContactsContact#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
-
timeouts
@Stability(Stable) public EssentialContactsContactConfig.Builder timeouts(EssentialContactsContactTimeouts timeouts)
Sets the value ofEssentialContactsContactConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/essential_contacts_contact#timeouts EssentialContactsContact#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public EssentialContactsContactConfig.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 EssentialContactsContactConfig.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 EssentialContactsContactConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public EssentialContactsContactConfig.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 EssentialContactsContactConfig.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 EssentialContactsContactConfig.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 EssentialContactsContactConfig.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 EssentialContactsContactConfig.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 EssentialContactsContactConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public EssentialContactsContactConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EssentialContactsContactConfig>- Returns:
- a new instance of
EssentialContactsContactConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-