/* * 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 elasticbeanstalk-2010-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.ElasticBeanstalk.Model { /// /// Container for the parameters to the DescribeEvents operation. /// Returns list of event descriptions matching criteria up to the last 6 weeks. /// /// /// /// This action returns the most recent 1,000 events from the specified NextToken. /// /// /// public partial class DescribeEventsRequest : AmazonElasticBeanstalkRequest { private string _applicationName; private DateTime? _endTimeUtc; private string _environmentId; private string _environmentName; private int? _maxRecords; private string _nextToken; private string _platformArn; private string _requestId; private EventSeverity _severity; private DateTime? _startTimeUtc; private string _templateName; private string _versionLabel; /// /// Empty constructor used to set properties independently even when a simple constructor is available /// public DescribeEventsRequest() { } /// /// Gets and sets the property ApplicationName. /// /// If specified, AWS Elastic Beanstalk restricts the returned descriptions to include /// only those associated with this application. /// /// [AWSProperty(Min=1, Max=100)] public string ApplicationName { get { return this._applicationName; } set { this._applicationName = value; } } // Check to see if ApplicationName property is set internal bool IsSetApplicationName() { return this._applicationName != null; } /// /// Gets and sets the property EndTimeUtc. /// /// If specified, AWS Elastic Beanstalk restricts the returned descriptions to those /// that occur up to, but not including, the EndTime. /// /// public DateTime EndTimeUtc { get { return this._endTimeUtc.GetValueOrDefault(); } set { this._endTime = this._endTimeUtc = value; } } // Check to see if EndTimeUtc property is set internal bool IsSetEndTimeUtc() { return this._endTimeUtc.HasValue; } /// /// Gets and sets the property EnvironmentId. /// /// If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated /// with this environment. /// /// public string EnvironmentId { get { return this._environmentId; } set { this._environmentId = value; } } // Check to see if EnvironmentId property is set internal bool IsSetEnvironmentId() { return this._environmentId != null; } /// /// Gets and sets the property EnvironmentName. /// /// If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated /// with this environment. /// /// [AWSProperty(Min=4, Max=40)] public string EnvironmentName { get { return this._environmentName; } set { this._environmentName = value; } } // Check to see if EnvironmentName property is set internal bool IsSetEnvironmentName() { return this._environmentName != null; } /// /// Gets and sets the property MaxRecords. /// /// Specifies the maximum number of events that can be returned, beginning with the most /// recent event. /// /// [AWSProperty(Min=1, Max=1000)] public int MaxRecords { get { return this._maxRecords.GetValueOrDefault(); } set { this._maxRecords = value; } } // Check to see if MaxRecords property is set internal bool IsSetMaxRecords() { return this._maxRecords.HasValue; } /// /// Gets and sets the property NextToken. /// /// Pagination token. If specified, the events return the next batch of results. /// /// public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// /// Gets and sets the property PlatformArn. /// /// The ARN of a custom platform version. If specified, AWS Elastic Beanstalk restricts /// the returned descriptions to those associated with this custom platform version. /// /// public string PlatformArn { get { return this._platformArn; } set { this._platformArn = value; } } // Check to see if PlatformArn property is set internal bool IsSetPlatformArn() { return this._platformArn != null; } /// /// Gets and sets the property RequestId. /// /// If specified, AWS Elastic Beanstalk restricts the described events to include only /// those associated with this request ID. /// /// public string RequestId { get { return this._requestId; } set { this._requestId = value; } } // Check to see if RequestId property is set internal bool IsSetRequestId() { return this._requestId != null; } /// /// Gets and sets the property Severity. /// /// If specified, limits the events returned from this call to include only those with /// the specified severity or higher. /// /// public EventSeverity Severity { get { return this._severity; } set { this._severity = value; } } // Check to see if Severity property is set internal bool IsSetSeverity() { return this._severity != null; } /// /// Gets and sets the property StartTimeUtc. /// /// If specified, AWS Elastic Beanstalk restricts the returned descriptions to those that /// occur on or after this time. /// /// public DateTime StartTimeUtc { get { return this._startTimeUtc.GetValueOrDefault(); } set { this._startTime = this._startTimeUtc = value; } } // Check to see if StartTimeUtc property is set internal bool IsSetStartTimeUtc() { return this._startTimeUtc.HasValue; } /// /// Gets and sets the property TemplateName. /// /// If specified, AWS Elastic Beanstalk restricts the returned descriptions to those that /// are associated with this environment configuration. /// /// [AWSProperty(Min=1, Max=100)] public string TemplateName { get { return this._templateName; } set { this._templateName = value; } } // Check to see if TemplateName property is set internal bool IsSetTemplateName() { return this._templateName != null; } /// /// Gets and sets the property VersionLabel. /// /// If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated /// with this application version. /// /// [AWSProperty(Min=1, Max=100)] public string VersionLabel { get { return this._versionLabel; } set { this._versionLabel = value; } } // Check to see if VersionLabel property is set internal bool IsSetVersionLabel() { return this._versionLabel != null; } #region Backwards compatible properties private DateTime? _endTime; private DateTime? _startTime; /// /// Gets and sets the property EndTimeUtc. /// /// This property is deprecated. Setting this property results in non-UTC DateTimes not /// being marshalled correctly. Use EndTimeUtc instead. Setting either EndTime or EndTimeUtc /// results in both EndTime and EndTimeUtc being assigned, the latest assignment to either /// one of the two property is reflected in the value of both. EndTime is provided for /// backwards compatibility only and assigning a non-Utc DateTime to it results in the /// wrong timestamp being passed to the service. /// /// /// /// If specified, AWS Elastic Beanstalk restricts the returned descriptions to those /// that occur up to, but not including, the EndTime. /// /// [Obsolete("Setting this property results in non-UTC DateTimes not being marshalled correctly. " + "Use EndTimeUtc instead. Setting either EndTime or EndTimeUtc results in both EndTime and " + "EndTimeUtc being assigned, the latest assignment to either one of the two property is " + "reflected in the value of both. EndTime is provided for backwards compatibility only and " + "assigning a non-Utc DateTime to it results in the wrong timestamp being passed to the service.", false)] public DateTime EndTime { get { return this._endTime.GetValueOrDefault(); } set { this._endTime = value; this._endTimeUtc = new DateTime(value.Ticks, DateTimeKind.Utc); } } /// /// Gets and sets the property StartTimeUtc. /// /// This property is deprecated. Setting this property results in non-UTC DateTimes not /// being marshalled correctly. Use StartTimeUtc instead. Setting either StartTime or /// StartTimeUtc results in both StartTime and StartTimeUtc being assigned, the latest /// assignment to either one of the two property is reflected in the value of both. StartTime /// is provided for backwards compatibility only and assigning a non-Utc DateTime to it /// results in the wrong timestamp being passed to the service. /// /// /// /// If specified, AWS Elastic Beanstalk restricts the returned descriptions to those that /// occur on or after this time. /// /// [Obsolete("Setting this property results in non-UTC DateTimes not being marshalled correctly. " + "Use StartTimeUtc instead. Setting either StartTime or StartTimeUtc results in both StartTime and " + "StartTimeUtc being assigned, the latest assignment to either one of the two property is " + "reflected in the value of both. StartTime is provided for backwards compatibility only and " + "assigning a non-Utc DateTime to it results in the wrong timestamp being passed to the service.", false)] public DateTime StartTime { get { return this._startTime.GetValueOrDefault(); } set { this._startTime = value; this._startTimeUtc = new DateTime(value.Ticks, DateTimeKind.Utc); } } #endregion } }