Class ComputeInstanceTemplateSchedulingMaxRunDuration.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_instance_template.ComputeInstanceTemplateSchedulingMaxRunDuration.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeInstanceTemplateSchedulingMaxRunDuration>
- Enclosing interface:
- ComputeInstanceTemplateSchedulingMaxRunDuration
@Stability(Stable) public static final class ComputeInstanceTemplateSchedulingMaxRunDuration.Builder extends Object implements software.amazon.jsii.Builder<ComputeInstanceTemplateSchedulingMaxRunDuration>
A builder forComputeInstanceTemplateSchedulingMaxRunDuration
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeInstanceTemplateSchedulingMaxRunDurationbuild()Builds the configured instance.ComputeInstanceTemplateSchedulingMaxRunDuration.Buildernanos(Number nanos)Sets the value ofComputeInstanceTemplateSchedulingMaxRunDuration.getNanos()ComputeInstanceTemplateSchedulingMaxRunDuration.Builderseconds(Number seconds)Sets the value ofComputeInstanceTemplateSchedulingMaxRunDuration.getSeconds()
-
-
-
Method Detail
-
seconds
@Stability(Stable) public ComputeInstanceTemplateSchedulingMaxRunDuration.Builder seconds(Number seconds)
Sets the value ofComputeInstanceTemplateSchedulingMaxRunDuration.getSeconds()- Parameters:
seconds- Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#seconds ComputeInstanceTemplate#seconds}- Returns:
this
-
nanos
@Stability(Stable) public ComputeInstanceTemplateSchedulingMaxRunDuration.Builder nanos(Number nanos)
Sets the value ofComputeInstanceTemplateSchedulingMaxRunDuration.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_instance_template#nanos ComputeInstanceTemplate#nanos}- Returns:
this
-
build
@Stability(Stable) public ComputeInstanceTemplateSchedulingMaxRunDuration build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeInstanceTemplateSchedulingMaxRunDuration>- Returns:
- a new instance of
ComputeInstanceTemplateSchedulingMaxRunDuration - Throws:
NullPointerException- if any required attribute was not provided
-
-