/* * 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 redshift-2012-12-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.Redshift.Model { /// /// Describes the status of logging for a cluster. /// public partial class DisableLoggingResponse : AmazonWebServiceResponse { private string _bucketName; private string _lastFailureMessage; private DateTime? _lastFailureTime; private DateTime? _lastSuccessfulDeliveryTime; private LogDestinationType _logDestinationType; private List _logExports = new List(); private bool? _loggingEnabled; private string _s3KeyPrefix; /// /// Gets and sets the property BucketName. /// /// The name of the S3 bucket where the log files are stored. /// /// [AWSProperty(Max=2147483647)] public string BucketName { get { return this._bucketName; } set { this._bucketName = value; } } // Check to see if BucketName property is set internal bool IsSetBucketName() { return this._bucketName != null; } /// /// Gets and sets the property LastFailureMessage. /// /// The message indicating that logs failed to be delivered. /// /// [AWSProperty(Max=2147483647)] public string LastFailureMessage { get { return this._lastFailureMessage; } set { this._lastFailureMessage = value; } } // Check to see if LastFailureMessage property is set internal bool IsSetLastFailureMessage() { return this._lastFailureMessage != null; } /// /// Gets and sets the property LastFailureTime. /// /// The last time when logs failed to be delivered. /// /// public DateTime LastFailureTime { get { return this._lastFailureTime.GetValueOrDefault(); } set { this._lastFailureTime = value; } } // Check to see if LastFailureTime property is set internal bool IsSetLastFailureTime() { return this._lastFailureTime.HasValue; } /// /// Gets and sets the property LastSuccessfulDeliveryTime. /// /// The last time that logs were delivered. /// /// public DateTime LastSuccessfulDeliveryTime { get { return this._lastSuccessfulDeliveryTime.GetValueOrDefault(); } set { this._lastSuccessfulDeliveryTime = value; } } // Check to see if LastSuccessfulDeliveryTime property is set internal bool IsSetLastSuccessfulDeliveryTime() { return this._lastSuccessfulDeliveryTime.HasValue; } /// /// Gets and sets the property LogDestinationType. /// /// The log destination type. An enum with possible values of s3 and cloudwatch. /// /// public LogDestinationType LogDestinationType { get { return this._logDestinationType; } set { this._logDestinationType = value; } } // Check to see if LogDestinationType property is set internal bool IsSetLogDestinationType() { return this._logDestinationType != null; } /// /// Gets and sets the property LogExports. /// /// The collection of exported log types. Possible values are connectionlog, /// useractivitylog, and userlog. /// /// public List LogExports { get { return this._logExports; } set { this._logExports = value; } } // Check to see if LogExports property is set internal bool IsSetLogExports() { return this._logExports != null && this._logExports.Count > 0; } /// /// Gets and sets the property LoggingEnabled. /// /// true if logging is on, false if logging is off. /// /// public bool LoggingEnabled { get { return this._loggingEnabled.GetValueOrDefault(); } set { this._loggingEnabled = value; } } // Check to see if LoggingEnabled property is set internal bool IsSetLoggingEnabled() { return this._loggingEnabled.HasValue; } /// /// Gets and sets the property S3KeyPrefix. /// /// The prefix applied to the log file names. /// /// [AWSProperty(Max=2147483647)] public string S3KeyPrefix { get { return this._s3KeyPrefix; } set { this._s3KeyPrefix = value; } } // Check to see if S3KeyPrefix property is set internal bool IsSetS3KeyPrefix() { return this._s3KeyPrefix != null; } } }