Class CfnSecurityProfile.MetricsExportConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnSecurityProfile.MetricsExportConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecurityProfile.MetricsExportConfigProperty>
- Enclosing interface:
CfnSecurityProfile.MetricsExportConfigProperty
@Stability(Stable)
public static final class CfnSecurityProfile.MetricsExportConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSecurityProfile.MetricsExportConfigProperty>
A builder for
CfnSecurityProfile.MetricsExportConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnSecurityProfile.MetricsExportConfigProperty.getMqttTopic()
Sets the value ofCfnSecurityProfile.MetricsExportConfigProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mqttTopic
@Stability(Stable) public CfnSecurityProfile.MetricsExportConfigProperty.Builder mqttTopic(String mqttTopic) Sets the value ofCfnSecurityProfile.MetricsExportConfigProperty.getMqttTopic()
- Parameters:
mqttTopic
- The MQTT topic that Device Defender Detect should publish messages to for metrics export. This parameter is required.- Returns:
this
-
roleArn
@Stability(Stable) public CfnSecurityProfile.MetricsExportConfigProperty.Builder roleArn(String roleArn) Sets the value ofCfnSecurityProfile.MetricsExportConfigProperty.getRoleArn()
- Parameters:
roleArn
- This role ARN has permission to publish MQTT messages, after which Device Defender Detect can assume the role and publish messages on your behalf. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSecurityProfile.MetricsExportConfigProperty>
- Returns:
- a new instance of
CfnSecurityProfile.MetricsExportConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-