public static final class CfnAnomalySubscription.SubscriberProperty.Builder
extends java.lang.Object
CfnAnomalySubscription.SubscriberProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnAnomalySubscription.SubscriberProperty.Builder |
address(java.lang.String address)
Sets the value of
CfnAnomalySubscription.SubscriberProperty.getAddress() |
CfnAnomalySubscription.SubscriberProperty |
build()
Builds the configured instance.
|
CfnAnomalySubscription.SubscriberProperty.Builder |
status(java.lang.String status)
Sets the value of
CfnAnomalySubscription.SubscriberProperty.getStatus() |
CfnAnomalySubscription.SubscriberProperty.Builder |
type(java.lang.String type)
Sets the value of
CfnAnomalySubscription.SubscriberProperty.getType() |
public CfnAnomalySubscription.SubscriberProperty.Builder address(java.lang.String address)
CfnAnomalySubscription.SubscriberProperty.getAddress()
address
- The email address or SNS Topic Amazon Resource Name (ARN), depending on the `Type` . This parameter is required.this
public CfnAnomalySubscription.SubscriberProperty.Builder type(java.lang.String type)
CfnAnomalySubscription.SubscriberProperty.getType()
type
- The notification delivery channel. This parameter is required.this
public CfnAnomalySubscription.SubscriberProperty.Builder status(java.lang.String status)
CfnAnomalySubscription.SubscriberProperty.getStatus()
status
- Indicates if the subscriber accepts the notifications.this
public CfnAnomalySubscription.SubscriberProperty build()
CfnAnomalySubscription.SubscriberProperty
java.lang.NullPointerException
- if any required attribute was not provided