/*
* 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 mgn-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.Mgn.Model
{
///
/// This is the response object from the PutSourceServerAction operation.
///
public partial class PutSourceServerActionResponse : AmazonWebServiceResponse
{
private string _actionid;
private string _actionName;
private bool? _active;
private ActionCategory _category;
private string _description;
private string _documentIdentifier;
private string _documentVersion;
private Dictionary _externalParameters = new Dictionary();
private bool? _mustSucceedForCutover;
private int? _order;
private Dictionary> _parameters = new Dictionary>();
private int? _timeoutSeconds;
///
/// Gets and sets the property ActionID.
///
/// Source server post migration custom action ID.
///
///
[AWSProperty(Min=1, Max=64)]
public string ActionID
{
get { return this._actionid; }
set { this._actionid = value; }
}
// Check to see if ActionID property is set
internal bool IsSetActionID()
{
return this._actionid != null;
}
///
/// Gets and sets the property ActionName.
///
/// Source server post migration custom action name.
///
///
[AWSProperty(Min=1, Max=256)]
public string ActionName
{
get { return this._actionName; }
set { this._actionName = value; }
}
// Check to see if ActionName property is set
internal bool IsSetActionName()
{
return this._actionName != null;
}
///
/// Gets and sets the property Active.
///
/// Source server post migration custom action active status.
///
///
public bool Active
{
get { return this._active.GetValueOrDefault(); }
set { this._active = value; }
}
// Check to see if Active property is set
internal bool IsSetActive()
{
return this._active.HasValue;
}
///
/// Gets and sets the property Category.
///
/// Source server post migration custom action category.
///
///
public ActionCategory Category
{
get { return this._category; }
set { this._category = value; }
}
// Check to see if Category property is set
internal bool IsSetCategory()
{
return this._category != null;
}
///
/// Gets and sets the property Description.
///
/// Source server post migration custom action description.
///
///
[AWSProperty(Min=0, Max=256)]
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 DocumentIdentifier.
///
/// Source server post migration custom action document identifier.
///
///
[AWSProperty(Min=0, Max=256)]
public string DocumentIdentifier
{
get { return this._documentIdentifier; }
set { this._documentIdentifier = value; }
}
// Check to see if DocumentIdentifier property is set
internal bool IsSetDocumentIdentifier()
{
return this._documentIdentifier != null;
}
///
/// Gets and sets the property DocumentVersion.
///
/// Source server post migration custom action document version.
///
///
public string DocumentVersion
{
get { return this._documentVersion; }
set { this._documentVersion = value; }
}
// Check to see if DocumentVersion property is set
internal bool IsSetDocumentVersion()
{
return this._documentVersion != null;
}
///
/// Gets and sets the property ExternalParameters.
///
/// Source server post migration custom action external parameters.
///
///
[AWSProperty(Min=0, Max=20)]
public Dictionary ExternalParameters
{
get { return this._externalParameters; }
set { this._externalParameters = value; }
}
// Check to see if ExternalParameters property is set
internal bool IsSetExternalParameters()
{
return this._externalParameters != null && this._externalParameters.Count > 0;
}
///
/// Gets and sets the property MustSucceedForCutover.
///
/// Source server post migration custom action must succeed for cutover.
///
///
public bool MustSucceedForCutover
{
get { return this._mustSucceedForCutover.GetValueOrDefault(); }
set { this._mustSucceedForCutover = value; }
}
// Check to see if MustSucceedForCutover property is set
internal bool IsSetMustSucceedForCutover()
{
return this._mustSucceedForCutover.HasValue;
}
///
/// Gets and sets the property Order.
///
/// Source server post migration custom action order.
///
///
[AWSProperty(Min=1001, Max=10000)]
public int Order
{
get { return this._order.GetValueOrDefault(); }
set { this._order = value; }
}
// Check to see if Order property is set
internal bool IsSetOrder()
{
return this._order.HasValue;
}
///
/// Gets and sets the property Parameters.
///
/// Source server post migration custom action parameters.
///
///
[AWSProperty(Min=0, Max=20)]
public Dictionary> Parameters
{
get { return this._parameters; }
set { this._parameters = value; }
}
// Check to see if Parameters property is set
internal bool IsSetParameters()
{
return this._parameters != null && this._parameters.Count > 0;
}
///
/// Gets and sets the property TimeoutSeconds.
///
/// Source server post migration custom action timeout in seconds.
///
///
[AWSProperty(Min=1)]
public int TimeoutSeconds
{
get { return this._timeoutSeconds.GetValueOrDefault(); }
set { this._timeoutSeconds = value; }
}
// Check to see if TimeoutSeconds property is set
internal bool IsSetTimeoutSeconds()
{
return this._timeoutSeconds.HasValue;
}
}
}