Class VertexAiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecs.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.vertex_ai_deployment_resource_pool.VertexAiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecs.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<VertexAiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecs>
- Enclosing interface:
- VertexAiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecs
@Stability(Stable) public static final class VertexAiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecs.Builder extends Object implements software.amazon.jsii.Builder<VertexAiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecs>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VertexAiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecsbuild()Builds the configured instance.VertexAiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecs.BuildermetricName(String metricName)VertexAiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecs.Buildertarget(Number target)
-
-
-
Method Detail
-
metricName
@Stability(Stable) public VertexAiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecs.Builder metricName(String metricName)
Sets the value ofVertexAiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecs.getMetricName()- Parameters:
metricName- The resource metric name. Supported metrics: For Online Prediction: * 'aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle' * 'aiplatform.googleapis.com/prediction/online/cpu/utilization'. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vertex_ai_deployment_resource_pool#metric_name VertexAiDeploymentResourcePool#metric_name}- Returns:
this
-
target
@Stability(Stable) public VertexAiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecs.Builder target(Number target)
Sets the value ofVertexAiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecs.getTarget()- Parameters:
target- The target resource utilization in percentage (1% - 100%) for the given metric;. once the real usage deviates from the target by a certain percentage, the machine replicas change. The default value is 60 (representing 60%) if not provided. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vertex_ai_deployment_resource_pool#target VertexAiDeploymentResourcePool#target}- Returns:
this
-
build
@Stability(Stable) public VertexAiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecs build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VertexAiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecs>- Returns:
- a new instance of
VertexAiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecs - Throws:
NullPointerException- if any required attribute was not provided
-
-