Class SpendAlertCreateParams.NotificationChannel
-
- All Implemented Interfaces:
public final class SpendAlertCreateParams.NotificationChannelEmail notification settings for a spend alert.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSpendAlertCreateParams.NotificationChannel.BuilderA builder for NotificationChannel.
-
Method Summary
Modifier and Type Method Description final List<String>recipients()Email addresses that receive the spend alert notification. final JsonValue_type()The notification channel type. final Optional<String>subjectPrefix()Optional subject prefix for alert emails. final JsonField<List<String>>_recipients()Returns the raw JSON value of recipients. final JsonField<String>_subjectPrefix()Returns the raw JSON value of subjectPrefix. final Map<String, JsonValue>_additionalProperties()final SpendAlertCreateParams.NotificationChannel.BuildertoBuilder()final SpendAlertCreateParams.NotificationChannelvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static SpendAlertCreateParams.NotificationChannel.Builderbuilder()Returns a mutable builder for constructing an instance of NotificationChannel. -
-
Method Detail
-
recipients
final List<String> recipients()
Email addresses that receive the spend alert notification.
-
_type
final JsonValue _type()
The notification channel type. Currently only
emailis supported.Expected to always return the following:
JsonValue.from("email")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
subjectPrefix
final Optional<String> subjectPrefix()
Optional subject prefix for alert emails.
-
_recipients
final JsonField<List<String>> _recipients()
Returns the raw JSON value of recipients.
Unlike recipients, this method doesn't throw if the JSON field has an unexpected type.
-
_subjectPrefix
final JsonField<String> _subjectPrefix()
Returns the raw JSON value of subjectPrefix.
Unlike subjectPrefix, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final SpendAlertCreateParams.NotificationChannel.Builder toBuilder()
-
validate
final SpendAlertCreateParams.NotificationChannel validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static SpendAlertCreateParams.NotificationChannel.Builder builder()
Returns a mutable builder for constructing an instance of NotificationChannel.
The following fields are required:
.recipients()
-
-
-
-