Class ComputeResizeRequestRequestedRunDuration.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_resize_request.ComputeResizeRequestRequestedRunDuration.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeResizeRequestRequestedRunDuration>
- Enclosing interface:
- ComputeResizeRequestRequestedRunDuration
@Stability(Stable) public static final class ComputeResizeRequestRequestedRunDuration.Builder extends Object implements software.amazon.jsii.Builder<ComputeResizeRequestRequestedRunDuration>
A builder forComputeResizeRequestRequestedRunDuration
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeResizeRequestRequestedRunDurationbuild()Builds the configured instance.ComputeResizeRequestRequestedRunDuration.Buildernanos(Number nanos)Sets the value ofComputeResizeRequestRequestedRunDuration.getNanos()ComputeResizeRequestRequestedRunDuration.Builderseconds(String seconds)Sets the value ofComputeResizeRequestRequestedRunDuration.getSeconds()
-
-
-
Method Detail
-
seconds
@Stability(Stable) public ComputeResizeRequestRequestedRunDuration.Builder seconds(String seconds)
Sets the value ofComputeResizeRequestRequestedRunDuration.getSeconds()- Parameters:
seconds- Span of time at a resolution of a second. This parameter is required. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_resize_request#seconds ComputeResizeRequest#seconds}- Returns:
this
-
nanos
@Stability(Stable) public ComputeResizeRequestRequestedRunDuration.Builder nanos(Number nanos)
Sets the value ofComputeResizeRequestRequestedRunDuration.getNanos()- Parameters:
nanos- Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_resize_request#nanos ComputeResizeRequest#nanos}- Returns:
this
-
build
@Stability(Stable) public ComputeResizeRequestRequestedRunDuration build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeResizeRequestRequestedRunDuration>- Returns:
- a new instance of
ComputeResizeRequestRequestedRunDuration - Throws:
NullPointerException- if any required attribute was not provided
-
-