Class ComputeReservationShareSettings.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_reservation.ComputeReservationShareSettings.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeReservationShareSettings>
- Enclosing interface:
- ComputeReservationShareSettings
@Stability(Stable) public static final class ComputeReservationShareSettings.Builder extends Object implements software.amazon.jsii.Builder<ComputeReservationShareSettings>
A builder forComputeReservationShareSettings
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeReservationShareSettingsbuild()Builds the configured instance.ComputeReservationShareSettings.BuilderprojectMap(com.hashicorp.cdktf.IResolvable projectMap)Sets the value ofComputeReservationShareSettings.getProjectMap()ComputeReservationShareSettings.BuilderprojectMap(List<? extends ComputeReservationShareSettingsProjectMap> projectMap)Sets the value ofComputeReservationShareSettings.getProjectMap()ComputeReservationShareSettings.BuildershareType(String shareType)Sets the value ofComputeReservationShareSettings.getShareType()
-
-
-
Method Detail
-
projectMap
@Stability(Stable) public ComputeReservationShareSettings.Builder projectMap(com.hashicorp.cdktf.IResolvable projectMap)
Sets the value ofComputeReservationShareSettings.getProjectMap()- Parameters:
projectMap- project_map block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_reservation#project_map ComputeReservation#project_map}- Returns:
this
-
projectMap
@Stability(Stable) public ComputeReservationShareSettings.Builder projectMap(List<? extends ComputeReservationShareSettingsProjectMap> projectMap)
Sets the value ofComputeReservationShareSettings.getProjectMap()- Parameters:
projectMap- project_map block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_reservation#project_map ComputeReservation#project_map}- Returns:
this
-
shareType
@Stability(Stable) public ComputeReservationShareSettings.Builder shareType(String shareType)
Sets the value ofComputeReservationShareSettings.getShareType()- Parameters:
shareType- Type of sharing for this shared-reservation Possible values: ["LOCAL", "SPECIFIC_PROJECTS"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_reservation#share_type ComputeReservation#share_type}- Returns:
this
-
build
@Stability(Stable) public ComputeReservationShareSettings build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeReservationShareSettings>- Returns:
- a new instance of
ComputeReservationShareSettings - Throws:
NullPointerException- if any required attribute was not provided
-
-