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 java.lang.Object implements SubscriptionType.IdStage, SubscriptionType.StateStage, SubscriptionType.DefaultTranslationStage, SubscriptionType.ConsentTypeStage, SubscriptionType._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubscriptionType._FinalStageaddAllContentTypes(java.util.List<SubscriptionType.ContentTypesItem> contentTypes)The message types that this subscription supports - can containemailorsms_message.SubscriptionType._FinalStageaddAllTranslations(java.util.List<Translation> translations)An array of translations objects with the localised version of the subscription type in each available locale within your translation settings.SubscriptionType._FinalStageaddContentTypes(SubscriptionType.ContentTypesItem contentTypes)The message types that this subscription supports - can containemailorsms_message.SubscriptionType._FinalStageaddTranslations(Translation translations)An array of translations objects with the localised version of the subscription type in each available locale within your translation settings.SubscriptionTypebuild()SubscriptionType._FinalStageconsentType(SubscriptionType.ConsentType consentType)Describes the type of consent.SubscriptionType._FinalStagecontentTypes(java.util.List<SubscriptionType.ContentTypesItem> contentTypes)The message types that this subscription supports - can containemailorsms_message.SubscriptionType.ConsentTypeStagedefaultTranslation(Translation defaultTranslation)SubscriptionType.Builderfrom(SubscriptionType other)SubscriptionType.StateStageid(java.lang.String id)The unique identifier representing the subscription type.SubscriptionType.DefaultTranslationStagestate(SubscriptionType.State state)The state of the subscription type.SubscriptionType._FinalStagetranslations(java.util.List<Translation> translations)An array of translations objects with the localised version of the subscription type in each available locale within your translation settings.
-
-
-
Method Detail
-
from
public SubscriptionType.Builder from(SubscriptionType other)
- Specified by:
fromin interfaceSubscriptionType.IdStage
-
id
public SubscriptionType.StateStage id(@NotNull java.lang.String id)
The unique identifier representing the subscription type.The unique identifier representing the subscription type.
- Specified by:
idin interfaceSubscriptionType.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
state
public SubscriptionType.DefaultTranslationStage state(@NotNull SubscriptionType.State state)
The state of the subscription type.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
public SubscriptionType._FinalStage consentType(@NotNull SubscriptionType.ConsentType consentType)
Describes the type of consent.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(java.util.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
public SubscriptionType._FinalStage addContentTypes(SubscriptionType.ContentTypesItem contentTypes)
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(java.util.List<SubscriptionType.ContentTypesItem> contentTypes)
The message types that this subscription supports - can contain
emailorsms_message.- Specified by:
contentTypesin interfaceSubscriptionType._FinalStage
-
addAllTranslations
public SubscriptionType._FinalStage addAllTranslations(java.util.List<Translation> translations)
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
public SubscriptionType._FinalStage addTranslations(Translation translations)
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
public SubscriptionType._FinalStage translations(java.util.List<Translation> translations)
An array of translations objects with the localised version of the subscription type in each available locale within your translation settings.
- Specified by:
translationsin interfaceSubscriptionType._FinalStage
-
build
public SubscriptionType build()
- Specified by:
buildin interfaceSubscriptionType._FinalStage
-
-