/*
* 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 codecommit-2015-04-13.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.CodeCommit.Model
{
///
/// Information about a trigger for a repository.
///
public partial class RepositoryTrigger
{
private List _branches = new List();
private string _customData;
private string _destinationArn;
private List _events = new List();
private string _name;
///
/// Gets and sets the property Branches.
///
/// The branches to be included in the trigger configuration. If you specify an empty
/// array, the trigger applies to all branches.
///
///
///
/// Although no content is required in the array, you must include the array itself.
///
///
///
public List Branches
{
get { return this._branches; }
set { this._branches = value; }
}
// Check to see if Branches property is set
internal bool IsSetBranches()
{
return this._branches != null && this._branches.Count > 0;
}
///
/// Gets and sets the property CustomData.
///
/// Any custom data associated with the trigger to be included in the information sent
/// to the target of the trigger.
///
///
public string CustomData
{
get { return this._customData; }
set { this._customData = value; }
}
// Check to see if CustomData property is set
internal bool IsSetCustomData()
{
return this._customData != null;
}
///
/// Gets and sets the property DestinationArn.
///
/// The ARN of the resource that is the target for a trigger (for example, the ARN of
/// a topic in Amazon SNS).
///
///
[AWSProperty(Required=true)]
public string DestinationArn
{
get { return this._destinationArn; }
set { this._destinationArn = value; }
}
// Check to see if DestinationArn property is set
internal bool IsSetDestinationArn()
{
return this._destinationArn != null;
}
///
/// Gets and sets the property Events.
///
/// The repository events that cause the trigger to run actions in another service, such
/// as sending a notification through Amazon SNS.
///
///
///
/// The valid value "all" cannot be used with any other values.
///
///
///
[AWSProperty(Required=true)]
public List Events
{
get { return this._events; }
set { this._events = value; }
}
// Check to see if Events property is set
internal bool IsSetEvents()
{
return this._events != null && this._events.Count > 0;
}
///
/// Gets and sets the property Name.
///
/// The name of the trigger.
///
///
[AWSProperty(Required=true)]
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;
}
}
}