Class AssuredWorkloadsWorkloadResourceSettings.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.assured_workloads_workload.AssuredWorkloadsWorkloadResourceSettings.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AssuredWorkloadsWorkloadResourceSettings>
- Enclosing interface:
- AssuredWorkloadsWorkloadResourceSettings
@Stability(Stable) public static final class AssuredWorkloadsWorkloadResourceSettings.Builder extends Object implements software.amazon.jsii.Builder<AssuredWorkloadsWorkloadResourceSettings>
A builder forAssuredWorkloadsWorkloadResourceSettings
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssuredWorkloadsWorkloadResourceSettingsbuild()Builds the configured instance.AssuredWorkloadsWorkloadResourceSettings.BuilderdisplayName(String displayName)Sets the value ofAssuredWorkloadsWorkloadResourceSettings.getDisplayName()AssuredWorkloadsWorkloadResourceSettings.BuilderresourceId(String resourceId)Sets the value ofAssuredWorkloadsWorkloadResourceSettings.getResourceId()AssuredWorkloadsWorkloadResourceSettings.BuilderresourceType(String resourceType)Sets the value ofAssuredWorkloadsWorkloadResourceSettings.getResourceType()
-
-
-
Method Detail
-
displayName
@Stability(Stable) public AssuredWorkloadsWorkloadResourceSettings.Builder displayName(String displayName)
Sets the value ofAssuredWorkloadsWorkloadResourceSettings.getDisplayName()- Parameters:
displayName- User-assigned resource display name. If not empty it will be used to create a resource with the specified name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/assured_workloads_workload#display_name AssuredWorkloadsWorkload#display_name}- Returns:
this
-
resourceId
@Stability(Stable) public AssuredWorkloadsWorkloadResourceSettings.Builder resourceId(String resourceId)
Sets the value ofAssuredWorkloadsWorkloadResourceSettings.getResourceId()- Parameters:
resourceId- Resource identifier. For a project this represents projectId. If the project is already taken, the workload creation will fail. For KeyRing, this represents the keyring_id. For a folder, don't set this value as folder_id is assigned by Google. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/assured_workloads_workload#resource_id AssuredWorkloadsWorkload#resource_id}- Returns:
this
-
resourceType
@Stability(Stable) public AssuredWorkloadsWorkloadResourceSettings.Builder resourceType(String resourceType)
Sets the value ofAssuredWorkloadsWorkloadResourceSettings.getResourceType()- Parameters:
resourceType- Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT) Possible values: RESOURCE_TYPE_UNSPECIFIED, CONSUMER_PROJECT, ENCRYPTION_KEYS_PROJECT, KEYRING, CONSUMER_FOLDER Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/assured_workloads_workload#resource_type AssuredWorkloadsWorkload#resource_type}- Returns:
this
-
build
@Stability(Stable) public AssuredWorkloadsWorkloadResourceSettings build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AssuredWorkloadsWorkloadResourceSettings>- Returns:
- a new instance of
AssuredWorkloadsWorkloadResourceSettings - Throws:
NullPointerException- if any required attribute was not provided
-
-