Class CfnConfigurationSet.EventDestinationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.smsvoice.CfnConfigurationSet.EventDestinationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConfigurationSet.EventDestinationProperty>
- Enclosing interface:
CfnConfigurationSet.EventDestinationProperty
@Stability(Stable)
public static final class CfnConfigurationSet.EventDestinationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConfigurationSet.EventDestinationProperty>
A builder for
CfnConfigurationSet.EventDestinationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.cloudWatchLogsDestination
(IResolvable cloudWatchLogsDestination) cloudWatchLogsDestination
(CfnConfigurationSet.CloudWatchLogsDestinationProperty cloudWatchLogsDestination) Sets the value ofCfnConfigurationSet.EventDestinationProperty.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnConfigurationSet.EventDestinationProperty.getEnabled()
eventDestinationName
(String eventDestinationName) Sets the value ofCfnConfigurationSet.EventDestinationProperty.getEventDestinationName()
kinesisFirehoseDestination
(IResolvable kinesisFirehoseDestination) kinesisFirehoseDestination
(CfnConfigurationSet.KinesisFirehoseDestinationProperty kinesisFirehoseDestination) matchingEventTypes
(List<String> matchingEventTypes) Sets the value ofCfnConfigurationSet.EventDestinationProperty.getMatchingEventTypes()
snsDestination
(IResolvable snsDestination) Sets the value ofCfnConfigurationSet.EventDestinationProperty.getSnsDestination()
snsDestination
(CfnConfigurationSet.SnsDestinationProperty snsDestination) Sets the value ofCfnConfigurationSet.EventDestinationProperty.getSnsDestination()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnConfigurationSet.EventDestinationProperty.Builder enabled(Boolean enabled) Sets the value ofCfnConfigurationSet.EventDestinationProperty.getEnabled()
- Parameters:
enabled
- When set to true events will be logged. This parameter is required.- Returns:
this
-
enabled
@Stability(Stable) public CfnConfigurationSet.EventDestinationProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnConfigurationSet.EventDestinationProperty.getEnabled()
- Parameters:
enabled
- When set to true events will be logged. This parameter is required.- Returns:
this
-
eventDestinationName
@Stability(Stable) public CfnConfigurationSet.EventDestinationProperty.Builder eventDestinationName(String eventDestinationName) Sets the value ofCfnConfigurationSet.EventDestinationProperty.getEventDestinationName()
- Parameters:
eventDestinationName
- The name of the EventDestination. This parameter is required.- Returns:
this
-
matchingEventTypes
@Stability(Stable) public CfnConfigurationSet.EventDestinationProperty.Builder matchingEventTypes(List<String> matchingEventTypes) Sets the value ofCfnConfigurationSet.EventDestinationProperty.getMatchingEventTypes()
- Parameters:
matchingEventTypes
- An array of event types that determine which events to log. This parameter is required.The
TEXT_SENT
event type is not supported.- Returns:
this
-
cloudWatchLogsDestination
@Stability(Stable) public CfnConfigurationSet.EventDestinationProperty.Builder cloudWatchLogsDestination(IResolvable cloudWatchLogsDestination) - Parameters:
cloudWatchLogsDestination
- An object that contains information about an event destination that sends logging events to Amazon CloudWatch logs.- Returns:
this
-
cloudWatchLogsDestination
@Stability(Stable) public CfnConfigurationSet.EventDestinationProperty.Builder cloudWatchLogsDestination(CfnConfigurationSet.CloudWatchLogsDestinationProperty cloudWatchLogsDestination) - Parameters:
cloudWatchLogsDestination
- An object that contains information about an event destination that sends logging events to Amazon CloudWatch logs.- Returns:
this
-
kinesisFirehoseDestination
@Stability(Stable) public CfnConfigurationSet.EventDestinationProperty.Builder kinesisFirehoseDestination(IResolvable kinesisFirehoseDestination) - Parameters:
kinesisFirehoseDestination
- An object that contains information about an event destination for logging to Amazon Data Firehose.- Returns:
this
-
kinesisFirehoseDestination
@Stability(Stable) public CfnConfigurationSet.EventDestinationProperty.Builder kinesisFirehoseDestination(CfnConfigurationSet.KinesisFirehoseDestinationProperty kinesisFirehoseDestination) - Parameters:
kinesisFirehoseDestination
- An object that contains information about an event destination for logging to Amazon Data Firehose.- Returns:
this
-
snsDestination
@Stability(Stable) public CfnConfigurationSet.EventDestinationProperty.Builder snsDestination(IResolvable snsDestination) Sets the value ofCfnConfigurationSet.EventDestinationProperty.getSnsDestination()
- Parameters:
snsDestination
- An object that contains information about an event destination that sends logging events to Amazon SNS.- Returns:
this
-
snsDestination
@Stability(Stable) public CfnConfigurationSet.EventDestinationProperty.Builder snsDestination(CfnConfigurationSet.SnsDestinationProperty snsDestination) Sets the value ofCfnConfigurationSet.EventDestinationProperty.getSnsDestination()
- Parameters:
snsDestination
- An object that contains information about an event destination that sends logging events to Amazon SNS.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnConfigurationSet.EventDestinationProperty>
- Returns:
- a new instance of
CfnConfigurationSet.EventDestinationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-