/* * 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 cloudtrail-2013-11-01.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.CloudTrail.Model { /// /// This is the response object from the CreateEventDataStore operation. /// public partial class CreateEventDataStoreResponse : AmazonWebServiceResponse { private List _advancedEventSelectors = new List(); private DateTime? _createdTimestamp; private string _eventDataStoreArn; private string _kmsKeyId; private bool? _multiRegionEnabled; private string _name; private bool? _organizationEnabled; private int? _retentionPeriod; private EventDataStoreStatus _status; private List _tagsList = new List(); private bool? _terminationProtectionEnabled; private DateTime? _updatedTimestamp; /// /// Gets and sets the property AdvancedEventSelectors. /// /// The advanced event selectors that were used to select the events for the data store. /// /// public List AdvancedEventSelectors { get { return this._advancedEventSelectors; } set { this._advancedEventSelectors = value; } } // Check to see if AdvancedEventSelectors property is set internal bool IsSetAdvancedEventSelectors() { return this._advancedEventSelectors != null && this._advancedEventSelectors.Count > 0; } /// /// Gets and sets the property CreatedTimestamp. /// /// The timestamp that shows when the event data store was created. /// /// public DateTime CreatedTimestamp { get { return this._createdTimestamp.GetValueOrDefault(); } set { this._createdTimestamp = value; } } // Check to see if CreatedTimestamp property is set internal bool IsSetCreatedTimestamp() { return this._createdTimestamp.HasValue; } /// /// Gets and sets the property EventDataStoreArn. /// /// The ARN of the event data store. /// /// [AWSProperty(Min=3, Max=256)] public string EventDataStoreArn { get { return this._eventDataStoreArn; } set { this._eventDataStoreArn = value; } } // Check to see if EventDataStoreArn property is set internal bool IsSetEventDataStoreArn() { return this._eventDataStoreArn != null; } /// /// Gets and sets the property KmsKeyId. /// /// Specifies the KMS key ID that encrypts the events delivered by CloudTrail. The value /// is a fully specified ARN to a KMS key in the following format. /// /// /// /// arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012 /// /// /// [AWSProperty(Min=1, Max=350)] public string KmsKeyId { get { return this._kmsKeyId; } set { this._kmsKeyId = value; } } // Check to see if KmsKeyId property is set internal bool IsSetKmsKeyId() { return this._kmsKeyId != null; } /// /// Gets and sets the property MultiRegionEnabled. /// /// Indicates whether the event data store collects events from all Regions, or only from /// the Region in which it was created. /// /// public bool MultiRegionEnabled { get { return this._multiRegionEnabled.GetValueOrDefault(); } set { this._multiRegionEnabled = value; } } // Check to see if MultiRegionEnabled property is set internal bool IsSetMultiRegionEnabled() { return this._multiRegionEnabled.HasValue; } /// /// Gets and sets the property Name. /// /// The name of the event data store. /// /// [AWSProperty(Min=3, 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 OrganizationEnabled. /// /// Indicates whether an event data store is collecting logged events for an organization /// in Organizations. /// /// public bool OrganizationEnabled { get { return this._organizationEnabled.GetValueOrDefault(); } set { this._organizationEnabled = value; } } // Check to see if OrganizationEnabled property is set internal bool IsSetOrganizationEnabled() { return this._organizationEnabled.HasValue; } /// /// Gets and sets the property RetentionPeriod. /// /// The retention period of an event data store, in days. /// /// [AWSProperty(Min=7, Max=2557)] public int RetentionPeriod { get { return this._retentionPeriod.GetValueOrDefault(); } set { this._retentionPeriod = value; } } // Check to see if RetentionPeriod property is set internal bool IsSetRetentionPeriod() { return this._retentionPeriod.HasValue; } /// /// Gets and sets the property Status. /// /// The status of event data store creation. /// /// public EventDataStoreStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property TagsList. /// [AWSProperty(Max=200)] public List TagsList { get { return this._tagsList; } set { this._tagsList = value; } } // Check to see if TagsList property is set internal bool IsSetTagsList() { return this._tagsList != null && this._tagsList.Count > 0; } /// /// Gets and sets the property TerminationProtectionEnabled. /// /// Indicates whether termination protection is enabled for the event data store. /// /// public bool TerminationProtectionEnabled { get { return this._terminationProtectionEnabled.GetValueOrDefault(); } set { this._terminationProtectionEnabled = value; } } // Check to see if TerminationProtectionEnabled property is set internal bool IsSetTerminationProtectionEnabled() { return this._terminationProtectionEnabled.HasValue; } /// /// Gets and sets the property UpdatedTimestamp. /// /// The timestamp that shows when an event data store was updated, if applicable. UpdatedTimestamp /// is always either the same or newer than the time shown in CreatedTimestamp. /// /// public DateTime UpdatedTimestamp { get { return this._updatedTimestamp.GetValueOrDefault(); } set { this._updatedTimestamp = value; } } // Check to see if UpdatedTimestamp property is set internal bool IsSetUpdatedTimestamp() { return this._updatedTimestamp.HasValue; } } }