/* * 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 servicecatalog-2015-12-10.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.ServiceCatalog.Model { /// /// Information about a resource change that will occur when a plan is executed. /// public partial class ResourceChange { private ChangeAction _action; private List _details = new List(); private string _logicalResourceId; private string _physicalResourceId; private Replacement _replacement; private string _resourceType; private List _scope = new List(); /// /// Gets and sets the property Action. /// /// The change action. /// /// public ChangeAction Action { get { return this._action; } set { this._action = value; } } // Check to see if Action property is set internal bool IsSetAction() { return this._action != null; } /// /// Gets and sets the property Details. /// /// Information about the resource changes. /// /// public List Details { get { return this._details; } set { this._details = value; } } // Check to see if Details property is set internal bool IsSetDetails() { return this._details != null && this._details.Count > 0; } /// /// Gets and sets the property LogicalResourceId. /// /// The ID of the resource, as defined in the CloudFormation template. /// /// public string LogicalResourceId { get { return this._logicalResourceId; } set { this._logicalResourceId = value; } } // Check to see if LogicalResourceId property is set internal bool IsSetLogicalResourceId() { return this._logicalResourceId != null; } /// /// Gets and sets the property PhysicalResourceId. /// /// The ID of the resource, if it was already created. /// /// public string PhysicalResourceId { get { return this._physicalResourceId; } set { this._physicalResourceId = value; } } // Check to see if PhysicalResourceId property is set internal bool IsSetPhysicalResourceId() { return this._physicalResourceId != null; } /// /// Gets and sets the property Replacement. /// /// If the change type is Modify, indicates whether the existing resource /// is deleted and replaced with a new one. /// /// public Replacement Replacement { get { return this._replacement; } set { this._replacement = value; } } // Check to see if Replacement property is set internal bool IsSetReplacement() { return this._replacement != null; } /// /// Gets and sets the property ResourceType. /// /// The type of resource. /// /// [AWSProperty(Min=1, Max=256)] public string ResourceType { get { return this._resourceType; } set { this._resourceType = value; } } // Check to see if ResourceType property is set internal bool IsSetResourceType() { return this._resourceType != null; } /// /// Gets and sets the property Scope. /// /// The change scope. /// /// public List Scope { get { return this._scope; } set { this._scope = value; } } // Check to see if Scope property is set internal bool IsSetScope() { return this._scope != null && this._scope.Count > 0; } } }