Class ComputeInstanceServiceAccount.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_instance.ComputeInstanceServiceAccount.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeInstanceServiceAccount>
- Enclosing interface:
- ComputeInstanceServiceAccount
@Stability(Stable) public static final class ComputeInstanceServiceAccount.Builder extends Object implements software.amazon.jsii.Builder<ComputeInstanceServiceAccount>
A builder forComputeInstanceServiceAccount
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeInstanceServiceAccountbuild()Builds the configured instance.ComputeInstanceServiceAccount.Builderemail(String email)Sets the value ofComputeInstanceServiceAccount.getEmail()ComputeInstanceServiceAccount.Builderscopes(List<String> scopes)Sets the value ofComputeInstanceServiceAccount.getScopes()
-
-
-
Method Detail
-
scopes
@Stability(Stable) public ComputeInstanceServiceAccount.Builder scopes(List<String> scopes)
Sets the value ofComputeInstanceServiceAccount.getScopes()- Parameters:
scopes- A list of service scopes. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#scopes ComputeInstance#scopes}- Returns:
this
-
email
@Stability(Stable) public ComputeInstanceServiceAccount.Builder email(String email)
Sets the value ofComputeInstanceServiceAccount.getEmail()- Parameters:
email- The service account e-mail address. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#email ComputeInstance#email}- Returns:
this
-
build
@Stability(Stable) public ComputeInstanceServiceAccount build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeInstanceServiceAccount>- Returns:
- a new instance of
ComputeInstanceServiceAccount - Throws:
NullPointerException- if any required attribute was not provided
-
-