/*
* 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
{
///
/// Specifies the settings for a campaign treatment. A treatment is a variation
/// of a campaign that's used for A/B testing of a campaign.
///
public partial class WriteTreatmentResource
{
private CustomDeliveryConfiguration _customDeliveryConfiguration;
private MessageConfiguration _messageConfiguration;
private Schedule _schedule;
private int? _sizePercent;
private TemplateConfiguration _templateConfiguration;
private string _treatmentDescription;
private string _treatmentName;
///
/// Gets and sets the property CustomDeliveryConfiguration.
///
/// The delivery configuration settings for sending the treatment through a custom channel.
/// This object is required if the MessageConfiguration object for the treatment specifies
/// a CustomMessage object.
///
///
public CustomDeliveryConfiguration CustomDeliveryConfiguration
{
get { return this._customDeliveryConfiguration; }
set { this._customDeliveryConfiguration = value; }
}
// Check to see if CustomDeliveryConfiguration property is set
internal bool IsSetCustomDeliveryConfiguration()
{
return this._customDeliveryConfiguration != null;
}
///
/// Gets and sets the property MessageConfiguration.
///
/// The message configuration settings for the treatment.
///
///
public MessageConfiguration MessageConfiguration
{
get { return this._messageConfiguration; }
set { this._messageConfiguration = value; }
}
// Check to see if MessageConfiguration property is set
internal bool IsSetMessageConfiguration()
{
return this._messageConfiguration != null;
}
///
/// Gets and sets the property Schedule.
///
/// The schedule settings for the treatment.
///
///
public Schedule Schedule
{
get { return this._schedule; }
set { this._schedule = value; }
}
// Check to see if Schedule property is set
internal bool IsSetSchedule()
{
return this._schedule != null;
}
///
/// Gets and sets the property SizePercent.
///
/// The allocated percentage of users (segment members) to send the treatment to.
///
///
[AWSProperty(Required=true)]
public int SizePercent
{
get { return this._sizePercent.GetValueOrDefault(); }
set { this._sizePercent = value; }
}
// Check to see if SizePercent property is set
internal bool IsSetSizePercent()
{
return this._sizePercent.HasValue;
}
///
/// Gets and sets the property TemplateConfiguration.
///
/// The message template to use for the treatment.
///
///
public TemplateConfiguration TemplateConfiguration
{
get { return this._templateConfiguration; }
set { this._templateConfiguration = value; }
}
// Check to see if TemplateConfiguration property is set
internal bool IsSetTemplateConfiguration()
{
return this._templateConfiguration != null;
}
///
/// Gets and sets the property TreatmentDescription.
///
/// A custom description of the treatment.
///
///
public string TreatmentDescription
{
get { return this._treatmentDescription; }
set { this._treatmentDescription = value; }
}
// Check to see if TreatmentDescription property is set
internal bool IsSetTreatmentDescription()
{
return this._treatmentDescription != null;
}
///
/// Gets and sets the property TreatmentName.
///
/// A custom name for the treatment.
///
///
public string TreatmentName
{
get { return this._treatmentName; }
set { this._treatmentName = value; }
}
// Check to see if TreatmentName property is set
internal bool IsSetTreatmentName()
{
return this._treatmentName != null;
}
}
}