Class CfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.applicationsignals.CfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty>
- Enclosing interface:
CfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty
@Stability(Stable)
public static final class CfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dependencyConfig(CfnServiceLevelObjectivePropsMixin.DependencyConfigProperty dependencyConfig) dependencyConfig(IResolvable dependencyConfig) keyAttributes(Map<String, String> keyAttributes) keyAttributes(IResolvable keyAttributes) metricType(String metricType) monitoredRequestCountMetric(CfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty monitoredRequestCountMetric) monitoredRequestCountMetric(IResolvable monitoredRequestCountMetric) operationName(String operationName) totalRequestCountMetric(List<? extends Object> totalRequestCountMetric) totalRequestCountMetric(IResolvable totalRequestCountMetric)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dependencyConfig
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty.Builder dependencyConfig(IResolvable dependencyConfig) Sets the value ofCfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty.getDependencyConfig()- Parameters:
dependencyConfig- Identifies the dependency using theDependencyKeyAttributesandDependencyOperationName.- Returns:
this
-
dependencyConfig
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty.Builder dependencyConfig(CfnServiceLevelObjectivePropsMixin.DependencyConfigProperty dependencyConfig) Sets the value ofCfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty.getDependencyConfig()- Parameters:
dependencyConfig- Identifies the dependency using theDependencyKeyAttributesandDependencyOperationName.- Returns:
this
-
keyAttributes
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty.Builder keyAttributes(Map<String, String> keyAttributes) Sets the value ofCfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty.getKeyAttributes()- Parameters:
keyAttributes- This is a string-to-string map that contains information about the type of object that this SLO is related to. It can include the following fields.Typedesignates the type of object that this SLO is related to.ResourceTypespecifies the type of the resource. This field is used only when the value of theTypefield isResourceorAWS::Resource.Namespecifies the name of the object. This is used only if the value of theTypefield isService,RemoteService, orAWS::Service.Identifieridentifies the resource objects of this resource. This is used only if the value of theTypefield isResourceorAWS::Resource.Environmentspecifies the location where this object is hosted, or what it belongs to.AwsAccountIdallows you to create an SLO for an object that exists in another account.
- Returns:
this
-
keyAttributes
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty.Builder keyAttributes(IResolvable keyAttributes) Sets the value ofCfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty.getKeyAttributes()- Parameters:
keyAttributes- This is a string-to-string map that contains information about the type of object that this SLO is related to. It can include the following fields.Typedesignates the type of object that this SLO is related to.ResourceTypespecifies the type of the resource. This field is used only when the value of theTypefield isResourceorAWS::Resource.Namespecifies the name of the object. This is used only if the value of theTypefield isService,RemoteService, orAWS::Service.Identifieridentifies the resource objects of this resource. This is used only if the value of theTypefield isResourceorAWS::Resource.Environmentspecifies the location where this object is hosted, or what it belongs to.AwsAccountIdallows you to create an SLO for an object that exists in another account.
- Returns:
this
-
metricType
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty.Builder metricType(String metricType) - Parameters:
metricType- If the SLO monitors either theLATENCYorAVAILABILITYmetric that Application Signals collects, this field displays which of those metrics is used.- Returns:
this
-
monitoredRequestCountMetric
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty.Builder monitoredRequestCountMetric(IResolvable monitoredRequestCountMetric) Sets the value ofCfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty.getMonitoredRequestCountMetric()- Parameters:
monitoredRequestCountMetric- Use this structure to define the metric that you want to use as the "good request" or "bad request" value for a request-based SLO. This value observed for the metric defined inTotalRequestCountMetricwill be divided by the number found forMonitoredRequestCountMetricto determine the percentage of successful requests that this SLO tracks.- Returns:
this
-
monitoredRequestCountMetric
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty.Builder monitoredRequestCountMetric(CfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty monitoredRequestCountMetric) Sets the value ofCfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty.getMonitoredRequestCountMetric()- Parameters:
monitoredRequestCountMetric- Use this structure to define the metric that you want to use as the "good request" or "bad request" value for a request-based SLO. This value observed for the metric defined inTotalRequestCountMetricwill be divided by the number found forMonitoredRequestCountMetricto determine the percentage of successful requests that this SLO tracks.- Returns:
this
-
operationName
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty.Builder operationName(String operationName) Sets the value ofCfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty.getOperationName()- Parameters:
operationName- If the SLO monitors a specific operation of the service, this field displays that operation name.- Returns:
this
-
totalRequestCountMetric
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty.Builder totalRequestCountMetric(IResolvable totalRequestCountMetric) Sets the value ofCfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty.getTotalRequestCountMetric()- Parameters:
totalRequestCountMetric- This structure defines the metric that is used as the "total requests" number for a request-based SLO. The number observed for this metric is divided by the number of "good requests" or "bad requests" that is observed for the metric defined inMonitoredRequestCountMetric.- Returns:
this
-
totalRequestCountMetric
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty.Builder totalRequestCountMetric(List<? extends Object> totalRequestCountMetric) Sets the value ofCfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty.getTotalRequestCountMetric()- Parameters:
totalRequestCountMetric- This structure defines the metric that is used as the "total requests" number for a request-based SLO. The number observed for this metric is divided by the number of "good requests" or "bad requests" that is observed for the metric defined inMonitoredRequestCountMetric.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty>- Returns:
- a new instance of
CfnServiceLevelObjectivePropsMixin.RequestBasedSliMetricProperty - Throws:
NullPointerException- if any required attribute was not provided
-