Class CfnSecurityProfile.MetricValueProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnSecurityProfile.MetricValueProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecurityProfile.MetricValueProperty>
- Enclosing interface:
CfnSecurityProfile.MetricValueProperty
@Stability(Stable)
public static final class CfnSecurityProfile.MetricValueProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSecurityProfile.MetricValueProperty>
A builder for
CfnSecurityProfile.MetricValueProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnSecurityProfile.MetricValueProperty.getCidrs()Sets the value ofCfnSecurityProfile.MetricValueProperty.getCount()Sets the value ofCfnSecurityProfile.MetricValueProperty.getNumber()Sets the value ofCfnSecurityProfile.MetricValueProperty.getNumbers()numbers(IResolvable numbers) Sets the value ofCfnSecurityProfile.MetricValueProperty.getNumbers()Sets the value ofCfnSecurityProfile.MetricValueProperty.getPorts()ports(IResolvable ports) Sets the value ofCfnSecurityProfile.MetricValueProperty.getPorts()Sets the value ofCfnSecurityProfile.MetricValueProperty.getStrings()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cidrs
Sets the value ofCfnSecurityProfile.MetricValueProperty.getCidrs()- Parameters:
cidrs- If thecomparisonOperatorcalls for a set of CIDRs, use this to specify that set to be compared with themetric.- Returns:
this
-
count
Sets the value ofCfnSecurityProfile.MetricValueProperty.getCount()- Parameters:
count- If thecomparisonOperatorcalls for a numeric value, use this to specify that numeric value to be compared with themetric.- Returns:
this
-
number
Sets the value ofCfnSecurityProfile.MetricValueProperty.getNumber()- Parameters:
number- The numeric values of a metric.- Returns:
this
-
numbers
@Stability(Stable) public CfnSecurityProfile.MetricValueProperty.Builder numbers(List<? extends Number> numbers) Sets the value ofCfnSecurityProfile.MetricValueProperty.getNumbers()- Parameters:
numbers- The numeric value of a metric.- Returns:
this
-
numbers
@Stability(Stable) public CfnSecurityProfile.MetricValueProperty.Builder numbers(IResolvable numbers) Sets the value ofCfnSecurityProfile.MetricValueProperty.getNumbers()- Parameters:
numbers- The numeric value of a metric.- Returns:
this
-
ports
@Stability(Stable) public CfnSecurityProfile.MetricValueProperty.Builder ports(List<? extends Number> ports) Sets the value ofCfnSecurityProfile.MetricValueProperty.getPorts()- Parameters:
ports- If thecomparisonOperatorcalls for a set of ports, use this to specify that set to be compared with themetric.- Returns:
this
-
ports
Sets the value ofCfnSecurityProfile.MetricValueProperty.getPorts()- Parameters:
ports- If thecomparisonOperatorcalls for a set of ports, use this to specify that set to be compared with themetric.- Returns:
this
-
strings
@Stability(Stable) public CfnSecurityProfile.MetricValueProperty.Builder strings(List<String> strings) Sets the value ofCfnSecurityProfile.MetricValueProperty.getStrings()- Parameters:
strings- The string values of a metric.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSecurityProfile.MetricValueProperty>- Returns:
- a new instance of
CfnSecurityProfile.MetricValueProperty - Throws:
NullPointerException- if any required attribute was not provided
-