Class ComputeRegionInstanceTemplateServiceAccount.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_instance_template.ComputeRegionInstanceTemplateServiceAccount.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionInstanceTemplateServiceAccount>
- Enclosing interface:
- ComputeRegionInstanceTemplateServiceAccount
@Stability(Stable) public static final class ComputeRegionInstanceTemplateServiceAccount.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionInstanceTemplateServiceAccount>
A builder forComputeRegionInstanceTemplateServiceAccount
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeRegionInstanceTemplateServiceAccountbuild()Builds the configured instance.ComputeRegionInstanceTemplateServiceAccount.Builderemail(String email)Sets the value ofComputeRegionInstanceTemplateServiceAccount.getEmail()ComputeRegionInstanceTemplateServiceAccount.Builderscopes(List<String> scopes)Sets the value ofComputeRegionInstanceTemplateServiceAccount.getScopes()
-
-
-
Method Detail
-
scopes
@Stability(Stable) public ComputeRegionInstanceTemplateServiceAccount.Builder scopes(List<String> scopes)
Sets the value ofComputeRegionInstanceTemplateServiceAccount.getScopes()- Parameters:
scopes- A list of service scopes. This parameter is required. Both OAuth2 URLs and gcloud short names are supported. To allow full access to all Cloud APIs, use the cloud-platform scope. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_instance_template#scopes ComputeRegionInstanceTemplate#scopes}- Returns:
this
-
email
@Stability(Stable) public ComputeRegionInstanceTemplateServiceAccount.Builder email(String email)
Sets the value ofComputeRegionInstanceTemplateServiceAccount.getEmail()- Parameters:
email- The service account e-mail address. If not given, the default Google Compute Engine service account is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_instance_template#email ComputeRegionInstanceTemplate#email}- Returns:
this
-
build
@Stability(Stable) public ComputeRegionInstanceTemplateServiceAccount build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionInstanceTemplateServiceAccount>- Returns:
- a new instance of
ComputeRegionInstanceTemplateServiceAccount - Throws:
NullPointerException- if any required attribute was not provided
-
-