/* * 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 resiliencehub-2020-04-30.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.ResilienceHub.Model { /// /// Container for the parameters to the ImportResourcesToDraftAppVersion operation. /// Imports resources to Resilience Hub application draft version from different input /// sources. For more information about the input sources supported by Resilience Hub, /// see Discover /// the structure and describe your Resilience Hub application. /// public partial class ImportResourcesToDraftAppVersionRequest : AmazonResilienceHubRequest { private string _appArn; private List _eksSources = new List(); private ResourceImportStrategyType _importStrategy; private List _sourceArns = new List(); private List _terraformSources = new List(); /// /// Gets and sets the property AppArn. /// /// The Amazon Resource Name (ARN) of the Resilience Hub application. The format for this /// ARN is: arn:partition:resiliencehub:region:account:app/app-id. /// For more information about ARNs, see /// Amazon Resource Names (ARNs) in the AWS General Reference guide. /// /// [AWSProperty(Required=true)] public string AppArn { get { return this._appArn; } set { this._appArn = value; } } // Check to see if AppArn property is set internal bool IsSetAppArn() { return this._appArn != null; } /// /// Gets and sets the property EksSources. /// /// The input sources of the Amazon Elastic Kubernetes Service resources you need to import. /// /// public List EksSources { get { return this._eksSources; } set { this._eksSources = value; } } // Check to see if EksSources property is set internal bool IsSetEksSources() { return this._eksSources != null && this._eksSources.Count > 0; } /// /// Gets and sets the property ImportStrategy. /// /// The import strategy you would like to set to import resources into Resilience Hub /// application. /// /// public ResourceImportStrategyType ImportStrategy { get { return this._importStrategy; } set { this._importStrategy = value; } } // Check to see if ImportStrategy property is set internal bool IsSetImportStrategy() { return this._importStrategy != null; } /// /// Gets and sets the property SourceArns. /// /// The Amazon Resource Names (ARNs) for the resources. /// /// public List SourceArns { get { return this._sourceArns; } set { this._sourceArns = value; } } // Check to see if SourceArns property is set internal bool IsSetSourceArns() { return this._sourceArns != null && this._sourceArns.Count > 0; } /// /// Gets and sets the property TerraformSources. /// /// A list of terraform file s3 URLs you need to import. /// /// public List TerraformSources { get { return this._terraformSources; } set { this._terraformSources = value; } } // Check to see if TerraformSources property is set internal bool IsSetTerraformSources() { return this._terraformSources != null && this._terraformSources.Count > 0; } } }