/*
* 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 configuration and other settings for a campaign.
///
public partial class WriteCampaignRequest
{
private List _additionalTreatments = new List();
private CustomDeliveryConfiguration _customDeliveryConfiguration;
private string _description;
private int? _holdoutPercent;
private CampaignHook _hook;
private bool? _isPaused;
private CampaignLimits _limits;
private MessageConfiguration _messageConfiguration;
private string _name;
private int? _priority;
private Schedule _schedule;
private string _segmentId;
private int? _segmentVersion;
private Dictionary _tags = new Dictionary();
private TemplateConfiguration _templateConfiguration;
private string _treatmentDescription;
private string _treatmentName;
///
/// Gets and sets the property AdditionalTreatments.
///
/// An array of requests that defines additional treatments for the campaign, in addition
/// to the default treatment for the campaign.
///
///
public List AdditionalTreatments
{
get { return this._additionalTreatments; }
set { this._additionalTreatments = value; }
}
// Check to see if AdditionalTreatments property is set
internal bool IsSetAdditionalTreatments()
{
return this._additionalTreatments != null && this._additionalTreatments.Count > 0;
}
///
/// Gets and sets the property CustomDeliveryConfiguration.
///
/// The delivery configuration settings for sending the campaign through a custom channel.
/// This object is required if the MessageConfiguration object for the campaign 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 Description.
///
/// A custom description of the campaign.
///
///
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property HoldoutPercent.
///
/// The allocated percentage of users (segment members) who shouldn't receive messages
/// from the campaign.
///
///
public int HoldoutPercent
{
get { return this._holdoutPercent.GetValueOrDefault(); }
set { this._holdoutPercent = value; }
}
// Check to see if HoldoutPercent property is set
internal bool IsSetHoldoutPercent()
{
return this._holdoutPercent.HasValue;
}
///
/// Gets and sets the property Hook.
///
/// The settings for the AWS Lambda function to invoke as a code hook for the campaign.
/// You can use this hook to customize the segment that's used by the campaign.
///
///
public CampaignHook Hook
{
get { return this._hook; }
set { this._hook = value; }
}
// Check to see if Hook property is set
internal bool IsSetHook()
{
return this._hook != null;
}
///
/// Gets and sets the property IsPaused.
///
/// Specifies whether to pause the campaign. A paused campaign doesn't run unless you
/// resume it by changing this value to false.
///
///
public bool IsPaused
{
get { return this._isPaused.GetValueOrDefault(); }
set { this._isPaused = value; }
}
// Check to see if IsPaused property is set
internal bool IsSetIsPaused()
{
return this._isPaused.HasValue;
}
///
/// Gets and sets the property Limits.
///
/// The messaging limits for the campaign.
///
///
public CampaignLimits Limits
{
get { return this._limits; }
set { this._limits = value; }
}
// Check to see if Limits property is set
internal bool IsSetLimits()
{
return this._limits != null;
}
///
/// Gets and sets the property MessageConfiguration.
///
/// The message configuration settings for the campaign.
///
///
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 Name.
///
/// A custom name for the campaign.
///
///
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property Priority.
///
/// Defines the priority of the campaign, used to decide the order of messages displayed
/// to user if there are multiple messages scheduled to be displayed at the same moment.
///
///
public int Priority
{
get { return this._priority.GetValueOrDefault(); }
set { this._priority = value; }
}
// Check to see if Priority property is set
internal bool IsSetPriority()
{
return this._priority.HasValue;
}
///
/// Gets and sets the property Schedule.
///
/// The schedule settings for the campaign.
///
///
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 SegmentId.
///
/// The unique identifier for the segment to associate with the campaign.
///
///
public string SegmentId
{
get { return this._segmentId; }
set { this._segmentId = value; }
}
// Check to see if SegmentId property is set
internal bool IsSetSegmentId()
{
return this._segmentId != null;
}
///
/// Gets and sets the property SegmentVersion.
///
/// The version of the segment to associate with the campaign.
///
///
public int SegmentVersion
{
get { return this._segmentVersion.GetValueOrDefault(); }
set { this._segmentVersion = value; }
}
// Check to see if SegmentVersion property is set
internal bool IsSetSegmentVersion()
{
return this._segmentVersion.HasValue;
}
///
/// Gets and sets the property Tags.
///
/// As of 22-05-2023 tags has been deprecated for update operations. After this
/// date any value in tags is not processed and an error code is not returned. To manage
/// tags we recommend using either Tags
/// in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi
/// commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi
/// in the AWS SDK.
///
///
///
/// (Deprecated) A string-to-string map of key-value pairs that defines the tags to associate
/// with the campaign. Each tag consists of a required tag key and an associated tag value.
///
///
public Dictionary Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
///
/// Gets and sets the property TemplateConfiguration.
///
/// The message template to use for the campaign.
///
///
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 default treatment for the campaign.
///
///
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 of the default treatment for the campaign, if the campaign has multiple
/// treatments. A treatment is a variation of a campaign that's used for A/B testing.
///
///
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;
}
}
}