Package com.twilio.rest.messaging.v1
Class ExternalCampaign
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.messaging.v1.ExternalCampaign
-
- All Implemented Interfaces:
Serializable
public class ExternalCampaign extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExternalCampaignCreator
creator(String campaignId, String messagingServiceSid)
boolean
equals(Object o)
static ExternalCampaign
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a ExternalCampaign object using the provided ObjectMapper.static ExternalCampaign
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a ExternalCampaign object using the provided ObjectMapper.String
getAccountSid()
String
getCampaignId()
ZonedDateTime
getDateCreated()
String
getMessagingServiceSid()
String
getSid()
int
hashCode()
-
-
-
Method Detail
-
creator
public static ExternalCampaignCreator creator(String campaignId, String messagingServiceSid)
-
fromJson
public static ExternalCampaign fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a ExternalCampaign object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- ExternalCampaign object represented by the provided JSON
-
fromJson
public static ExternalCampaign fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a ExternalCampaign object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- ExternalCampaign object represented by the provided JSON
-
getSid
public final String getSid()
-
getAccountSid
public final String getAccountSid()
-
getCampaignId
public final String getCampaignId()
-
getMessagingServiceSid
public final String getMessagingServiceSid()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
-