Class CfnInferenceComponent.MetricsEndpointProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnInferenceComponent.MetricsEndpointProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInferenceComponent.MetricsEndpointProperty>
- Enclosing interface:
CfnInferenceComponent.MetricsEndpointProperty
@Stability(Stable)
public static final class CfnInferenceComponent.MetricsEndpointProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInferenceComponent.MetricsEndpointProperty>
A builder for
CfnInferenceComponent.MetricsEndpointProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.metricPublishFrequencyInSeconds(Number metricPublishFrequencyInSeconds) metricsEndpointPath(String metricsEndpointPath) Sets the value ofCfnInferenceComponent.MetricsEndpointProperty.getMetricsEndpointPath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricsEndpointPath
@Stability(Stable) public CfnInferenceComponent.MetricsEndpointProperty.Builder metricsEndpointPath(String metricsEndpointPath) Sets the value ofCfnInferenceComponent.MetricsEndpointProperty.getMetricsEndpointPath()- Parameters:
metricsEndpointPath- The path to the Prometheus formatted metrics endpoint exposed by the container. This parameter is required.- Returns:
this
-
metricPublishFrequencyInSeconds
@Stability(Stable) public CfnInferenceComponent.MetricsEndpointProperty.Builder metricPublishFrequencyInSeconds(Number metricPublishFrequencyInSeconds) Sets the value ofCfnInferenceComponent.MetricsEndpointProperty.getMetricPublishFrequencyInSeconds()- Parameters:
metricPublishFrequencyInSeconds- The interval, in seconds, at which container metrics scraped from the endpoint are published to Amazon CloudWatch. Valid values per the SageMaker API Reference are 10, 30, 60, 120, 180, 240 and 300; the service validates the value.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInferenceComponent.MetricsEndpointProperty>- Returns:
- a new instance of
CfnInferenceComponent.MetricsEndpointProperty - Throws:
NullPointerException- if any required attribute was not provided
-