Class CfnBudget.SubscriberProperty.Builder
java.lang.Object
software.amazon.awscdk.services.budgets.CfnBudget.SubscriberProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBudget.SubscriberProperty>
- Enclosing interface:
CfnBudget.SubscriberProperty
@Stability(Stable)
public static final class CfnBudget.SubscriberProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBudget.SubscriberProperty>
A builder for
CfnBudget.SubscriberProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnBudget.SubscriberProperty.getAddress()
build()
Builds the configured instance.subscriptionType
(String subscriptionType) Sets the value ofCfnBudget.SubscriberProperty.getSubscriptionType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
address
Sets the value ofCfnBudget.SubscriberProperty.getAddress()
- Parameters:
address
- The address that AWS sends budget notifications to, either an SNS topic or an email. This parameter is required. When you create a subscriber, the value ofAddress
can't contain line breaks.- Returns:
this
-
subscriptionType
@Stability(Stable) public CfnBudget.SubscriberProperty.Builder subscriptionType(String subscriptionType) Sets the value ofCfnBudget.SubscriberProperty.getSubscriptionType()
- Parameters:
subscriptionType
- The type of notification that AWS sends to a subscriber. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBudget.SubscriberProperty>
- Returns:
- a new instance of
CfnBudget.SubscriberProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-