Class SubscriptionType.Builder
java.lang.Object
com.intercom.api.resources.subscriptiontypes.types.SubscriptionType.Builder
- All Implemented Interfaces:
SubscriptionType._FinalStage,SubscriptionType.ConsentTypeStage,SubscriptionType.DefaultTranslationStage,SubscriptionType.IdStage,SubscriptionType.StateStage
- Enclosing class:
SubscriptionType
public static final class SubscriptionType.Builder
extends Object
implements SubscriptionType.IdStage, SubscriptionType.StateStage, SubscriptionType.DefaultTranslationStage, SubscriptionType.ConsentTypeStage, SubscriptionType._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionaddAllContentTypes(List<SubscriptionType.ContentTypesItem> contentTypes) The message types that this subscription supports - can containemailorsms_message.addAllTranslations(List<Translation> translations) An array of translations objects with the localised version of the subscription type in each available locale within your translation settings.addContentTypes(SubscriptionType.ContentTypesItem contentTypes) The message types that this subscription supports - can containemailorsms_message.addTranslations(Translation translations) An array of translations objects with the localised version of the subscription type in each available locale within your translation settings.build()consentType(SubscriptionType.ConsentType consentType) Describes the type of consent.contentTypes(List<SubscriptionType.ContentTypesItem> contentTypes) defaultTranslation(Translation defaultTranslation) from(SubscriptionType other) The unique identifier representing the subscription type.state(SubscriptionType.State state) The state of the subscription type.translations(List<Translation> translations)
-
Method Details
-
from
- Specified by:
fromin interfaceSubscriptionType.IdStage
-
id
The unique identifier representing the subscription type.
- Specified by:
idin interfaceSubscriptionType.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
state
The state of the subscription type.
- Specified by:
statein interfaceSubscriptionType.StateStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
defaultTranslation
public SubscriptionType.ConsentTypeStage defaultTranslation(@NotNull Translation defaultTranslation) - Specified by:
defaultTranslationin interfaceSubscriptionType.DefaultTranslationStage
-
consentType
Describes the type of consent.
- Specified by:
consentTypein interfaceSubscriptionType.ConsentTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addAllContentTypes
public SubscriptionType._FinalStage addAllContentTypes(List<SubscriptionType.ContentTypesItem> contentTypes) The message types that this subscription supports - can contain
emailorsms_message.- Specified by:
addAllContentTypesin interfaceSubscriptionType._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addContentTypes
The message types that this subscription supports - can contain
emailorsms_message.- Specified by:
addContentTypesin interfaceSubscriptionType._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contentTypes
public SubscriptionType._FinalStage contentTypes(List<SubscriptionType.ContentTypesItem> contentTypes) - Specified by:
contentTypesin interfaceSubscriptionType._FinalStage
-
addAllTranslations
An array of translations objects with the localised version of the subscription type in each available locale within your translation settings.
- Specified by:
addAllTranslationsin interfaceSubscriptionType._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addTranslations
An array of translations objects with the localised version of the subscription type in each available locale within your translation settings.
- Specified by:
addTranslationsin interfaceSubscriptionType._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
translations
- Specified by:
translationsin interfaceSubscriptionType._FinalStage
-
build
- Specified by:
buildin interfaceSubscriptionType._FinalStage
-