/*
* 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 amplify-2017-07-25.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.Amplify.Model
{
///
/// Describes the automated branch creation configuration.
///
public partial class AutoBranchCreationConfig
{
private string _basicAuthCredentials;
private string _buildSpec;
private bool? _enableAutoBuild;
private bool? _enableBasicAuth;
private bool? _enablePerformanceMode;
private bool? _enablePullRequestPreview;
private Dictionary _environmentVariables = new Dictionary();
private string _framework;
private string _pullRequestEnvironmentName;
private Stage _stage;
///
/// Gets and sets the property BasicAuthCredentials.
///
/// The basic authorization credentials for the autocreated branch. You must base64-encode
/// the authorization credentials and provide them in the format user:password
.
///
///
[AWSProperty(Sensitive=true, Max=2000)]
public string BasicAuthCredentials
{
get { return this._basicAuthCredentials; }
set { this._basicAuthCredentials = value; }
}
// Check to see if BasicAuthCredentials property is set
internal bool IsSetBasicAuthCredentials()
{
return this._basicAuthCredentials != null;
}
///
/// Gets and sets the property BuildSpec.
///
/// The build specification (build spec) for the autocreated branch.
///
///
[AWSProperty(Sensitive=true, Min=1, Max=25000)]
public string BuildSpec
{
get { return this._buildSpec; }
set { this._buildSpec = value; }
}
// Check to see if BuildSpec property is set
internal bool IsSetBuildSpec()
{
return this._buildSpec != null;
}
///
/// Gets and sets the property EnableAutoBuild.
///
/// Enables auto building for the autocreated branch.
///
///
public bool EnableAutoBuild
{
get { return this._enableAutoBuild.GetValueOrDefault(); }
set { this._enableAutoBuild = value; }
}
// Check to see if EnableAutoBuild property is set
internal bool IsSetEnableAutoBuild()
{
return this._enableAutoBuild.HasValue;
}
///
/// Gets and sets the property EnableBasicAuth.
///
/// Enables basic authorization for the autocreated branch.
///
///
public bool EnableBasicAuth
{
get { return this._enableBasicAuth.GetValueOrDefault(); }
set { this._enableBasicAuth = value; }
}
// Check to see if EnableBasicAuth property is set
internal bool IsSetEnableBasicAuth()
{
return this._enableBasicAuth.HasValue;
}
///
/// Gets and sets the property EnablePerformanceMode.
///
/// Enables performance mode for the branch.
///
///
///
/// Performance mode optimizes for faster hosting performance by keeping content cached
/// at the edge for a longer interval. When performance mode is enabled, hosting configuration
/// or code changes can take up to 10 minutes to roll out.
///
///
public bool EnablePerformanceMode
{
get { return this._enablePerformanceMode.GetValueOrDefault(); }
set { this._enablePerformanceMode = value; }
}
// Check to see if EnablePerformanceMode property is set
internal bool IsSetEnablePerformanceMode()
{
return this._enablePerformanceMode.HasValue;
}
///
/// Gets and sets the property EnablePullRequestPreview.
///
/// Enables pull request previews for the autocreated branch.
///
///
public bool EnablePullRequestPreview
{
get { return this._enablePullRequestPreview.GetValueOrDefault(); }
set { this._enablePullRequestPreview = value; }
}
// Check to see if EnablePullRequestPreview property is set
internal bool IsSetEnablePullRequestPreview()
{
return this._enablePullRequestPreview.HasValue;
}
///
/// Gets and sets the property EnvironmentVariables.
///
/// The environment variables for the autocreated branch.
///
///
public Dictionary EnvironmentVariables
{
get { return this._environmentVariables; }
set { this._environmentVariables = value; }
}
// Check to see if EnvironmentVariables property is set
internal bool IsSetEnvironmentVariables()
{
return this._environmentVariables != null && this._environmentVariables.Count > 0;
}
///
/// Gets and sets the property Framework.
///
/// The framework for the autocreated branch.
///
///
[AWSProperty(Max=255)]
public string Framework
{
get { return this._framework; }
set { this._framework = value; }
}
// Check to see if Framework property is set
internal bool IsSetFramework()
{
return this._framework != null;
}
///
/// Gets and sets the property PullRequestEnvironmentName.
///
/// The Amplify environment name for the pull request.
///
///
[AWSProperty(Max=20)]
public string PullRequestEnvironmentName
{
get { return this._pullRequestEnvironmentName; }
set { this._pullRequestEnvironmentName = value; }
}
// Check to see if PullRequestEnvironmentName property is set
internal bool IsSetPullRequestEnvironmentName()
{
return this._pullRequestEnvironmentName != null;
}
///
/// Gets and sets the property Stage.
///
/// Describes the current stage for the autocreated branch.
///
///
public Stage Stage
{
get { return this._stage; }
set { this._stage = value; }
}
// Check to see if Stage property is set
internal bool IsSetStage()
{
return this._stage != null;
}
}
}