@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ActivityResponse extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about an activity that was performed by a campaign.
Constructor and Description |
---|
ActivityResponse() |
Modifier and Type | Method and Description |
---|---|
ActivityResponse |
addExecutionMetricsEntry(String key,
String value)
Add a single ExecutionMetrics entry
|
ActivityResponse |
clearExecutionMetricsEntries()
Removes all the entries added into ExecutionMetrics.
|
ActivityResponse |
clone() |
boolean |
equals(Object obj) |
String |
getApplicationId()
The unique identifier for the application that the campaign applies to.
|
String |
getCampaignId()
The unique identifier for the campaign that the activity applies to.
|
String |
getEnd()
The actual time, in ISO 8601 format, when the activity was marked CANCELLED or COMPLETED.
|
Map<String,String> |
getExecutionMetrics()
A JSON object that contains metrics relating to the campaign execution for this campaign activity.
|
String |
getId()
The unique identifier for the activity.
|
String |
getResult()
Specifies whether the activity succeeded.
|
String |
getScheduledStart()
The scheduled start time, in ISO 8601 format, for the activity.
|
String |
getStart()
The actual start time, in ISO 8601 format, of the activity.
|
String |
getState()
The current status of the activity.
|
Integer |
getSuccessfulEndpointCount()
The total number of endpoints that the campaign successfully delivered messages to.
|
Integer |
getTimezonesCompletedCount()
The total number of time zones that were completed.
|
Integer |
getTimezonesTotalCount()
The total number of unique time zones that are in the segment for the campaign.
|
Integer |
getTotalEndpointCount()
The total number of endpoints that the campaign attempted to deliver messages to.
|
String |
getTreatmentId()
The unique identifier for the campaign treatment that the activity applies to.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setApplicationId(String applicationId)
The unique identifier for the application that the campaign applies to.
|
void |
setCampaignId(String campaignId)
The unique identifier for the campaign that the activity applies to.
|
void |
setEnd(String end)
The actual time, in ISO 8601 format, when the activity was marked CANCELLED or COMPLETED.
|
void |
setExecutionMetrics(Map<String,String> executionMetrics)
A JSON object that contains metrics relating to the campaign execution for this campaign activity.
|
void |
setId(String id)
The unique identifier for the activity.
|
void |
setResult(String result)
Specifies whether the activity succeeded.
|
void |
setScheduledStart(String scheduledStart)
The scheduled start time, in ISO 8601 format, for the activity.
|
void |
setStart(String start)
The actual start time, in ISO 8601 format, of the activity.
|
void |
setState(String state)
The current status of the activity.
|
void |
setSuccessfulEndpointCount(Integer successfulEndpointCount)
The total number of endpoints that the campaign successfully delivered messages to.
|
void |
setTimezonesCompletedCount(Integer timezonesCompletedCount)
The total number of time zones that were completed.
|
void |
setTimezonesTotalCount(Integer timezonesTotalCount)
The total number of unique time zones that are in the segment for the campaign.
|
void |
setTotalEndpointCount(Integer totalEndpointCount)
The total number of endpoints that the campaign attempted to deliver messages to.
|
void |
setTreatmentId(String treatmentId)
The unique identifier for the campaign treatment that the activity applies to.
|
String |
toString()
Returns a string representation of this object.
|
ActivityResponse |
withApplicationId(String applicationId)
The unique identifier for the application that the campaign applies to.
|
ActivityResponse |
withCampaignId(String campaignId)
The unique identifier for the campaign that the activity applies to.
|
ActivityResponse |
withEnd(String end)
The actual time, in ISO 8601 format, when the activity was marked CANCELLED or COMPLETED.
|
ActivityResponse |
withExecutionMetrics(Map<String,String> executionMetrics)
A JSON object that contains metrics relating to the campaign execution for this campaign activity.
|
ActivityResponse |
withId(String id)
The unique identifier for the activity.
|
ActivityResponse |
withResult(String result)
Specifies whether the activity succeeded.
|
ActivityResponse |
withScheduledStart(String scheduledStart)
The scheduled start time, in ISO 8601 format, for the activity.
|
ActivityResponse |
withStart(String start)
The actual start time, in ISO 8601 format, of the activity.
|
ActivityResponse |
withState(String state)
The current status of the activity.
|
ActivityResponse |
withSuccessfulEndpointCount(Integer successfulEndpointCount)
The total number of endpoints that the campaign successfully delivered messages to.
|
ActivityResponse |
withTimezonesCompletedCount(Integer timezonesCompletedCount)
The total number of time zones that were completed.
|
ActivityResponse |
withTimezonesTotalCount(Integer timezonesTotalCount)
The total number of unique time zones that are in the segment for the campaign.
|
ActivityResponse |
withTotalEndpointCount(Integer totalEndpointCount)
The total number of endpoints that the campaign attempted to deliver messages to.
|
ActivityResponse |
withTreatmentId(String treatmentId)
The unique identifier for the campaign treatment that the activity applies to.
|
public void setApplicationId(String applicationId)
The unique identifier for the application that the campaign applies to.
applicationId
- The unique identifier for the application that the campaign applies to.public String getApplicationId()
The unique identifier for the application that the campaign applies to.
public ActivityResponse withApplicationId(String applicationId)
The unique identifier for the application that the campaign applies to.
applicationId
- The unique identifier for the application that the campaign applies to.public void setCampaignId(String campaignId)
The unique identifier for the campaign that the activity applies to.
campaignId
- The unique identifier for the campaign that the activity applies to.public String getCampaignId()
The unique identifier for the campaign that the activity applies to.
public ActivityResponse withCampaignId(String campaignId)
The unique identifier for the campaign that the activity applies to.
campaignId
- The unique identifier for the campaign that the activity applies to.public void setEnd(String end)
The actual time, in ISO 8601 format, when the activity was marked CANCELLED or COMPLETED.
end
- The actual time, in ISO 8601 format, when the activity was marked CANCELLED or COMPLETED.public String getEnd()
The actual time, in ISO 8601 format, when the activity was marked CANCELLED or COMPLETED.
public ActivityResponse withEnd(String end)
The actual time, in ISO 8601 format, when the activity was marked CANCELLED or COMPLETED.
end
- The actual time, in ISO 8601 format, when the activity was marked CANCELLED or COMPLETED.public void setId(String id)
The unique identifier for the activity.
id
- The unique identifier for the activity.public String getId()
The unique identifier for the activity.
public ActivityResponse withId(String id)
The unique identifier for the activity.
id
- The unique identifier for the activity.public void setResult(String result)
Specifies whether the activity succeeded. Possible values are SUCCESS and FAIL.
result
- Specifies whether the activity succeeded. Possible values are SUCCESS and FAIL.public String getResult()
Specifies whether the activity succeeded. Possible values are SUCCESS and FAIL.
public ActivityResponse withResult(String result)
Specifies whether the activity succeeded. Possible values are SUCCESS and FAIL.
result
- Specifies whether the activity succeeded. Possible values are SUCCESS and FAIL.public void setScheduledStart(String scheduledStart)
The scheduled start time, in ISO 8601 format, for the activity.
scheduledStart
- The scheduled start time, in ISO 8601 format, for the activity.public String getScheduledStart()
The scheduled start time, in ISO 8601 format, for the activity.
public ActivityResponse withScheduledStart(String scheduledStart)
The scheduled start time, in ISO 8601 format, for the activity.
scheduledStart
- The scheduled start time, in ISO 8601 format, for the activity.public void setStart(String start)
The actual start time, in ISO 8601 format, of the activity.
start
- The actual start time, in ISO 8601 format, of the activity.public String getStart()
The actual start time, in ISO 8601 format, of the activity.
public ActivityResponse withStart(String start)
The actual start time, in ISO 8601 format, of the activity.
start
- The actual start time, in ISO 8601 format, of the activity.public void setState(String state)
The current status of the activity. Possible values are: PENDING, INITIALIZING, RUNNING, PAUSED, CANCELLED, and COMPLETED.
state
- The current status of the activity. Possible values are: PENDING, INITIALIZING, RUNNING, PAUSED,
CANCELLED, and COMPLETED.public String getState()
The current status of the activity. Possible values are: PENDING, INITIALIZING, RUNNING, PAUSED, CANCELLED, and COMPLETED.
public ActivityResponse withState(String state)
The current status of the activity. Possible values are: PENDING, INITIALIZING, RUNNING, PAUSED, CANCELLED, and COMPLETED.
state
- The current status of the activity. Possible values are: PENDING, INITIALIZING, RUNNING, PAUSED,
CANCELLED, and COMPLETED.public void setSuccessfulEndpointCount(Integer successfulEndpointCount)
The total number of endpoints that the campaign successfully delivered messages to.
successfulEndpointCount
- The total number of endpoints that the campaign successfully delivered messages to.public Integer getSuccessfulEndpointCount()
The total number of endpoints that the campaign successfully delivered messages to.
public ActivityResponse withSuccessfulEndpointCount(Integer successfulEndpointCount)
The total number of endpoints that the campaign successfully delivered messages to.
successfulEndpointCount
- The total number of endpoints that the campaign successfully delivered messages to.public void setTimezonesCompletedCount(Integer timezonesCompletedCount)
The total number of time zones that were completed.
timezonesCompletedCount
- The total number of time zones that were completed.public Integer getTimezonesCompletedCount()
The total number of time zones that were completed.
public ActivityResponse withTimezonesCompletedCount(Integer timezonesCompletedCount)
The total number of time zones that were completed.
timezonesCompletedCount
- The total number of time zones that were completed.public void setTimezonesTotalCount(Integer timezonesTotalCount)
The total number of unique time zones that are in the segment for the campaign.
timezonesTotalCount
- The total number of unique time zones that are in the segment for the campaign.public Integer getTimezonesTotalCount()
The total number of unique time zones that are in the segment for the campaign.
public ActivityResponse withTimezonesTotalCount(Integer timezonesTotalCount)
The total number of unique time zones that are in the segment for the campaign.
timezonesTotalCount
- The total number of unique time zones that are in the segment for the campaign.public void setTotalEndpointCount(Integer totalEndpointCount)
The total number of endpoints that the campaign attempted to deliver messages to.
totalEndpointCount
- The total number of endpoints that the campaign attempted to deliver messages to.public Integer getTotalEndpointCount()
The total number of endpoints that the campaign attempted to deliver messages to.
public ActivityResponse withTotalEndpointCount(Integer totalEndpointCount)
The total number of endpoints that the campaign attempted to deliver messages to.
totalEndpointCount
- The total number of endpoints that the campaign attempted to deliver messages to.public void setTreatmentId(String treatmentId)
The unique identifier for the campaign treatment that the activity applies to. A treatment is a variation of a campaign that's used for A/B testing of a campaign.
treatmentId
- The unique identifier for the campaign treatment that the activity applies to. A treatment is a variation
of a campaign that's used for A/B testing of a campaign.public String getTreatmentId()
The unique identifier for the campaign treatment that the activity applies to. A treatment is a variation of a campaign that's used for A/B testing of a campaign.
public ActivityResponse withTreatmentId(String treatmentId)
The unique identifier for the campaign treatment that the activity applies to. A treatment is a variation of a campaign that's used for A/B testing of a campaign.
treatmentId
- The unique identifier for the campaign treatment that the activity applies to. A treatment is a variation
of a campaign that's used for A/B testing of a campaign.public Map<String,String> getExecutionMetrics()
A JSON object that contains metrics relating to the campaign execution for this campaign activity. For information about the structure and contents of the results, see Standard Amazon Pinpoint analytics metrics in the Amazon Pinpoint Developer Guide.
public void setExecutionMetrics(Map<String,String> executionMetrics)
A JSON object that contains metrics relating to the campaign execution for this campaign activity. For information about the structure and contents of the results, see Standard Amazon Pinpoint analytics metrics in the Amazon Pinpoint Developer Guide.
executionMetrics
- A JSON object that contains metrics relating to the campaign execution for this campaign activity. For
information about the structure and contents of the results, see Standard Amazon Pinpoint analytics metrics in the Amazon Pinpoint Developer Guide.public ActivityResponse withExecutionMetrics(Map<String,String> executionMetrics)
A JSON object that contains metrics relating to the campaign execution for this campaign activity. For information about the structure and contents of the results, see Standard Amazon Pinpoint analytics metrics in the Amazon Pinpoint Developer Guide.
executionMetrics
- A JSON object that contains metrics relating to the campaign execution for this campaign activity. For
information about the structure and contents of the results, see Standard Amazon Pinpoint analytics metrics in the Amazon Pinpoint Developer Guide.public ActivityResponse addExecutionMetricsEntry(String key, String value)
public ActivityResponse clearExecutionMetricsEntries()
public String toString()
toString
in class Object
Object.toString()
public ActivityResponse clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.