/* * 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 codepipeline-2015-07-09.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.CodePipeline.Model { /// /// The detail returned for each webhook after listing webhooks, such as the webhook URL, /// the webhook name, and the webhook ARN. /// public partial class ListWebhookItem { private string _arn; private WebhookDefinition _definition; private string _errorCode; private string _errorMessage; private DateTime? _lastTriggered; private List _tags = new List(); private string _url; /// /// Gets and sets the property Arn. /// /// The Amazon Resource Name (ARN) of the webhook. /// /// public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// /// Gets and sets the property Definition. /// /// The detail returned for each webhook, such as the webhook authentication type and /// filter rules. /// /// [AWSProperty(Required=true)] public WebhookDefinition Definition { get { return this._definition; } set { this._definition = value; } } // Check to see if Definition property is set internal bool IsSetDefinition() { return this._definition != null; } /// /// Gets and sets the property ErrorCode. /// /// The number code of the error. /// /// public string ErrorCode { get { return this._errorCode; } set { this._errorCode = value; } } // Check to see if ErrorCode property is set internal bool IsSetErrorCode() { return this._errorCode != null; } /// /// Gets and sets the property ErrorMessage. /// /// The text of the error message about the webhook. /// /// public string ErrorMessage { get { return this._errorMessage; } set { this._errorMessage = value; } } // Check to see if ErrorMessage property is set internal bool IsSetErrorMessage() { return this._errorMessage != null; } /// /// Gets and sets the property LastTriggered. /// /// The date and time a webhook was last successfully triggered, in timestamp format. /// /// public DateTime LastTriggered { get { return this._lastTriggered.GetValueOrDefault(); } set { this._lastTriggered = value; } } // Check to see if LastTriggered property is set internal bool IsSetLastTriggered() { return this._lastTriggered.HasValue; } /// /// Gets and sets the property Tags. /// /// Specifies the tags applied to the webhook. /// /// public List 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 Url. /// /// A unique URL generated by CodePipeline. When a POST request is made to this URL, the /// defined pipeline is started as long as the body of the post request satisfies the /// defined authentication and filtering conditions. Deleting and re-creating a webhook /// makes the old URL invalid and generates a new one. /// /// [AWSProperty(Required=true, Min=1, Max=1000)] public string Url { get { return this._url; } set { this._url = value; } } // Check to see if Url property is set internal bool IsSetUrl() { return this._url != null; } } }