/*
* 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 codebuild-2016-10-06.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.CodeBuild.Model
{
///
/// A source identifier and its corresponding version.
///
public partial class ProjectSourceVersion
{
private string _sourceIdentifier;
private string _sourceVersion;
///
/// Gets and sets the property SourceIdentifier.
///
/// An identifier for a source in the build project. The identifier can only contain alphanumeric
/// characters and underscores, and must be less than 128 characters in length.
///
///
[AWSProperty(Required=true)]
public string SourceIdentifier
{
get { return this._sourceIdentifier; }
set { this._sourceIdentifier = value; }
}
// Check to see if SourceIdentifier property is set
internal bool IsSetSourceIdentifier()
{
return this._sourceIdentifier != null;
}
///
/// Gets and sets the property SourceVersion.
///
/// The source version for the corresponding source identifier. If specified, must be
/// one of:
///
/// -
///
/// For CodeCommit: the commit ID, branch, or Git tag to use.
///
///
-
///
/// For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds
/// to the version of the source code you want to build. If a pull request ID is specified,
/// it must use the format
pr/pull-request-ID
(for example, pr/25
).
/// If a branch name is specified, the branch's HEAD commit ID is used. If not specified,
/// the default branch's HEAD commit ID is used.
///
/// -
///
/// For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version
/// of the source code you want to build. If a branch name is specified, the branch's
/// HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.
///
///
-
///
/// For Amazon S3: the version ID of the object that represents the build input ZIP file
/// to use.
///
///
///
/// For more information, see Source
/// Version Sample with CodeBuild in the CodeBuild User Guide.
///
///
[AWSProperty(Required=true)]
public string SourceVersion
{
get { return this._sourceVersion; }
set { this._sourceVersion = value; }
}
// Check to see if SourceVersion property is set
internal bool IsSetSourceVersion()
{
return this._sourceVersion != null;
}
}
}