Class ComputeInstanceTemplateServiceAccount.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_instance_template.ComputeInstanceTemplateServiceAccount.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeInstanceTemplateServiceAccount>
- Enclosing interface:
- ComputeInstanceTemplateServiceAccount
@Stability(Stable) public static final class ComputeInstanceTemplateServiceAccount.Builder extends Object implements software.amazon.jsii.Builder<ComputeInstanceTemplateServiceAccount>
A builder forComputeInstanceTemplateServiceAccount
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeInstanceTemplateServiceAccountbuild()Builds the configured instance.ComputeInstanceTemplateServiceAccount.Builderemail(String email)Sets the value ofComputeInstanceTemplateServiceAccount.getEmail()ComputeInstanceTemplateServiceAccount.Builderscopes(List<String> scopes)Sets the value ofComputeInstanceTemplateServiceAccount.getScopes()
-
-
-
Method Detail
-
scopes
@Stability(Stable) public ComputeInstanceTemplateServiceAccount.Builder scopes(List<String> scopes)
Sets the value ofComputeInstanceTemplateServiceAccount.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_instance_template#scopes ComputeInstanceTemplate#scopes}- Returns:
this
-
email
@Stability(Stable) public ComputeInstanceTemplateServiceAccount.Builder email(String email)
Sets the value ofComputeInstanceTemplateServiceAccount.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_instance_template#email ComputeInstanceTemplate#email}- Returns:
this
-
build
@Stability(Stable) public ComputeInstanceTemplateServiceAccount build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeInstanceTemplateServiceAccount>- Returns:
- a new instance of
ComputeInstanceTemplateServiceAccount - Throws:
NullPointerException- if any required attribute was not provided
-
-