/*
* 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
{
///
/// Represents information about an action configuration property.
///
public partial class ActionConfigurationProperty
{
private string _description;
private bool? _key;
private string _name;
private bool? _queryable;
private bool? _required;
private bool? _secret;
private ActionConfigurationPropertyType _type;
///
/// Gets and sets the property Description.
///
/// The description of the action configuration property that is displayed to users.
///
///
[AWSProperty(Min=1, Max=160)]
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 Key.
///
/// Whether the configuration property is a key.
///
///
[AWSProperty(Required=true)]
public bool Key
{
get { return this._key.GetValueOrDefault(); }
set { this._key = value; }
}
// Check to see if Key property is set
internal bool IsSetKey()
{
return this._key.HasValue;
}
///
/// Gets and sets the property Name.
///
/// The name of the action configuration property.
///
///
[AWSProperty(Required=true, Min=1, Max=50)]
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 Queryable.
///
/// Indicates that the property is used with PollForJobs
. When creating a
/// custom action, an action can have up to one queryable property. If it has one, that
/// property must be both required and not secret.
///
///
///
/// If you create a pipeline with a custom action type, and that custom action contains
/// a queryable property, the value for that configuration property is subject to other
/// restrictions. The value must be less than or equal to twenty (20) characters. The
/// value can contain only alphanumeric characters, underscores, and hyphens.
///
///
public bool Queryable
{
get { return this._queryable.GetValueOrDefault(); }
set { this._queryable = value; }
}
// Check to see if Queryable property is set
internal bool IsSetQueryable()
{
return this._queryable.HasValue;
}
///
/// Gets and sets the property Required.
///
/// Whether the configuration property is a required value.
///
///
[AWSProperty(Required=true)]
public bool Required
{
get { return this._required.GetValueOrDefault(); }
set { this._required = value; }
}
// Check to see if Required property is set
internal bool IsSetRequired()
{
return this._required.HasValue;
}
///
/// Gets and sets the property Secret.
///
/// Whether the configuration property is secret. Secrets are hidden from all calls except
/// for GetJobDetails
, GetThirdPartyJobDetails
, PollForJobs
,
/// and PollForThirdPartyJobs
.
///
///
///
/// When updating a pipeline, passing * * * * * without changing any other values of the
/// action preserves the previous value of the secret.
///
///
[AWSProperty(Required=true)]
public bool Secret
{
get { return this._secret.GetValueOrDefault(); }
set { this._secret = value; }
}
// Check to see if Secret property is set
internal bool IsSetSecret()
{
return this._secret.HasValue;
}
///
/// Gets and sets the property Type.
///
/// The type of the configuration property.
///
///
public ActionConfigurationPropertyType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}