/* * 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 apprunner-2020-05-15.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.AppRunner.Model { /// /// Describes the source deployed to an App Runner service. It can be a code or an image /// repository. /// public partial class SourceConfiguration { private AuthenticationConfiguration _authenticationConfiguration; private bool? _autoDeploymentsEnabled; private CodeRepository _codeRepository; private ImageRepository _imageRepository; /// /// Gets and sets the property AuthenticationConfiguration. /// /// Describes the resources that are needed to authenticate access to some source repositories. /// /// public AuthenticationConfiguration AuthenticationConfiguration { get { return this._authenticationConfiguration; } set { this._authenticationConfiguration = value; } } // Check to see if AuthenticationConfiguration property is set internal bool IsSetAuthenticationConfiguration() { return this._authenticationConfiguration != null; } /// /// Gets and sets the property AutoDeploymentsEnabled. /// /// If true, continuous integration from the source repository is enabled /// for the App Runner service. Each repository change (including any source code commit /// or new image version) starts a deployment. /// /// /// /// Default: App Runner sets to false for a source image that uses an ECR /// Public repository or an ECR repository that's in an Amazon Web Services account other /// than the one that the service is in. App Runner sets to true in all other /// cases (which currently include a source code repository or a source image using a /// same-account ECR repository). /// /// public bool AutoDeploymentsEnabled { get { return this._autoDeploymentsEnabled.GetValueOrDefault(); } set { this._autoDeploymentsEnabled = value; } } // Check to see if AutoDeploymentsEnabled property is set internal bool IsSetAutoDeploymentsEnabled() { return this._autoDeploymentsEnabled.HasValue; } /// /// Gets and sets the property CodeRepository. /// /// The description of a source code repository. /// /// /// /// You must provide either this member or ImageRepository (but not both). /// /// public CodeRepository CodeRepository { get { return this._codeRepository; } set { this._codeRepository = value; } } // Check to see if CodeRepository property is set internal bool IsSetCodeRepository() { return this._codeRepository != null; } /// /// Gets and sets the property ImageRepository. /// /// The description of a source image repository. /// /// /// /// You must provide either this member or CodeRepository (but not both). /// /// public ImageRepository ImageRepository { get { return this._imageRepository; } set { this._imageRepository = value; } } // Check to see if ImageRepository property is set internal bool IsSetImageRepository() { return this._imageRepository != null; } } }