/*
* 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 sdb-2009-04-15.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.SimpleDB.Model
{
///
/// Container for the parameters to the GetAttributes operation.
/// Returns all of the attributes associated with the specified item. Optionally, the
/// attributes returned can be limited to one or more attributes by specifying an attribute
/// name parameter.
///
///
///
/// If the item does not exist on the replica that was accessed for this operation, an
/// empty set is returned. The system does not return an error as it cannot guarantee
/// the item does not exist on other replicas.
///
///
public partial class GetAttributesRequest : AmazonSimpleDBRequest
{
private List _attributeNames = new List();
private bool? _consistentRead;
private string _domainName;
private string _itemName;
///
/// Empty constructor used to set properties independently even when a simple constructor is available
///
public GetAttributesRequest() { }
///
/// Instantiates GetAttributesRequest with the parameterized properties
///
/// The name of the domain in which to perform the operation.
/// The name of the item.
public GetAttributesRequest(string domainName, string itemName)
{
_domainName = domainName;
_itemName = itemName;
}
///
/// Gets and sets the property AttributeNames. The names of the attributes.
///
public List AttributeNames
{
get { return this._attributeNames; }
set { this._attributeNames = value; }
}
// Check to see if AttributeNames property is set
internal bool IsSetAttributeNames()
{
return this._attributeNames != null && this._attributeNames.Count > 0;
}
///
/// Gets and sets the property ConsistentRead. Determines whether or not strong consistency
/// should be enforced when data is read from SimpleDB. If true
, any data
/// previously written to SimpleDB will be returned. Otherwise, results will be consistent
/// eventually, and the client may not see data that was written immediately before your
/// read.
///
public bool ConsistentRead
{
get { return this._consistentRead.GetValueOrDefault(); }
set { this._consistentRead = value; }
}
// Check to see if ConsistentRead property is set
internal bool IsSetConsistentRead()
{
return this._consistentRead.HasValue;
}
///
/// Gets and sets the property DomainName. The name of the domain in which to perform
/// the operation.
///
[AWSProperty(Required=true)]
public string DomainName
{
get { return this._domainName; }
set { this._domainName = value; }
}
// Check to see if DomainName property is set
internal bool IsSetDomainName()
{
return this._domainName != null;
}
///
/// Gets and sets the property ItemName. The name of the item.
///
[AWSProperty(Required=true)]
public string ItemName
{
get { return this._itemName; }
set { this._itemName = value; }
}
// Check to see if ItemName property is set
internal bool IsSetItemName()
{
return this._itemName != null;
}
}
}