/* * 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 config-2014-11-12.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.ConfigService.Model { /// /// The detailed configuration of a specified resource. /// public partial class BaseConfigurationItem { private string _accountId; private string _arn; private string _availabilityZone; private string _awsRegion; private string _configuration; private DateTime? _configurationItemCaptureTime; private ConfigurationItemStatus _configurationItemStatus; private string _configurationStateId; private DateTime? _resourceCreationTime; private string _resourceId; private string _resourceName; private ResourceType _resourceType; private Dictionary _supplementaryConfiguration = new Dictionary(); private string _version; /// /// Gets and sets the property AccountId. /// /// The 12-digit Amazon Web Services account ID associated with the resource. /// /// public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// /// Gets and sets the property Arn. /// /// The Amazon Resource Name (ARN) of the resource. /// /// public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// /// Gets and sets the property AvailabilityZone. /// /// The Availability Zone associated with the resource. /// /// public string AvailabilityZone { get { return this._availabilityZone; } set { this._availabilityZone = value; } } // Check to see if AvailabilityZone property is set internal bool IsSetAvailabilityZone() { return this._availabilityZone != null; } /// /// Gets and sets the property AwsRegion. /// /// The region where the resource resides. /// /// [AWSProperty(Min=1, Max=64)] public string AwsRegion { get { return this._awsRegion; } set { this._awsRegion = value; } } // Check to see if AwsRegion property is set internal bool IsSetAwsRegion() { return this._awsRegion != null; } /// /// Gets and sets the property Configuration. /// /// The description of the resource configuration. /// /// public string Configuration { get { return this._configuration; } set { this._configuration = value; } } // Check to see if Configuration property is set internal bool IsSetConfiguration() { return this._configuration != null; } /// /// Gets and sets the property ConfigurationItemCaptureTime. /// /// The time when the configuration recording was initiated. /// /// public DateTime ConfigurationItemCaptureTime { get { return this._configurationItemCaptureTime.GetValueOrDefault(); } set { this._configurationItemCaptureTime = value; } } // Check to see if ConfigurationItemCaptureTime property is set internal bool IsSetConfigurationItemCaptureTime() { return this._configurationItemCaptureTime.HasValue; } /// /// Gets and sets the property ConfigurationItemStatus. /// /// The configuration item status. The valid values are: /// ///
  • /// /// OK – The resource configuration has been updated /// ///
  • /// /// ResourceDiscovered – The resource was newly discovered /// ///
  • /// /// ResourceNotRecorded – The resource was discovered but its configuration was not recorded /// since the recorder excludes the recording of resources of this type /// ///
  • /// /// ResourceDeleted – The resource was deleted /// ///
  • /// /// ResourceDeletedNotRecorded – The resource was deleted but its configuration was not /// recorded since the recorder excludes the recording of resources of this type /// ///
/// /// The CIs do not incur any cost. /// /// ///
public ConfigurationItemStatus ConfigurationItemStatus { get { return this._configurationItemStatus; } set { this._configurationItemStatus = value; } } // Check to see if ConfigurationItemStatus property is set internal bool IsSetConfigurationItemStatus() { return this._configurationItemStatus != null; } /// /// Gets and sets the property ConfigurationStateId. /// /// An identifier that indicates the ordering of the configuration items of a resource. /// /// public string ConfigurationStateId { get { return this._configurationStateId; } set { this._configurationStateId = value; } } // Check to see if ConfigurationStateId property is set internal bool IsSetConfigurationStateId() { return this._configurationStateId != null; } /// /// Gets and sets the property ResourceCreationTime. /// /// The time stamp when the resource was created. /// /// public DateTime ResourceCreationTime { get { return this._resourceCreationTime.GetValueOrDefault(); } set { this._resourceCreationTime = value; } } // Check to see if ResourceCreationTime property is set internal bool IsSetResourceCreationTime() { return this._resourceCreationTime.HasValue; } /// /// Gets and sets the property ResourceId. /// /// The ID of the resource (for example., sg-xxxxxx). /// /// [AWSProperty(Min=1, Max=768)] public string ResourceId { get { return this._resourceId; } set { this._resourceId = value; } } // Check to see if ResourceId property is set internal bool IsSetResourceId() { return this._resourceId != null; } /// /// Gets and sets the property ResourceName. /// /// The custom name of the resource, if available. /// /// public string ResourceName { get { return this._resourceName; } set { this._resourceName = value; } } // Check to see if ResourceName property is set internal bool IsSetResourceName() { return this._resourceName != null; } /// /// Gets and sets the property ResourceType. /// /// The type of Amazon Web Services resource. /// /// public ResourceType 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 SupplementaryConfiguration. /// /// Configuration attributes that Config returns for certain resource types to supplement /// the information returned for the configuration parameter. /// /// public Dictionary SupplementaryConfiguration { get { return this._supplementaryConfiguration; } set { this._supplementaryConfiguration = value; } } // Check to see if SupplementaryConfiguration property is set internal bool IsSetSupplementaryConfiguration() { return this._supplementaryConfiguration != null && this._supplementaryConfiguration.Count > 0; } /// /// Gets and sets the property Version. /// /// The version number of the resource configuration. /// /// public string Version { get { return this._version; } set { this._version = value; } } // Check to see if Version property is set internal bool IsSetVersion() { return this._version != null; } } }