/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the pinpoint-2016-12-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Pinpoint.Model
{
///
/// Provides information about an activity that was performed by a campaign.
///
public partial class ActivityResponse
{
private string _applicationId;
private string _campaignId;
private string _end;
private Dictionary _executionMetrics = new Dictionary();
private string _id;
private string _result;
private string _scheduledStart;
private string _start;
private string _state;
private int? _successfulEndpointCount;
private int? _timezonesCompletedCount;
private int? _timezonesTotalCount;
private int? _totalEndpointCount;
private string _treatmentId;
///
/// Gets and sets the property ApplicationId.
///
/// The unique identifier for the application that the campaign applies to.
///
///
[AWSProperty(Required=true)]
public string ApplicationId
{
get { return this._applicationId; }
set { this._applicationId = value; }
}
// Check to see if ApplicationId property is set
internal bool IsSetApplicationId()
{
return this._applicationId != null;
}
///
/// Gets and sets the property CampaignId.
///
/// The unique identifier for the campaign that the activity applies to.
///
///
[AWSProperty(Required=true)]
public string CampaignId
{
get { return this._campaignId; }
set { this._campaignId = value; }
}
// Check to see if CampaignId property is set
internal bool IsSetCampaignId()
{
return this._campaignId != null;
}
///
/// Gets and sets the property End.
///
/// The actual time, in ISO 8601 format, when the activity was marked CANCELLED or COMPLETED.
///
///
public string End
{
get { return this._end; }
set { this._end = value; }
}
// Check to see if End property is set
internal bool IsSetEnd()
{
return this._end != null;
}
///
/// Gets and sets the property 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 Dictionary ExecutionMetrics
{
get { return this._executionMetrics; }
set { this._executionMetrics = value; }
}
// Check to see if ExecutionMetrics property is set
internal bool IsSetExecutionMetrics()
{
return this._executionMetrics != null && this._executionMetrics.Count > 0;
}
///
/// Gets and sets the property Id.
///
/// The unique identifier for the activity.
///
///
[AWSProperty(Required=true)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
///
/// Gets and sets the property Result.
///
/// Specifies whether the activity succeeded. Possible values are SUCCESS and FAIL.
///
///
public string Result
{
get { return this._result; }
set { this._result = value; }
}
// Check to see if Result property is set
internal bool IsSetResult()
{
return this._result != null;
}
///
/// Gets and sets the property ScheduledStart.
///
/// The scheduled start time, in ISO 8601 format, for the activity.
///
///
public string ScheduledStart
{
get { return this._scheduledStart; }
set { this._scheduledStart = value; }
}
// Check to see if ScheduledStart property is set
internal bool IsSetScheduledStart()
{
return this._scheduledStart != null;
}
///
/// Gets and sets the property Start.
///
/// The actual start time, in ISO 8601 format, of the activity.
///
///
public string Start
{
get { return this._start; }
set { this._start = value; }
}
// Check to see if Start property is set
internal bool IsSetStart()
{
return this._start != null;
}
///
/// Gets and sets the property State.
///
/// The current status of the activity. Possible values are: PENDING, INITIALIZING, RUNNING,
/// PAUSED, CANCELLED, and COMPLETED.
///
///
public string State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
///
/// Gets and sets the property SuccessfulEndpointCount.
///
/// The total number of endpoints that the campaign successfully delivered messages to.
///
///
public int SuccessfulEndpointCount
{
get { return this._successfulEndpointCount.GetValueOrDefault(); }
set { this._successfulEndpointCount = value; }
}
// Check to see if SuccessfulEndpointCount property is set
internal bool IsSetSuccessfulEndpointCount()
{
return this._successfulEndpointCount.HasValue;
}
///
/// Gets and sets the property TimezonesCompletedCount.
///
/// The total number of time zones that were completed.
///
///
public int TimezonesCompletedCount
{
get { return this._timezonesCompletedCount.GetValueOrDefault(); }
set { this._timezonesCompletedCount = value; }
}
// Check to see if TimezonesCompletedCount property is set
internal bool IsSetTimezonesCompletedCount()
{
return this._timezonesCompletedCount.HasValue;
}
///
/// Gets and sets the property TimezonesTotalCount.
///
/// The total number of unique time zones that are in the segment for the campaign.
///
///
public int TimezonesTotalCount
{
get { return this._timezonesTotalCount.GetValueOrDefault(); }
set { this._timezonesTotalCount = value; }
}
// Check to see if TimezonesTotalCount property is set
internal bool IsSetTimezonesTotalCount()
{
return this._timezonesTotalCount.HasValue;
}
///
/// Gets and sets the property TotalEndpointCount.
///
/// The total number of endpoints that the campaign attempted to deliver messages to.
///
///
public int TotalEndpointCount
{
get { return this._totalEndpointCount.GetValueOrDefault(); }
set { this._totalEndpointCount = value; }
}
// Check to see if TotalEndpointCount property is set
internal bool IsSetTotalEndpointCount()
{
return this._totalEndpointCount.HasValue;
}
///
/// Gets and sets the property 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 TreatmentId
{
get { return this._treatmentId; }
set { this._treatmentId = value; }
}
// Check to see if TreatmentId property is set
internal bool IsSetTreatmentId()
{
return this._treatmentId != null;
}
}
}