/*
* 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 securityhub-2018-10-26.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.SecurityHub.Model
{
///
/// Information about the build input source code for this build project.
///
public partial class AwsCodeBuildProjectSource
{
private int? _gitCloneDepth;
private bool? _insecureSsl;
private string _location;
private string _type;
///
/// Gets and sets the property GitCloneDepth.
///
/// Information about the Git clone depth for the build project.
///
///
public int GitCloneDepth
{
get { return this._gitCloneDepth.GetValueOrDefault(); }
set { this._gitCloneDepth = value; }
}
// Check to see if GitCloneDepth property is set
internal bool IsSetGitCloneDepth()
{
return this._gitCloneDepth.HasValue;
}
///
/// Gets and sets the property InsecureSsl.
///
/// Whether to ignore SSL warnings while connecting to the project source code.
///
///
public bool InsecureSsl
{
get { return this._insecureSsl.GetValueOrDefault(); }
set { this._insecureSsl = value; }
}
// Check to see if InsecureSsl property is set
internal bool IsSetInsecureSsl()
{
return this._insecureSsl.HasValue;
}
///
/// Gets and sets the property Location.
///
/// Information about the location of the source code to be built.
///
///
///
/// Valid values include:
///
/// -
///
/// For source code settings that are specified in the source action of a pipeline in
/// CodePipeline, location should not be specified. If it is specified, CodePipeline ignores
/// it. This is because CodePipeline uses the settings in a pipeline's source action instead
/// of this value.
///
///
-
///
/// For source code in an CodeCommit repository, the HTTPS clone URL to the repository
/// that contains the source code and the build spec file (for example,
https://git-codecommit.region-ID.amazonaws.com/v1/repos/repo-name
/// ).
///
/// -
///
/// For source code in an S3 input bucket, one of the following.
///
///
-
///
/// The path to the ZIP file that contains the source code (for example,
bucket-name/path/to/object-name.zip
).
///
/// -
///
/// The path to the folder that contains the source code (for example,
bucket-name/path/to/source-code/folder/
).
///
///
-
///
/// For source code in a GitHub repository, the HTTPS clone URL to the repository that
/// contains the source and the build spec file.
///
///
-
///
/// For source code in a Bitbucket repository, the HTTPS clone URL to the repository that
/// contains the source and the build spec file.
///
///
///
public string Location
{
get { return this._location; }
set { this._location = value; }
}
// Check to see if Location property is set
internal bool IsSetLocation()
{
return this._location != null;
}
///
/// Gets and sets the property Type.
///
/// The type of repository that contains the source code to be built. Valid values are:
///
/// -
///
///
BITBUCKET
- The source code is in a Bitbucket repository.
///
/// -
///
///
CODECOMMIT
- The source code is in an CodeCommit repository.
///
/// -
///
///
CODEPIPELINE
- The source code settings are specified in the source
/// action of a pipeline in CodePipeline.
///
/// -
///
///
GITHUB
- The source code is in a GitHub repository.
///
/// -
///
///
GITHUB_ENTERPRISE
- The source code is in a GitHub Enterprise repository.
///
/// -
///
///
NO_SOURCE
- The project does not have input source code.
///
/// -
///
///
S3
- The source code is in an S3 input bucket.
///
///
///
public string Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}