Class CloudQuotasQuotaPreferenceConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloud_quotas_quota_preference.CloudQuotasQuotaPreferenceConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudQuotasQuotaPreferenceConfig>
- Enclosing interface:
- CloudQuotasQuotaPreferenceConfig
@Stability(Stable) public static final class CloudQuotasQuotaPreferenceConfig.Builder extends Object implements software.amazon.jsii.Builder<CloudQuotasQuotaPreferenceConfig>
A builder forCloudQuotasQuotaPreferenceConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
quotaConfig
@Stability(Stable) public CloudQuotasQuotaPreferenceConfig.Builder quotaConfig(CloudQuotasQuotaPreferenceQuotaConfig quotaConfig)
Sets the value ofCloudQuotasQuotaPreferenceConfig.getQuotaConfig()- Parameters:
quotaConfig- quota_config block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_quotas_quota_preference#quota_config CloudQuotasQuotaPreference#quota_config}- Returns:
this
-
contactEmail
@Stability(Stable) public CloudQuotasQuotaPreferenceConfig.Builder contactEmail(String contactEmail)
Sets the value ofCloudQuotasQuotaPreferenceConfig.getContactEmail()- Parameters:
contactEmail- An email address that can be used for quota related communication between the Google Cloud and the user in case the Google Cloud needs further information to make a decision on whether the user preferred quota can be granted. The Google account for the email address must have quota update permission for the project, folder or organization this quota preference is for. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_quotas_quota_preference#contact_email CloudQuotasQuotaPreference#contact_email}- Returns:
this
-
dimensions
@Stability(Stable) public CloudQuotasQuotaPreferenceConfig.Builder dimensions(Map<String,String> dimensions)
Sets the value ofCloudQuotasQuotaPreferenceConfig.getDimensions()- Parameters:
dimensions- The dimensions that this quota preference applies to. The key of the map entry is the name of a dimension, such as "region", "zone", "network_id", and the value of the map entry is the dimension value. If a dimension is missing from the map of dimensions, the quota preference applies to all the dimension values except for those that have other quota preferences configured for the specific value. NOTE: QuotaPreferences can only be applied across all values of "user" and "resource" dimension. Do not set values for "user" or "resource" in the dimension map. Example: '{"provider": "Foo Inc"}' where "provider" is a service specific dimension. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_quotas_quota_preference#dimensions CloudQuotasQuotaPreference#dimensions}- Returns:
this
-
id
@Stability(Stable) public CloudQuotasQuotaPreferenceConfig.Builder id(String id)
Sets the value ofCloudQuotasQuotaPreferenceConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_quotas_quota_preference#id CloudQuotasQuotaPreference#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
-
ignoreSafetyChecks
@Stability(Stable) public CloudQuotasQuotaPreferenceConfig.Builder ignoreSafetyChecks(String ignoreSafetyChecks)
Sets the value ofCloudQuotasQuotaPreferenceConfig.getIgnoreSafetyChecks()- Parameters:
ignoreSafetyChecks- The list of quota safety checks to be ignored. Default value: "QUOTA_SAFETY_CHECK_UNSPECIFIED" Possible values: ["QUOTA_SAFETY_CHECK_UNSPECIFIED", "QUOTA_DECREASE_BELOW_USAGE", "QUOTA_DECREASE_PERCENTAGE_TOO_HIGH"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_quotas_quota_preference#ignore_safety_checks CloudQuotasQuotaPreference#ignore_safety_checks}- Returns:
this
-
justification
@Stability(Stable) public CloudQuotasQuotaPreferenceConfig.Builder justification(String justification)
Sets the value ofCloudQuotasQuotaPreferenceConfig.getJustification()- Parameters:
justification- The reason / justification for this quota preference. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_quotas_quota_preference#justification CloudQuotasQuotaPreference#justification}- Returns:
this
-
name
@Stability(Stable) public CloudQuotasQuotaPreferenceConfig.Builder name(String name)
Sets the value ofCloudQuotasQuotaPreferenceConfig.getName()- Parameters:
name- The resource name of the quota preference. Required except in the CREATE requests. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_quotas_quota_preference#name CloudQuotasQuotaPreference#name}- Returns:
this
-
parent
@Stability(Stable) public CloudQuotasQuotaPreferenceConfig.Builder parent(String parent)
Sets the value ofCloudQuotasQuotaPreferenceConfig.getParent()- Parameters:
parent- The parent of the quota preference. Allowed parents are "projects/[project-id / number]" or "folders/[folder-id / number]" or "organizations/[org-id / number]". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_quotas_quota_preference#parent CloudQuotasQuotaPreference#parent}- Returns:
this
-
quotaId
@Stability(Stable) public CloudQuotasQuotaPreferenceConfig.Builder quotaId(String quotaId)
Sets the value ofCloudQuotasQuotaPreferenceConfig.getQuotaId()- Parameters:
quotaId- The id of the quota to which the quota preference is applied. A quota id is unique in the service. Example: 'CPUS-per-project-region'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_quotas_quota_preference#quota_id CloudQuotasQuotaPreference#quota_id}- Returns:
this
-
service
@Stability(Stable) public CloudQuotasQuotaPreferenceConfig.Builder service(String service)
Sets the value ofCloudQuotasQuotaPreferenceConfig.getService()- Parameters:
service- The name of the service to which the quota preference is applied. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_quotas_quota_preference#service CloudQuotasQuotaPreference#service}- Returns:
this
-
timeouts
@Stability(Stable) public CloudQuotasQuotaPreferenceConfig.Builder timeouts(CloudQuotasQuotaPreferenceTimeouts timeouts)
Sets the value ofCloudQuotasQuotaPreferenceConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_quotas_quota_preference#timeouts CloudQuotasQuotaPreference#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public CloudQuotasQuotaPreferenceConfig.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 CloudQuotasQuotaPreferenceConfig.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 CloudQuotasQuotaPreferenceConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public CloudQuotasQuotaPreferenceConfig.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 CloudQuotasQuotaPreferenceConfig.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 CloudQuotasQuotaPreferenceConfig.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 CloudQuotasQuotaPreferenceConfig.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 CloudQuotasQuotaPreferenceConfig.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 CloudQuotasQuotaPreferenceConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public CloudQuotasQuotaPreferenceConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudQuotasQuotaPreferenceConfig>- Returns:
- a new instance of
CloudQuotasQuotaPreferenceConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-