/*
* 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 GetRevision operation.
/// Returns a revision data object for a specified document ID and block address. Also
/// returns a proof of the specified revision for verification if DigestTipAddress
/// is provided.
///
public partial class GetRevisionRequest : AmazonQLDBRequest
{
private ValueHolder _blockAddress;
private ValueHolder _digestTipAddress;
private string _documentId;
private string _name;
///
/// Gets and sets the property BlockAddress.
///
/// The block location of the document revision to be verified. An address is an Amazon
/// Ion structure that has two fields: strandId
and sequenceNo
.
///
///
///
/// For example: {strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:14}
.
///
///
[AWSProperty(Required=true, Sensitive=true)]
public ValueHolder BlockAddress
{
get { return this._blockAddress; }
set { this._blockAddress = value; }
}
// Check to see if BlockAddress property is set
internal bool IsSetBlockAddress()
{
return this._blockAddress != null;
}
///
/// Gets and sets the property DigestTipAddress.
///
/// The latest block location covered by the digest for which to request a proof. An address
/// is an Amazon Ion structure that has two fields: strandId
and sequenceNo
.
///
///
///
/// For example: {strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:49}
.
///
///
[AWSProperty(Sensitive=true)]
public ValueHolder DigestTipAddress
{
get { return this._digestTipAddress; }
set { this._digestTipAddress = value; }
}
// Check to see if DigestTipAddress property is set
internal bool IsSetDigestTipAddress()
{
return this._digestTipAddress != null;
}
///
/// Gets and sets the property DocumentId.
///
/// The UUID (represented in Base62-encoded text) of the document to be verified.
///
///
[AWSProperty(Required=true, Min=22, Max=22)]
public string DocumentId
{
get { return this._documentId; }
set { this._documentId = value; }
}
// Check to see if DocumentId property is set
internal bool IsSetDocumentId()
{
return this._documentId != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the ledger.
///
///
[AWSProperty(Required=true, Min=1, Max=32)]
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;
}
}
}