/*
* 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 qldb-2019-01-02.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.QLDB.Model
{
///
/// Container for the parameters to the CancelJournalKinesisStream operation.
/// Ends a given Amazon QLDB journal stream. Before a stream can be canceled, its current
/// status must be ACTIVE
.
///
///
///
/// You can't restart a stream after you cancel it. Canceled QLDB stream resources are
/// subject to a 7-day retention period, so they are automatically deleted after this
/// limit expires.
///
///
public partial class CancelJournalKinesisStreamRequest : AmazonQLDBRequest
{
private string _ledgerName;
private string _streamId;
///
/// Gets and sets the property LedgerName.
///
/// The name of the ledger.
///
///
[AWSProperty(Required=true, Min=1, Max=32)]
public string LedgerName
{
get { return this._ledgerName; }
set { this._ledgerName = value; }
}
// Check to see if LedgerName property is set
internal bool IsSetLedgerName()
{
return this._ledgerName != null;
}
///
/// Gets and sets the property StreamId.
///
/// The UUID (represented in Base62-encoded text) of the QLDB journal stream to be canceled.
///
///
[AWSProperty(Required=true, Min=22, Max=22)]
public string StreamId
{
get { return this._streamId; }
set { this._streamId = value; }
}
// Check to see if StreamId property is set
internal bool IsSetStreamId()
{
return this._streamId != null;
}
}
}