/*
* 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 drs-2020-02-26.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.Drs.Model
{
///
/// This is the response object from the GetLaunchConfiguration operation.
///
public partial class GetLaunchConfigurationResponse : AmazonWebServiceResponse
{
private bool? _copyPrivateIp;
private bool? _copyTags;
private string _ec2LaunchTemplateID;
private LaunchDisposition _launchDisposition;
private Licensing _licensing;
private string _name;
private string _sourceServerID;
private TargetInstanceTypeRightSizingMethod _targetInstanceTypeRightSizingMethod;
///
/// Gets and sets the property CopyPrivateIp.
///
/// Whether we should copy the Private IP of the Source Server to the Recovery Instance.
///
///
public bool CopyPrivateIp
{
get { return this._copyPrivateIp.GetValueOrDefault(); }
set { this._copyPrivateIp = value; }
}
// Check to see if CopyPrivateIp property is set
internal bool IsSetCopyPrivateIp()
{
return this._copyPrivateIp.HasValue;
}
///
/// Gets and sets the property CopyTags.
///
/// Whether we want to copy the tags of the Source Server to the EC2 machine of the Recovery
/// Instance.
///
///
public bool CopyTags
{
get { return this._copyTags.GetValueOrDefault(); }
set { this._copyTags = value; }
}
// Check to see if CopyTags property is set
internal bool IsSetCopyTags()
{
return this._copyTags.HasValue;
}
///
/// Gets and sets the property Ec2LaunchTemplateID.
///
/// The EC2 launch template ID of this launch configuration.
///
///
[AWSProperty(Min=0, Max=256)]
public string Ec2LaunchTemplateID
{
get { return this._ec2LaunchTemplateID; }
set { this._ec2LaunchTemplateID = value; }
}
// Check to see if Ec2LaunchTemplateID property is set
internal bool IsSetEc2LaunchTemplateID()
{
return this._ec2LaunchTemplateID != null;
}
///
/// Gets and sets the property LaunchDisposition.
///
/// The state of the Recovery Instance in EC2 after the recovery operation.
///
///
public LaunchDisposition LaunchDisposition
{
get { return this._launchDisposition; }
set { this._launchDisposition = value; }
}
// Check to see if LaunchDisposition property is set
internal bool IsSetLaunchDisposition()
{
return this._launchDisposition != null;
}
///
/// Gets and sets the property Licensing.
///
/// The licensing configuration to be used for this launch configuration.
///
///
public Licensing Licensing
{
get { return this._licensing; }
set { this._licensing = value; }
}
// Check to see if Licensing property is set
internal bool IsSetLicensing()
{
return this._licensing != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the launch configuration.
///
///
[AWSProperty(Min=0, Max=128)]
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 SourceServerID.
///
/// The ID of the Source Server for this launch configuration.
///
///
[AWSProperty(Min=19, Max=19)]
public string SourceServerID
{
get { return this._sourceServerID; }
set { this._sourceServerID = value; }
}
// Check to see if SourceServerID property is set
internal bool IsSetSourceServerID()
{
return this._sourceServerID != null;
}
///
/// Gets and sets the property TargetInstanceTypeRightSizingMethod.
///
/// Whether Elastic Disaster Recovery should try to automatically choose the instance
/// type that best matches the OS, CPU, and RAM of your Source Server.
///
///
public TargetInstanceTypeRightSizingMethod TargetInstanceTypeRightSizingMethod
{
get { return this._targetInstanceTypeRightSizingMethod; }
set { this._targetInstanceTypeRightSizingMethod = value; }
}
// Check to see if TargetInstanceTypeRightSizingMethod property is set
internal bool IsSetTargetInstanceTypeRightSizingMethod()
{
return this._targetInstanceTypeRightSizingMethod != null;
}
}
}