Class CfnTopicPropsMixin.LoggingConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sns.CfnTopicPropsMixin.LoggingConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicPropsMixin.LoggingConfigProperty>
- Enclosing interface:
CfnTopicPropsMixin.LoggingConfigProperty
@Stability(Stable)
public static final class CfnTopicPropsMixin.LoggingConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicPropsMixin.LoggingConfigProperty>
A builder for
CfnTopicPropsMixin.LoggingConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.failureFeedbackRoleArn(String failureFeedbackRoleArn) Sets the value ofCfnTopicPropsMixin.LoggingConfigProperty.getFailureFeedbackRoleArn()Sets the value ofCfnTopicPropsMixin.LoggingConfigProperty.getProtocol()successFeedbackRoleArn(String successFeedbackRoleArn) Sets the value ofCfnTopicPropsMixin.LoggingConfigProperty.getSuccessFeedbackRoleArn()successFeedbackSampleRate(String successFeedbackSampleRate) Sets the value ofCfnTopicPropsMixin.LoggingConfigProperty.getSuccessFeedbackSampleRate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
failureFeedbackRoleArn
@Stability(Stable) public CfnTopicPropsMixin.LoggingConfigProperty.Builder failureFeedbackRoleArn(String failureFeedbackRoleArn) Sets the value ofCfnTopicPropsMixin.LoggingConfigProperty.getFailureFeedbackRoleArn()- Parameters:
failureFeedbackRoleArn- The IAM role ARN to be used when logging failed message deliveries in Amazon CloudWatch.- Returns:
this
-
protocol
@Stability(Stable) public CfnTopicPropsMixin.LoggingConfigProperty.Builder protocol(String protocol) Sets the value ofCfnTopicPropsMixin.LoggingConfigProperty.getProtocol()- Parameters:
protocol- Indicates one of the supported protocols for the Amazon SNS topic.At least one of the other three
LoggingConfigproperties is recommend along withProtocol.- Returns:
this
-
successFeedbackRoleArn
@Stability(Stable) public CfnTopicPropsMixin.LoggingConfigProperty.Builder successFeedbackRoleArn(String successFeedbackRoleArn) Sets the value ofCfnTopicPropsMixin.LoggingConfigProperty.getSuccessFeedbackRoleArn()- Parameters:
successFeedbackRoleArn- The IAM role ARN to be used when logging successful message deliveries in Amazon CloudWatch.- Returns:
this
-
successFeedbackSampleRate
@Stability(Stable) public CfnTopicPropsMixin.LoggingConfigProperty.Builder successFeedbackSampleRate(String successFeedbackSampleRate) Sets the value ofCfnTopicPropsMixin.LoggingConfigProperty.getSuccessFeedbackSampleRate()- Parameters:
successFeedbackSampleRate- The percentage of successful message deliveries to be logged in Amazon CloudWatch. Valid percentage values range from 0 to 100.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTopicPropsMixin.LoggingConfigProperty>- Returns:
- a new instance of
CfnTopicPropsMixin.LoggingConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-