feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,121 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/Attribute.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
Attribute::Attribute() :
m_nameHasBeenSet(false),
m_alternateNameEncodingHasBeenSet(false),
m_valueHasBeenSet(false),
m_alternateValueEncodingHasBeenSet(false)
{
}
Attribute::Attribute(const XmlNode& xmlNode) :
m_nameHasBeenSet(false),
m_alternateNameEncodingHasBeenSet(false),
m_valueHasBeenSet(false),
m_alternateValueEncodingHasBeenSet(false)
{
*this = xmlNode;
}
Attribute& Attribute::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode nameNode = resultNode.FirstChild("Name");
if(!nameNode.IsNull())
{
m_name = Aws::Utils::Xml::DecodeEscapedXmlText(nameNode.GetText());
m_nameHasBeenSet = true;
}
XmlNode alternateNameEncodingNode = resultNode.FirstChild("AlternateNameEncoding");
if(!alternateNameEncodingNode.IsNull())
{
m_alternateNameEncoding = Aws::Utils::Xml::DecodeEscapedXmlText(alternateNameEncodingNode.GetText());
m_alternateNameEncodingHasBeenSet = true;
}
XmlNode valueNode = resultNode.FirstChild("Value");
if(!valueNode.IsNull())
{
m_value = Aws::Utils::Xml::DecodeEscapedXmlText(valueNode.GetText());
m_valueHasBeenSet = true;
}
XmlNode alternateValueEncodingNode = resultNode.FirstChild("AlternateValueEncoding");
if(!alternateValueEncodingNode.IsNull())
{
m_alternateValueEncoding = Aws::Utils::Xml::DecodeEscapedXmlText(alternateValueEncodingNode.GetText());
m_alternateValueEncodingHasBeenSet = true;
}
}
return *this;
}
void Attribute::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_nameHasBeenSet)
{
oStream << location << index << locationValue << ".Name=" << StringUtils::URLEncode(m_name.c_str()) << "&";
}
if(m_alternateNameEncodingHasBeenSet)
{
oStream << location << index << locationValue << ".AlternateNameEncoding=" << StringUtils::URLEncode(m_alternateNameEncoding.c_str()) << "&";
}
if(m_valueHasBeenSet)
{
oStream << location << index << locationValue << ".Value=" << StringUtils::URLEncode(m_value.c_str()) << "&";
}
if(m_alternateValueEncodingHasBeenSet)
{
oStream << location << index << locationValue << ".AlternateValueEncoding=" << StringUtils::URLEncode(m_alternateValueEncoding.c_str()) << "&";
}
}
void Attribute::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_nameHasBeenSet)
{
oStream << location << ".Name=" << StringUtils::URLEncode(m_name.c_str()) << "&";
}
if(m_alternateNameEncodingHasBeenSet)
{
oStream << location << ".AlternateNameEncoding=" << StringUtils::URLEncode(m_alternateNameEncoding.c_str()) << "&";
}
if(m_valueHasBeenSet)
{
oStream << location << ".Value=" << StringUtils::URLEncode(m_value.c_str()) << "&";
}
if(m_alternateValueEncodingHasBeenSet)
{
oStream << location << ".AlternateValueEncoding=" << StringUtils::URLEncode(m_alternateValueEncoding.c_str()) << "&";
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/AttributeDoesNotExist.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
AttributeDoesNotExist::AttributeDoesNotExist() :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
}
AttributeDoesNotExist::AttributeDoesNotExist(const XmlNode& xmlNode) :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
*this = xmlNode;
}
AttributeDoesNotExist& AttributeDoesNotExist::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode boxUsageNode = resultNode.FirstChild("BoxUsage");
if(!boxUsageNode.IsNull())
{
m_boxUsage = StringUtils::ConvertToDouble(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(boxUsageNode.GetText()).c_str()).c_str());
m_boxUsageHasBeenSet = true;
}
}
return *this;
}
void AttributeDoesNotExist::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << index << locationValue << ".BoxUsage=" << m_boxUsage << "&";
}
}
void AttributeDoesNotExist::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << ".BoxUsage=" << m_boxUsage << "&";
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws

View File

@@ -0,0 +1,46 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/BatchDeleteAttributesRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::SimpleDB::Model;
using namespace Aws::Utils;
BatchDeleteAttributesRequest::BatchDeleteAttributesRequest() :
m_domainNameHasBeenSet(false),
m_itemsHasBeenSet(false)
{
}
Aws::String BatchDeleteAttributesRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=BatchDeleteAttributes&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
if(m_itemsHasBeenSet)
{
unsigned itemsCount = 1;
for(auto& item : m_items)
{
item.OutputToStream(ss, "Item.", itemsCount, "");
itemsCount++;
}
}
ss << "Version=2009-04-15";
return ss.str();
}
void BatchDeleteAttributesRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}

View File

@@ -0,0 +1,46 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/BatchPutAttributesRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::SimpleDB::Model;
using namespace Aws::Utils;
BatchPutAttributesRequest::BatchPutAttributesRequest() :
m_domainNameHasBeenSet(false),
m_itemsHasBeenSet(false)
{
}
Aws::String BatchPutAttributesRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=BatchPutAttributes&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
if(m_itemsHasBeenSet)
{
unsigned itemsCount = 1;
for(auto& item : m_items)
{
item.OutputToStream(ss, "Item.", itemsCount, "");
itemsCount++;
}
}
ss << "Version=2009-04-15";
return ss.str();
}
void BatchPutAttributesRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}

View File

@@ -0,0 +1,35 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/CreateDomainRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::SimpleDB::Model;
using namespace Aws::Utils;
CreateDomainRequest::CreateDomainRequest() :
m_domainNameHasBeenSet(false)
{
}
Aws::String CreateDomainRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=CreateDomain&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
ss << "Version=2009-04-15";
return ss.str();
}
void CreateDomainRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}

View File

@@ -0,0 +1,105 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/DeletableItem.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
DeletableItem::DeletableItem() :
m_nameHasBeenSet(false),
m_attributesHasBeenSet(false)
{
}
DeletableItem::DeletableItem(const XmlNode& xmlNode) :
m_nameHasBeenSet(false),
m_attributesHasBeenSet(false)
{
*this = xmlNode;
}
DeletableItem& DeletableItem::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode nameNode = resultNode.FirstChild("ItemName");
if(!nameNode.IsNull())
{
m_name = Aws::Utils::Xml::DecodeEscapedXmlText(nameNode.GetText());
m_nameHasBeenSet = true;
}
XmlNode attributesNode = resultNode.FirstChild("Attribute");
if(!attributesNode.IsNull())
{
XmlNode attributeMember = attributesNode;
while(!attributeMember.IsNull())
{
m_attributes.push_back(attributeMember);
attributeMember = attributeMember.NextNode("Attribute");
}
m_attributesHasBeenSet = true;
}
}
return *this;
}
void DeletableItem::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_nameHasBeenSet)
{
oStream << location << index << locationValue << ".Name=" << StringUtils::URLEncode(m_name.c_str()) << "&";
}
if(m_attributesHasBeenSet)
{
unsigned attributesIdx = 1;
for(auto& item : m_attributes)
{
Aws::StringStream attributesSs;
attributesSs << location << index << locationValue << ".Attribute." << attributesIdx++;
item.OutputToStream(oStream, attributesSs.str().c_str());
}
}
}
void DeletableItem::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_nameHasBeenSet)
{
oStream << location << ".Name=" << StringUtils::URLEncode(m_name.c_str()) << "&";
}
if(m_attributesHasBeenSet)
{
unsigned attributesIdx = 1;
for(auto& item : m_attributes)
{
Aws::StringStream attributesSs;
attributesSs << location << ".Attribute." << attributesIdx++;
item.OutputToStream(oStream, attributesSs.str().c_str());
}
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws

View File

@@ -0,0 +1,58 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/DeleteAttributesRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::SimpleDB::Model;
using namespace Aws::Utils;
DeleteAttributesRequest::DeleteAttributesRequest() :
m_domainNameHasBeenSet(false),
m_itemNameHasBeenSet(false),
m_attributesHasBeenSet(false),
m_expectedHasBeenSet(false)
{
}
Aws::String DeleteAttributesRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=DeleteAttributes&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
if(m_itemNameHasBeenSet)
{
ss << "ItemName=" << StringUtils::URLEncode(m_itemName.c_str()) << "&";
}
if(m_attributesHasBeenSet)
{
unsigned attributesCount = 1;
for(auto& item : m_attributes)
{
item.OutputToStream(ss, "Attribute.", attributesCount, "");
attributesCount++;
}
}
if(m_expectedHasBeenSet)
{
m_expected.OutputToStream(ss, "Expected");
}
ss << "Version=2009-04-15";
return ss.str();
}
void DeleteAttributesRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}

View File

@@ -0,0 +1,35 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/DeleteDomainRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::SimpleDB::Model;
using namespace Aws::Utils;
DeleteDomainRequest::DeleteDomainRequest() :
m_domainNameHasBeenSet(false)
{
}
Aws::String DeleteDomainRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=DeleteDomain&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
ss << "Version=2009-04-15";
return ss.str();
}
void DeleteDomainRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}

View File

@@ -0,0 +1,35 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/DomainMetadataRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::SimpleDB::Model;
using namespace Aws::Utils;
DomainMetadataRequest::DomainMetadataRequest() :
m_domainNameHasBeenSet(false)
{
}
Aws::String DomainMetadataRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=DomainMetadata&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
ss << "Version=2009-04-15";
return ss.str();
}
void DomainMetadataRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}

View File

@@ -0,0 +1,98 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/DomainMetadataResult.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/logging/LogMacros.h>
#include <utility>
using namespace Aws::SimpleDB::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
DomainMetadataResult::DomainMetadataResult() :
m_itemCount(0),
m_itemNamesSizeBytes(0),
m_attributeNameCount(0),
m_attributeNamesSizeBytes(0),
m_attributeValueCount(0),
m_attributeValuesSizeBytes(0),
m_timestamp(0)
{
}
DomainMetadataResult::DomainMetadataResult(const Aws::AmazonWebServiceResult<XmlDocument>& result) :
m_itemCount(0),
m_itemNamesSizeBytes(0),
m_attributeNameCount(0),
m_attributeNamesSizeBytes(0),
m_attributeValueCount(0),
m_attributeValuesSizeBytes(0),
m_timestamp(0)
{
*this = result;
}
DomainMetadataResult& DomainMetadataResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "DomainMetadataResult"))
{
resultNode = rootNode.FirstChild("DomainMetadataResult");
}
if(!resultNode.IsNull())
{
XmlNode itemCountNode = resultNode.FirstChild("ItemCount");
if(!itemCountNode.IsNull())
{
m_itemCount = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(itemCountNode.GetText()).c_str()).c_str());
}
XmlNode itemNamesSizeBytesNode = resultNode.FirstChild("ItemNamesSizeBytes");
if(!itemNamesSizeBytesNode.IsNull())
{
m_itemNamesSizeBytes = StringUtils::ConvertToInt64(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(itemNamesSizeBytesNode.GetText()).c_str()).c_str());
}
XmlNode attributeNameCountNode = resultNode.FirstChild("AttributeNameCount");
if(!attributeNameCountNode.IsNull())
{
m_attributeNameCount = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(attributeNameCountNode.GetText()).c_str()).c_str());
}
XmlNode attributeNamesSizeBytesNode = resultNode.FirstChild("AttributeNamesSizeBytes");
if(!attributeNamesSizeBytesNode.IsNull())
{
m_attributeNamesSizeBytes = StringUtils::ConvertToInt64(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(attributeNamesSizeBytesNode.GetText()).c_str()).c_str());
}
XmlNode attributeValueCountNode = resultNode.FirstChild("AttributeValueCount");
if(!attributeValueCountNode.IsNull())
{
m_attributeValueCount = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(attributeValueCountNode.GetText()).c_str()).c_str());
}
XmlNode attributeValuesSizeBytesNode = resultNode.FirstChild("AttributeValuesSizeBytes");
if(!attributeValuesSizeBytesNode.IsNull())
{
m_attributeValuesSizeBytes = StringUtils::ConvertToInt64(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(attributeValuesSizeBytesNode.GetText()).c_str()).c_str());
}
XmlNode timestampNode = resultNode.FirstChild("Timestamp");
if(!timestampNode.IsNull())
{
m_timestamp = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(timestampNode.GetText()).c_str()).c_str());
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::SimpleDB::Model::DomainMetadataResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/DuplicateItemName.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
DuplicateItemName::DuplicateItemName() :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
}
DuplicateItemName::DuplicateItemName(const XmlNode& xmlNode) :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
*this = xmlNode;
}
DuplicateItemName& DuplicateItemName::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode boxUsageNode = resultNode.FirstChild("BoxUsage");
if(!boxUsageNode.IsNull())
{
m_boxUsage = StringUtils::ConvertToDouble(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(boxUsageNode.GetText()).c_str()).c_str());
m_boxUsageHasBeenSet = true;
}
}
return *this;
}
void DuplicateItemName::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << index << locationValue << ".BoxUsage=" << m_boxUsage << "&";
}
}
void DuplicateItemName::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << ".BoxUsage=" << m_boxUsage << "&";
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws

View File

@@ -0,0 +1,60 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/GetAttributesRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::SimpleDB::Model;
using namespace Aws::Utils;
GetAttributesRequest::GetAttributesRequest() :
m_domainNameHasBeenSet(false),
m_itemNameHasBeenSet(false),
m_attributeNamesHasBeenSet(false),
m_consistentRead(false),
m_consistentReadHasBeenSet(false)
{
}
Aws::String GetAttributesRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=GetAttributes&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
if(m_itemNameHasBeenSet)
{
ss << "ItemName=" << StringUtils::URLEncode(m_itemName.c_str()) << "&";
}
if(m_attributeNamesHasBeenSet)
{
unsigned attributeNamesCount = 1;
for(auto& item : m_attributeNames)
{
ss << "AttributeName." << attributeNamesCount << "="
<< StringUtils::URLEncode(item.c_str()) << "&";
attributeNamesCount++;
}
}
if(m_consistentReadHasBeenSet)
{
ss << "ConsistentRead=" << std::boolalpha << m_consistentRead << "&";
}
ss << "Version=2009-04-15";
return ss.str();
}
void GetAttributesRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}

View File

@@ -0,0 +1,60 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/GetAttributesResult.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/logging/LogMacros.h>
#include <utility>
using namespace Aws::SimpleDB::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
GetAttributesResult::GetAttributesResult()
{
}
GetAttributesResult::GetAttributesResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
GetAttributesResult& GetAttributesResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "GetAttributesResult"))
{
resultNode = rootNode.FirstChild("GetAttributesResult");
}
if(!resultNode.IsNull())
{
XmlNode attributesNode = resultNode.FirstChild("Attribute");
if(!attributesNode.IsNull())
{
XmlNode attributeMember = attributesNode;
while(!attributeMember.IsNull())
{
m_attributes.push_back(attributeMember);
attributeMember = attributeMember.NextNode("Attribute");
}
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::SimpleDB::Model::GetAttributesResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/InvalidNextToken.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
InvalidNextToken::InvalidNextToken() :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
}
InvalidNextToken::InvalidNextToken(const XmlNode& xmlNode) :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
*this = xmlNode;
}
InvalidNextToken& InvalidNextToken::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode boxUsageNode = resultNode.FirstChild("BoxUsage");
if(!boxUsageNode.IsNull())
{
m_boxUsage = StringUtils::ConvertToDouble(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(boxUsageNode.GetText()).c_str()).c_str());
m_boxUsageHasBeenSet = true;
}
}
return *this;
}
void InvalidNextToken::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << index << locationValue << ".BoxUsage=" << m_boxUsage << "&";
}
}
void InvalidNextToken::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << ".BoxUsage=" << m_boxUsage << "&";
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/InvalidNumberPredicates.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
InvalidNumberPredicates::InvalidNumberPredicates() :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
}
InvalidNumberPredicates::InvalidNumberPredicates(const XmlNode& xmlNode) :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
*this = xmlNode;
}
InvalidNumberPredicates& InvalidNumberPredicates::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode boxUsageNode = resultNode.FirstChild("BoxUsage");
if(!boxUsageNode.IsNull())
{
m_boxUsage = StringUtils::ConvertToDouble(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(boxUsageNode.GetText()).c_str()).c_str());
m_boxUsageHasBeenSet = true;
}
}
return *this;
}
void InvalidNumberPredicates::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << index << locationValue << ".BoxUsage=" << m_boxUsage << "&";
}
}
void InvalidNumberPredicates::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << ".BoxUsage=" << m_boxUsage << "&";
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/InvalidNumberValueTests.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
InvalidNumberValueTests::InvalidNumberValueTests() :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
}
InvalidNumberValueTests::InvalidNumberValueTests(const XmlNode& xmlNode) :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
*this = xmlNode;
}
InvalidNumberValueTests& InvalidNumberValueTests::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode boxUsageNode = resultNode.FirstChild("BoxUsage");
if(!boxUsageNode.IsNull())
{
m_boxUsage = StringUtils::ConvertToDouble(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(boxUsageNode.GetText()).c_str()).c_str());
m_boxUsageHasBeenSet = true;
}
}
return *this;
}
void InvalidNumberValueTests::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << index << locationValue << ".BoxUsage=" << m_boxUsage << "&";
}
}
void InvalidNumberValueTests::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << ".BoxUsage=" << m_boxUsage << "&";
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/InvalidParameterValue.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
InvalidParameterValue::InvalidParameterValue() :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
}
InvalidParameterValue::InvalidParameterValue(const XmlNode& xmlNode) :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
*this = xmlNode;
}
InvalidParameterValue& InvalidParameterValue::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode boxUsageNode = resultNode.FirstChild("BoxUsage");
if(!boxUsageNode.IsNull())
{
m_boxUsage = StringUtils::ConvertToDouble(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(boxUsageNode.GetText()).c_str()).c_str());
m_boxUsageHasBeenSet = true;
}
}
return *this;
}
void InvalidParameterValue::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << index << locationValue << ".BoxUsage=" << m_boxUsage << "&";
}
}
void InvalidParameterValue::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << ".BoxUsage=" << m_boxUsage << "&";
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/InvalidQueryExpression.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
InvalidQueryExpression::InvalidQueryExpression() :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
}
InvalidQueryExpression::InvalidQueryExpression(const XmlNode& xmlNode) :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
*this = xmlNode;
}
InvalidQueryExpression& InvalidQueryExpression::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode boxUsageNode = resultNode.FirstChild("BoxUsage");
if(!boxUsageNode.IsNull())
{
m_boxUsage = StringUtils::ConvertToDouble(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(boxUsageNode.GetText()).c_str()).c_str());
m_boxUsageHasBeenSet = true;
}
}
return *this;
}
void InvalidQueryExpression::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << index << locationValue << ".BoxUsage=" << m_boxUsage << "&";
}
}
void InvalidQueryExpression::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << ".BoxUsage=" << m_boxUsage << "&";
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws

View File

@@ -0,0 +1,122 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/Item.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
Item::Item() :
m_nameHasBeenSet(false),
m_alternateNameEncodingHasBeenSet(false),
m_attributesHasBeenSet(false)
{
}
Item::Item(const XmlNode& xmlNode) :
m_nameHasBeenSet(false),
m_alternateNameEncodingHasBeenSet(false),
m_attributesHasBeenSet(false)
{
*this = xmlNode;
}
Item& Item::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode nameNode = resultNode.FirstChild("Name");
if(!nameNode.IsNull())
{
m_name = Aws::Utils::Xml::DecodeEscapedXmlText(nameNode.GetText());
m_nameHasBeenSet = true;
}
XmlNode alternateNameEncodingNode = resultNode.FirstChild("AlternateNameEncoding");
if(!alternateNameEncodingNode.IsNull())
{
m_alternateNameEncoding = Aws::Utils::Xml::DecodeEscapedXmlText(alternateNameEncodingNode.GetText());
m_alternateNameEncodingHasBeenSet = true;
}
XmlNode attributesNode = resultNode.FirstChild("Attribute");
if(!attributesNode.IsNull())
{
XmlNode attributeMember = attributesNode;
while(!attributeMember.IsNull())
{
m_attributes.push_back(attributeMember);
attributeMember = attributeMember.NextNode("Attribute");
}
m_attributesHasBeenSet = true;
}
}
return *this;
}
void Item::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_nameHasBeenSet)
{
oStream << location << index << locationValue << ".Name=" << StringUtils::URLEncode(m_name.c_str()) << "&";
}
if(m_alternateNameEncodingHasBeenSet)
{
oStream << location << index << locationValue << ".AlternateNameEncoding=" << StringUtils::URLEncode(m_alternateNameEncoding.c_str()) << "&";
}
if(m_attributesHasBeenSet)
{
unsigned attributesIdx = 1;
for(auto& item : m_attributes)
{
Aws::StringStream attributesSs;
attributesSs << location << index << locationValue << ".Attribute." << attributesIdx++;
item.OutputToStream(oStream, attributesSs.str().c_str());
}
}
}
void Item::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_nameHasBeenSet)
{
oStream << location << ".Name=" << StringUtils::URLEncode(m_name.c_str()) << "&";
}
if(m_alternateNameEncodingHasBeenSet)
{
oStream << location << ".AlternateNameEncoding=" << StringUtils::URLEncode(m_alternateNameEncoding.c_str()) << "&";
}
if(m_attributesHasBeenSet)
{
unsigned attributesIdx = 1;
for(auto& item : m_attributes)
{
Aws::StringStream attributesSs;
attributesSs << location << ".Attribute." << attributesIdx++;
item.OutputToStream(oStream, attributesSs.str().c_str());
}
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/ListDomainsRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::SimpleDB::Model;
using namespace Aws::Utils;
ListDomainsRequest::ListDomainsRequest() :
m_maxNumberOfDomains(0),
m_maxNumberOfDomainsHasBeenSet(false),
m_nextTokenHasBeenSet(false)
{
}
Aws::String ListDomainsRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=ListDomains&";
if(m_maxNumberOfDomainsHasBeenSet)
{
ss << "MaxNumberOfDomains=" << m_maxNumberOfDomains << "&";
}
if(m_nextTokenHasBeenSet)
{
ss << "NextToken=" << StringUtils::URLEncode(m_nextToken.c_str()) << "&";
}
ss << "Version=2009-04-15";
return ss.str();
}
void ListDomainsRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}

View File

@@ -0,0 +1,65 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/ListDomainsResult.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/logging/LogMacros.h>
#include <utility>
using namespace Aws::SimpleDB::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
ListDomainsResult::ListDomainsResult()
{
}
ListDomainsResult::ListDomainsResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
ListDomainsResult& ListDomainsResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "ListDomainsResult"))
{
resultNode = rootNode.FirstChild("ListDomainsResult");
}
if(!resultNode.IsNull())
{
XmlNode domainNamesNode = resultNode.FirstChild("DomainName");
if(!domainNamesNode.IsNull())
{
XmlNode domainNameMember = domainNamesNode;
while(!domainNameMember.IsNull())
{
m_domainNames.push_back(domainNameMember.GetText());
domainNameMember = domainNameMember.NextNode("DomainName");
}
}
XmlNode nextTokenNode = resultNode.FirstChild("NextToken");
if(!nextTokenNode.IsNull())
{
m_nextToken = Aws::Utils::Xml::DecodeEscapedXmlText(nextTokenNode.GetText());
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::SimpleDB::Model::ListDomainsResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/MissingParameter.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
MissingParameter::MissingParameter() :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
}
MissingParameter::MissingParameter(const XmlNode& xmlNode) :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
*this = xmlNode;
}
MissingParameter& MissingParameter::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode boxUsageNode = resultNode.FirstChild("BoxUsage");
if(!boxUsageNode.IsNull())
{
m_boxUsage = StringUtils::ConvertToDouble(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(boxUsageNode.GetText()).c_str()).c_str());
m_boxUsageHasBeenSet = true;
}
}
return *this;
}
void MissingParameter::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << index << locationValue << ".BoxUsage=" << m_boxUsage << "&";
}
}
void MissingParameter::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << ".BoxUsage=" << m_boxUsage << "&";
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/NoSuchDomain.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
NoSuchDomain::NoSuchDomain() :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
}
NoSuchDomain::NoSuchDomain(const XmlNode& xmlNode) :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
*this = xmlNode;
}
NoSuchDomain& NoSuchDomain::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode boxUsageNode = resultNode.FirstChild("BoxUsage");
if(!boxUsageNode.IsNull())
{
m_boxUsage = StringUtils::ConvertToDouble(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(boxUsageNode.GetText()).c_str()).c_str());
m_boxUsageHasBeenSet = true;
}
}
return *this;
}
void NoSuchDomain::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << index << locationValue << ".BoxUsage=" << m_boxUsage << "&";
}
}
void NoSuchDomain::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << ".BoxUsage=" << m_boxUsage << "&";
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/NumberDomainAttributesExceeded.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
NumberDomainAttributesExceeded::NumberDomainAttributesExceeded() :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
}
NumberDomainAttributesExceeded::NumberDomainAttributesExceeded(const XmlNode& xmlNode) :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
*this = xmlNode;
}
NumberDomainAttributesExceeded& NumberDomainAttributesExceeded::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode boxUsageNode = resultNode.FirstChild("BoxUsage");
if(!boxUsageNode.IsNull())
{
m_boxUsage = StringUtils::ConvertToDouble(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(boxUsageNode.GetText()).c_str()).c_str());
m_boxUsageHasBeenSet = true;
}
}
return *this;
}
void NumberDomainAttributesExceeded::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << index << locationValue << ".BoxUsage=" << m_boxUsage << "&";
}
}
void NumberDomainAttributesExceeded::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << ".BoxUsage=" << m_boxUsage << "&";
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/NumberDomainBytesExceeded.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
NumberDomainBytesExceeded::NumberDomainBytesExceeded() :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
}
NumberDomainBytesExceeded::NumberDomainBytesExceeded(const XmlNode& xmlNode) :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
*this = xmlNode;
}
NumberDomainBytesExceeded& NumberDomainBytesExceeded::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode boxUsageNode = resultNode.FirstChild("BoxUsage");
if(!boxUsageNode.IsNull())
{
m_boxUsage = StringUtils::ConvertToDouble(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(boxUsageNode.GetText()).c_str()).c_str());
m_boxUsageHasBeenSet = true;
}
}
return *this;
}
void NumberDomainBytesExceeded::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << index << locationValue << ".BoxUsage=" << m_boxUsage << "&";
}
}
void NumberDomainBytesExceeded::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << ".BoxUsage=" << m_boxUsage << "&";
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/NumberDomainsExceeded.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
NumberDomainsExceeded::NumberDomainsExceeded() :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
}
NumberDomainsExceeded::NumberDomainsExceeded(const XmlNode& xmlNode) :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
*this = xmlNode;
}
NumberDomainsExceeded& NumberDomainsExceeded::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode boxUsageNode = resultNode.FirstChild("BoxUsage");
if(!boxUsageNode.IsNull())
{
m_boxUsage = StringUtils::ConvertToDouble(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(boxUsageNode.GetText()).c_str()).c_str());
m_boxUsageHasBeenSet = true;
}
}
return *this;
}
void NumberDomainsExceeded::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << index << locationValue << ".BoxUsage=" << m_boxUsage << "&";
}
}
void NumberDomainsExceeded::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << ".BoxUsage=" << m_boxUsage << "&";
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/NumberItemAttributesExceeded.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
NumberItemAttributesExceeded::NumberItemAttributesExceeded() :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
}
NumberItemAttributesExceeded::NumberItemAttributesExceeded(const XmlNode& xmlNode) :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
*this = xmlNode;
}
NumberItemAttributesExceeded& NumberItemAttributesExceeded::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode boxUsageNode = resultNode.FirstChild("BoxUsage");
if(!boxUsageNode.IsNull())
{
m_boxUsage = StringUtils::ConvertToDouble(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(boxUsageNode.GetText()).c_str()).c_str());
m_boxUsageHasBeenSet = true;
}
}
return *this;
}
void NumberItemAttributesExceeded::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << index << locationValue << ".BoxUsage=" << m_boxUsage << "&";
}
}
void NumberItemAttributesExceeded::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << ".BoxUsage=" << m_boxUsage << "&";
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/NumberSubmittedAttributesExceeded.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
NumberSubmittedAttributesExceeded::NumberSubmittedAttributesExceeded() :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
}
NumberSubmittedAttributesExceeded::NumberSubmittedAttributesExceeded(const XmlNode& xmlNode) :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
*this = xmlNode;
}
NumberSubmittedAttributesExceeded& NumberSubmittedAttributesExceeded::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode boxUsageNode = resultNode.FirstChild("BoxUsage");
if(!boxUsageNode.IsNull())
{
m_boxUsage = StringUtils::ConvertToDouble(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(boxUsageNode.GetText()).c_str()).c_str());
m_boxUsageHasBeenSet = true;
}
}
return *this;
}
void NumberSubmittedAttributesExceeded::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << index << locationValue << ".BoxUsage=" << m_boxUsage << "&";
}
}
void NumberSubmittedAttributesExceeded::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << ".BoxUsage=" << m_boxUsage << "&";
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/NumberSubmittedItemsExceeded.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
NumberSubmittedItemsExceeded::NumberSubmittedItemsExceeded() :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
}
NumberSubmittedItemsExceeded::NumberSubmittedItemsExceeded(const XmlNode& xmlNode) :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
*this = xmlNode;
}
NumberSubmittedItemsExceeded& NumberSubmittedItemsExceeded::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode boxUsageNode = resultNode.FirstChild("BoxUsage");
if(!boxUsageNode.IsNull())
{
m_boxUsage = StringUtils::ConvertToDouble(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(boxUsageNode.GetText()).c_str()).c_str());
m_boxUsageHasBeenSet = true;
}
}
return *this;
}
void NumberSubmittedItemsExceeded::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << index << locationValue << ".BoxUsage=" << m_boxUsage << "&";
}
}
void NumberSubmittedItemsExceeded::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << ".BoxUsage=" << m_boxUsage << "&";
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws

View File

@@ -0,0 +1,58 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/PutAttributesRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::SimpleDB::Model;
using namespace Aws::Utils;
PutAttributesRequest::PutAttributesRequest() :
m_domainNameHasBeenSet(false),
m_itemNameHasBeenSet(false),
m_attributesHasBeenSet(false),
m_expectedHasBeenSet(false)
{
}
Aws::String PutAttributesRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=PutAttributes&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
if(m_itemNameHasBeenSet)
{
ss << "ItemName=" << StringUtils::URLEncode(m_itemName.c_str()) << "&";
}
if(m_attributesHasBeenSet)
{
unsigned attributesCount = 1;
for(auto& item : m_attributes)
{
item.OutputToStream(ss, "Attribute.", attributesCount, "");
attributesCount++;
}
}
if(m_expectedHasBeenSet)
{
m_expected.OutputToStream(ss, "Expected");
}
ss << "Version=2009-04-15";
return ss.str();
}
void PutAttributesRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}

View File

@@ -0,0 +1,106 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/ReplaceableAttribute.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
ReplaceableAttribute::ReplaceableAttribute() :
m_nameHasBeenSet(false),
m_valueHasBeenSet(false),
m_replace(false),
m_replaceHasBeenSet(false)
{
}
ReplaceableAttribute::ReplaceableAttribute(const XmlNode& xmlNode) :
m_nameHasBeenSet(false),
m_valueHasBeenSet(false),
m_replace(false),
m_replaceHasBeenSet(false)
{
*this = xmlNode;
}
ReplaceableAttribute& ReplaceableAttribute::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode nameNode = resultNode.FirstChild("Name");
if(!nameNode.IsNull())
{
m_name = Aws::Utils::Xml::DecodeEscapedXmlText(nameNode.GetText());
m_nameHasBeenSet = true;
}
XmlNode valueNode = resultNode.FirstChild("Value");
if(!valueNode.IsNull())
{
m_value = Aws::Utils::Xml::DecodeEscapedXmlText(valueNode.GetText());
m_valueHasBeenSet = true;
}
XmlNode replaceNode = resultNode.FirstChild("Replace");
if(!replaceNode.IsNull())
{
m_replace = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(replaceNode.GetText()).c_str()).c_str());
m_replaceHasBeenSet = true;
}
}
return *this;
}
void ReplaceableAttribute::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_nameHasBeenSet)
{
oStream << location << index << locationValue << ".Name=" << StringUtils::URLEncode(m_name.c_str()) << "&";
}
if(m_valueHasBeenSet)
{
oStream << location << index << locationValue << ".Value=" << StringUtils::URLEncode(m_value.c_str()) << "&";
}
if(m_replaceHasBeenSet)
{
oStream << location << index << locationValue << ".Replace=" << std::boolalpha << m_replace << "&";
}
}
void ReplaceableAttribute::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_nameHasBeenSet)
{
oStream << location << ".Name=" << StringUtils::URLEncode(m_name.c_str()) << "&";
}
if(m_valueHasBeenSet)
{
oStream << location << ".Value=" << StringUtils::URLEncode(m_value.c_str()) << "&";
}
if(m_replaceHasBeenSet)
{
oStream << location << ".Replace=" << std::boolalpha << m_replace << "&";
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws

View File

@@ -0,0 +1,105 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/ReplaceableItem.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
ReplaceableItem::ReplaceableItem() :
m_nameHasBeenSet(false),
m_attributesHasBeenSet(false)
{
}
ReplaceableItem::ReplaceableItem(const XmlNode& xmlNode) :
m_nameHasBeenSet(false),
m_attributesHasBeenSet(false)
{
*this = xmlNode;
}
ReplaceableItem& ReplaceableItem::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode nameNode = resultNode.FirstChild("ItemName");
if(!nameNode.IsNull())
{
m_name = Aws::Utils::Xml::DecodeEscapedXmlText(nameNode.GetText());
m_nameHasBeenSet = true;
}
XmlNode attributesNode = resultNode.FirstChild("Attribute");
if(!attributesNode.IsNull())
{
XmlNode attributeMember = attributesNode;
while(!attributeMember.IsNull())
{
m_attributes.push_back(attributeMember);
attributeMember = attributeMember.NextNode("Attribute");
}
m_attributesHasBeenSet = true;
}
}
return *this;
}
void ReplaceableItem::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_nameHasBeenSet)
{
oStream << location << index << locationValue << ".Name=" << StringUtils::URLEncode(m_name.c_str()) << "&";
}
if(m_attributesHasBeenSet)
{
unsigned attributesIdx = 1;
for(auto& item : m_attributes)
{
Aws::StringStream attributesSs;
attributesSs << location << index << locationValue << ".Attribute." << attributesIdx++;
item.OutputToStream(oStream, attributesSs.str().c_str());
}
}
}
void ReplaceableItem::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_nameHasBeenSet)
{
oStream << location << ".Name=" << StringUtils::URLEncode(m_name.c_str()) << "&";
}
if(m_attributesHasBeenSet)
{
unsigned attributesIdx = 1;
for(auto& item : m_attributes)
{
Aws::StringStream attributesSs;
attributesSs << location << ".Attribute." << attributesIdx++;
item.OutputToStream(oStream, attributesSs.str().c_str());
}
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/RequestTimeout.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
RequestTimeout::RequestTimeout() :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
}
RequestTimeout::RequestTimeout(const XmlNode& xmlNode) :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
*this = xmlNode;
}
RequestTimeout& RequestTimeout::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode boxUsageNode = resultNode.FirstChild("BoxUsage");
if(!boxUsageNode.IsNull())
{
m_boxUsage = StringUtils::ConvertToDouble(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(boxUsageNode.GetText()).c_str()).c_str());
m_boxUsageHasBeenSet = true;
}
}
return *this;
}
void RequestTimeout::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << index << locationValue << ".BoxUsage=" << m_boxUsage << "&";
}
}
void RequestTimeout::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << ".BoxUsage=" << m_boxUsage << "&";
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws

View File

@@ -0,0 +1,70 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/ResponseMetadata.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
ResponseMetadata::ResponseMetadata() :
m_requestIdHasBeenSet(false)
{
}
ResponseMetadata::ResponseMetadata(const XmlNode& xmlNode) :
m_requestIdHasBeenSet(false)
{
*this = xmlNode;
}
ResponseMetadata& ResponseMetadata::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode requestIdNode = resultNode.FirstChild("RequestId");
if(!requestIdNode.IsNull())
{
m_requestId = Aws::Utils::Xml::DecodeEscapedXmlText(requestIdNode.GetText());
m_requestIdHasBeenSet = true;
}
}
return *this;
}
void ResponseMetadata::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_requestIdHasBeenSet)
{
oStream << location << index << locationValue << ".RequestId=" << StringUtils::URLEncode(m_requestId.c_str()) << "&";
}
}
void ResponseMetadata::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_requestIdHasBeenSet)
{
oStream << location << ".RequestId=" << StringUtils::URLEncode(m_requestId.c_str()) << "&";
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws

View File

@@ -0,0 +1,48 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/SelectRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::SimpleDB::Model;
using namespace Aws::Utils;
SelectRequest::SelectRequest() :
m_selectExpressionHasBeenSet(false),
m_nextTokenHasBeenSet(false),
m_consistentRead(false),
m_consistentReadHasBeenSet(false)
{
}
Aws::String SelectRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=Select&";
if(m_selectExpressionHasBeenSet)
{
ss << "SelectExpression=" << StringUtils::URLEncode(m_selectExpression.c_str()) << "&";
}
if(m_nextTokenHasBeenSet)
{
ss << "NextToken=" << StringUtils::URLEncode(m_nextToken.c_str()) << "&";
}
if(m_consistentReadHasBeenSet)
{
ss << "ConsistentRead=" << std::boolalpha << m_consistentRead << "&";
}
ss << "Version=2009-04-15";
return ss.str();
}
void SelectRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}

View File

@@ -0,0 +1,65 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/SelectResult.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/logging/LogMacros.h>
#include <utility>
using namespace Aws::SimpleDB::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
SelectResult::SelectResult()
{
}
SelectResult::SelectResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
SelectResult& SelectResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "SelectResult"))
{
resultNode = rootNode.FirstChild("SelectResult");
}
if(!resultNode.IsNull())
{
XmlNode itemsNode = resultNode.FirstChild("Item");
if(!itemsNode.IsNull())
{
XmlNode itemMember = itemsNode;
while(!itemMember.IsNull())
{
m_items.push_back(itemMember);
itemMember = itemMember.NextNode("Item");
}
}
XmlNode nextTokenNode = resultNode.FirstChild("NextToken");
if(!nextTokenNode.IsNull())
{
m_nextToken = Aws::Utils::Xml::DecodeEscapedXmlText(nextTokenNode.GetText());
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::SimpleDB::Model::SelectResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/TooManyRequestedAttributes.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
TooManyRequestedAttributes::TooManyRequestedAttributes() :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
}
TooManyRequestedAttributes::TooManyRequestedAttributes(const XmlNode& xmlNode) :
m_boxUsage(0.0),
m_boxUsageHasBeenSet(false)
{
*this = xmlNode;
}
TooManyRequestedAttributes& TooManyRequestedAttributes::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode boxUsageNode = resultNode.FirstChild("BoxUsage");
if(!boxUsageNode.IsNull())
{
m_boxUsage = StringUtils::ConvertToDouble(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(boxUsageNode.GetText()).c_str()).c_str());
m_boxUsageHasBeenSet = true;
}
}
return *this;
}
void TooManyRequestedAttributes::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << index << locationValue << ".BoxUsage=" << m_boxUsage << "&";
}
}
void TooManyRequestedAttributes::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_boxUsageHasBeenSet)
{
oStream << location << ".BoxUsage=" << m_boxUsage << "&";
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws

View File

@@ -0,0 +1,106 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/UpdateCondition.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace SimpleDB
{
namespace Model
{
UpdateCondition::UpdateCondition() :
m_nameHasBeenSet(false),
m_valueHasBeenSet(false),
m_exists(false),
m_existsHasBeenSet(false)
{
}
UpdateCondition::UpdateCondition(const XmlNode& xmlNode) :
m_nameHasBeenSet(false),
m_valueHasBeenSet(false),
m_exists(false),
m_existsHasBeenSet(false)
{
*this = xmlNode;
}
UpdateCondition& UpdateCondition::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode nameNode = resultNode.FirstChild("Name");
if(!nameNode.IsNull())
{
m_name = Aws::Utils::Xml::DecodeEscapedXmlText(nameNode.GetText());
m_nameHasBeenSet = true;
}
XmlNode valueNode = resultNode.FirstChild("Value");
if(!valueNode.IsNull())
{
m_value = Aws::Utils::Xml::DecodeEscapedXmlText(valueNode.GetText());
m_valueHasBeenSet = true;
}
XmlNode existsNode = resultNode.FirstChild("Exists");
if(!existsNode.IsNull())
{
m_exists = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(existsNode.GetText()).c_str()).c_str());
m_existsHasBeenSet = true;
}
}
return *this;
}
void UpdateCondition::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_nameHasBeenSet)
{
oStream << location << index << locationValue << ".Name=" << StringUtils::URLEncode(m_name.c_str()) << "&";
}
if(m_valueHasBeenSet)
{
oStream << location << index << locationValue << ".Value=" << StringUtils::URLEncode(m_value.c_str()) << "&";
}
if(m_existsHasBeenSet)
{
oStream << location << index << locationValue << ".Exists=" << std::boolalpha << m_exists << "&";
}
}
void UpdateCondition::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_nameHasBeenSet)
{
oStream << location << ".Name=" << StringUtils::URLEncode(m_name.c_str()) << "&";
}
if(m_valueHasBeenSet)
{
oStream << location << ".Value=" << StringUtils::URLEncode(m_value.c_str()) << "&";
}
if(m_existsHasBeenSet)
{
oStream << location << ".Exists=" << std::boolalpha << m_exists << "&";
}
}
} // namespace Model
} // namespace SimpleDB
} // namespace Aws