/* * 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 { /// /// Container for the parameters to the CreateBranch operation. /// Creates a new branch for an Amplify app. /// public partial class CreateBranchRequest : AmazonAmplifyRequest { private string _appId; private string _backendEnvironmentArn; private string _basicAuthCredentials; private string _branchName; private string _buildSpec; private string _description; private string _displayName; private bool? _enableAutoBuild; private bool? _enableBasicAuth; private bool? _enableNotification; private bool? _enablePerformanceMode; private bool? _enablePullRequestPreview; private Dictionary _environmentVariables = new Dictionary(); private string _framework; private string _pullRequestEnvironmentName; private Stage _stage; private Dictionary _tags = new Dictionary(); private string _ttl; /// /// Gets and sets the property AppId. /// /// The unique ID for an Amplify app. /// /// [AWSProperty(Required=true, Min=1, Max=20)] public string AppId { get { return this._appId; } set { this._appId = value; } } // Check to see if AppId property is set internal bool IsSetAppId() { return this._appId != null; } /// /// Gets and sets the property BackendEnvironmentArn. /// /// The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify /// app. /// /// [AWSProperty(Min=0, Max=1000)] public string BackendEnvironmentArn { get { return this._backendEnvironmentArn; } set { this._backendEnvironmentArn = value; } } // Check to see if BackendEnvironmentArn property is set internal bool IsSetBackendEnvironmentArn() { return this._backendEnvironmentArn != null; } /// /// Gets and sets the property BasicAuthCredentials. /// /// The basic authorization credentials for the 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 BranchName. /// /// The name for the branch. /// /// [AWSProperty(Required=true, Min=1, Max=255)] public string BranchName { get { return this._branchName; } set { this._branchName = value; } } // Check to see if BranchName property is set internal bool IsSetBranchName() { return this._branchName != null; } /// /// Gets and sets the property BuildSpec. /// /// The build specification (build spec) for the 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 Description. /// /// The description for the branch. /// /// [AWSProperty(Max=1000)] 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 DisplayName. /// /// The display name for a branch. This is used as the default domain prefix. /// /// [AWSProperty(Max=255)] public string DisplayName { get { return this._displayName; } set { this._displayName = value; } } // Check to see if DisplayName property is set internal bool IsSetDisplayName() { return this._displayName != null; } /// /// Gets and sets the property EnableAutoBuild. /// /// Enables auto building for the 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 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 EnableNotification. /// /// Enables notifications for the branch. /// /// public bool EnableNotification { get { return this._enableNotification.GetValueOrDefault(); } set { this._enableNotification = value; } } // Check to see if EnableNotification property is set internal bool IsSetEnableNotification() { return this._enableNotification.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 this 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 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 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 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; } /// /// Gets and sets the property Tags. /// /// The tag for the branch. /// /// [AWSProperty(Min=0, Max=50)] public Dictionary 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 Ttl. /// /// The content Time To Live (TTL) for the website in seconds. /// /// [AWSProperty(Min=0, Max=32)] public string Ttl { get { return this._ttl; } set { this._ttl = value; } } // Check to see if Ttl property is set internal bool IsSetTtl() { return this._ttl != null; } } }