/*
* 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 migrationhubstrategy-2020-02-19.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.MigrationHubStrategyRecommendations.Model
{
///
/// Container for the parameters to the StartImportFileTask operation.
/// Starts a file import.
///
public partial class StartImportFileTaskRequest : AmazonMigrationHubStrategyRecommendationsRequest
{
private DataSourceType _dataSourceType;
private List _groupId = new List();
private string _name;
private string _s3Bucket;
private string _s3bucketForReportData;
private string _s3key;
///
/// Gets and sets the property DataSourceType.
///
/// Specifies the source that the servers are coming from. By default, Strategy Recommendations
/// assumes that the servers specified in the import file are available in AWS Application
/// Discovery Service.
///
///
public DataSourceType DataSourceType
{
get { return this._dataSourceType; }
set { this._dataSourceType = value; }
}
// Check to see if DataSourceType property is set
internal bool IsSetDataSourceType()
{
return this._dataSourceType != null;
}
///
/// Gets and sets the property GroupId.
///
/// Groups the resources in the import file together with a unique name. This ID can be
/// as filter in ListApplicationComponents
and ListServers
.
///
///
///
public List GroupId
{
get { return this._groupId; }
set { this._groupId = value; }
}
// Check to see if GroupId property is set
internal bool IsSetGroupId()
{
return this._groupId != null && this._groupId.Count > 0;
}
///
/// Gets and sets the property Name.
///
/// A descriptive name for the request.
///
///
[AWSProperty(Required=true, Min=1, Max=50)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property S3Bucket.
///
/// The S3 bucket where the import file is located. The bucket name is required to begin
/// with migrationhub-strategy-
.
///
///
[AWSProperty(Required=true, Min=0, Max=63)]
public string S3Bucket
{
get { return this._s3Bucket; }
set { this._s3Bucket = value; }
}
// Check to see if S3Bucket property is set
internal bool IsSetS3Bucket()
{
return this._s3Bucket != null;
}
///
/// Gets and sets the property S3bucketForReportData.
///
/// The S3 bucket where Strategy Recommendations uploads import results. The bucket name
/// is required to begin with migrationhub-strategy-.
///
///
[AWSProperty(Min=0, Max=63)]
public string S3bucketForReportData
{
get { return this._s3bucketForReportData; }
set { this._s3bucketForReportData = value; }
}
// Check to see if S3bucketForReportData property is set
internal bool IsSetS3bucketForReportData()
{
return this._s3bucketForReportData != null;
}
///
/// Gets and sets the property S3key.
///
/// The Amazon S3 key name of the import file.
///
///
[AWSProperty(Required=true, Min=0, Max=1024)]
public string S3key
{
get { return this._s3key; }
set { this._s3key = value; }
}
// Check to see if S3key property is set
internal bool IsSetS3key()
{
return this._s3key != null;
}
}
}