Class LoggingOrganizationSettingsConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.logging_organization_settings.LoggingOrganizationSettingsConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LoggingOrganizationSettingsConfig>
- Enclosing interface:
- LoggingOrganizationSettingsConfig
@Stability(Stable) public static final class LoggingOrganizationSettingsConfig.Builder extends Object implements software.amazon.jsii.Builder<LoggingOrganizationSettingsConfig>
A builder forLoggingOrganizationSettingsConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
organization
@Stability(Stable) public LoggingOrganizationSettingsConfig.Builder organization(String organization)
Sets the value ofLoggingOrganizationSettingsConfig.getOrganization()- Parameters:
organization- The organization for which to retrieve or configure settings. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_organization_settings#organization LoggingOrganizationSettings#organization}- Returns:
this
-
disableDefaultSink
@Stability(Stable) public LoggingOrganizationSettingsConfig.Builder disableDefaultSink(Boolean disableDefaultSink)
Sets the value ofLoggingOrganizationSettingsConfig.getDisableDefaultSink()- Parameters:
disableDefaultSink- If set to true, the _Default sink in newly created projects and folders will created in a disabled state. This can be used to automatically disable log storage if there is already an aggregated sink configured in the hierarchy. The _Default sink can be re-enabled manually if needed. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_organization_settings#disable_default_sink LoggingOrganizationSettings#disable_default_sink}- Returns:
this
-
disableDefaultSink
@Stability(Stable) public LoggingOrganizationSettingsConfig.Builder disableDefaultSink(com.hashicorp.cdktf.IResolvable disableDefaultSink)
Sets the value ofLoggingOrganizationSettingsConfig.getDisableDefaultSink()- Parameters:
disableDefaultSink- If set to true, the _Default sink in newly created projects and folders will created in a disabled state. This can be used to automatically disable log storage if there is already an aggregated sink configured in the hierarchy. The _Default sink can be re-enabled manually if needed. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_organization_settings#disable_default_sink LoggingOrganizationSettings#disable_default_sink}- Returns:
this
-
id
@Stability(Stable) public LoggingOrganizationSettingsConfig.Builder id(String id)
Sets the value ofLoggingOrganizationSettingsConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_organization_settings#id LoggingOrganizationSettings#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
-
kmsKeyName
@Stability(Stable) public LoggingOrganizationSettingsConfig.Builder kmsKeyName(String kmsKeyName)
Sets the value ofLoggingOrganizationSettingsConfig.getKmsKeyName()- Parameters:
kmsKeyName- The resource name for the configured Cloud KMS key. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_organization_settings#kms_key_name LoggingOrganizationSettings#kms_key_name}- Returns:
this
-
storageLocation
@Stability(Stable) public LoggingOrganizationSettingsConfig.Builder storageLocation(String storageLocation)
Sets the value ofLoggingOrganizationSettingsConfig.getStorageLocation()- Parameters:
storageLocation- The storage location that Cloud Logging will use to create new resources when a location is needed but not explicitly provided. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_organization_settings#storage_location LoggingOrganizationSettings#storage_location}- Returns:
this
-
timeouts
@Stability(Stable) public LoggingOrganizationSettingsConfig.Builder timeouts(LoggingOrganizationSettingsTimeouts timeouts)
Sets the value ofLoggingOrganizationSettingsConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_organization_settings#timeouts LoggingOrganizationSettings#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public LoggingOrganizationSettingsConfig.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 LoggingOrganizationSettingsConfig.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 LoggingOrganizationSettingsConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public LoggingOrganizationSettingsConfig.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 LoggingOrganizationSettingsConfig.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 LoggingOrganizationSettingsConfig.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 LoggingOrganizationSettingsConfig.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 LoggingOrganizationSettingsConfig.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 LoggingOrganizationSettingsConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public LoggingOrganizationSettingsConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LoggingOrganizationSettingsConfig>- Returns:
- a new instance of
LoggingOrganizationSettingsConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-