Class SubscriptionType
- java.lang.Object
-
- com.intercom.api.resources.subscriptiontypes.types.SubscriptionType
-
public final class SubscriptionType extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSubscriptionType._FinalStagestatic classSubscriptionType.Builderstatic classSubscriptionType.ConsentTypestatic interfaceSubscriptionType.ConsentTypeStagestatic classSubscriptionType.ContentTypesItemstatic interfaceSubscriptionType.DefaultTranslationStagestatic interfaceSubscriptionType.IdStagestatic classSubscriptionType.Statestatic interfaceSubscriptionType.StateStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubscriptionType.IdStagebuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()SubscriptionType.ConsentTypegetConsentType()java.util.List<SubscriptionType.ContentTypesItem>getContentTypes()TranslationgetDefaultTranslation()java.lang.StringgetId()SubscriptionType.StategetState()java.util.List<Translation>getTranslations()java.lang.StringgetType()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getType
public java.lang.String getType()
- Returns:
- The type of the object - subscription
-
getId
public java.lang.String getId()
- Returns:
- The unique identifier representing the subscription type.
-
getState
public SubscriptionType.State getState()
- Returns:
- The state of the subscription type.
-
getDefaultTranslation
public Translation getDefaultTranslation()
-
getTranslations
public java.util.List<Translation> getTranslations()
- Returns:
- An array of translations objects with the localised version of the subscription type in each available locale within your translation settings.
-
getConsentType
public SubscriptionType.ConsentType getConsentType()
- Returns:
- Describes the type of consent.
-
getContentTypes
public java.util.List<SubscriptionType.ContentTypesItem> getContentTypes()
- Returns:
- The message types that this subscription supports - can contain
emailorsms_message.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static SubscriptionType.IdStage builder()
-
-