/*
* 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 logs-2014-03-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.CloudWatchLogs.Model
{
///
/// This structure contains details about a saved CloudWatch Logs Insights query definition.
///
public partial class QueryDefinition
{
private long? _lastModified;
private List _logGroupNames = new List();
private string _name;
private string _queryDefinitionId;
private string _queryString;
///
/// Gets and sets the property LastModified.
///
/// The date that the query definition was most recently modified.
///
///
[AWSProperty(Min=0)]
public long LastModified
{
get { return this._lastModified.GetValueOrDefault(); }
set { this._lastModified = value; }
}
// Check to see if LastModified property is set
internal bool IsSetLastModified()
{
return this._lastModified.HasValue;
}
///
/// Gets and sets the property LogGroupNames.
///
/// If this query definition contains a list of log groups that it is limited to, that
/// list appears here.
///
///
public List LogGroupNames
{
get { return this._logGroupNames; }
set { this._logGroupNames = value; }
}
// Check to see if LogGroupNames property is set
internal bool IsSetLogGroupNames()
{
return this._logGroupNames != null && this._logGroupNames.Count > 0;
}
///
/// Gets and sets the property Name.
///
/// The name of the query definition.
///
///
[AWSProperty(Min=1, Max=255)]
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 QueryDefinitionId.
///
/// The unique ID of the query definition.
///
///
[AWSProperty(Min=0, Max=256)]
public string QueryDefinitionId
{
get { return this._queryDefinitionId; }
set { this._queryDefinitionId = value; }
}
// Check to see if QueryDefinitionId property is set
internal bool IsSetQueryDefinitionId()
{
return this._queryDefinitionId != null;
}
///
/// Gets and sets the property QueryString.
///
/// The query string to use for this definition. For more information, see CloudWatch
/// Logs Insights Query Syntax.
///
///
[AWSProperty(Min=1, Max=10000)]
public string QueryString
{
get { return this._queryString; }
set { this._queryString = value; }
}
// Check to see if QueryString property is set
internal bool IsSetQueryString()
{
return this._queryString != null;
}
}
}