/* * 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 lightsail-2016-11-28.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.Lightsail.Model { /// /// Container for the parameters to the GetContainerLog operation. /// Returns the log events of a container of your Amazon Lightsail container service. /// /// /// /// If your container service has more than one node (i.e., a scale greater than 1), then /// the log events that are returned for the specified container are merged from all nodes /// on your container service. /// /// /// /// Container logs are retained for a certain amount of time. For more information, see /// Amazon Lightsail /// endpoints and quotas in the Amazon Web Services General Reference. /// /// /// public partial class GetContainerLogRequest : AmazonLightsailRequest { private string _containerName; private DateTime? _endTime; private string _filterPattern; private string _pageToken; private string _serviceName; private DateTime? _startTime; /// /// Gets and sets the property ContainerName. /// /// The name of the container that is either running or previously ran on the container /// service for which to return a log. /// /// [AWSProperty(Required=true)] public string ContainerName { get { return this._containerName; } set { this._containerName = value; } } // Check to see if ContainerName property is set internal bool IsSetContainerName() { return this._containerName != null; } /// /// Gets and sets the property EndTime. /// /// The end of the time interval for which to get log data. /// /// /// /// Constraints: /// /// /// /// You can convert a human-friendly time to Unix time format using a converter like Epoch converter. /// /// public DateTime EndTime { get { return this._endTime.GetValueOrDefault(); } set { this._endTime = value; } } // Check to see if EndTime property is set internal bool IsSetEndTime() { return this._endTime.HasValue; } /// /// Gets and sets the property FilterPattern. /// /// The pattern to use to filter the returned log events to a specific term. /// /// /// /// The following are a few examples of filter patterns that you can specify: /// /// /// public string FilterPattern { get { return this._filterPattern; } set { this._filterPattern = value; } } // Check to see if FilterPattern property is set internal bool IsSetFilterPattern() { return this._filterPattern != null; } /// /// Gets and sets the property PageToken. /// /// The token to advance to the next page of results from your request. /// /// /// /// To get a page token, perform an initial GetContainerLog request. If your /// results are paginated, the response will return a next page token that you can specify /// as the page token in a subsequent request. /// /// public string PageToken { get { return this._pageToken; } set { this._pageToken = value; } } // Check to see if PageToken property is set internal bool IsSetPageToken() { return this._pageToken != null; } /// /// Gets and sets the property ServiceName. /// /// The name of the container service for which to get a container log. /// /// [AWSProperty(Required=true, Min=1, Max=63)] public string ServiceName { get { return this._serviceName; } set { this._serviceName = value; } } // Check to see if ServiceName property is set internal bool IsSetServiceName() { return this._serviceName != null; } /// /// Gets and sets the property StartTime. /// /// The start of the time interval for which to get log data. /// /// /// /// Constraints: /// /// /// /// You can convert a human-friendly time to Unix time format using a converter like Epoch converter. /// /// public DateTime StartTime { get { return this._startTime.GetValueOrDefault(); } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime.HasValue; } } }