/* * 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-data-2019-12-20.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.RedshiftDataAPIService.Model { /// /// The SQL statement to run. /// public partial class StatementData { private DateTime? _createdAt; private string _id; private bool? _isBatchStatement; private List _queryParameters = new List(); private string _queryString; private List _queryStrings = new List(); private string _secretArn; private string _statementName; private StatusString _status; private DateTime? _updatedAt; /// /// Gets and sets the property CreatedAt. /// /// The date and time (UTC) the statement was created. /// /// public DateTime CreatedAt { get { return this._createdAt.GetValueOrDefault(); } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt.HasValue; } /// /// Gets and sets the property Id. /// /// The SQL statement identifier. This value is a universally unique identifier (UUID) /// generated by Amazon Redshift Data API. /// /// [AWSProperty(Required=true)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// /// Gets and sets the property IsBatchStatement. /// /// A value that indicates whether the statement is a batch query request. /// /// public bool IsBatchStatement { get { return this._isBatchStatement.GetValueOrDefault(); } set { this._isBatchStatement = value; } } // Check to see if IsBatchStatement property is set internal bool IsSetIsBatchStatement() { return this._isBatchStatement.HasValue; } /// /// Gets and sets the property QueryParameters. /// /// The parameters used in a SQL statement. /// /// [AWSProperty(Min=1)] public List QueryParameters { get { return this._queryParameters; } set { this._queryParameters = value; } } // Check to see if QueryParameters property is set internal bool IsSetQueryParameters() { return this._queryParameters != null && this._queryParameters.Count > 0; } /// /// Gets and sets the property QueryString. /// /// The SQL statement. /// /// 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; } /// /// Gets and sets the property QueryStrings. /// /// One or more SQL statements. Each query string in the array corresponds to one of the /// queries in a batch query request. /// /// public List QueryStrings { get { return this._queryStrings; } set { this._queryStrings = value; } } // Check to see if QueryStrings property is set internal bool IsSetQueryStrings() { return this._queryStrings != null && this._queryStrings.Count > 0; } /// /// Gets and sets the property SecretArn. /// /// The name or Amazon Resource Name (ARN) of the secret that enables access to the database. /// /// /// public string SecretArn { get { return this._secretArn; } set { this._secretArn = value; } } // Check to see if SecretArn property is set internal bool IsSetSecretArn() { return this._secretArn != null; } /// /// Gets and sets the property StatementName. /// /// The name of the SQL statement. /// /// [AWSProperty(Min=0, Max=500)] public string StatementName { get { return this._statementName; } set { this._statementName = value; } } // Check to see if StatementName property is set internal bool IsSetStatementName() { return this._statementName != null; } /// /// Gets and sets the property Status. /// /// The status of the SQL statement. An example is the that the SQL statement finished. /// /// /// public StatusString 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 UpdatedAt. /// /// The date and time (UTC) that the statement metadata was last updated. /// /// public DateTime UpdatedAt { get { return this._updatedAt.GetValueOrDefault(); } set { this._updatedAt = value; } } // Check to see if UpdatedAt property is set internal bool IsSetUpdatedAt() { return this._updatedAt.HasValue; } } }