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,91 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/AccessPoliciesStatus.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 CloudSearch
{
namespace Model
{
AccessPoliciesStatus::AccessPoliciesStatus() :
m_optionsHasBeenSet(false),
m_statusHasBeenSet(false)
{
}
AccessPoliciesStatus::AccessPoliciesStatus(const XmlNode& xmlNode) :
m_optionsHasBeenSet(false),
m_statusHasBeenSet(false)
{
*this = xmlNode;
}
AccessPoliciesStatus& AccessPoliciesStatus::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode optionsNode = resultNode.FirstChild("Options");
if(!optionsNode.IsNull())
{
m_options = Aws::Utils::Xml::DecodeEscapedXmlText(optionsNode.GetText());
m_optionsHasBeenSet = true;
}
XmlNode statusNode = resultNode.FirstChild("Status");
if(!statusNode.IsNull())
{
m_status = statusNode;
m_statusHasBeenSet = true;
}
}
return *this;
}
void AccessPoliciesStatus::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_optionsHasBeenSet)
{
oStream << location << index << locationValue << ".Options=" << StringUtils::URLEncode(m_options.c_str()) << "&";
}
if(m_statusHasBeenSet)
{
Aws::StringStream statusLocationAndMemberSs;
statusLocationAndMemberSs << location << index << locationValue << ".Status";
m_status.OutputToStream(oStream, statusLocationAndMemberSs.str().c_str());
}
}
void AccessPoliciesStatus::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_optionsHasBeenSet)
{
oStream << location << ".Options=" << StringUtils::URLEncode(m_options.c_str()) << "&";
}
if(m_statusHasBeenSet)
{
Aws::String statusLocationAndMember(location);
statusLocationAndMember += ".Status";
m_status.OutputToStream(oStream, statusLocationAndMember.c_str());
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,84 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/AlgorithmicStemming.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace CloudSearch
{
namespace Model
{
namespace AlgorithmicStemmingMapper
{
static const int none_HASH = HashingUtils::HashString("none");
static const int minimal_HASH = HashingUtils::HashString("minimal");
static const int light_HASH = HashingUtils::HashString("light");
static const int full_HASH = HashingUtils::HashString("full");
AlgorithmicStemming GetAlgorithmicStemmingForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == none_HASH)
{
return AlgorithmicStemming::none;
}
else if (hashCode == minimal_HASH)
{
return AlgorithmicStemming::minimal;
}
else if (hashCode == light_HASH)
{
return AlgorithmicStemming::light;
}
else if (hashCode == full_HASH)
{
return AlgorithmicStemming::full;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<AlgorithmicStemming>(hashCode);
}
return AlgorithmicStemming::NOT_SET;
}
Aws::String GetNameForAlgorithmicStemming(AlgorithmicStemming enumValue)
{
switch(enumValue)
{
case AlgorithmicStemming::none:
return "none";
case AlgorithmicStemming::minimal:
return "minimal";
case AlgorithmicStemming::light:
return "light";
case AlgorithmicStemming::full:
return "full";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace AlgorithmicStemmingMapper
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,140 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/AnalysisOptions.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 CloudSearch
{
namespace Model
{
AnalysisOptions::AnalysisOptions() :
m_synonymsHasBeenSet(false),
m_stopwordsHasBeenSet(false),
m_stemmingDictionaryHasBeenSet(false),
m_japaneseTokenizationDictionaryHasBeenSet(false),
m_algorithmicStemming(AlgorithmicStemming::NOT_SET),
m_algorithmicStemmingHasBeenSet(false)
{
}
AnalysisOptions::AnalysisOptions(const XmlNode& xmlNode) :
m_synonymsHasBeenSet(false),
m_stopwordsHasBeenSet(false),
m_stemmingDictionaryHasBeenSet(false),
m_japaneseTokenizationDictionaryHasBeenSet(false),
m_algorithmicStemming(AlgorithmicStemming::NOT_SET),
m_algorithmicStemmingHasBeenSet(false)
{
*this = xmlNode;
}
AnalysisOptions& AnalysisOptions::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode synonymsNode = resultNode.FirstChild("Synonyms");
if(!synonymsNode.IsNull())
{
m_synonyms = Aws::Utils::Xml::DecodeEscapedXmlText(synonymsNode.GetText());
m_synonymsHasBeenSet = true;
}
XmlNode stopwordsNode = resultNode.FirstChild("Stopwords");
if(!stopwordsNode.IsNull())
{
m_stopwords = Aws::Utils::Xml::DecodeEscapedXmlText(stopwordsNode.GetText());
m_stopwordsHasBeenSet = true;
}
XmlNode stemmingDictionaryNode = resultNode.FirstChild("StemmingDictionary");
if(!stemmingDictionaryNode.IsNull())
{
m_stemmingDictionary = Aws::Utils::Xml::DecodeEscapedXmlText(stemmingDictionaryNode.GetText());
m_stemmingDictionaryHasBeenSet = true;
}
XmlNode japaneseTokenizationDictionaryNode = resultNode.FirstChild("JapaneseTokenizationDictionary");
if(!japaneseTokenizationDictionaryNode.IsNull())
{
m_japaneseTokenizationDictionary = Aws::Utils::Xml::DecodeEscapedXmlText(japaneseTokenizationDictionaryNode.GetText());
m_japaneseTokenizationDictionaryHasBeenSet = true;
}
XmlNode algorithmicStemmingNode = resultNode.FirstChild("AlgorithmicStemming");
if(!algorithmicStemmingNode.IsNull())
{
m_algorithmicStemming = AlgorithmicStemmingMapper::GetAlgorithmicStemmingForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(algorithmicStemmingNode.GetText()).c_str()).c_str());
m_algorithmicStemmingHasBeenSet = true;
}
}
return *this;
}
void AnalysisOptions::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_synonymsHasBeenSet)
{
oStream << location << index << locationValue << ".Synonyms=" << StringUtils::URLEncode(m_synonyms.c_str()) << "&";
}
if(m_stopwordsHasBeenSet)
{
oStream << location << index << locationValue << ".Stopwords=" << StringUtils::URLEncode(m_stopwords.c_str()) << "&";
}
if(m_stemmingDictionaryHasBeenSet)
{
oStream << location << index << locationValue << ".StemmingDictionary=" << StringUtils::URLEncode(m_stemmingDictionary.c_str()) << "&";
}
if(m_japaneseTokenizationDictionaryHasBeenSet)
{
oStream << location << index << locationValue << ".JapaneseTokenizationDictionary=" << StringUtils::URLEncode(m_japaneseTokenizationDictionary.c_str()) << "&";
}
if(m_algorithmicStemmingHasBeenSet)
{
oStream << location << index << locationValue << ".AlgorithmicStemming=" << AlgorithmicStemmingMapper::GetNameForAlgorithmicStemming(m_algorithmicStemming) << "&";
}
}
void AnalysisOptions::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_synonymsHasBeenSet)
{
oStream << location << ".Synonyms=" << StringUtils::URLEncode(m_synonyms.c_str()) << "&";
}
if(m_stopwordsHasBeenSet)
{
oStream << location << ".Stopwords=" << StringUtils::URLEncode(m_stopwords.c_str()) << "&";
}
if(m_stemmingDictionaryHasBeenSet)
{
oStream << location << ".StemmingDictionary=" << StringUtils::URLEncode(m_stemmingDictionary.c_str()) << "&";
}
if(m_japaneseTokenizationDictionaryHasBeenSet)
{
oStream << location << ".JapaneseTokenizationDictionary=" << StringUtils::URLEncode(m_japaneseTokenizationDictionary.c_str()) << "&";
}
if(m_algorithmicStemmingHasBeenSet)
{
oStream << location << ".AlgorithmicStemming=" << AlgorithmicStemmingMapper::GetNameForAlgorithmicStemming(m_algorithmicStemming) << "&";
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,110 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/AnalysisScheme.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 CloudSearch
{
namespace Model
{
AnalysisScheme::AnalysisScheme() :
m_analysisSchemeNameHasBeenSet(false),
m_analysisSchemeLanguage(AnalysisSchemeLanguage::NOT_SET),
m_analysisSchemeLanguageHasBeenSet(false),
m_analysisOptionsHasBeenSet(false)
{
}
AnalysisScheme::AnalysisScheme(const XmlNode& xmlNode) :
m_analysisSchemeNameHasBeenSet(false),
m_analysisSchemeLanguage(AnalysisSchemeLanguage::NOT_SET),
m_analysisSchemeLanguageHasBeenSet(false),
m_analysisOptionsHasBeenSet(false)
{
*this = xmlNode;
}
AnalysisScheme& AnalysisScheme::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode analysisSchemeNameNode = resultNode.FirstChild("AnalysisSchemeName");
if(!analysisSchemeNameNode.IsNull())
{
m_analysisSchemeName = Aws::Utils::Xml::DecodeEscapedXmlText(analysisSchemeNameNode.GetText());
m_analysisSchemeNameHasBeenSet = true;
}
XmlNode analysisSchemeLanguageNode = resultNode.FirstChild("AnalysisSchemeLanguage");
if(!analysisSchemeLanguageNode.IsNull())
{
m_analysisSchemeLanguage = AnalysisSchemeLanguageMapper::GetAnalysisSchemeLanguageForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(analysisSchemeLanguageNode.GetText()).c_str()).c_str());
m_analysisSchemeLanguageHasBeenSet = true;
}
XmlNode analysisOptionsNode = resultNode.FirstChild("AnalysisOptions");
if(!analysisOptionsNode.IsNull())
{
m_analysisOptions = analysisOptionsNode;
m_analysisOptionsHasBeenSet = true;
}
}
return *this;
}
void AnalysisScheme::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_analysisSchemeNameHasBeenSet)
{
oStream << location << index << locationValue << ".AnalysisSchemeName=" << StringUtils::URLEncode(m_analysisSchemeName.c_str()) << "&";
}
if(m_analysisSchemeLanguageHasBeenSet)
{
oStream << location << index << locationValue << ".AnalysisSchemeLanguage=" << AnalysisSchemeLanguageMapper::GetNameForAnalysisSchemeLanguage(m_analysisSchemeLanguage) << "&";
}
if(m_analysisOptionsHasBeenSet)
{
Aws::StringStream analysisOptionsLocationAndMemberSs;
analysisOptionsLocationAndMemberSs << location << index << locationValue << ".AnalysisOptions";
m_analysisOptions.OutputToStream(oStream, analysisOptionsLocationAndMemberSs.str().c_str());
}
}
void AnalysisScheme::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_analysisSchemeNameHasBeenSet)
{
oStream << location << ".AnalysisSchemeName=" << StringUtils::URLEncode(m_analysisSchemeName.c_str()) << "&";
}
if(m_analysisSchemeLanguageHasBeenSet)
{
oStream << location << ".AnalysisSchemeLanguage=" << AnalysisSchemeLanguageMapper::GetNameForAnalysisSchemeLanguage(m_analysisSchemeLanguage) << "&";
}
if(m_analysisOptionsHasBeenSet)
{
Aws::String analysisOptionsLocationAndMember(location);
analysisOptionsLocationAndMember += ".AnalysisOptions";
m_analysisOptions.OutputToStream(oStream, analysisOptionsLocationAndMember.c_str());
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,301 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/AnalysisSchemeLanguage.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace CloudSearch
{
namespace Model
{
namespace AnalysisSchemeLanguageMapper
{
static const int ar_HASH = HashingUtils::HashString("ar");
static const int bg_HASH = HashingUtils::HashString("bg");
static const int ca_HASH = HashingUtils::HashString("ca");
static const int cs_HASH = HashingUtils::HashString("cs");
static const int da_HASH = HashingUtils::HashString("da");
static const int de_HASH = HashingUtils::HashString("de");
static const int el_HASH = HashingUtils::HashString("el");
static const int en_HASH = HashingUtils::HashString("en");
static const int es_HASH = HashingUtils::HashString("es");
static const int eu_HASH = HashingUtils::HashString("eu");
static const int fa_HASH = HashingUtils::HashString("fa");
static const int fi_HASH = HashingUtils::HashString("fi");
static const int fr_HASH = HashingUtils::HashString("fr");
static const int ga_HASH = HashingUtils::HashString("ga");
static const int gl_HASH = HashingUtils::HashString("gl");
static const int he_HASH = HashingUtils::HashString("he");
static const int hi_HASH = HashingUtils::HashString("hi");
static const int hu_HASH = HashingUtils::HashString("hu");
static const int hy_HASH = HashingUtils::HashString("hy");
static const int id_HASH = HashingUtils::HashString("id");
static const int it_HASH = HashingUtils::HashString("it");
static const int ja_HASH = HashingUtils::HashString("ja");
static const int ko_HASH = HashingUtils::HashString("ko");
static const int lv_HASH = HashingUtils::HashString("lv");
static const int mul_HASH = HashingUtils::HashString("mul");
static const int nl_HASH = HashingUtils::HashString("nl");
static const int no_HASH = HashingUtils::HashString("no");
static const int pt_HASH = HashingUtils::HashString("pt");
static const int ro_HASH = HashingUtils::HashString("ro");
static const int ru_HASH = HashingUtils::HashString("ru");
static const int sv_HASH = HashingUtils::HashString("sv");
static const int th_HASH = HashingUtils::HashString("th");
static const int tr_HASH = HashingUtils::HashString("tr");
static const int zh_Hans_HASH = HashingUtils::HashString("zh-Hans");
static const int zh_Hant_HASH = HashingUtils::HashString("zh-Hant");
AnalysisSchemeLanguage GetAnalysisSchemeLanguageForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == ar_HASH)
{
return AnalysisSchemeLanguage::ar;
}
else if (hashCode == bg_HASH)
{
return AnalysisSchemeLanguage::bg;
}
else if (hashCode == ca_HASH)
{
return AnalysisSchemeLanguage::ca;
}
else if (hashCode == cs_HASH)
{
return AnalysisSchemeLanguage::cs;
}
else if (hashCode == da_HASH)
{
return AnalysisSchemeLanguage::da;
}
else if (hashCode == de_HASH)
{
return AnalysisSchemeLanguage::de;
}
else if (hashCode == el_HASH)
{
return AnalysisSchemeLanguage::el;
}
else if (hashCode == en_HASH)
{
return AnalysisSchemeLanguage::en;
}
else if (hashCode == es_HASH)
{
return AnalysisSchemeLanguage::es;
}
else if (hashCode == eu_HASH)
{
return AnalysisSchemeLanguage::eu;
}
else if (hashCode == fa_HASH)
{
return AnalysisSchemeLanguage::fa;
}
else if (hashCode == fi_HASH)
{
return AnalysisSchemeLanguage::fi;
}
else if (hashCode == fr_HASH)
{
return AnalysisSchemeLanguage::fr;
}
else if (hashCode == ga_HASH)
{
return AnalysisSchemeLanguage::ga;
}
else if (hashCode == gl_HASH)
{
return AnalysisSchemeLanguage::gl;
}
else if (hashCode == he_HASH)
{
return AnalysisSchemeLanguage::he;
}
else if (hashCode == hi_HASH)
{
return AnalysisSchemeLanguage::hi;
}
else if (hashCode == hu_HASH)
{
return AnalysisSchemeLanguage::hu;
}
else if (hashCode == hy_HASH)
{
return AnalysisSchemeLanguage::hy;
}
else if (hashCode == id_HASH)
{
return AnalysisSchemeLanguage::id;
}
else if (hashCode == it_HASH)
{
return AnalysisSchemeLanguage::it;
}
else if (hashCode == ja_HASH)
{
return AnalysisSchemeLanguage::ja;
}
else if (hashCode == ko_HASH)
{
return AnalysisSchemeLanguage::ko;
}
else if (hashCode == lv_HASH)
{
return AnalysisSchemeLanguage::lv;
}
else if (hashCode == mul_HASH)
{
return AnalysisSchemeLanguage::mul;
}
else if (hashCode == nl_HASH)
{
return AnalysisSchemeLanguage::nl;
}
else if (hashCode == no_HASH)
{
return AnalysisSchemeLanguage::no;
}
else if (hashCode == pt_HASH)
{
return AnalysisSchemeLanguage::pt;
}
else if (hashCode == ro_HASH)
{
return AnalysisSchemeLanguage::ro;
}
else if (hashCode == ru_HASH)
{
return AnalysisSchemeLanguage::ru;
}
else if (hashCode == sv_HASH)
{
return AnalysisSchemeLanguage::sv;
}
else if (hashCode == th_HASH)
{
return AnalysisSchemeLanguage::th;
}
else if (hashCode == tr_HASH)
{
return AnalysisSchemeLanguage::tr;
}
else if (hashCode == zh_Hans_HASH)
{
return AnalysisSchemeLanguage::zh_Hans;
}
else if (hashCode == zh_Hant_HASH)
{
return AnalysisSchemeLanguage::zh_Hant;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<AnalysisSchemeLanguage>(hashCode);
}
return AnalysisSchemeLanguage::NOT_SET;
}
Aws::String GetNameForAnalysisSchemeLanguage(AnalysisSchemeLanguage enumValue)
{
switch(enumValue)
{
case AnalysisSchemeLanguage::ar:
return "ar";
case AnalysisSchemeLanguage::bg:
return "bg";
case AnalysisSchemeLanguage::ca:
return "ca";
case AnalysisSchemeLanguage::cs:
return "cs";
case AnalysisSchemeLanguage::da:
return "da";
case AnalysisSchemeLanguage::de:
return "de";
case AnalysisSchemeLanguage::el:
return "el";
case AnalysisSchemeLanguage::en:
return "en";
case AnalysisSchemeLanguage::es:
return "es";
case AnalysisSchemeLanguage::eu:
return "eu";
case AnalysisSchemeLanguage::fa:
return "fa";
case AnalysisSchemeLanguage::fi:
return "fi";
case AnalysisSchemeLanguage::fr:
return "fr";
case AnalysisSchemeLanguage::ga:
return "ga";
case AnalysisSchemeLanguage::gl:
return "gl";
case AnalysisSchemeLanguage::he:
return "he";
case AnalysisSchemeLanguage::hi:
return "hi";
case AnalysisSchemeLanguage::hu:
return "hu";
case AnalysisSchemeLanguage::hy:
return "hy";
case AnalysisSchemeLanguage::id:
return "id";
case AnalysisSchemeLanguage::it:
return "it";
case AnalysisSchemeLanguage::ja:
return "ja";
case AnalysisSchemeLanguage::ko:
return "ko";
case AnalysisSchemeLanguage::lv:
return "lv";
case AnalysisSchemeLanguage::mul:
return "mul";
case AnalysisSchemeLanguage::nl:
return "nl";
case AnalysisSchemeLanguage::no:
return "no";
case AnalysisSchemeLanguage::pt:
return "pt";
case AnalysisSchemeLanguage::ro:
return "ro";
case AnalysisSchemeLanguage::ru:
return "ru";
case AnalysisSchemeLanguage::sv:
return "sv";
case AnalysisSchemeLanguage::th:
return "th";
case AnalysisSchemeLanguage::tr:
return "tr";
case AnalysisSchemeLanguage::zh_Hans:
return "zh-Hans";
case AnalysisSchemeLanguage::zh_Hant:
return "zh-Hant";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace AnalysisSchemeLanguageMapper
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,95 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/AnalysisSchemeStatus.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 CloudSearch
{
namespace Model
{
AnalysisSchemeStatus::AnalysisSchemeStatus() :
m_optionsHasBeenSet(false),
m_statusHasBeenSet(false)
{
}
AnalysisSchemeStatus::AnalysisSchemeStatus(const XmlNode& xmlNode) :
m_optionsHasBeenSet(false),
m_statusHasBeenSet(false)
{
*this = xmlNode;
}
AnalysisSchemeStatus& AnalysisSchemeStatus::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode optionsNode = resultNode.FirstChild("Options");
if(!optionsNode.IsNull())
{
m_options = optionsNode;
m_optionsHasBeenSet = true;
}
XmlNode statusNode = resultNode.FirstChild("Status");
if(!statusNode.IsNull())
{
m_status = statusNode;
m_statusHasBeenSet = true;
}
}
return *this;
}
void AnalysisSchemeStatus::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_optionsHasBeenSet)
{
Aws::StringStream optionsLocationAndMemberSs;
optionsLocationAndMemberSs << location << index << locationValue << ".Options";
m_options.OutputToStream(oStream, optionsLocationAndMemberSs.str().c_str());
}
if(m_statusHasBeenSet)
{
Aws::StringStream statusLocationAndMemberSs;
statusLocationAndMemberSs << location << index << locationValue << ".Status";
m_status.OutputToStream(oStream, statusLocationAndMemberSs.str().c_str());
}
}
void AnalysisSchemeStatus::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_optionsHasBeenSet)
{
Aws::String optionsLocationAndMember(location);
optionsLocationAndMember += ".Options";
m_options.OutputToStream(oStream, optionsLocationAndMember.c_str());
}
if(m_statusHasBeenSet)
{
Aws::String statusLocationAndMember(location);
statusLocationAndMember += ".Status";
m_status.OutputToStream(oStream, statusLocationAndMember.c_str());
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,93 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/AvailabilityOptionsStatus.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 CloudSearch
{
namespace Model
{
AvailabilityOptionsStatus::AvailabilityOptionsStatus() :
m_options(false),
m_optionsHasBeenSet(false),
m_statusHasBeenSet(false)
{
}
AvailabilityOptionsStatus::AvailabilityOptionsStatus(const XmlNode& xmlNode) :
m_options(false),
m_optionsHasBeenSet(false),
m_statusHasBeenSet(false)
{
*this = xmlNode;
}
AvailabilityOptionsStatus& AvailabilityOptionsStatus::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode optionsNode = resultNode.FirstChild("Options");
if(!optionsNode.IsNull())
{
m_options = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(optionsNode.GetText()).c_str()).c_str());
m_optionsHasBeenSet = true;
}
XmlNode statusNode = resultNode.FirstChild("Status");
if(!statusNode.IsNull())
{
m_status = statusNode;
m_statusHasBeenSet = true;
}
}
return *this;
}
void AvailabilityOptionsStatus::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_optionsHasBeenSet)
{
oStream << location << index << locationValue << ".Options=" << std::boolalpha << m_options << "&";
}
if(m_statusHasBeenSet)
{
Aws::StringStream statusLocationAndMemberSs;
statusLocationAndMemberSs << location << index << locationValue << ".Status";
m_status.OutputToStream(oStream, statusLocationAndMemberSs.str().c_str());
}
}
void AvailabilityOptionsStatus::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_optionsHasBeenSet)
{
oStream << location << ".Options=" << std::boolalpha << m_options << "&";
}
if(m_statusHasBeenSet)
{
Aws::String statusLocationAndMember(location);
statusLocationAndMember += ".Status";
m_status.OutputToStream(oStream, statusLocationAndMember.c_str());
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,35 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/BuildSuggestersRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::CloudSearch::Model;
using namespace Aws::Utils;
BuildSuggestersRequest::BuildSuggestersRequest() :
m_domainNameHasBeenSet(false)
{
}
Aws::String BuildSuggestersRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=BuildSuggesters&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
ss << "Version=2013-01-01";
return ss.str();
}
void BuildSuggestersRequest::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/cloudsearch/model/BuildSuggestersResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
BuildSuggestersResult::BuildSuggestersResult()
{
}
BuildSuggestersResult::BuildSuggestersResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
BuildSuggestersResult& BuildSuggestersResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "BuildSuggestersResult"))
{
resultNode = rootNode.FirstChild("BuildSuggestersResult");
}
if(!resultNode.IsNull())
{
XmlNode fieldNamesNode = resultNode.FirstChild("FieldNames");
if(!fieldNamesNode.IsNull())
{
XmlNode fieldNamesMember = fieldNamesNode.FirstChild("member");
while(!fieldNamesMember.IsNull())
{
m_fieldNames.push_back(fieldNamesMember.GetText());
fieldNamesMember = fieldNamesMember.NextNode("member");
}
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::BuildSuggestersResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

@@ -0,0 +1,35 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/CreateDomainRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::CloudSearch::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=2013-01-01";
return ss.str();
}
void CreateDomainRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/CreateDomainResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
CreateDomainResult::CreateDomainResult()
{
}
CreateDomainResult::CreateDomainResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
CreateDomainResult& CreateDomainResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "CreateDomainResult"))
{
resultNode = rootNode.FirstChild("CreateDomainResult");
}
if(!resultNode.IsNull())
{
XmlNode domainStatusNode = resultNode.FirstChild("DomainStatus");
if(!domainStatusNode.IsNull())
{
m_domainStatus = domainStatusNode;
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::CreateDomainResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

@@ -0,0 +1,144 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DateArrayOptions.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 CloudSearch
{
namespace Model
{
DateArrayOptions::DateArrayOptions() :
m_defaultValueHasBeenSet(false),
m_sourceFieldsHasBeenSet(false),
m_facetEnabled(false),
m_facetEnabledHasBeenSet(false),
m_searchEnabled(false),
m_searchEnabledHasBeenSet(false),
m_returnEnabled(false),
m_returnEnabledHasBeenSet(false)
{
}
DateArrayOptions::DateArrayOptions(const XmlNode& xmlNode) :
m_defaultValueHasBeenSet(false),
m_sourceFieldsHasBeenSet(false),
m_facetEnabled(false),
m_facetEnabledHasBeenSet(false),
m_searchEnabled(false),
m_searchEnabledHasBeenSet(false),
m_returnEnabled(false),
m_returnEnabledHasBeenSet(false)
{
*this = xmlNode;
}
DateArrayOptions& DateArrayOptions::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode defaultValueNode = resultNode.FirstChild("DefaultValue");
if(!defaultValueNode.IsNull())
{
m_defaultValue = Aws::Utils::Xml::DecodeEscapedXmlText(defaultValueNode.GetText());
m_defaultValueHasBeenSet = true;
}
XmlNode sourceFieldsNode = resultNode.FirstChild("SourceFields");
if(!sourceFieldsNode.IsNull())
{
m_sourceFields = Aws::Utils::Xml::DecodeEscapedXmlText(sourceFieldsNode.GetText());
m_sourceFieldsHasBeenSet = true;
}
XmlNode facetEnabledNode = resultNode.FirstChild("FacetEnabled");
if(!facetEnabledNode.IsNull())
{
m_facetEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(facetEnabledNode.GetText()).c_str()).c_str());
m_facetEnabledHasBeenSet = true;
}
XmlNode searchEnabledNode = resultNode.FirstChild("SearchEnabled");
if(!searchEnabledNode.IsNull())
{
m_searchEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(searchEnabledNode.GetText()).c_str()).c_str());
m_searchEnabledHasBeenSet = true;
}
XmlNode returnEnabledNode = resultNode.FirstChild("ReturnEnabled");
if(!returnEnabledNode.IsNull())
{
m_returnEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(returnEnabledNode.GetText()).c_str()).c_str());
m_returnEnabledHasBeenSet = true;
}
}
return *this;
}
void DateArrayOptions::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_defaultValueHasBeenSet)
{
oStream << location << index << locationValue << ".DefaultValue=" << StringUtils::URLEncode(m_defaultValue.c_str()) << "&";
}
if(m_sourceFieldsHasBeenSet)
{
oStream << location << index << locationValue << ".SourceFields=" << StringUtils::URLEncode(m_sourceFields.c_str()) << "&";
}
if(m_facetEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".FacetEnabled=" << std::boolalpha << m_facetEnabled << "&";
}
if(m_searchEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".SearchEnabled=" << std::boolalpha << m_searchEnabled << "&";
}
if(m_returnEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".ReturnEnabled=" << std::boolalpha << m_returnEnabled << "&";
}
}
void DateArrayOptions::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_defaultValueHasBeenSet)
{
oStream << location << ".DefaultValue=" << StringUtils::URLEncode(m_defaultValue.c_str()) << "&";
}
if(m_sourceFieldsHasBeenSet)
{
oStream << location << ".SourceFields=" << StringUtils::URLEncode(m_sourceFields.c_str()) << "&";
}
if(m_facetEnabledHasBeenSet)
{
oStream << location << ".FacetEnabled=" << std::boolalpha << m_facetEnabled << "&";
}
if(m_searchEnabledHasBeenSet)
{
oStream << location << ".SearchEnabled=" << std::boolalpha << m_searchEnabled << "&";
}
if(m_returnEnabledHasBeenSet)
{
oStream << location << ".ReturnEnabled=" << std::boolalpha << m_returnEnabled << "&";
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,163 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DateOptions.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 CloudSearch
{
namespace Model
{
DateOptions::DateOptions() :
m_defaultValueHasBeenSet(false),
m_sourceFieldHasBeenSet(false),
m_facetEnabled(false),
m_facetEnabledHasBeenSet(false),
m_searchEnabled(false),
m_searchEnabledHasBeenSet(false),
m_returnEnabled(false),
m_returnEnabledHasBeenSet(false),
m_sortEnabled(false),
m_sortEnabledHasBeenSet(false)
{
}
DateOptions::DateOptions(const XmlNode& xmlNode) :
m_defaultValueHasBeenSet(false),
m_sourceFieldHasBeenSet(false),
m_facetEnabled(false),
m_facetEnabledHasBeenSet(false),
m_searchEnabled(false),
m_searchEnabledHasBeenSet(false),
m_returnEnabled(false),
m_returnEnabledHasBeenSet(false),
m_sortEnabled(false),
m_sortEnabledHasBeenSet(false)
{
*this = xmlNode;
}
DateOptions& DateOptions::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode defaultValueNode = resultNode.FirstChild("DefaultValue");
if(!defaultValueNode.IsNull())
{
m_defaultValue = Aws::Utils::Xml::DecodeEscapedXmlText(defaultValueNode.GetText());
m_defaultValueHasBeenSet = true;
}
XmlNode sourceFieldNode = resultNode.FirstChild("SourceField");
if(!sourceFieldNode.IsNull())
{
m_sourceField = Aws::Utils::Xml::DecodeEscapedXmlText(sourceFieldNode.GetText());
m_sourceFieldHasBeenSet = true;
}
XmlNode facetEnabledNode = resultNode.FirstChild("FacetEnabled");
if(!facetEnabledNode.IsNull())
{
m_facetEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(facetEnabledNode.GetText()).c_str()).c_str());
m_facetEnabledHasBeenSet = true;
}
XmlNode searchEnabledNode = resultNode.FirstChild("SearchEnabled");
if(!searchEnabledNode.IsNull())
{
m_searchEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(searchEnabledNode.GetText()).c_str()).c_str());
m_searchEnabledHasBeenSet = true;
}
XmlNode returnEnabledNode = resultNode.FirstChild("ReturnEnabled");
if(!returnEnabledNode.IsNull())
{
m_returnEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(returnEnabledNode.GetText()).c_str()).c_str());
m_returnEnabledHasBeenSet = true;
}
XmlNode sortEnabledNode = resultNode.FirstChild("SortEnabled");
if(!sortEnabledNode.IsNull())
{
m_sortEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(sortEnabledNode.GetText()).c_str()).c_str());
m_sortEnabledHasBeenSet = true;
}
}
return *this;
}
void DateOptions::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_defaultValueHasBeenSet)
{
oStream << location << index << locationValue << ".DefaultValue=" << StringUtils::URLEncode(m_defaultValue.c_str()) << "&";
}
if(m_sourceFieldHasBeenSet)
{
oStream << location << index << locationValue << ".SourceField=" << StringUtils::URLEncode(m_sourceField.c_str()) << "&";
}
if(m_facetEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".FacetEnabled=" << std::boolalpha << m_facetEnabled << "&";
}
if(m_searchEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".SearchEnabled=" << std::boolalpha << m_searchEnabled << "&";
}
if(m_returnEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".ReturnEnabled=" << std::boolalpha << m_returnEnabled << "&";
}
if(m_sortEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".SortEnabled=" << std::boolalpha << m_sortEnabled << "&";
}
}
void DateOptions::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_defaultValueHasBeenSet)
{
oStream << location << ".DefaultValue=" << StringUtils::URLEncode(m_defaultValue.c_str()) << "&";
}
if(m_sourceFieldHasBeenSet)
{
oStream << location << ".SourceField=" << StringUtils::URLEncode(m_sourceField.c_str()) << "&";
}
if(m_facetEnabledHasBeenSet)
{
oStream << location << ".FacetEnabled=" << std::boolalpha << m_facetEnabled << "&";
}
if(m_searchEnabledHasBeenSet)
{
oStream << location << ".SearchEnabled=" << std::boolalpha << m_searchEnabled << "&";
}
if(m_returnEnabledHasBeenSet)
{
oStream << location << ".ReturnEnabled=" << std::boolalpha << m_returnEnabled << "&";
}
if(m_sortEnabledHasBeenSet)
{
oStream << location << ".SortEnabled=" << std::boolalpha << m_sortEnabled << "&";
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,41 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DefineAnalysisSchemeRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::CloudSearch::Model;
using namespace Aws::Utils;
DefineAnalysisSchemeRequest::DefineAnalysisSchemeRequest() :
m_domainNameHasBeenSet(false),
m_analysisSchemeHasBeenSet(false)
{
}
Aws::String DefineAnalysisSchemeRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=DefineAnalysisScheme&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
if(m_analysisSchemeHasBeenSet)
{
m_analysisScheme.OutputToStream(ss, "AnalysisScheme");
}
ss << "Version=2013-01-01";
return ss.str();
}
void DefineAnalysisSchemeRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DefineAnalysisSchemeResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
DefineAnalysisSchemeResult::DefineAnalysisSchemeResult()
{
}
DefineAnalysisSchemeResult::DefineAnalysisSchemeResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
DefineAnalysisSchemeResult& DefineAnalysisSchemeResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "DefineAnalysisSchemeResult"))
{
resultNode = rootNode.FirstChild("DefineAnalysisSchemeResult");
}
if(!resultNode.IsNull())
{
XmlNode analysisSchemeNode = resultNode.FirstChild("AnalysisScheme");
if(!analysisSchemeNode.IsNull())
{
m_analysisScheme = analysisSchemeNode;
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::DefineAnalysisSchemeResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

@@ -0,0 +1,41 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DefineExpressionRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::CloudSearch::Model;
using namespace Aws::Utils;
DefineExpressionRequest::DefineExpressionRequest() :
m_domainNameHasBeenSet(false),
m_expressionHasBeenSet(false)
{
}
Aws::String DefineExpressionRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=DefineExpression&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
if(m_expressionHasBeenSet)
{
m_expression.OutputToStream(ss, "Expression");
}
ss << "Version=2013-01-01";
return ss.str();
}
void DefineExpressionRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DefineExpressionResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
DefineExpressionResult::DefineExpressionResult()
{
}
DefineExpressionResult::DefineExpressionResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
DefineExpressionResult& DefineExpressionResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "DefineExpressionResult"))
{
resultNode = rootNode.FirstChild("DefineExpressionResult");
}
if(!resultNode.IsNull())
{
XmlNode expressionNode = resultNode.FirstChild("Expression");
if(!expressionNode.IsNull())
{
m_expression = expressionNode;
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::DefineExpressionResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

@@ -0,0 +1,41 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DefineIndexFieldRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::CloudSearch::Model;
using namespace Aws::Utils;
DefineIndexFieldRequest::DefineIndexFieldRequest() :
m_domainNameHasBeenSet(false),
m_indexFieldHasBeenSet(false)
{
}
Aws::String DefineIndexFieldRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=DefineIndexField&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
if(m_indexFieldHasBeenSet)
{
m_indexField.OutputToStream(ss, "IndexField");
}
ss << "Version=2013-01-01";
return ss.str();
}
void DefineIndexFieldRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DefineIndexFieldResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
DefineIndexFieldResult::DefineIndexFieldResult()
{
}
DefineIndexFieldResult::DefineIndexFieldResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
DefineIndexFieldResult& DefineIndexFieldResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "DefineIndexFieldResult"))
{
resultNode = rootNode.FirstChild("DefineIndexFieldResult");
}
if(!resultNode.IsNull())
{
XmlNode indexFieldNode = resultNode.FirstChild("IndexField");
if(!indexFieldNode.IsNull())
{
m_indexField = indexFieldNode;
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::DefineIndexFieldResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

@@ -0,0 +1,41 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DefineSuggesterRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::CloudSearch::Model;
using namespace Aws::Utils;
DefineSuggesterRequest::DefineSuggesterRequest() :
m_domainNameHasBeenSet(false),
m_suggesterHasBeenSet(false)
{
}
Aws::String DefineSuggesterRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=DefineSuggester&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
if(m_suggesterHasBeenSet)
{
m_suggester.OutputToStream(ss, "Suggester");
}
ss << "Version=2013-01-01";
return ss.str();
}
void DefineSuggesterRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DefineSuggesterResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
DefineSuggesterResult::DefineSuggesterResult()
{
}
DefineSuggesterResult::DefineSuggesterResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
DefineSuggesterResult& DefineSuggesterResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "DefineSuggesterResult"))
{
resultNode = rootNode.FirstChild("DefineSuggesterResult");
}
if(!resultNode.IsNull())
{
XmlNode suggesterNode = resultNode.FirstChild("Suggester");
if(!suggesterNode.IsNull())
{
m_suggester = suggesterNode;
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::DefineSuggesterResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

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

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DeleteAnalysisSchemeResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
DeleteAnalysisSchemeResult::DeleteAnalysisSchemeResult()
{
}
DeleteAnalysisSchemeResult::DeleteAnalysisSchemeResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
DeleteAnalysisSchemeResult& DeleteAnalysisSchemeResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "DeleteAnalysisSchemeResult"))
{
resultNode = rootNode.FirstChild("DeleteAnalysisSchemeResult");
}
if(!resultNode.IsNull())
{
XmlNode analysisSchemeNode = resultNode.FirstChild("AnalysisScheme");
if(!analysisSchemeNode.IsNull())
{
m_analysisScheme = analysisSchemeNode;
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::DeleteAnalysisSchemeResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

@@ -0,0 +1,35 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DeleteDomainRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::CloudSearch::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=2013-01-01";
return ss.str();
}
void DeleteDomainRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DeleteDomainResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
DeleteDomainResult::DeleteDomainResult()
{
}
DeleteDomainResult::DeleteDomainResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
DeleteDomainResult& DeleteDomainResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "DeleteDomainResult"))
{
resultNode = rootNode.FirstChild("DeleteDomainResult");
}
if(!resultNode.IsNull())
{
XmlNode domainStatusNode = resultNode.FirstChild("DomainStatus");
if(!domainStatusNode.IsNull())
{
m_domainStatus = domainStatusNode;
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::DeleteDomainResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

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

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DeleteExpressionResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
DeleteExpressionResult::DeleteExpressionResult()
{
}
DeleteExpressionResult::DeleteExpressionResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
DeleteExpressionResult& DeleteExpressionResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "DeleteExpressionResult"))
{
resultNode = rootNode.FirstChild("DeleteExpressionResult");
}
if(!resultNode.IsNull())
{
XmlNode expressionNode = resultNode.FirstChild("Expression");
if(!expressionNode.IsNull())
{
m_expression = expressionNode;
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::DeleteExpressionResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

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

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DeleteIndexFieldResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
DeleteIndexFieldResult::DeleteIndexFieldResult()
{
}
DeleteIndexFieldResult::DeleteIndexFieldResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
DeleteIndexFieldResult& DeleteIndexFieldResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "DeleteIndexFieldResult"))
{
resultNode = rootNode.FirstChild("DeleteIndexFieldResult");
}
if(!resultNode.IsNull())
{
XmlNode indexFieldNode = resultNode.FirstChild("IndexField");
if(!indexFieldNode.IsNull())
{
m_indexField = indexFieldNode;
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::DeleteIndexFieldResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

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

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DeleteSuggesterResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
DeleteSuggesterResult::DeleteSuggesterResult()
{
}
DeleteSuggesterResult::DeleteSuggesterResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
DeleteSuggesterResult& DeleteSuggesterResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "DeleteSuggesterResult"))
{
resultNode = rootNode.FirstChild("DeleteSuggesterResult");
}
if(!resultNode.IsNull())
{
XmlNode suggesterNode = resultNode.FirstChild("Suggester");
if(!suggesterNode.IsNull())
{
m_suggester = suggesterNode;
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::DeleteSuggesterResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DescribeAnalysisSchemesRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::CloudSearch::Model;
using namespace Aws::Utils;
DescribeAnalysisSchemesRequest::DescribeAnalysisSchemesRequest() :
m_domainNameHasBeenSet(false),
m_analysisSchemeNamesHasBeenSet(false),
m_deployed(false),
m_deployedHasBeenSet(false)
{
}
Aws::String DescribeAnalysisSchemesRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=DescribeAnalysisSchemes&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
if(m_analysisSchemeNamesHasBeenSet)
{
unsigned analysisSchemeNamesCount = 1;
for(auto& item : m_analysisSchemeNames)
{
ss << "AnalysisSchemeNames.member." << analysisSchemeNamesCount << "="
<< StringUtils::URLEncode(item.c_str()) << "&";
analysisSchemeNamesCount++;
}
}
if(m_deployedHasBeenSet)
{
ss << "Deployed=" << std::boolalpha << m_deployed << "&";
}
ss << "Version=2013-01-01";
return ss.str();
}
void DescribeAnalysisSchemesRequest::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/cloudsearch/model/DescribeAnalysisSchemesResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
DescribeAnalysisSchemesResult::DescribeAnalysisSchemesResult()
{
}
DescribeAnalysisSchemesResult::DescribeAnalysisSchemesResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
DescribeAnalysisSchemesResult& DescribeAnalysisSchemesResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "DescribeAnalysisSchemesResult"))
{
resultNode = rootNode.FirstChild("DescribeAnalysisSchemesResult");
}
if(!resultNode.IsNull())
{
XmlNode analysisSchemesNode = resultNode.FirstChild("AnalysisSchemes");
if(!analysisSchemesNode.IsNull())
{
XmlNode analysisSchemesMember = analysisSchemesNode.FirstChild("member");
while(!analysisSchemesMember.IsNull())
{
m_analysisSchemes.push_back(analysisSchemesMember);
analysisSchemesMember = analysisSchemesMember.NextNode("member");
}
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::DescribeAnalysisSchemesResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DescribeAvailabilityOptionsRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::CloudSearch::Model;
using namespace Aws::Utils;
DescribeAvailabilityOptionsRequest::DescribeAvailabilityOptionsRequest() :
m_domainNameHasBeenSet(false),
m_deployed(false),
m_deployedHasBeenSet(false)
{
}
Aws::String DescribeAvailabilityOptionsRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=DescribeAvailabilityOptions&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
if(m_deployedHasBeenSet)
{
ss << "Deployed=" << std::boolalpha << m_deployed << "&";
}
ss << "Version=2013-01-01";
return ss.str();
}
void DescribeAvailabilityOptionsRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DescribeAvailabilityOptionsResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
DescribeAvailabilityOptionsResult::DescribeAvailabilityOptionsResult()
{
}
DescribeAvailabilityOptionsResult::DescribeAvailabilityOptionsResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
DescribeAvailabilityOptionsResult& DescribeAvailabilityOptionsResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "DescribeAvailabilityOptionsResult"))
{
resultNode = rootNode.FirstChild("DescribeAvailabilityOptionsResult");
}
if(!resultNode.IsNull())
{
XmlNode availabilityOptionsNode = resultNode.FirstChild("AvailabilityOptions");
if(!availabilityOptionsNode.IsNull())
{
m_availabilityOptions = availabilityOptionsNode;
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::DescribeAvailabilityOptionsResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DescribeDomainEndpointOptionsRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::CloudSearch::Model;
using namespace Aws::Utils;
DescribeDomainEndpointOptionsRequest::DescribeDomainEndpointOptionsRequest() :
m_domainNameHasBeenSet(false),
m_deployed(false),
m_deployedHasBeenSet(false)
{
}
Aws::String DescribeDomainEndpointOptionsRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=DescribeDomainEndpointOptions&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
if(m_deployedHasBeenSet)
{
ss << "Deployed=" << std::boolalpha << m_deployed << "&";
}
ss << "Version=2013-01-01";
return ss.str();
}
void DescribeDomainEndpointOptionsRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DescribeDomainEndpointOptionsResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
DescribeDomainEndpointOptionsResult::DescribeDomainEndpointOptionsResult()
{
}
DescribeDomainEndpointOptionsResult::DescribeDomainEndpointOptionsResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
DescribeDomainEndpointOptionsResult& DescribeDomainEndpointOptionsResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "DescribeDomainEndpointOptionsResult"))
{
resultNode = rootNode.FirstChild("DescribeDomainEndpointOptionsResult");
}
if(!resultNode.IsNull())
{
XmlNode domainEndpointOptionsNode = resultNode.FirstChild("DomainEndpointOptions");
if(!domainEndpointOptionsNode.IsNull())
{
m_domainEndpointOptions = domainEndpointOptionsNode;
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::DescribeDomainEndpointOptionsResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

@@ -0,0 +1,41 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DescribeDomainsRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::CloudSearch::Model;
using namespace Aws::Utils;
DescribeDomainsRequest::DescribeDomainsRequest() :
m_domainNamesHasBeenSet(false)
{
}
Aws::String DescribeDomainsRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=DescribeDomains&";
if(m_domainNamesHasBeenSet)
{
unsigned domainNamesCount = 1;
for(auto& item : m_domainNames)
{
ss << "DomainNames.member." << domainNamesCount << "="
<< StringUtils::URLEncode(item.c_str()) << "&";
domainNamesCount++;
}
}
ss << "Version=2013-01-01";
return ss.str();
}
void DescribeDomainsRequest::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/cloudsearch/model/DescribeDomainsResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
DescribeDomainsResult::DescribeDomainsResult()
{
}
DescribeDomainsResult::DescribeDomainsResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
DescribeDomainsResult& DescribeDomainsResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "DescribeDomainsResult"))
{
resultNode = rootNode.FirstChild("DescribeDomainsResult");
}
if(!resultNode.IsNull())
{
XmlNode domainStatusListNode = resultNode.FirstChild("DomainStatusList");
if(!domainStatusListNode.IsNull())
{
XmlNode domainStatusListMember = domainStatusListNode.FirstChild("member");
while(!domainStatusListMember.IsNull())
{
m_domainStatusList.push_back(domainStatusListMember);
domainStatusListMember = domainStatusListMember.NextNode("member");
}
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::DescribeDomainsResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DescribeExpressionsRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::CloudSearch::Model;
using namespace Aws::Utils;
DescribeExpressionsRequest::DescribeExpressionsRequest() :
m_domainNameHasBeenSet(false),
m_expressionNamesHasBeenSet(false),
m_deployed(false),
m_deployedHasBeenSet(false)
{
}
Aws::String DescribeExpressionsRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=DescribeExpressions&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
if(m_expressionNamesHasBeenSet)
{
unsigned expressionNamesCount = 1;
for(auto& item : m_expressionNames)
{
ss << "ExpressionNames.member." << expressionNamesCount << "="
<< StringUtils::URLEncode(item.c_str()) << "&";
expressionNamesCount++;
}
}
if(m_deployedHasBeenSet)
{
ss << "Deployed=" << std::boolalpha << m_deployed << "&";
}
ss << "Version=2013-01-01";
return ss.str();
}
void DescribeExpressionsRequest::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/cloudsearch/model/DescribeExpressionsResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
DescribeExpressionsResult::DescribeExpressionsResult()
{
}
DescribeExpressionsResult::DescribeExpressionsResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
DescribeExpressionsResult& DescribeExpressionsResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "DescribeExpressionsResult"))
{
resultNode = rootNode.FirstChild("DescribeExpressionsResult");
}
if(!resultNode.IsNull())
{
XmlNode expressionsNode = resultNode.FirstChild("Expressions");
if(!expressionsNode.IsNull())
{
XmlNode expressionsMember = expressionsNode.FirstChild("member");
while(!expressionsMember.IsNull())
{
m_expressions.push_back(expressionsMember);
expressionsMember = expressionsMember.NextNode("member");
}
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::DescribeExpressionsResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DescribeIndexFieldsRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::CloudSearch::Model;
using namespace Aws::Utils;
DescribeIndexFieldsRequest::DescribeIndexFieldsRequest() :
m_domainNameHasBeenSet(false),
m_fieldNamesHasBeenSet(false),
m_deployed(false),
m_deployedHasBeenSet(false)
{
}
Aws::String DescribeIndexFieldsRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=DescribeIndexFields&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
if(m_fieldNamesHasBeenSet)
{
unsigned fieldNamesCount = 1;
for(auto& item : m_fieldNames)
{
ss << "FieldNames.member." << fieldNamesCount << "="
<< StringUtils::URLEncode(item.c_str()) << "&";
fieldNamesCount++;
}
}
if(m_deployedHasBeenSet)
{
ss << "Deployed=" << std::boolalpha << m_deployed << "&";
}
ss << "Version=2013-01-01";
return ss.str();
}
void DescribeIndexFieldsRequest::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/cloudsearch/model/DescribeIndexFieldsResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
DescribeIndexFieldsResult::DescribeIndexFieldsResult()
{
}
DescribeIndexFieldsResult::DescribeIndexFieldsResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
DescribeIndexFieldsResult& DescribeIndexFieldsResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "DescribeIndexFieldsResult"))
{
resultNode = rootNode.FirstChild("DescribeIndexFieldsResult");
}
if(!resultNode.IsNull())
{
XmlNode indexFieldsNode = resultNode.FirstChild("IndexFields");
if(!indexFieldsNode.IsNull())
{
XmlNode indexFieldsMember = indexFieldsNode.FirstChild("member");
while(!indexFieldsMember.IsNull())
{
m_indexFields.push_back(indexFieldsMember);
indexFieldsMember = indexFieldsMember.NextNode("member");
}
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::DescribeIndexFieldsResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

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

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DescribeScalingParametersResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
DescribeScalingParametersResult::DescribeScalingParametersResult()
{
}
DescribeScalingParametersResult::DescribeScalingParametersResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
DescribeScalingParametersResult& DescribeScalingParametersResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "DescribeScalingParametersResult"))
{
resultNode = rootNode.FirstChild("DescribeScalingParametersResult");
}
if(!resultNode.IsNull())
{
XmlNode scalingParametersNode = resultNode.FirstChild("ScalingParameters");
if(!scalingParametersNode.IsNull())
{
m_scalingParameters = scalingParametersNode;
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::DescribeScalingParametersResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DescribeServiceAccessPoliciesRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::CloudSearch::Model;
using namespace Aws::Utils;
DescribeServiceAccessPoliciesRequest::DescribeServiceAccessPoliciesRequest() :
m_domainNameHasBeenSet(false),
m_deployed(false),
m_deployedHasBeenSet(false)
{
}
Aws::String DescribeServiceAccessPoliciesRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=DescribeServiceAccessPolicies&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
if(m_deployedHasBeenSet)
{
ss << "Deployed=" << std::boolalpha << m_deployed << "&";
}
ss << "Version=2013-01-01";
return ss.str();
}
void DescribeServiceAccessPoliciesRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DescribeServiceAccessPoliciesResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
DescribeServiceAccessPoliciesResult::DescribeServiceAccessPoliciesResult()
{
}
DescribeServiceAccessPoliciesResult::DescribeServiceAccessPoliciesResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
DescribeServiceAccessPoliciesResult& DescribeServiceAccessPoliciesResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "DescribeServiceAccessPoliciesResult"))
{
resultNode = rootNode.FirstChild("DescribeServiceAccessPoliciesResult");
}
if(!resultNode.IsNull())
{
XmlNode accessPoliciesNode = resultNode.FirstChild("AccessPolicies");
if(!accessPoliciesNode.IsNull())
{
m_accessPolicies = accessPoliciesNode;
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::DescribeServiceAccessPoliciesResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DescribeSuggestersRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::CloudSearch::Model;
using namespace Aws::Utils;
DescribeSuggestersRequest::DescribeSuggestersRequest() :
m_domainNameHasBeenSet(false),
m_suggesterNamesHasBeenSet(false),
m_deployed(false),
m_deployedHasBeenSet(false)
{
}
Aws::String DescribeSuggestersRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=DescribeSuggesters&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
if(m_suggesterNamesHasBeenSet)
{
unsigned suggesterNamesCount = 1;
for(auto& item : m_suggesterNames)
{
ss << "SuggesterNames.member." << suggesterNamesCount << "="
<< StringUtils::URLEncode(item.c_str()) << "&";
suggesterNamesCount++;
}
}
if(m_deployedHasBeenSet)
{
ss << "Deployed=" << std::boolalpha << m_deployed << "&";
}
ss << "Version=2013-01-01";
return ss.str();
}
void DescribeSuggestersRequest::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/cloudsearch/model/DescribeSuggestersResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
DescribeSuggestersResult::DescribeSuggestersResult()
{
}
DescribeSuggestersResult::DescribeSuggestersResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
DescribeSuggestersResult& DescribeSuggestersResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "DescribeSuggestersResult"))
{
resultNode = rootNode.FirstChild("DescribeSuggestersResult");
}
if(!resultNode.IsNull())
{
XmlNode suggestersNode = resultNode.FirstChild("Suggesters");
if(!suggestersNode.IsNull())
{
XmlNode suggestersMember = suggestersNode.FirstChild("member");
while(!suggestersMember.IsNull())
{
m_suggesters.push_back(suggestersMember);
suggestersMember = suggestersMember.NextNode("member");
}
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::DescribeSuggestersResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

@@ -0,0 +1,106 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DocumentSuggesterOptions.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 CloudSearch
{
namespace Model
{
DocumentSuggesterOptions::DocumentSuggesterOptions() :
m_sourceFieldHasBeenSet(false),
m_fuzzyMatching(SuggesterFuzzyMatching::NOT_SET),
m_fuzzyMatchingHasBeenSet(false),
m_sortExpressionHasBeenSet(false)
{
}
DocumentSuggesterOptions::DocumentSuggesterOptions(const XmlNode& xmlNode) :
m_sourceFieldHasBeenSet(false),
m_fuzzyMatching(SuggesterFuzzyMatching::NOT_SET),
m_fuzzyMatchingHasBeenSet(false),
m_sortExpressionHasBeenSet(false)
{
*this = xmlNode;
}
DocumentSuggesterOptions& DocumentSuggesterOptions::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode sourceFieldNode = resultNode.FirstChild("SourceField");
if(!sourceFieldNode.IsNull())
{
m_sourceField = Aws::Utils::Xml::DecodeEscapedXmlText(sourceFieldNode.GetText());
m_sourceFieldHasBeenSet = true;
}
XmlNode fuzzyMatchingNode = resultNode.FirstChild("FuzzyMatching");
if(!fuzzyMatchingNode.IsNull())
{
m_fuzzyMatching = SuggesterFuzzyMatchingMapper::GetSuggesterFuzzyMatchingForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(fuzzyMatchingNode.GetText()).c_str()).c_str());
m_fuzzyMatchingHasBeenSet = true;
}
XmlNode sortExpressionNode = resultNode.FirstChild("SortExpression");
if(!sortExpressionNode.IsNull())
{
m_sortExpression = Aws::Utils::Xml::DecodeEscapedXmlText(sortExpressionNode.GetText());
m_sortExpressionHasBeenSet = true;
}
}
return *this;
}
void DocumentSuggesterOptions::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_sourceFieldHasBeenSet)
{
oStream << location << index << locationValue << ".SourceField=" << StringUtils::URLEncode(m_sourceField.c_str()) << "&";
}
if(m_fuzzyMatchingHasBeenSet)
{
oStream << location << index << locationValue << ".FuzzyMatching=" << SuggesterFuzzyMatchingMapper::GetNameForSuggesterFuzzyMatching(m_fuzzyMatching) << "&";
}
if(m_sortExpressionHasBeenSet)
{
oStream << location << index << locationValue << ".SortExpression=" << StringUtils::URLEncode(m_sortExpression.c_str()) << "&";
}
}
void DocumentSuggesterOptions::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_sourceFieldHasBeenSet)
{
oStream << location << ".SourceField=" << StringUtils::URLEncode(m_sourceField.c_str()) << "&";
}
if(m_fuzzyMatchingHasBeenSet)
{
oStream << location << ".FuzzyMatching=" << SuggesterFuzzyMatchingMapper::GetNameForSuggesterFuzzyMatching(m_fuzzyMatching) << "&";
}
if(m_sortExpressionHasBeenSet)
{
oStream << location << ".SortExpression=" << StringUtils::URLEncode(m_sortExpression.c_str()) << "&";
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,91 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DomainEndpointOptions.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 CloudSearch
{
namespace Model
{
DomainEndpointOptions::DomainEndpointOptions() :
m_enforceHTTPS(false),
m_enforceHTTPSHasBeenSet(false),
m_tLSSecurityPolicy(TLSSecurityPolicy::NOT_SET),
m_tLSSecurityPolicyHasBeenSet(false)
{
}
DomainEndpointOptions::DomainEndpointOptions(const XmlNode& xmlNode) :
m_enforceHTTPS(false),
m_enforceHTTPSHasBeenSet(false),
m_tLSSecurityPolicy(TLSSecurityPolicy::NOT_SET),
m_tLSSecurityPolicyHasBeenSet(false)
{
*this = xmlNode;
}
DomainEndpointOptions& DomainEndpointOptions::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode enforceHTTPSNode = resultNode.FirstChild("EnforceHTTPS");
if(!enforceHTTPSNode.IsNull())
{
m_enforceHTTPS = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(enforceHTTPSNode.GetText()).c_str()).c_str());
m_enforceHTTPSHasBeenSet = true;
}
XmlNode tLSSecurityPolicyNode = resultNode.FirstChild("TLSSecurityPolicy");
if(!tLSSecurityPolicyNode.IsNull())
{
m_tLSSecurityPolicy = TLSSecurityPolicyMapper::GetTLSSecurityPolicyForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(tLSSecurityPolicyNode.GetText()).c_str()).c_str());
m_tLSSecurityPolicyHasBeenSet = true;
}
}
return *this;
}
void DomainEndpointOptions::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_enforceHTTPSHasBeenSet)
{
oStream << location << index << locationValue << ".EnforceHTTPS=" << std::boolalpha << m_enforceHTTPS << "&";
}
if(m_tLSSecurityPolicyHasBeenSet)
{
oStream << location << index << locationValue << ".TLSSecurityPolicy=" << TLSSecurityPolicyMapper::GetNameForTLSSecurityPolicy(m_tLSSecurityPolicy) << "&";
}
}
void DomainEndpointOptions::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_enforceHTTPSHasBeenSet)
{
oStream << location << ".EnforceHTTPS=" << std::boolalpha << m_enforceHTTPS << "&";
}
if(m_tLSSecurityPolicyHasBeenSet)
{
oStream << location << ".TLSSecurityPolicy=" << TLSSecurityPolicyMapper::GetNameForTLSSecurityPolicy(m_tLSSecurityPolicy) << "&";
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,95 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DomainEndpointOptionsStatus.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 CloudSearch
{
namespace Model
{
DomainEndpointOptionsStatus::DomainEndpointOptionsStatus() :
m_optionsHasBeenSet(false),
m_statusHasBeenSet(false)
{
}
DomainEndpointOptionsStatus::DomainEndpointOptionsStatus(const XmlNode& xmlNode) :
m_optionsHasBeenSet(false),
m_statusHasBeenSet(false)
{
*this = xmlNode;
}
DomainEndpointOptionsStatus& DomainEndpointOptionsStatus::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode optionsNode = resultNode.FirstChild("Options");
if(!optionsNode.IsNull())
{
m_options = optionsNode;
m_optionsHasBeenSet = true;
}
XmlNode statusNode = resultNode.FirstChild("Status");
if(!statusNode.IsNull())
{
m_status = statusNode;
m_statusHasBeenSet = true;
}
}
return *this;
}
void DomainEndpointOptionsStatus::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_optionsHasBeenSet)
{
Aws::StringStream optionsLocationAndMemberSs;
optionsLocationAndMemberSs << location << index << locationValue << ".Options";
m_options.OutputToStream(oStream, optionsLocationAndMemberSs.str().c_str());
}
if(m_statusHasBeenSet)
{
Aws::StringStream statusLocationAndMemberSs;
statusLocationAndMemberSs << location << index << locationValue << ".Status";
m_status.OutputToStream(oStream, statusLocationAndMemberSs.str().c_str());
}
}
void DomainEndpointOptionsStatus::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_optionsHasBeenSet)
{
Aws::String optionsLocationAndMember(location);
optionsLocationAndMember += ".Options";
m_options.OutputToStream(oStream, optionsLocationAndMember.c_str());
}
if(m_statusHasBeenSet)
{
Aws::String statusLocationAndMember(location);
statusLocationAndMember += ".Status";
m_status.OutputToStream(oStream, statusLocationAndMember.c_str());
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,298 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DomainStatus.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 CloudSearch
{
namespace Model
{
DomainStatus::DomainStatus() :
m_domainIdHasBeenSet(false),
m_domainNameHasBeenSet(false),
m_aRNHasBeenSet(false),
m_created(false),
m_createdHasBeenSet(false),
m_deleted(false),
m_deletedHasBeenSet(false),
m_docServiceHasBeenSet(false),
m_searchServiceHasBeenSet(false),
m_requiresIndexDocuments(false),
m_requiresIndexDocumentsHasBeenSet(false),
m_processing(false),
m_processingHasBeenSet(false),
m_searchInstanceTypeHasBeenSet(false),
m_searchPartitionCount(0),
m_searchPartitionCountHasBeenSet(false),
m_searchInstanceCount(0),
m_searchInstanceCountHasBeenSet(false),
m_limitsHasBeenSet(false)
{
}
DomainStatus::DomainStatus(const XmlNode& xmlNode) :
m_domainIdHasBeenSet(false),
m_domainNameHasBeenSet(false),
m_aRNHasBeenSet(false),
m_created(false),
m_createdHasBeenSet(false),
m_deleted(false),
m_deletedHasBeenSet(false),
m_docServiceHasBeenSet(false),
m_searchServiceHasBeenSet(false),
m_requiresIndexDocuments(false),
m_requiresIndexDocumentsHasBeenSet(false),
m_processing(false),
m_processingHasBeenSet(false),
m_searchInstanceTypeHasBeenSet(false),
m_searchPartitionCount(0),
m_searchPartitionCountHasBeenSet(false),
m_searchInstanceCount(0),
m_searchInstanceCountHasBeenSet(false),
m_limitsHasBeenSet(false)
{
*this = xmlNode;
}
DomainStatus& DomainStatus::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode domainIdNode = resultNode.FirstChild("DomainId");
if(!domainIdNode.IsNull())
{
m_domainId = Aws::Utils::Xml::DecodeEscapedXmlText(domainIdNode.GetText());
m_domainIdHasBeenSet = true;
}
XmlNode domainNameNode = resultNode.FirstChild("DomainName");
if(!domainNameNode.IsNull())
{
m_domainName = Aws::Utils::Xml::DecodeEscapedXmlText(domainNameNode.GetText());
m_domainNameHasBeenSet = true;
}
XmlNode aRNNode = resultNode.FirstChild("ARN");
if(!aRNNode.IsNull())
{
m_aRN = Aws::Utils::Xml::DecodeEscapedXmlText(aRNNode.GetText());
m_aRNHasBeenSet = true;
}
XmlNode createdNode = resultNode.FirstChild("Created");
if(!createdNode.IsNull())
{
m_created = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(createdNode.GetText()).c_str()).c_str());
m_createdHasBeenSet = true;
}
XmlNode deletedNode = resultNode.FirstChild("Deleted");
if(!deletedNode.IsNull())
{
m_deleted = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(deletedNode.GetText()).c_str()).c_str());
m_deletedHasBeenSet = true;
}
XmlNode docServiceNode = resultNode.FirstChild("DocService");
if(!docServiceNode.IsNull())
{
m_docService = docServiceNode;
m_docServiceHasBeenSet = true;
}
XmlNode searchServiceNode = resultNode.FirstChild("SearchService");
if(!searchServiceNode.IsNull())
{
m_searchService = searchServiceNode;
m_searchServiceHasBeenSet = true;
}
XmlNode requiresIndexDocumentsNode = resultNode.FirstChild("RequiresIndexDocuments");
if(!requiresIndexDocumentsNode.IsNull())
{
m_requiresIndexDocuments = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(requiresIndexDocumentsNode.GetText()).c_str()).c_str());
m_requiresIndexDocumentsHasBeenSet = true;
}
XmlNode processingNode = resultNode.FirstChild("Processing");
if(!processingNode.IsNull())
{
m_processing = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(processingNode.GetText()).c_str()).c_str());
m_processingHasBeenSet = true;
}
XmlNode searchInstanceTypeNode = resultNode.FirstChild("SearchInstanceType");
if(!searchInstanceTypeNode.IsNull())
{
m_searchInstanceType = Aws::Utils::Xml::DecodeEscapedXmlText(searchInstanceTypeNode.GetText());
m_searchInstanceTypeHasBeenSet = true;
}
XmlNode searchPartitionCountNode = resultNode.FirstChild("SearchPartitionCount");
if(!searchPartitionCountNode.IsNull())
{
m_searchPartitionCount = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(searchPartitionCountNode.GetText()).c_str()).c_str());
m_searchPartitionCountHasBeenSet = true;
}
XmlNode searchInstanceCountNode = resultNode.FirstChild("SearchInstanceCount");
if(!searchInstanceCountNode.IsNull())
{
m_searchInstanceCount = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(searchInstanceCountNode.GetText()).c_str()).c_str());
m_searchInstanceCountHasBeenSet = true;
}
XmlNode limitsNode = resultNode.FirstChild("Limits");
if(!limitsNode.IsNull())
{
m_limits = limitsNode;
m_limitsHasBeenSet = true;
}
}
return *this;
}
void DomainStatus::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_domainIdHasBeenSet)
{
oStream << location << index << locationValue << ".DomainId=" << StringUtils::URLEncode(m_domainId.c_str()) << "&";
}
if(m_domainNameHasBeenSet)
{
oStream << location << index << locationValue << ".DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
if(m_aRNHasBeenSet)
{
oStream << location << index << locationValue << ".ARN=" << StringUtils::URLEncode(m_aRN.c_str()) << "&";
}
if(m_createdHasBeenSet)
{
oStream << location << index << locationValue << ".Created=" << std::boolalpha << m_created << "&";
}
if(m_deletedHasBeenSet)
{
oStream << location << index << locationValue << ".Deleted=" << std::boolalpha << m_deleted << "&";
}
if(m_docServiceHasBeenSet)
{
Aws::StringStream docServiceLocationAndMemberSs;
docServiceLocationAndMemberSs << location << index << locationValue << ".DocService";
m_docService.OutputToStream(oStream, docServiceLocationAndMemberSs.str().c_str());
}
if(m_searchServiceHasBeenSet)
{
Aws::StringStream searchServiceLocationAndMemberSs;
searchServiceLocationAndMemberSs << location << index << locationValue << ".SearchService";
m_searchService.OutputToStream(oStream, searchServiceLocationAndMemberSs.str().c_str());
}
if(m_requiresIndexDocumentsHasBeenSet)
{
oStream << location << index << locationValue << ".RequiresIndexDocuments=" << std::boolalpha << m_requiresIndexDocuments << "&";
}
if(m_processingHasBeenSet)
{
oStream << location << index << locationValue << ".Processing=" << std::boolalpha << m_processing << "&";
}
if(m_searchInstanceTypeHasBeenSet)
{
oStream << location << index << locationValue << ".SearchInstanceType=" << StringUtils::URLEncode(m_searchInstanceType.c_str()) << "&";
}
if(m_searchPartitionCountHasBeenSet)
{
oStream << location << index << locationValue << ".SearchPartitionCount=" << m_searchPartitionCount << "&";
}
if(m_searchInstanceCountHasBeenSet)
{
oStream << location << index << locationValue << ".SearchInstanceCount=" << m_searchInstanceCount << "&";
}
if(m_limitsHasBeenSet)
{
Aws::StringStream limitsLocationAndMemberSs;
limitsLocationAndMemberSs << location << index << locationValue << ".Limits";
m_limits.OutputToStream(oStream, limitsLocationAndMemberSs.str().c_str());
}
}
void DomainStatus::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_domainIdHasBeenSet)
{
oStream << location << ".DomainId=" << StringUtils::URLEncode(m_domainId.c_str()) << "&";
}
if(m_domainNameHasBeenSet)
{
oStream << location << ".DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
if(m_aRNHasBeenSet)
{
oStream << location << ".ARN=" << StringUtils::URLEncode(m_aRN.c_str()) << "&";
}
if(m_createdHasBeenSet)
{
oStream << location << ".Created=" << std::boolalpha << m_created << "&";
}
if(m_deletedHasBeenSet)
{
oStream << location << ".Deleted=" << std::boolalpha << m_deleted << "&";
}
if(m_docServiceHasBeenSet)
{
Aws::String docServiceLocationAndMember(location);
docServiceLocationAndMember += ".DocService";
m_docService.OutputToStream(oStream, docServiceLocationAndMember.c_str());
}
if(m_searchServiceHasBeenSet)
{
Aws::String searchServiceLocationAndMember(location);
searchServiceLocationAndMember += ".SearchService";
m_searchService.OutputToStream(oStream, searchServiceLocationAndMember.c_str());
}
if(m_requiresIndexDocumentsHasBeenSet)
{
oStream << location << ".RequiresIndexDocuments=" << std::boolalpha << m_requiresIndexDocuments << "&";
}
if(m_processingHasBeenSet)
{
oStream << location << ".Processing=" << std::boolalpha << m_processing << "&";
}
if(m_searchInstanceTypeHasBeenSet)
{
oStream << location << ".SearchInstanceType=" << StringUtils::URLEncode(m_searchInstanceType.c_str()) << "&";
}
if(m_searchPartitionCountHasBeenSet)
{
oStream << location << ".SearchPartitionCount=" << m_searchPartitionCount << "&";
}
if(m_searchInstanceCountHasBeenSet)
{
oStream << location << ".SearchInstanceCount=" << m_searchInstanceCount << "&";
}
if(m_limitsHasBeenSet)
{
Aws::String limitsLocationAndMember(location);
limitsLocationAndMember += ".Limits";
m_limits.OutputToStream(oStream, limitsLocationAndMember.c_str());
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,146 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DoubleArrayOptions.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 CloudSearch
{
namespace Model
{
DoubleArrayOptions::DoubleArrayOptions() :
m_defaultValue(0.0),
m_defaultValueHasBeenSet(false),
m_sourceFieldsHasBeenSet(false),
m_facetEnabled(false),
m_facetEnabledHasBeenSet(false),
m_searchEnabled(false),
m_searchEnabledHasBeenSet(false),
m_returnEnabled(false),
m_returnEnabledHasBeenSet(false)
{
}
DoubleArrayOptions::DoubleArrayOptions(const XmlNode& xmlNode) :
m_defaultValue(0.0),
m_defaultValueHasBeenSet(false),
m_sourceFieldsHasBeenSet(false),
m_facetEnabled(false),
m_facetEnabledHasBeenSet(false),
m_searchEnabled(false),
m_searchEnabledHasBeenSet(false),
m_returnEnabled(false),
m_returnEnabledHasBeenSet(false)
{
*this = xmlNode;
}
DoubleArrayOptions& DoubleArrayOptions::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode defaultValueNode = resultNode.FirstChild("DefaultValue");
if(!defaultValueNode.IsNull())
{
m_defaultValue = StringUtils::ConvertToDouble(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(defaultValueNode.GetText()).c_str()).c_str());
m_defaultValueHasBeenSet = true;
}
XmlNode sourceFieldsNode = resultNode.FirstChild("SourceFields");
if(!sourceFieldsNode.IsNull())
{
m_sourceFields = Aws::Utils::Xml::DecodeEscapedXmlText(sourceFieldsNode.GetText());
m_sourceFieldsHasBeenSet = true;
}
XmlNode facetEnabledNode = resultNode.FirstChild("FacetEnabled");
if(!facetEnabledNode.IsNull())
{
m_facetEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(facetEnabledNode.GetText()).c_str()).c_str());
m_facetEnabledHasBeenSet = true;
}
XmlNode searchEnabledNode = resultNode.FirstChild("SearchEnabled");
if(!searchEnabledNode.IsNull())
{
m_searchEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(searchEnabledNode.GetText()).c_str()).c_str());
m_searchEnabledHasBeenSet = true;
}
XmlNode returnEnabledNode = resultNode.FirstChild("ReturnEnabled");
if(!returnEnabledNode.IsNull())
{
m_returnEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(returnEnabledNode.GetText()).c_str()).c_str());
m_returnEnabledHasBeenSet = true;
}
}
return *this;
}
void DoubleArrayOptions::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_defaultValueHasBeenSet)
{
oStream << location << index << locationValue << ".DefaultValue=" << StringUtils::URLEncode(m_defaultValue) << "&";
}
if(m_sourceFieldsHasBeenSet)
{
oStream << location << index << locationValue << ".SourceFields=" << StringUtils::URLEncode(m_sourceFields.c_str()) << "&";
}
if(m_facetEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".FacetEnabled=" << std::boolalpha << m_facetEnabled << "&";
}
if(m_searchEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".SearchEnabled=" << std::boolalpha << m_searchEnabled << "&";
}
if(m_returnEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".ReturnEnabled=" << std::boolalpha << m_returnEnabled << "&";
}
}
void DoubleArrayOptions::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_defaultValueHasBeenSet)
{
oStream << location << ".DefaultValue=" << StringUtils::URLEncode(m_defaultValue) << "&";
}
if(m_sourceFieldsHasBeenSet)
{
oStream << location << ".SourceFields=" << StringUtils::URLEncode(m_sourceFields.c_str()) << "&";
}
if(m_facetEnabledHasBeenSet)
{
oStream << location << ".FacetEnabled=" << std::boolalpha << m_facetEnabled << "&";
}
if(m_searchEnabledHasBeenSet)
{
oStream << location << ".SearchEnabled=" << std::boolalpha << m_searchEnabled << "&";
}
if(m_returnEnabledHasBeenSet)
{
oStream << location << ".ReturnEnabled=" << std::boolalpha << m_returnEnabled << "&";
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,165 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/DoubleOptions.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 CloudSearch
{
namespace Model
{
DoubleOptions::DoubleOptions() :
m_defaultValue(0.0),
m_defaultValueHasBeenSet(false),
m_sourceFieldHasBeenSet(false),
m_facetEnabled(false),
m_facetEnabledHasBeenSet(false),
m_searchEnabled(false),
m_searchEnabledHasBeenSet(false),
m_returnEnabled(false),
m_returnEnabledHasBeenSet(false),
m_sortEnabled(false),
m_sortEnabledHasBeenSet(false)
{
}
DoubleOptions::DoubleOptions(const XmlNode& xmlNode) :
m_defaultValue(0.0),
m_defaultValueHasBeenSet(false),
m_sourceFieldHasBeenSet(false),
m_facetEnabled(false),
m_facetEnabledHasBeenSet(false),
m_searchEnabled(false),
m_searchEnabledHasBeenSet(false),
m_returnEnabled(false),
m_returnEnabledHasBeenSet(false),
m_sortEnabled(false),
m_sortEnabledHasBeenSet(false)
{
*this = xmlNode;
}
DoubleOptions& DoubleOptions::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode defaultValueNode = resultNode.FirstChild("DefaultValue");
if(!defaultValueNode.IsNull())
{
m_defaultValue = StringUtils::ConvertToDouble(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(defaultValueNode.GetText()).c_str()).c_str());
m_defaultValueHasBeenSet = true;
}
XmlNode sourceFieldNode = resultNode.FirstChild("SourceField");
if(!sourceFieldNode.IsNull())
{
m_sourceField = Aws::Utils::Xml::DecodeEscapedXmlText(sourceFieldNode.GetText());
m_sourceFieldHasBeenSet = true;
}
XmlNode facetEnabledNode = resultNode.FirstChild("FacetEnabled");
if(!facetEnabledNode.IsNull())
{
m_facetEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(facetEnabledNode.GetText()).c_str()).c_str());
m_facetEnabledHasBeenSet = true;
}
XmlNode searchEnabledNode = resultNode.FirstChild("SearchEnabled");
if(!searchEnabledNode.IsNull())
{
m_searchEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(searchEnabledNode.GetText()).c_str()).c_str());
m_searchEnabledHasBeenSet = true;
}
XmlNode returnEnabledNode = resultNode.FirstChild("ReturnEnabled");
if(!returnEnabledNode.IsNull())
{
m_returnEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(returnEnabledNode.GetText()).c_str()).c_str());
m_returnEnabledHasBeenSet = true;
}
XmlNode sortEnabledNode = resultNode.FirstChild("SortEnabled");
if(!sortEnabledNode.IsNull())
{
m_sortEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(sortEnabledNode.GetText()).c_str()).c_str());
m_sortEnabledHasBeenSet = true;
}
}
return *this;
}
void DoubleOptions::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_defaultValueHasBeenSet)
{
oStream << location << index << locationValue << ".DefaultValue=" << StringUtils::URLEncode(m_defaultValue) << "&";
}
if(m_sourceFieldHasBeenSet)
{
oStream << location << index << locationValue << ".SourceField=" << StringUtils::URLEncode(m_sourceField.c_str()) << "&";
}
if(m_facetEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".FacetEnabled=" << std::boolalpha << m_facetEnabled << "&";
}
if(m_searchEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".SearchEnabled=" << std::boolalpha << m_searchEnabled << "&";
}
if(m_returnEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".ReturnEnabled=" << std::boolalpha << m_returnEnabled << "&";
}
if(m_sortEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".SortEnabled=" << std::boolalpha << m_sortEnabled << "&";
}
}
void DoubleOptions::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_defaultValueHasBeenSet)
{
oStream << location << ".DefaultValue=" << StringUtils::URLEncode(m_defaultValue) << "&";
}
if(m_sourceFieldHasBeenSet)
{
oStream << location << ".SourceField=" << StringUtils::URLEncode(m_sourceField.c_str()) << "&";
}
if(m_facetEnabledHasBeenSet)
{
oStream << location << ".FacetEnabled=" << std::boolalpha << m_facetEnabled << "&";
}
if(m_searchEnabledHasBeenSet)
{
oStream << location << ".SearchEnabled=" << std::boolalpha << m_searchEnabled << "&";
}
if(m_returnEnabledHasBeenSet)
{
oStream << location << ".ReturnEnabled=" << std::boolalpha << m_returnEnabled << "&";
}
if(m_sortEnabledHasBeenSet)
{
oStream << location << ".SortEnabled=" << std::boolalpha << m_sortEnabled << "&";
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,87 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/Expression.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 CloudSearch
{
namespace Model
{
Expression::Expression() :
m_expressionNameHasBeenSet(false),
m_expressionValueHasBeenSet(false)
{
}
Expression::Expression(const XmlNode& xmlNode) :
m_expressionNameHasBeenSet(false),
m_expressionValueHasBeenSet(false)
{
*this = xmlNode;
}
Expression& Expression::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode expressionNameNode = resultNode.FirstChild("ExpressionName");
if(!expressionNameNode.IsNull())
{
m_expressionName = Aws::Utils::Xml::DecodeEscapedXmlText(expressionNameNode.GetText());
m_expressionNameHasBeenSet = true;
}
XmlNode expressionValueNode = resultNode.FirstChild("ExpressionValue");
if(!expressionValueNode.IsNull())
{
m_expressionValue = Aws::Utils::Xml::DecodeEscapedXmlText(expressionValueNode.GetText());
m_expressionValueHasBeenSet = true;
}
}
return *this;
}
void Expression::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_expressionNameHasBeenSet)
{
oStream << location << index << locationValue << ".ExpressionName=" << StringUtils::URLEncode(m_expressionName.c_str()) << "&";
}
if(m_expressionValueHasBeenSet)
{
oStream << location << index << locationValue << ".ExpressionValue=" << StringUtils::URLEncode(m_expressionValue.c_str()) << "&";
}
}
void Expression::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_expressionNameHasBeenSet)
{
oStream << location << ".ExpressionName=" << StringUtils::URLEncode(m_expressionName.c_str()) << "&";
}
if(m_expressionValueHasBeenSet)
{
oStream << location << ".ExpressionValue=" << StringUtils::URLEncode(m_expressionValue.c_str()) << "&";
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,95 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/ExpressionStatus.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 CloudSearch
{
namespace Model
{
ExpressionStatus::ExpressionStatus() :
m_optionsHasBeenSet(false),
m_statusHasBeenSet(false)
{
}
ExpressionStatus::ExpressionStatus(const XmlNode& xmlNode) :
m_optionsHasBeenSet(false),
m_statusHasBeenSet(false)
{
*this = xmlNode;
}
ExpressionStatus& ExpressionStatus::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode optionsNode = resultNode.FirstChild("Options");
if(!optionsNode.IsNull())
{
m_options = optionsNode;
m_optionsHasBeenSet = true;
}
XmlNode statusNode = resultNode.FirstChild("Status");
if(!statusNode.IsNull())
{
m_status = statusNode;
m_statusHasBeenSet = true;
}
}
return *this;
}
void ExpressionStatus::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_optionsHasBeenSet)
{
Aws::StringStream optionsLocationAndMemberSs;
optionsLocationAndMemberSs << location << index << locationValue << ".Options";
m_options.OutputToStream(oStream, optionsLocationAndMemberSs.str().c_str());
}
if(m_statusHasBeenSet)
{
Aws::StringStream statusLocationAndMemberSs;
statusLocationAndMemberSs << location << index << locationValue << ".Status";
m_status.OutputToStream(oStream, statusLocationAndMemberSs.str().c_str());
}
}
void ExpressionStatus::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_optionsHasBeenSet)
{
Aws::String optionsLocationAndMember(location);
optionsLocationAndMember += ".Options";
m_options.OutputToStream(oStream, optionsLocationAndMember.c_str());
}
if(m_statusHasBeenSet)
{
Aws::String statusLocationAndMember(location);
statusLocationAndMember += ".Status";
m_status.OutputToStream(oStream, statusLocationAndMember.c_str());
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,35 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/IndexDocumentsRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::CloudSearch::Model;
using namespace Aws::Utils;
IndexDocumentsRequest::IndexDocumentsRequest() :
m_domainNameHasBeenSet(false)
{
}
Aws::String IndexDocumentsRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=IndexDocuments&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
ss << "Version=2013-01-01";
return ss.str();
}
void IndexDocumentsRequest::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/cloudsearch/model/IndexDocumentsResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
IndexDocumentsResult::IndexDocumentsResult()
{
}
IndexDocumentsResult::IndexDocumentsResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
IndexDocumentsResult& IndexDocumentsResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "IndexDocumentsResult"))
{
resultNode = rootNode.FirstChild("IndexDocumentsResult");
}
if(!resultNode.IsNull())
{
XmlNode fieldNamesNode = resultNode.FirstChild("FieldNames");
if(!fieldNamesNode.IsNull())
{
XmlNode fieldNamesMember = fieldNamesNode.FirstChild("member");
while(!fieldNamesMember.IsNull())
{
m_fieldNames.push_back(fieldNamesMember.GetText());
fieldNamesMember = fieldNamesMember.NextNode("member");
}
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::IndexDocumentsResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

@@ -0,0 +1,320 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/IndexField.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 CloudSearch
{
namespace Model
{
IndexField::IndexField() :
m_indexFieldNameHasBeenSet(false),
m_indexFieldType(IndexFieldType::NOT_SET),
m_indexFieldTypeHasBeenSet(false),
m_intOptionsHasBeenSet(false),
m_doubleOptionsHasBeenSet(false),
m_literalOptionsHasBeenSet(false),
m_textOptionsHasBeenSet(false),
m_dateOptionsHasBeenSet(false),
m_latLonOptionsHasBeenSet(false),
m_intArrayOptionsHasBeenSet(false),
m_doubleArrayOptionsHasBeenSet(false),
m_literalArrayOptionsHasBeenSet(false),
m_textArrayOptionsHasBeenSet(false),
m_dateArrayOptionsHasBeenSet(false)
{
}
IndexField::IndexField(const XmlNode& xmlNode) :
m_indexFieldNameHasBeenSet(false),
m_indexFieldType(IndexFieldType::NOT_SET),
m_indexFieldTypeHasBeenSet(false),
m_intOptionsHasBeenSet(false),
m_doubleOptionsHasBeenSet(false),
m_literalOptionsHasBeenSet(false),
m_textOptionsHasBeenSet(false),
m_dateOptionsHasBeenSet(false),
m_latLonOptionsHasBeenSet(false),
m_intArrayOptionsHasBeenSet(false),
m_doubleArrayOptionsHasBeenSet(false),
m_literalArrayOptionsHasBeenSet(false),
m_textArrayOptionsHasBeenSet(false),
m_dateArrayOptionsHasBeenSet(false)
{
*this = xmlNode;
}
IndexField& IndexField::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode indexFieldNameNode = resultNode.FirstChild("IndexFieldName");
if(!indexFieldNameNode.IsNull())
{
m_indexFieldName = Aws::Utils::Xml::DecodeEscapedXmlText(indexFieldNameNode.GetText());
m_indexFieldNameHasBeenSet = true;
}
XmlNode indexFieldTypeNode = resultNode.FirstChild("IndexFieldType");
if(!indexFieldTypeNode.IsNull())
{
m_indexFieldType = IndexFieldTypeMapper::GetIndexFieldTypeForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(indexFieldTypeNode.GetText()).c_str()).c_str());
m_indexFieldTypeHasBeenSet = true;
}
XmlNode intOptionsNode = resultNode.FirstChild("IntOptions");
if(!intOptionsNode.IsNull())
{
m_intOptions = intOptionsNode;
m_intOptionsHasBeenSet = true;
}
XmlNode doubleOptionsNode = resultNode.FirstChild("DoubleOptions");
if(!doubleOptionsNode.IsNull())
{
m_doubleOptions = doubleOptionsNode;
m_doubleOptionsHasBeenSet = true;
}
XmlNode literalOptionsNode = resultNode.FirstChild("LiteralOptions");
if(!literalOptionsNode.IsNull())
{
m_literalOptions = literalOptionsNode;
m_literalOptionsHasBeenSet = true;
}
XmlNode textOptionsNode = resultNode.FirstChild("TextOptions");
if(!textOptionsNode.IsNull())
{
m_textOptions = textOptionsNode;
m_textOptionsHasBeenSet = true;
}
XmlNode dateOptionsNode = resultNode.FirstChild("DateOptions");
if(!dateOptionsNode.IsNull())
{
m_dateOptions = dateOptionsNode;
m_dateOptionsHasBeenSet = true;
}
XmlNode latLonOptionsNode = resultNode.FirstChild("LatLonOptions");
if(!latLonOptionsNode.IsNull())
{
m_latLonOptions = latLonOptionsNode;
m_latLonOptionsHasBeenSet = true;
}
XmlNode intArrayOptionsNode = resultNode.FirstChild("IntArrayOptions");
if(!intArrayOptionsNode.IsNull())
{
m_intArrayOptions = intArrayOptionsNode;
m_intArrayOptionsHasBeenSet = true;
}
XmlNode doubleArrayOptionsNode = resultNode.FirstChild("DoubleArrayOptions");
if(!doubleArrayOptionsNode.IsNull())
{
m_doubleArrayOptions = doubleArrayOptionsNode;
m_doubleArrayOptionsHasBeenSet = true;
}
XmlNode literalArrayOptionsNode = resultNode.FirstChild("LiteralArrayOptions");
if(!literalArrayOptionsNode.IsNull())
{
m_literalArrayOptions = literalArrayOptionsNode;
m_literalArrayOptionsHasBeenSet = true;
}
XmlNode textArrayOptionsNode = resultNode.FirstChild("TextArrayOptions");
if(!textArrayOptionsNode.IsNull())
{
m_textArrayOptions = textArrayOptionsNode;
m_textArrayOptionsHasBeenSet = true;
}
XmlNode dateArrayOptionsNode = resultNode.FirstChild("DateArrayOptions");
if(!dateArrayOptionsNode.IsNull())
{
m_dateArrayOptions = dateArrayOptionsNode;
m_dateArrayOptionsHasBeenSet = true;
}
}
return *this;
}
void IndexField::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_indexFieldNameHasBeenSet)
{
oStream << location << index << locationValue << ".IndexFieldName=" << StringUtils::URLEncode(m_indexFieldName.c_str()) << "&";
}
if(m_indexFieldTypeHasBeenSet)
{
oStream << location << index << locationValue << ".IndexFieldType=" << IndexFieldTypeMapper::GetNameForIndexFieldType(m_indexFieldType) << "&";
}
if(m_intOptionsHasBeenSet)
{
Aws::StringStream intOptionsLocationAndMemberSs;
intOptionsLocationAndMemberSs << location << index << locationValue << ".IntOptions";
m_intOptions.OutputToStream(oStream, intOptionsLocationAndMemberSs.str().c_str());
}
if(m_doubleOptionsHasBeenSet)
{
Aws::StringStream doubleOptionsLocationAndMemberSs;
doubleOptionsLocationAndMemberSs << location << index << locationValue << ".DoubleOptions";
m_doubleOptions.OutputToStream(oStream, doubleOptionsLocationAndMemberSs.str().c_str());
}
if(m_literalOptionsHasBeenSet)
{
Aws::StringStream literalOptionsLocationAndMemberSs;
literalOptionsLocationAndMemberSs << location << index << locationValue << ".LiteralOptions";
m_literalOptions.OutputToStream(oStream, literalOptionsLocationAndMemberSs.str().c_str());
}
if(m_textOptionsHasBeenSet)
{
Aws::StringStream textOptionsLocationAndMemberSs;
textOptionsLocationAndMemberSs << location << index << locationValue << ".TextOptions";
m_textOptions.OutputToStream(oStream, textOptionsLocationAndMemberSs.str().c_str());
}
if(m_dateOptionsHasBeenSet)
{
Aws::StringStream dateOptionsLocationAndMemberSs;
dateOptionsLocationAndMemberSs << location << index << locationValue << ".DateOptions";
m_dateOptions.OutputToStream(oStream, dateOptionsLocationAndMemberSs.str().c_str());
}
if(m_latLonOptionsHasBeenSet)
{
Aws::StringStream latLonOptionsLocationAndMemberSs;
latLonOptionsLocationAndMemberSs << location << index << locationValue << ".LatLonOptions";
m_latLonOptions.OutputToStream(oStream, latLonOptionsLocationAndMemberSs.str().c_str());
}
if(m_intArrayOptionsHasBeenSet)
{
Aws::StringStream intArrayOptionsLocationAndMemberSs;
intArrayOptionsLocationAndMemberSs << location << index << locationValue << ".IntArrayOptions";
m_intArrayOptions.OutputToStream(oStream, intArrayOptionsLocationAndMemberSs.str().c_str());
}
if(m_doubleArrayOptionsHasBeenSet)
{
Aws::StringStream doubleArrayOptionsLocationAndMemberSs;
doubleArrayOptionsLocationAndMemberSs << location << index << locationValue << ".DoubleArrayOptions";
m_doubleArrayOptions.OutputToStream(oStream, doubleArrayOptionsLocationAndMemberSs.str().c_str());
}
if(m_literalArrayOptionsHasBeenSet)
{
Aws::StringStream literalArrayOptionsLocationAndMemberSs;
literalArrayOptionsLocationAndMemberSs << location << index << locationValue << ".LiteralArrayOptions";
m_literalArrayOptions.OutputToStream(oStream, literalArrayOptionsLocationAndMemberSs.str().c_str());
}
if(m_textArrayOptionsHasBeenSet)
{
Aws::StringStream textArrayOptionsLocationAndMemberSs;
textArrayOptionsLocationAndMemberSs << location << index << locationValue << ".TextArrayOptions";
m_textArrayOptions.OutputToStream(oStream, textArrayOptionsLocationAndMemberSs.str().c_str());
}
if(m_dateArrayOptionsHasBeenSet)
{
Aws::StringStream dateArrayOptionsLocationAndMemberSs;
dateArrayOptionsLocationAndMemberSs << location << index << locationValue << ".DateArrayOptions";
m_dateArrayOptions.OutputToStream(oStream, dateArrayOptionsLocationAndMemberSs.str().c_str());
}
}
void IndexField::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_indexFieldNameHasBeenSet)
{
oStream << location << ".IndexFieldName=" << StringUtils::URLEncode(m_indexFieldName.c_str()) << "&";
}
if(m_indexFieldTypeHasBeenSet)
{
oStream << location << ".IndexFieldType=" << IndexFieldTypeMapper::GetNameForIndexFieldType(m_indexFieldType) << "&";
}
if(m_intOptionsHasBeenSet)
{
Aws::String intOptionsLocationAndMember(location);
intOptionsLocationAndMember += ".IntOptions";
m_intOptions.OutputToStream(oStream, intOptionsLocationAndMember.c_str());
}
if(m_doubleOptionsHasBeenSet)
{
Aws::String doubleOptionsLocationAndMember(location);
doubleOptionsLocationAndMember += ".DoubleOptions";
m_doubleOptions.OutputToStream(oStream, doubleOptionsLocationAndMember.c_str());
}
if(m_literalOptionsHasBeenSet)
{
Aws::String literalOptionsLocationAndMember(location);
literalOptionsLocationAndMember += ".LiteralOptions";
m_literalOptions.OutputToStream(oStream, literalOptionsLocationAndMember.c_str());
}
if(m_textOptionsHasBeenSet)
{
Aws::String textOptionsLocationAndMember(location);
textOptionsLocationAndMember += ".TextOptions";
m_textOptions.OutputToStream(oStream, textOptionsLocationAndMember.c_str());
}
if(m_dateOptionsHasBeenSet)
{
Aws::String dateOptionsLocationAndMember(location);
dateOptionsLocationAndMember += ".DateOptions";
m_dateOptions.OutputToStream(oStream, dateOptionsLocationAndMember.c_str());
}
if(m_latLonOptionsHasBeenSet)
{
Aws::String latLonOptionsLocationAndMember(location);
latLonOptionsLocationAndMember += ".LatLonOptions";
m_latLonOptions.OutputToStream(oStream, latLonOptionsLocationAndMember.c_str());
}
if(m_intArrayOptionsHasBeenSet)
{
Aws::String intArrayOptionsLocationAndMember(location);
intArrayOptionsLocationAndMember += ".IntArrayOptions";
m_intArrayOptions.OutputToStream(oStream, intArrayOptionsLocationAndMember.c_str());
}
if(m_doubleArrayOptionsHasBeenSet)
{
Aws::String doubleArrayOptionsLocationAndMember(location);
doubleArrayOptionsLocationAndMember += ".DoubleArrayOptions";
m_doubleArrayOptions.OutputToStream(oStream, doubleArrayOptionsLocationAndMember.c_str());
}
if(m_literalArrayOptionsHasBeenSet)
{
Aws::String literalArrayOptionsLocationAndMember(location);
literalArrayOptionsLocationAndMember += ".LiteralArrayOptions";
m_literalArrayOptions.OutputToStream(oStream, literalArrayOptionsLocationAndMember.c_str());
}
if(m_textArrayOptionsHasBeenSet)
{
Aws::String textArrayOptionsLocationAndMember(location);
textArrayOptionsLocationAndMember += ".TextArrayOptions";
m_textArrayOptions.OutputToStream(oStream, textArrayOptionsLocationAndMember.c_str());
}
if(m_dateArrayOptionsHasBeenSet)
{
Aws::String dateArrayOptionsLocationAndMember(location);
dateArrayOptionsLocationAndMember += ".DateArrayOptions";
m_dateArrayOptions.OutputToStream(oStream, dateArrayOptionsLocationAndMember.c_str());
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,95 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/IndexFieldStatus.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 CloudSearch
{
namespace Model
{
IndexFieldStatus::IndexFieldStatus() :
m_optionsHasBeenSet(false),
m_statusHasBeenSet(false)
{
}
IndexFieldStatus::IndexFieldStatus(const XmlNode& xmlNode) :
m_optionsHasBeenSet(false),
m_statusHasBeenSet(false)
{
*this = xmlNode;
}
IndexFieldStatus& IndexFieldStatus::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode optionsNode = resultNode.FirstChild("Options");
if(!optionsNode.IsNull())
{
m_options = optionsNode;
m_optionsHasBeenSet = true;
}
XmlNode statusNode = resultNode.FirstChild("Status");
if(!statusNode.IsNull())
{
m_status = statusNode;
m_statusHasBeenSet = true;
}
}
return *this;
}
void IndexFieldStatus::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_optionsHasBeenSet)
{
Aws::StringStream optionsLocationAndMemberSs;
optionsLocationAndMemberSs << location << index << locationValue << ".Options";
m_options.OutputToStream(oStream, optionsLocationAndMemberSs.str().c_str());
}
if(m_statusHasBeenSet)
{
Aws::StringStream statusLocationAndMemberSs;
statusLocationAndMemberSs << location << index << locationValue << ".Status";
m_status.OutputToStream(oStream, statusLocationAndMemberSs.str().c_str());
}
}
void IndexFieldStatus::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_optionsHasBeenSet)
{
Aws::String optionsLocationAndMember(location);
optionsLocationAndMember += ".Options";
m_options.OutputToStream(oStream, optionsLocationAndMember.c_str());
}
if(m_statusHasBeenSet)
{
Aws::String statusLocationAndMember(location);
statusLocationAndMember += ".Status";
m_status.OutputToStream(oStream, statusLocationAndMember.c_str());
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,133 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/IndexFieldType.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace CloudSearch
{
namespace Model
{
namespace IndexFieldTypeMapper
{
static const int int__HASH = HashingUtils::HashString("int");
static const int double__HASH = HashingUtils::HashString("double");
static const int literal_HASH = HashingUtils::HashString("literal");
static const int text_HASH = HashingUtils::HashString("text");
static const int date_HASH = HashingUtils::HashString("date");
static const int latlon_HASH = HashingUtils::HashString("latlon");
static const int int_array_HASH = HashingUtils::HashString("int-array");
static const int double_array_HASH = HashingUtils::HashString("double-array");
static const int literal_array_HASH = HashingUtils::HashString("literal-array");
static const int text_array_HASH = HashingUtils::HashString("text-array");
static const int date_array_HASH = HashingUtils::HashString("date-array");
IndexFieldType GetIndexFieldTypeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == int__HASH)
{
return IndexFieldType::int_;
}
else if (hashCode == double__HASH)
{
return IndexFieldType::double_;
}
else if (hashCode == literal_HASH)
{
return IndexFieldType::literal;
}
else if (hashCode == text_HASH)
{
return IndexFieldType::text;
}
else if (hashCode == date_HASH)
{
return IndexFieldType::date;
}
else if (hashCode == latlon_HASH)
{
return IndexFieldType::latlon;
}
else if (hashCode == int_array_HASH)
{
return IndexFieldType::int_array;
}
else if (hashCode == double_array_HASH)
{
return IndexFieldType::double_array;
}
else if (hashCode == literal_array_HASH)
{
return IndexFieldType::literal_array;
}
else if (hashCode == text_array_HASH)
{
return IndexFieldType::text_array;
}
else if (hashCode == date_array_HASH)
{
return IndexFieldType::date_array;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<IndexFieldType>(hashCode);
}
return IndexFieldType::NOT_SET;
}
Aws::String GetNameForIndexFieldType(IndexFieldType enumValue)
{
switch(enumValue)
{
case IndexFieldType::int_:
return "int";
case IndexFieldType::double_:
return "double";
case IndexFieldType::literal:
return "literal";
case IndexFieldType::text:
return "text";
case IndexFieldType::date:
return "date";
case IndexFieldType::latlon:
return "latlon";
case IndexFieldType::int_array:
return "int-array";
case IndexFieldType::double_array:
return "double-array";
case IndexFieldType::literal_array:
return "literal-array";
case IndexFieldType::text_array:
return "text-array";
case IndexFieldType::date_array:
return "date-array";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace IndexFieldTypeMapper
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,146 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/IntArrayOptions.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 CloudSearch
{
namespace Model
{
IntArrayOptions::IntArrayOptions() :
m_defaultValue(0),
m_defaultValueHasBeenSet(false),
m_sourceFieldsHasBeenSet(false),
m_facetEnabled(false),
m_facetEnabledHasBeenSet(false),
m_searchEnabled(false),
m_searchEnabledHasBeenSet(false),
m_returnEnabled(false),
m_returnEnabledHasBeenSet(false)
{
}
IntArrayOptions::IntArrayOptions(const XmlNode& xmlNode) :
m_defaultValue(0),
m_defaultValueHasBeenSet(false),
m_sourceFieldsHasBeenSet(false),
m_facetEnabled(false),
m_facetEnabledHasBeenSet(false),
m_searchEnabled(false),
m_searchEnabledHasBeenSet(false),
m_returnEnabled(false),
m_returnEnabledHasBeenSet(false)
{
*this = xmlNode;
}
IntArrayOptions& IntArrayOptions::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode defaultValueNode = resultNode.FirstChild("DefaultValue");
if(!defaultValueNode.IsNull())
{
m_defaultValue = StringUtils::ConvertToInt64(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(defaultValueNode.GetText()).c_str()).c_str());
m_defaultValueHasBeenSet = true;
}
XmlNode sourceFieldsNode = resultNode.FirstChild("SourceFields");
if(!sourceFieldsNode.IsNull())
{
m_sourceFields = Aws::Utils::Xml::DecodeEscapedXmlText(sourceFieldsNode.GetText());
m_sourceFieldsHasBeenSet = true;
}
XmlNode facetEnabledNode = resultNode.FirstChild("FacetEnabled");
if(!facetEnabledNode.IsNull())
{
m_facetEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(facetEnabledNode.GetText()).c_str()).c_str());
m_facetEnabledHasBeenSet = true;
}
XmlNode searchEnabledNode = resultNode.FirstChild("SearchEnabled");
if(!searchEnabledNode.IsNull())
{
m_searchEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(searchEnabledNode.GetText()).c_str()).c_str());
m_searchEnabledHasBeenSet = true;
}
XmlNode returnEnabledNode = resultNode.FirstChild("ReturnEnabled");
if(!returnEnabledNode.IsNull())
{
m_returnEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(returnEnabledNode.GetText()).c_str()).c_str());
m_returnEnabledHasBeenSet = true;
}
}
return *this;
}
void IntArrayOptions::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_defaultValueHasBeenSet)
{
oStream << location << index << locationValue << ".DefaultValue=" << m_defaultValue << "&";
}
if(m_sourceFieldsHasBeenSet)
{
oStream << location << index << locationValue << ".SourceFields=" << StringUtils::URLEncode(m_sourceFields.c_str()) << "&";
}
if(m_facetEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".FacetEnabled=" << std::boolalpha << m_facetEnabled << "&";
}
if(m_searchEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".SearchEnabled=" << std::boolalpha << m_searchEnabled << "&";
}
if(m_returnEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".ReturnEnabled=" << std::boolalpha << m_returnEnabled << "&";
}
}
void IntArrayOptions::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_defaultValueHasBeenSet)
{
oStream << location << ".DefaultValue=" << m_defaultValue << "&";
}
if(m_sourceFieldsHasBeenSet)
{
oStream << location << ".SourceFields=" << StringUtils::URLEncode(m_sourceFields.c_str()) << "&";
}
if(m_facetEnabledHasBeenSet)
{
oStream << location << ".FacetEnabled=" << std::boolalpha << m_facetEnabled << "&";
}
if(m_searchEnabledHasBeenSet)
{
oStream << location << ".SearchEnabled=" << std::boolalpha << m_searchEnabled << "&";
}
if(m_returnEnabledHasBeenSet)
{
oStream << location << ".ReturnEnabled=" << std::boolalpha << m_returnEnabled << "&";
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,165 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/IntOptions.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 CloudSearch
{
namespace Model
{
IntOptions::IntOptions() :
m_defaultValue(0),
m_defaultValueHasBeenSet(false),
m_sourceFieldHasBeenSet(false),
m_facetEnabled(false),
m_facetEnabledHasBeenSet(false),
m_searchEnabled(false),
m_searchEnabledHasBeenSet(false),
m_returnEnabled(false),
m_returnEnabledHasBeenSet(false),
m_sortEnabled(false),
m_sortEnabledHasBeenSet(false)
{
}
IntOptions::IntOptions(const XmlNode& xmlNode) :
m_defaultValue(0),
m_defaultValueHasBeenSet(false),
m_sourceFieldHasBeenSet(false),
m_facetEnabled(false),
m_facetEnabledHasBeenSet(false),
m_searchEnabled(false),
m_searchEnabledHasBeenSet(false),
m_returnEnabled(false),
m_returnEnabledHasBeenSet(false),
m_sortEnabled(false),
m_sortEnabledHasBeenSet(false)
{
*this = xmlNode;
}
IntOptions& IntOptions::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode defaultValueNode = resultNode.FirstChild("DefaultValue");
if(!defaultValueNode.IsNull())
{
m_defaultValue = StringUtils::ConvertToInt64(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(defaultValueNode.GetText()).c_str()).c_str());
m_defaultValueHasBeenSet = true;
}
XmlNode sourceFieldNode = resultNode.FirstChild("SourceField");
if(!sourceFieldNode.IsNull())
{
m_sourceField = Aws::Utils::Xml::DecodeEscapedXmlText(sourceFieldNode.GetText());
m_sourceFieldHasBeenSet = true;
}
XmlNode facetEnabledNode = resultNode.FirstChild("FacetEnabled");
if(!facetEnabledNode.IsNull())
{
m_facetEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(facetEnabledNode.GetText()).c_str()).c_str());
m_facetEnabledHasBeenSet = true;
}
XmlNode searchEnabledNode = resultNode.FirstChild("SearchEnabled");
if(!searchEnabledNode.IsNull())
{
m_searchEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(searchEnabledNode.GetText()).c_str()).c_str());
m_searchEnabledHasBeenSet = true;
}
XmlNode returnEnabledNode = resultNode.FirstChild("ReturnEnabled");
if(!returnEnabledNode.IsNull())
{
m_returnEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(returnEnabledNode.GetText()).c_str()).c_str());
m_returnEnabledHasBeenSet = true;
}
XmlNode sortEnabledNode = resultNode.FirstChild("SortEnabled");
if(!sortEnabledNode.IsNull())
{
m_sortEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(sortEnabledNode.GetText()).c_str()).c_str());
m_sortEnabledHasBeenSet = true;
}
}
return *this;
}
void IntOptions::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_defaultValueHasBeenSet)
{
oStream << location << index << locationValue << ".DefaultValue=" << m_defaultValue << "&";
}
if(m_sourceFieldHasBeenSet)
{
oStream << location << index << locationValue << ".SourceField=" << StringUtils::URLEncode(m_sourceField.c_str()) << "&";
}
if(m_facetEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".FacetEnabled=" << std::boolalpha << m_facetEnabled << "&";
}
if(m_searchEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".SearchEnabled=" << std::boolalpha << m_searchEnabled << "&";
}
if(m_returnEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".ReturnEnabled=" << std::boolalpha << m_returnEnabled << "&";
}
if(m_sortEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".SortEnabled=" << std::boolalpha << m_sortEnabled << "&";
}
}
void IntOptions::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_defaultValueHasBeenSet)
{
oStream << location << ".DefaultValue=" << m_defaultValue << "&";
}
if(m_sourceFieldHasBeenSet)
{
oStream << location << ".SourceField=" << StringUtils::URLEncode(m_sourceField.c_str()) << "&";
}
if(m_facetEnabledHasBeenSet)
{
oStream << location << ".FacetEnabled=" << std::boolalpha << m_facetEnabled << "&";
}
if(m_searchEnabledHasBeenSet)
{
oStream << location << ".SearchEnabled=" << std::boolalpha << m_searchEnabled << "&";
}
if(m_returnEnabledHasBeenSet)
{
oStream << location << ".ReturnEnabled=" << std::boolalpha << m_returnEnabled << "&";
}
if(m_sortEnabledHasBeenSet)
{
oStream << location << ".SortEnabled=" << std::boolalpha << m_sortEnabled << "&";
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,163 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/LatLonOptions.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 CloudSearch
{
namespace Model
{
LatLonOptions::LatLonOptions() :
m_defaultValueHasBeenSet(false),
m_sourceFieldHasBeenSet(false),
m_facetEnabled(false),
m_facetEnabledHasBeenSet(false),
m_searchEnabled(false),
m_searchEnabledHasBeenSet(false),
m_returnEnabled(false),
m_returnEnabledHasBeenSet(false),
m_sortEnabled(false),
m_sortEnabledHasBeenSet(false)
{
}
LatLonOptions::LatLonOptions(const XmlNode& xmlNode) :
m_defaultValueHasBeenSet(false),
m_sourceFieldHasBeenSet(false),
m_facetEnabled(false),
m_facetEnabledHasBeenSet(false),
m_searchEnabled(false),
m_searchEnabledHasBeenSet(false),
m_returnEnabled(false),
m_returnEnabledHasBeenSet(false),
m_sortEnabled(false),
m_sortEnabledHasBeenSet(false)
{
*this = xmlNode;
}
LatLonOptions& LatLonOptions::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode defaultValueNode = resultNode.FirstChild("DefaultValue");
if(!defaultValueNode.IsNull())
{
m_defaultValue = Aws::Utils::Xml::DecodeEscapedXmlText(defaultValueNode.GetText());
m_defaultValueHasBeenSet = true;
}
XmlNode sourceFieldNode = resultNode.FirstChild("SourceField");
if(!sourceFieldNode.IsNull())
{
m_sourceField = Aws::Utils::Xml::DecodeEscapedXmlText(sourceFieldNode.GetText());
m_sourceFieldHasBeenSet = true;
}
XmlNode facetEnabledNode = resultNode.FirstChild("FacetEnabled");
if(!facetEnabledNode.IsNull())
{
m_facetEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(facetEnabledNode.GetText()).c_str()).c_str());
m_facetEnabledHasBeenSet = true;
}
XmlNode searchEnabledNode = resultNode.FirstChild("SearchEnabled");
if(!searchEnabledNode.IsNull())
{
m_searchEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(searchEnabledNode.GetText()).c_str()).c_str());
m_searchEnabledHasBeenSet = true;
}
XmlNode returnEnabledNode = resultNode.FirstChild("ReturnEnabled");
if(!returnEnabledNode.IsNull())
{
m_returnEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(returnEnabledNode.GetText()).c_str()).c_str());
m_returnEnabledHasBeenSet = true;
}
XmlNode sortEnabledNode = resultNode.FirstChild("SortEnabled");
if(!sortEnabledNode.IsNull())
{
m_sortEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(sortEnabledNode.GetText()).c_str()).c_str());
m_sortEnabledHasBeenSet = true;
}
}
return *this;
}
void LatLonOptions::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_defaultValueHasBeenSet)
{
oStream << location << index << locationValue << ".DefaultValue=" << StringUtils::URLEncode(m_defaultValue.c_str()) << "&";
}
if(m_sourceFieldHasBeenSet)
{
oStream << location << index << locationValue << ".SourceField=" << StringUtils::URLEncode(m_sourceField.c_str()) << "&";
}
if(m_facetEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".FacetEnabled=" << std::boolalpha << m_facetEnabled << "&";
}
if(m_searchEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".SearchEnabled=" << std::boolalpha << m_searchEnabled << "&";
}
if(m_returnEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".ReturnEnabled=" << std::boolalpha << m_returnEnabled << "&";
}
if(m_sortEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".SortEnabled=" << std::boolalpha << m_sortEnabled << "&";
}
}
void LatLonOptions::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_defaultValueHasBeenSet)
{
oStream << location << ".DefaultValue=" << StringUtils::URLEncode(m_defaultValue.c_str()) << "&";
}
if(m_sourceFieldHasBeenSet)
{
oStream << location << ".SourceField=" << StringUtils::URLEncode(m_sourceField.c_str()) << "&";
}
if(m_facetEnabledHasBeenSet)
{
oStream << location << ".FacetEnabled=" << std::boolalpha << m_facetEnabled << "&";
}
if(m_searchEnabledHasBeenSet)
{
oStream << location << ".SearchEnabled=" << std::boolalpha << m_searchEnabled << "&";
}
if(m_returnEnabledHasBeenSet)
{
oStream << location << ".ReturnEnabled=" << std::boolalpha << m_returnEnabled << "&";
}
if(m_sortEnabledHasBeenSet)
{
oStream << location << ".SortEnabled=" << std::boolalpha << m_sortEnabled << "&";
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,91 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/Limits.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 CloudSearch
{
namespace Model
{
Limits::Limits() :
m_maximumReplicationCount(0),
m_maximumReplicationCountHasBeenSet(false),
m_maximumPartitionCount(0),
m_maximumPartitionCountHasBeenSet(false)
{
}
Limits::Limits(const XmlNode& xmlNode) :
m_maximumReplicationCount(0),
m_maximumReplicationCountHasBeenSet(false),
m_maximumPartitionCount(0),
m_maximumPartitionCountHasBeenSet(false)
{
*this = xmlNode;
}
Limits& Limits::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode maximumReplicationCountNode = resultNode.FirstChild("MaximumReplicationCount");
if(!maximumReplicationCountNode.IsNull())
{
m_maximumReplicationCount = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(maximumReplicationCountNode.GetText()).c_str()).c_str());
m_maximumReplicationCountHasBeenSet = true;
}
XmlNode maximumPartitionCountNode = resultNode.FirstChild("MaximumPartitionCount");
if(!maximumPartitionCountNode.IsNull())
{
m_maximumPartitionCount = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(maximumPartitionCountNode.GetText()).c_str()).c_str());
m_maximumPartitionCountHasBeenSet = true;
}
}
return *this;
}
void Limits::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_maximumReplicationCountHasBeenSet)
{
oStream << location << index << locationValue << ".MaximumReplicationCount=" << m_maximumReplicationCount << "&";
}
if(m_maximumPartitionCountHasBeenSet)
{
oStream << location << index << locationValue << ".MaximumPartitionCount=" << m_maximumPartitionCount << "&";
}
}
void Limits::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_maximumReplicationCountHasBeenSet)
{
oStream << location << ".MaximumReplicationCount=" << m_maximumReplicationCount << "&";
}
if(m_maximumPartitionCountHasBeenSet)
{
oStream << location << ".MaximumPartitionCount=" << m_maximumPartitionCount << "&";
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,29 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/ListDomainNamesRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::CloudSearch::Model;
using namespace Aws::Utils;
ListDomainNamesRequest::ListDomainNamesRequest()
{
}
Aws::String ListDomainNamesRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=ListDomainNames&";
ss << "Version=2013-01-01";
return ss.str();
}
void ListDomainNamesRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}

View File

@@ -0,0 +1,64 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/ListDomainNamesResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
ListDomainNamesResult::ListDomainNamesResult()
{
}
ListDomainNamesResult::ListDomainNamesResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
ListDomainNamesResult& ListDomainNamesResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "ListDomainNamesResult"))
{
resultNode = rootNode.FirstChild("ListDomainNamesResult");
}
if(!resultNode.IsNull())
{
XmlNode domainNamesNode = resultNode.FirstChild("DomainNames");
if(!domainNamesNode.IsNull())
{
XmlNode domainNamesEntry = domainNamesNode.FirstChild("entry");
while(!domainNamesEntry.IsNull())
{
XmlNode keyNode = domainNamesEntry.FirstChild("key");
XmlNode valueNode = domainNamesEntry.FirstChild("value");
m_domainNames[keyNode.GetText()] =
valueNode.GetText();
domainNamesEntry = domainNamesEntry.NextNode("entry");
}
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::ListDomainNamesResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

@@ -0,0 +1,144 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/LiteralArrayOptions.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 CloudSearch
{
namespace Model
{
LiteralArrayOptions::LiteralArrayOptions() :
m_defaultValueHasBeenSet(false),
m_sourceFieldsHasBeenSet(false),
m_facetEnabled(false),
m_facetEnabledHasBeenSet(false),
m_searchEnabled(false),
m_searchEnabledHasBeenSet(false),
m_returnEnabled(false),
m_returnEnabledHasBeenSet(false)
{
}
LiteralArrayOptions::LiteralArrayOptions(const XmlNode& xmlNode) :
m_defaultValueHasBeenSet(false),
m_sourceFieldsHasBeenSet(false),
m_facetEnabled(false),
m_facetEnabledHasBeenSet(false),
m_searchEnabled(false),
m_searchEnabledHasBeenSet(false),
m_returnEnabled(false),
m_returnEnabledHasBeenSet(false)
{
*this = xmlNode;
}
LiteralArrayOptions& LiteralArrayOptions::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode defaultValueNode = resultNode.FirstChild("DefaultValue");
if(!defaultValueNode.IsNull())
{
m_defaultValue = Aws::Utils::Xml::DecodeEscapedXmlText(defaultValueNode.GetText());
m_defaultValueHasBeenSet = true;
}
XmlNode sourceFieldsNode = resultNode.FirstChild("SourceFields");
if(!sourceFieldsNode.IsNull())
{
m_sourceFields = Aws::Utils::Xml::DecodeEscapedXmlText(sourceFieldsNode.GetText());
m_sourceFieldsHasBeenSet = true;
}
XmlNode facetEnabledNode = resultNode.FirstChild("FacetEnabled");
if(!facetEnabledNode.IsNull())
{
m_facetEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(facetEnabledNode.GetText()).c_str()).c_str());
m_facetEnabledHasBeenSet = true;
}
XmlNode searchEnabledNode = resultNode.FirstChild("SearchEnabled");
if(!searchEnabledNode.IsNull())
{
m_searchEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(searchEnabledNode.GetText()).c_str()).c_str());
m_searchEnabledHasBeenSet = true;
}
XmlNode returnEnabledNode = resultNode.FirstChild("ReturnEnabled");
if(!returnEnabledNode.IsNull())
{
m_returnEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(returnEnabledNode.GetText()).c_str()).c_str());
m_returnEnabledHasBeenSet = true;
}
}
return *this;
}
void LiteralArrayOptions::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_defaultValueHasBeenSet)
{
oStream << location << index << locationValue << ".DefaultValue=" << StringUtils::URLEncode(m_defaultValue.c_str()) << "&";
}
if(m_sourceFieldsHasBeenSet)
{
oStream << location << index << locationValue << ".SourceFields=" << StringUtils::URLEncode(m_sourceFields.c_str()) << "&";
}
if(m_facetEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".FacetEnabled=" << std::boolalpha << m_facetEnabled << "&";
}
if(m_searchEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".SearchEnabled=" << std::boolalpha << m_searchEnabled << "&";
}
if(m_returnEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".ReturnEnabled=" << std::boolalpha << m_returnEnabled << "&";
}
}
void LiteralArrayOptions::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_defaultValueHasBeenSet)
{
oStream << location << ".DefaultValue=" << StringUtils::URLEncode(m_defaultValue.c_str()) << "&";
}
if(m_sourceFieldsHasBeenSet)
{
oStream << location << ".SourceFields=" << StringUtils::URLEncode(m_sourceFields.c_str()) << "&";
}
if(m_facetEnabledHasBeenSet)
{
oStream << location << ".FacetEnabled=" << std::boolalpha << m_facetEnabled << "&";
}
if(m_searchEnabledHasBeenSet)
{
oStream << location << ".SearchEnabled=" << std::boolalpha << m_searchEnabled << "&";
}
if(m_returnEnabledHasBeenSet)
{
oStream << location << ".ReturnEnabled=" << std::boolalpha << m_returnEnabled << "&";
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,163 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/LiteralOptions.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 CloudSearch
{
namespace Model
{
LiteralOptions::LiteralOptions() :
m_defaultValueHasBeenSet(false),
m_sourceFieldHasBeenSet(false),
m_facetEnabled(false),
m_facetEnabledHasBeenSet(false),
m_searchEnabled(false),
m_searchEnabledHasBeenSet(false),
m_returnEnabled(false),
m_returnEnabledHasBeenSet(false),
m_sortEnabled(false),
m_sortEnabledHasBeenSet(false)
{
}
LiteralOptions::LiteralOptions(const XmlNode& xmlNode) :
m_defaultValueHasBeenSet(false),
m_sourceFieldHasBeenSet(false),
m_facetEnabled(false),
m_facetEnabledHasBeenSet(false),
m_searchEnabled(false),
m_searchEnabledHasBeenSet(false),
m_returnEnabled(false),
m_returnEnabledHasBeenSet(false),
m_sortEnabled(false),
m_sortEnabledHasBeenSet(false)
{
*this = xmlNode;
}
LiteralOptions& LiteralOptions::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode defaultValueNode = resultNode.FirstChild("DefaultValue");
if(!defaultValueNode.IsNull())
{
m_defaultValue = Aws::Utils::Xml::DecodeEscapedXmlText(defaultValueNode.GetText());
m_defaultValueHasBeenSet = true;
}
XmlNode sourceFieldNode = resultNode.FirstChild("SourceField");
if(!sourceFieldNode.IsNull())
{
m_sourceField = Aws::Utils::Xml::DecodeEscapedXmlText(sourceFieldNode.GetText());
m_sourceFieldHasBeenSet = true;
}
XmlNode facetEnabledNode = resultNode.FirstChild("FacetEnabled");
if(!facetEnabledNode.IsNull())
{
m_facetEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(facetEnabledNode.GetText()).c_str()).c_str());
m_facetEnabledHasBeenSet = true;
}
XmlNode searchEnabledNode = resultNode.FirstChild("SearchEnabled");
if(!searchEnabledNode.IsNull())
{
m_searchEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(searchEnabledNode.GetText()).c_str()).c_str());
m_searchEnabledHasBeenSet = true;
}
XmlNode returnEnabledNode = resultNode.FirstChild("ReturnEnabled");
if(!returnEnabledNode.IsNull())
{
m_returnEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(returnEnabledNode.GetText()).c_str()).c_str());
m_returnEnabledHasBeenSet = true;
}
XmlNode sortEnabledNode = resultNode.FirstChild("SortEnabled");
if(!sortEnabledNode.IsNull())
{
m_sortEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(sortEnabledNode.GetText()).c_str()).c_str());
m_sortEnabledHasBeenSet = true;
}
}
return *this;
}
void LiteralOptions::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_defaultValueHasBeenSet)
{
oStream << location << index << locationValue << ".DefaultValue=" << StringUtils::URLEncode(m_defaultValue.c_str()) << "&";
}
if(m_sourceFieldHasBeenSet)
{
oStream << location << index << locationValue << ".SourceField=" << StringUtils::URLEncode(m_sourceField.c_str()) << "&";
}
if(m_facetEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".FacetEnabled=" << std::boolalpha << m_facetEnabled << "&";
}
if(m_searchEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".SearchEnabled=" << std::boolalpha << m_searchEnabled << "&";
}
if(m_returnEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".ReturnEnabled=" << std::boolalpha << m_returnEnabled << "&";
}
if(m_sortEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".SortEnabled=" << std::boolalpha << m_sortEnabled << "&";
}
}
void LiteralOptions::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_defaultValueHasBeenSet)
{
oStream << location << ".DefaultValue=" << StringUtils::URLEncode(m_defaultValue.c_str()) << "&";
}
if(m_sourceFieldHasBeenSet)
{
oStream << location << ".SourceField=" << StringUtils::URLEncode(m_sourceField.c_str()) << "&";
}
if(m_facetEnabledHasBeenSet)
{
oStream << location << ".FacetEnabled=" << std::boolalpha << m_facetEnabled << "&";
}
if(m_searchEnabledHasBeenSet)
{
oStream << location << ".SearchEnabled=" << std::boolalpha << m_searchEnabled << "&";
}
if(m_returnEnabledHasBeenSet)
{
oStream << location << ".ReturnEnabled=" << std::boolalpha << m_returnEnabled << "&";
}
if(m_sortEnabledHasBeenSet)
{
oStream << location << ".SortEnabled=" << std::boolalpha << m_sortEnabled << "&";
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,84 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/OptionState.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace CloudSearch
{
namespace Model
{
namespace OptionStateMapper
{
static const int RequiresIndexDocuments_HASH = HashingUtils::HashString("RequiresIndexDocuments");
static const int Processing_HASH = HashingUtils::HashString("Processing");
static const int Active_HASH = HashingUtils::HashString("Active");
static const int FailedToValidate_HASH = HashingUtils::HashString("FailedToValidate");
OptionState GetOptionStateForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == RequiresIndexDocuments_HASH)
{
return OptionState::RequiresIndexDocuments;
}
else if (hashCode == Processing_HASH)
{
return OptionState::Processing;
}
else if (hashCode == Active_HASH)
{
return OptionState::Active;
}
else if (hashCode == FailedToValidate_HASH)
{
return OptionState::FailedToValidate;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<OptionState>(hashCode);
}
return OptionState::NOT_SET;
}
Aws::String GetNameForOptionState(OptionState enumValue)
{
switch(enumValue)
{
case OptionState::RequiresIndexDocuments:
return "RequiresIndexDocuments";
case OptionState::Processing:
return "Processing";
case OptionState::Active:
return "Active";
case OptionState::FailedToValidate:
return "FailedToValidate";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace OptionStateMapper
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,144 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/OptionStatus.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 CloudSearch
{
namespace Model
{
OptionStatus::OptionStatus() :
m_creationDateHasBeenSet(false),
m_updateDateHasBeenSet(false),
m_updateVersion(0),
m_updateVersionHasBeenSet(false),
m_state(OptionState::NOT_SET),
m_stateHasBeenSet(false),
m_pendingDeletion(false),
m_pendingDeletionHasBeenSet(false)
{
}
OptionStatus::OptionStatus(const XmlNode& xmlNode) :
m_creationDateHasBeenSet(false),
m_updateDateHasBeenSet(false),
m_updateVersion(0),
m_updateVersionHasBeenSet(false),
m_state(OptionState::NOT_SET),
m_stateHasBeenSet(false),
m_pendingDeletion(false),
m_pendingDeletionHasBeenSet(false)
{
*this = xmlNode;
}
OptionStatus& OptionStatus::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode creationDateNode = resultNode.FirstChild("CreationDate");
if(!creationDateNode.IsNull())
{
m_creationDate = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(creationDateNode.GetText()).c_str()).c_str(), DateFormat::ISO_8601);
m_creationDateHasBeenSet = true;
}
XmlNode updateDateNode = resultNode.FirstChild("UpdateDate");
if(!updateDateNode.IsNull())
{
m_updateDate = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(updateDateNode.GetText()).c_str()).c_str(), DateFormat::ISO_8601);
m_updateDateHasBeenSet = true;
}
XmlNode updateVersionNode = resultNode.FirstChild("UpdateVersion");
if(!updateVersionNode.IsNull())
{
m_updateVersion = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(updateVersionNode.GetText()).c_str()).c_str());
m_updateVersionHasBeenSet = true;
}
XmlNode stateNode = resultNode.FirstChild("State");
if(!stateNode.IsNull())
{
m_state = OptionStateMapper::GetOptionStateForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(stateNode.GetText()).c_str()).c_str());
m_stateHasBeenSet = true;
}
XmlNode pendingDeletionNode = resultNode.FirstChild("PendingDeletion");
if(!pendingDeletionNode.IsNull())
{
m_pendingDeletion = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(pendingDeletionNode.GetText()).c_str()).c_str());
m_pendingDeletionHasBeenSet = true;
}
}
return *this;
}
void OptionStatus::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_creationDateHasBeenSet)
{
oStream << location << index << locationValue << ".CreationDate=" << StringUtils::URLEncode(m_creationDate.ToGmtString(DateFormat::ISO_8601).c_str()) << "&";
}
if(m_updateDateHasBeenSet)
{
oStream << location << index << locationValue << ".UpdateDate=" << StringUtils::URLEncode(m_updateDate.ToGmtString(DateFormat::ISO_8601).c_str()) << "&";
}
if(m_updateVersionHasBeenSet)
{
oStream << location << index << locationValue << ".UpdateVersion=" << m_updateVersion << "&";
}
if(m_stateHasBeenSet)
{
oStream << location << index << locationValue << ".State=" << OptionStateMapper::GetNameForOptionState(m_state) << "&";
}
if(m_pendingDeletionHasBeenSet)
{
oStream << location << index << locationValue << ".PendingDeletion=" << std::boolalpha << m_pendingDeletion << "&";
}
}
void OptionStatus::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_creationDateHasBeenSet)
{
oStream << location << ".CreationDate=" << StringUtils::URLEncode(m_creationDate.ToGmtString(DateFormat::ISO_8601).c_str()) << "&";
}
if(m_updateDateHasBeenSet)
{
oStream << location << ".UpdateDate=" << StringUtils::URLEncode(m_updateDate.ToGmtString(DateFormat::ISO_8601).c_str()) << "&";
}
if(m_updateVersionHasBeenSet)
{
oStream << location << ".UpdateVersion=" << m_updateVersion << "&";
}
if(m_stateHasBeenSet)
{
oStream << location << ".State=" << OptionStateMapper::GetNameForOptionState(m_state) << "&";
}
if(m_pendingDeletionHasBeenSet)
{
oStream << location << ".PendingDeletion=" << std::boolalpha << m_pendingDeletion << "&";
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,112 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/PartitionInstanceType.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace CloudSearch
{
namespace Model
{
namespace PartitionInstanceTypeMapper
{
static const int search_m1_small_HASH = HashingUtils::HashString("search.m1.small");
static const int search_m1_large_HASH = HashingUtils::HashString("search.m1.large");
static const int search_m2_xlarge_HASH = HashingUtils::HashString("search.m2.xlarge");
static const int search_m2_2xlarge_HASH = HashingUtils::HashString("search.m2.2xlarge");
static const int search_m3_medium_HASH = HashingUtils::HashString("search.m3.medium");
static const int search_m3_large_HASH = HashingUtils::HashString("search.m3.large");
static const int search_m3_xlarge_HASH = HashingUtils::HashString("search.m3.xlarge");
static const int search_m3_2xlarge_HASH = HashingUtils::HashString("search.m3.2xlarge");
PartitionInstanceType GetPartitionInstanceTypeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == search_m1_small_HASH)
{
return PartitionInstanceType::search_m1_small;
}
else if (hashCode == search_m1_large_HASH)
{
return PartitionInstanceType::search_m1_large;
}
else if (hashCode == search_m2_xlarge_HASH)
{
return PartitionInstanceType::search_m2_xlarge;
}
else if (hashCode == search_m2_2xlarge_HASH)
{
return PartitionInstanceType::search_m2_2xlarge;
}
else if (hashCode == search_m3_medium_HASH)
{
return PartitionInstanceType::search_m3_medium;
}
else if (hashCode == search_m3_large_HASH)
{
return PartitionInstanceType::search_m3_large;
}
else if (hashCode == search_m3_xlarge_HASH)
{
return PartitionInstanceType::search_m3_xlarge;
}
else if (hashCode == search_m3_2xlarge_HASH)
{
return PartitionInstanceType::search_m3_2xlarge;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<PartitionInstanceType>(hashCode);
}
return PartitionInstanceType::NOT_SET;
}
Aws::String GetNameForPartitionInstanceType(PartitionInstanceType enumValue)
{
switch(enumValue)
{
case PartitionInstanceType::search_m1_small:
return "search.m1.small";
case PartitionInstanceType::search_m1_large:
return "search.m1.large";
case PartitionInstanceType::search_m2_xlarge:
return "search.m2.xlarge";
case PartitionInstanceType::search_m2_2xlarge:
return "search.m2.2xlarge";
case PartitionInstanceType::search_m3_medium:
return "search.m3.medium";
case PartitionInstanceType::search_m3_large:
return "search.m3.large";
case PartitionInstanceType::search_m3_xlarge:
return "search.m3.xlarge";
case PartitionInstanceType::search_m3_2xlarge:
return "search.m3.2xlarge";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace PartitionInstanceTypeMapper
} // namespace Model
} // namespace CloudSearch
} // 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/cloudsearch/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 CloudSearch
{
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 CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,110 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/ScalingParameters.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 CloudSearch
{
namespace Model
{
ScalingParameters::ScalingParameters() :
m_desiredInstanceType(PartitionInstanceType::NOT_SET),
m_desiredInstanceTypeHasBeenSet(false),
m_desiredReplicationCount(0),
m_desiredReplicationCountHasBeenSet(false),
m_desiredPartitionCount(0),
m_desiredPartitionCountHasBeenSet(false)
{
}
ScalingParameters::ScalingParameters(const XmlNode& xmlNode) :
m_desiredInstanceType(PartitionInstanceType::NOT_SET),
m_desiredInstanceTypeHasBeenSet(false),
m_desiredReplicationCount(0),
m_desiredReplicationCountHasBeenSet(false),
m_desiredPartitionCount(0),
m_desiredPartitionCountHasBeenSet(false)
{
*this = xmlNode;
}
ScalingParameters& ScalingParameters::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode desiredInstanceTypeNode = resultNode.FirstChild("DesiredInstanceType");
if(!desiredInstanceTypeNode.IsNull())
{
m_desiredInstanceType = PartitionInstanceTypeMapper::GetPartitionInstanceTypeForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(desiredInstanceTypeNode.GetText()).c_str()).c_str());
m_desiredInstanceTypeHasBeenSet = true;
}
XmlNode desiredReplicationCountNode = resultNode.FirstChild("DesiredReplicationCount");
if(!desiredReplicationCountNode.IsNull())
{
m_desiredReplicationCount = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(desiredReplicationCountNode.GetText()).c_str()).c_str());
m_desiredReplicationCountHasBeenSet = true;
}
XmlNode desiredPartitionCountNode = resultNode.FirstChild("DesiredPartitionCount");
if(!desiredPartitionCountNode.IsNull())
{
m_desiredPartitionCount = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(desiredPartitionCountNode.GetText()).c_str()).c_str());
m_desiredPartitionCountHasBeenSet = true;
}
}
return *this;
}
void ScalingParameters::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_desiredInstanceTypeHasBeenSet)
{
oStream << location << index << locationValue << ".DesiredInstanceType=" << PartitionInstanceTypeMapper::GetNameForPartitionInstanceType(m_desiredInstanceType) << "&";
}
if(m_desiredReplicationCountHasBeenSet)
{
oStream << location << index << locationValue << ".DesiredReplicationCount=" << m_desiredReplicationCount << "&";
}
if(m_desiredPartitionCountHasBeenSet)
{
oStream << location << index << locationValue << ".DesiredPartitionCount=" << m_desiredPartitionCount << "&";
}
}
void ScalingParameters::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_desiredInstanceTypeHasBeenSet)
{
oStream << location << ".DesiredInstanceType=" << PartitionInstanceTypeMapper::GetNameForPartitionInstanceType(m_desiredInstanceType) << "&";
}
if(m_desiredReplicationCountHasBeenSet)
{
oStream << location << ".DesiredReplicationCount=" << m_desiredReplicationCount << "&";
}
if(m_desiredPartitionCountHasBeenSet)
{
oStream << location << ".DesiredPartitionCount=" << m_desiredPartitionCount << "&";
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,95 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/ScalingParametersStatus.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 CloudSearch
{
namespace Model
{
ScalingParametersStatus::ScalingParametersStatus() :
m_optionsHasBeenSet(false),
m_statusHasBeenSet(false)
{
}
ScalingParametersStatus::ScalingParametersStatus(const XmlNode& xmlNode) :
m_optionsHasBeenSet(false),
m_statusHasBeenSet(false)
{
*this = xmlNode;
}
ScalingParametersStatus& ScalingParametersStatus::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode optionsNode = resultNode.FirstChild("Options");
if(!optionsNode.IsNull())
{
m_options = optionsNode;
m_optionsHasBeenSet = true;
}
XmlNode statusNode = resultNode.FirstChild("Status");
if(!statusNode.IsNull())
{
m_status = statusNode;
m_statusHasBeenSet = true;
}
}
return *this;
}
void ScalingParametersStatus::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_optionsHasBeenSet)
{
Aws::StringStream optionsLocationAndMemberSs;
optionsLocationAndMemberSs << location << index << locationValue << ".Options";
m_options.OutputToStream(oStream, optionsLocationAndMemberSs.str().c_str());
}
if(m_statusHasBeenSet)
{
Aws::StringStream statusLocationAndMemberSs;
statusLocationAndMemberSs << location << index << locationValue << ".Status";
m_status.OutputToStream(oStream, statusLocationAndMemberSs.str().c_str());
}
}
void ScalingParametersStatus::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_optionsHasBeenSet)
{
Aws::String optionsLocationAndMember(location);
optionsLocationAndMember += ".Options";
m_options.OutputToStream(oStream, optionsLocationAndMember.c_str());
}
if(m_statusHasBeenSet)
{
Aws::String statusLocationAndMember(location);
statusLocationAndMember += ".Status";
m_status.OutputToStream(oStream, statusLocationAndMember.c_str());
}
}
} // namespace Model
} // namespace CloudSearch
} // 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/cloudsearch/model/ServiceEndpoint.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 CloudSearch
{
namespace Model
{
ServiceEndpoint::ServiceEndpoint() :
m_endpointHasBeenSet(false)
{
}
ServiceEndpoint::ServiceEndpoint(const XmlNode& xmlNode) :
m_endpointHasBeenSet(false)
{
*this = xmlNode;
}
ServiceEndpoint& ServiceEndpoint::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode endpointNode = resultNode.FirstChild("Endpoint");
if(!endpointNode.IsNull())
{
m_endpoint = Aws::Utils::Xml::DecodeEscapedXmlText(endpointNode.GetText());
m_endpointHasBeenSet = true;
}
}
return *this;
}
void ServiceEndpoint::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_endpointHasBeenSet)
{
oStream << location << index << locationValue << ".Endpoint=" << StringUtils::URLEncode(m_endpoint.c_str()) << "&";
}
}
void ServiceEndpoint::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_endpointHasBeenSet)
{
oStream << location << ".Endpoint=" << StringUtils::URLEncode(m_endpoint.c_str()) << "&";
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,91 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/Suggester.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 CloudSearch
{
namespace Model
{
Suggester::Suggester() :
m_suggesterNameHasBeenSet(false),
m_documentSuggesterOptionsHasBeenSet(false)
{
}
Suggester::Suggester(const XmlNode& xmlNode) :
m_suggesterNameHasBeenSet(false),
m_documentSuggesterOptionsHasBeenSet(false)
{
*this = xmlNode;
}
Suggester& Suggester::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode suggesterNameNode = resultNode.FirstChild("SuggesterName");
if(!suggesterNameNode.IsNull())
{
m_suggesterName = Aws::Utils::Xml::DecodeEscapedXmlText(suggesterNameNode.GetText());
m_suggesterNameHasBeenSet = true;
}
XmlNode documentSuggesterOptionsNode = resultNode.FirstChild("DocumentSuggesterOptions");
if(!documentSuggesterOptionsNode.IsNull())
{
m_documentSuggesterOptions = documentSuggesterOptionsNode;
m_documentSuggesterOptionsHasBeenSet = true;
}
}
return *this;
}
void Suggester::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_suggesterNameHasBeenSet)
{
oStream << location << index << locationValue << ".SuggesterName=" << StringUtils::URLEncode(m_suggesterName.c_str()) << "&";
}
if(m_documentSuggesterOptionsHasBeenSet)
{
Aws::StringStream documentSuggesterOptionsLocationAndMemberSs;
documentSuggesterOptionsLocationAndMemberSs << location << index << locationValue << ".DocumentSuggesterOptions";
m_documentSuggesterOptions.OutputToStream(oStream, documentSuggesterOptionsLocationAndMemberSs.str().c_str());
}
}
void Suggester::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_suggesterNameHasBeenSet)
{
oStream << location << ".SuggesterName=" << StringUtils::URLEncode(m_suggesterName.c_str()) << "&";
}
if(m_documentSuggesterOptionsHasBeenSet)
{
Aws::String documentSuggesterOptionsLocationAndMember(location);
documentSuggesterOptionsLocationAndMember += ".DocumentSuggesterOptions";
m_documentSuggesterOptions.OutputToStream(oStream, documentSuggesterOptionsLocationAndMember.c_str());
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/SuggesterFuzzyMatching.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace CloudSearch
{
namespace Model
{
namespace SuggesterFuzzyMatchingMapper
{
static const int none_HASH = HashingUtils::HashString("none");
static const int low_HASH = HashingUtils::HashString("low");
static const int high_HASH = HashingUtils::HashString("high");
SuggesterFuzzyMatching GetSuggesterFuzzyMatchingForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == none_HASH)
{
return SuggesterFuzzyMatching::none;
}
else if (hashCode == low_HASH)
{
return SuggesterFuzzyMatching::low;
}
else if (hashCode == high_HASH)
{
return SuggesterFuzzyMatching::high;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<SuggesterFuzzyMatching>(hashCode);
}
return SuggesterFuzzyMatching::NOT_SET;
}
Aws::String GetNameForSuggesterFuzzyMatching(SuggesterFuzzyMatching enumValue)
{
switch(enumValue)
{
case SuggesterFuzzyMatching::none:
return "none";
case SuggesterFuzzyMatching::low:
return "low";
case SuggesterFuzzyMatching::high:
return "high";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace SuggesterFuzzyMatchingMapper
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,95 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/SuggesterStatus.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 CloudSearch
{
namespace Model
{
SuggesterStatus::SuggesterStatus() :
m_optionsHasBeenSet(false),
m_statusHasBeenSet(false)
{
}
SuggesterStatus::SuggesterStatus(const XmlNode& xmlNode) :
m_optionsHasBeenSet(false),
m_statusHasBeenSet(false)
{
*this = xmlNode;
}
SuggesterStatus& SuggesterStatus::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode optionsNode = resultNode.FirstChild("Options");
if(!optionsNode.IsNull())
{
m_options = optionsNode;
m_optionsHasBeenSet = true;
}
XmlNode statusNode = resultNode.FirstChild("Status");
if(!statusNode.IsNull())
{
m_status = statusNode;
m_statusHasBeenSet = true;
}
}
return *this;
}
void SuggesterStatus::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_optionsHasBeenSet)
{
Aws::StringStream optionsLocationAndMemberSs;
optionsLocationAndMemberSs << location << index << locationValue << ".Options";
m_options.OutputToStream(oStream, optionsLocationAndMemberSs.str().c_str());
}
if(m_statusHasBeenSet)
{
Aws::StringStream statusLocationAndMemberSs;
statusLocationAndMemberSs << location << index << locationValue << ".Status";
m_status.OutputToStream(oStream, statusLocationAndMemberSs.str().c_str());
}
}
void SuggesterStatus::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_optionsHasBeenSet)
{
Aws::String optionsLocationAndMember(location);
optionsLocationAndMember += ".Options";
m_options.OutputToStream(oStream, optionsLocationAndMember.c_str());
}
if(m_statusHasBeenSet)
{
Aws::String statusLocationAndMember(location);
statusLocationAndMember += ".Status";
m_status.OutputToStream(oStream, statusLocationAndMember.c_str());
}
}
} // namespace Model
} // namespace CloudSearch
} // 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/cloudsearch/model/TLSSecurityPolicy.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace CloudSearch
{
namespace Model
{
namespace TLSSecurityPolicyMapper
{
static const int Policy_Min_TLS_1_0_2019_07_HASH = HashingUtils::HashString("Policy-Min-TLS-1-0-2019-07");
static const int Policy_Min_TLS_1_2_2019_07_HASH = HashingUtils::HashString("Policy-Min-TLS-1-2-2019-07");
TLSSecurityPolicy GetTLSSecurityPolicyForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == Policy_Min_TLS_1_0_2019_07_HASH)
{
return TLSSecurityPolicy::Policy_Min_TLS_1_0_2019_07;
}
else if (hashCode == Policy_Min_TLS_1_2_2019_07_HASH)
{
return TLSSecurityPolicy::Policy_Min_TLS_1_2_2019_07;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<TLSSecurityPolicy>(hashCode);
}
return TLSSecurityPolicy::NOT_SET;
}
Aws::String GetNameForTLSSecurityPolicy(TLSSecurityPolicy enumValue)
{
switch(enumValue)
{
case TLSSecurityPolicy::Policy_Min_TLS_1_0_2019_07:
return "Policy-Min-TLS-1-0-2019-07";
case TLSSecurityPolicy::Policy_Min_TLS_1_2_2019_07:
return "Policy-Min-TLS-1-2-2019-07";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace TLSSecurityPolicyMapper
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,142 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/TextArrayOptions.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 CloudSearch
{
namespace Model
{
TextArrayOptions::TextArrayOptions() :
m_defaultValueHasBeenSet(false),
m_sourceFieldsHasBeenSet(false),
m_returnEnabled(false),
m_returnEnabledHasBeenSet(false),
m_highlightEnabled(false),
m_highlightEnabledHasBeenSet(false),
m_analysisSchemeHasBeenSet(false)
{
}
TextArrayOptions::TextArrayOptions(const XmlNode& xmlNode) :
m_defaultValueHasBeenSet(false),
m_sourceFieldsHasBeenSet(false),
m_returnEnabled(false),
m_returnEnabledHasBeenSet(false),
m_highlightEnabled(false),
m_highlightEnabledHasBeenSet(false),
m_analysisSchemeHasBeenSet(false)
{
*this = xmlNode;
}
TextArrayOptions& TextArrayOptions::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode defaultValueNode = resultNode.FirstChild("DefaultValue");
if(!defaultValueNode.IsNull())
{
m_defaultValue = Aws::Utils::Xml::DecodeEscapedXmlText(defaultValueNode.GetText());
m_defaultValueHasBeenSet = true;
}
XmlNode sourceFieldsNode = resultNode.FirstChild("SourceFields");
if(!sourceFieldsNode.IsNull())
{
m_sourceFields = Aws::Utils::Xml::DecodeEscapedXmlText(sourceFieldsNode.GetText());
m_sourceFieldsHasBeenSet = true;
}
XmlNode returnEnabledNode = resultNode.FirstChild("ReturnEnabled");
if(!returnEnabledNode.IsNull())
{
m_returnEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(returnEnabledNode.GetText()).c_str()).c_str());
m_returnEnabledHasBeenSet = true;
}
XmlNode highlightEnabledNode = resultNode.FirstChild("HighlightEnabled");
if(!highlightEnabledNode.IsNull())
{
m_highlightEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(highlightEnabledNode.GetText()).c_str()).c_str());
m_highlightEnabledHasBeenSet = true;
}
XmlNode analysisSchemeNode = resultNode.FirstChild("AnalysisScheme");
if(!analysisSchemeNode.IsNull())
{
m_analysisScheme = Aws::Utils::Xml::DecodeEscapedXmlText(analysisSchemeNode.GetText());
m_analysisSchemeHasBeenSet = true;
}
}
return *this;
}
void TextArrayOptions::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_defaultValueHasBeenSet)
{
oStream << location << index << locationValue << ".DefaultValue=" << StringUtils::URLEncode(m_defaultValue.c_str()) << "&";
}
if(m_sourceFieldsHasBeenSet)
{
oStream << location << index << locationValue << ".SourceFields=" << StringUtils::URLEncode(m_sourceFields.c_str()) << "&";
}
if(m_returnEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".ReturnEnabled=" << std::boolalpha << m_returnEnabled << "&";
}
if(m_highlightEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".HighlightEnabled=" << std::boolalpha << m_highlightEnabled << "&";
}
if(m_analysisSchemeHasBeenSet)
{
oStream << location << index << locationValue << ".AnalysisScheme=" << StringUtils::URLEncode(m_analysisScheme.c_str()) << "&";
}
}
void TextArrayOptions::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_defaultValueHasBeenSet)
{
oStream << location << ".DefaultValue=" << StringUtils::URLEncode(m_defaultValue.c_str()) << "&";
}
if(m_sourceFieldsHasBeenSet)
{
oStream << location << ".SourceFields=" << StringUtils::URLEncode(m_sourceFields.c_str()) << "&";
}
if(m_returnEnabledHasBeenSet)
{
oStream << location << ".ReturnEnabled=" << std::boolalpha << m_returnEnabled << "&";
}
if(m_highlightEnabledHasBeenSet)
{
oStream << location << ".HighlightEnabled=" << std::boolalpha << m_highlightEnabled << "&";
}
if(m_analysisSchemeHasBeenSet)
{
oStream << location << ".AnalysisScheme=" << StringUtils::URLEncode(m_analysisScheme.c_str()) << "&";
}
}
} // namespace Model
} // namespace CloudSearch
} // namespace Aws

View File

@@ -0,0 +1,161 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/TextOptions.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 CloudSearch
{
namespace Model
{
TextOptions::TextOptions() :
m_defaultValueHasBeenSet(false),
m_sourceFieldHasBeenSet(false),
m_returnEnabled(false),
m_returnEnabledHasBeenSet(false),
m_sortEnabled(false),
m_sortEnabledHasBeenSet(false),
m_highlightEnabled(false),
m_highlightEnabledHasBeenSet(false),
m_analysisSchemeHasBeenSet(false)
{
}
TextOptions::TextOptions(const XmlNode& xmlNode) :
m_defaultValueHasBeenSet(false),
m_sourceFieldHasBeenSet(false),
m_returnEnabled(false),
m_returnEnabledHasBeenSet(false),
m_sortEnabled(false),
m_sortEnabledHasBeenSet(false),
m_highlightEnabled(false),
m_highlightEnabledHasBeenSet(false),
m_analysisSchemeHasBeenSet(false)
{
*this = xmlNode;
}
TextOptions& TextOptions::operator =(const XmlNode& xmlNode)
{
XmlNode resultNode = xmlNode;
if(!resultNode.IsNull())
{
XmlNode defaultValueNode = resultNode.FirstChild("DefaultValue");
if(!defaultValueNode.IsNull())
{
m_defaultValue = Aws::Utils::Xml::DecodeEscapedXmlText(defaultValueNode.GetText());
m_defaultValueHasBeenSet = true;
}
XmlNode sourceFieldNode = resultNode.FirstChild("SourceField");
if(!sourceFieldNode.IsNull())
{
m_sourceField = Aws::Utils::Xml::DecodeEscapedXmlText(sourceFieldNode.GetText());
m_sourceFieldHasBeenSet = true;
}
XmlNode returnEnabledNode = resultNode.FirstChild("ReturnEnabled");
if(!returnEnabledNode.IsNull())
{
m_returnEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(returnEnabledNode.GetText()).c_str()).c_str());
m_returnEnabledHasBeenSet = true;
}
XmlNode sortEnabledNode = resultNode.FirstChild("SortEnabled");
if(!sortEnabledNode.IsNull())
{
m_sortEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(sortEnabledNode.GetText()).c_str()).c_str());
m_sortEnabledHasBeenSet = true;
}
XmlNode highlightEnabledNode = resultNode.FirstChild("HighlightEnabled");
if(!highlightEnabledNode.IsNull())
{
m_highlightEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(highlightEnabledNode.GetText()).c_str()).c_str());
m_highlightEnabledHasBeenSet = true;
}
XmlNode analysisSchemeNode = resultNode.FirstChild("AnalysisScheme");
if(!analysisSchemeNode.IsNull())
{
m_analysisScheme = Aws::Utils::Xml::DecodeEscapedXmlText(analysisSchemeNode.GetText());
m_analysisSchemeHasBeenSet = true;
}
}
return *this;
}
void TextOptions::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const
{
if(m_defaultValueHasBeenSet)
{
oStream << location << index << locationValue << ".DefaultValue=" << StringUtils::URLEncode(m_defaultValue.c_str()) << "&";
}
if(m_sourceFieldHasBeenSet)
{
oStream << location << index << locationValue << ".SourceField=" << StringUtils::URLEncode(m_sourceField.c_str()) << "&";
}
if(m_returnEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".ReturnEnabled=" << std::boolalpha << m_returnEnabled << "&";
}
if(m_sortEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".SortEnabled=" << std::boolalpha << m_sortEnabled << "&";
}
if(m_highlightEnabledHasBeenSet)
{
oStream << location << index << locationValue << ".HighlightEnabled=" << std::boolalpha << m_highlightEnabled << "&";
}
if(m_analysisSchemeHasBeenSet)
{
oStream << location << index << locationValue << ".AnalysisScheme=" << StringUtils::URLEncode(m_analysisScheme.c_str()) << "&";
}
}
void TextOptions::OutputToStream(Aws::OStream& oStream, const char* location) const
{
if(m_defaultValueHasBeenSet)
{
oStream << location << ".DefaultValue=" << StringUtils::URLEncode(m_defaultValue.c_str()) << "&";
}
if(m_sourceFieldHasBeenSet)
{
oStream << location << ".SourceField=" << StringUtils::URLEncode(m_sourceField.c_str()) << "&";
}
if(m_returnEnabledHasBeenSet)
{
oStream << location << ".ReturnEnabled=" << std::boolalpha << m_returnEnabled << "&";
}
if(m_sortEnabledHasBeenSet)
{
oStream << location << ".SortEnabled=" << std::boolalpha << m_sortEnabled << "&";
}
if(m_highlightEnabledHasBeenSet)
{
oStream << location << ".HighlightEnabled=" << std::boolalpha << m_highlightEnabled << "&";
}
if(m_analysisSchemeHasBeenSet)
{
oStream << location << ".AnalysisScheme=" << StringUtils::URLEncode(m_analysisScheme.c_str()) << "&";
}
}
} // namespace Model
} // namespace CloudSearch
} // 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/cloudsearch/model/UpdateAvailabilityOptionsRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::CloudSearch::Model;
using namespace Aws::Utils;
UpdateAvailabilityOptionsRequest::UpdateAvailabilityOptionsRequest() :
m_domainNameHasBeenSet(false),
m_multiAZ(false),
m_multiAZHasBeenSet(false)
{
}
Aws::String UpdateAvailabilityOptionsRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=UpdateAvailabilityOptions&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
if(m_multiAZHasBeenSet)
{
ss << "MultiAZ=" << std::boolalpha << m_multiAZ << "&";
}
ss << "Version=2013-01-01";
return ss.str();
}
void UpdateAvailabilityOptionsRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/UpdateAvailabilityOptionsResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
UpdateAvailabilityOptionsResult::UpdateAvailabilityOptionsResult()
{
}
UpdateAvailabilityOptionsResult::UpdateAvailabilityOptionsResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
UpdateAvailabilityOptionsResult& UpdateAvailabilityOptionsResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "UpdateAvailabilityOptionsResult"))
{
resultNode = rootNode.FirstChild("UpdateAvailabilityOptionsResult");
}
if(!resultNode.IsNull())
{
XmlNode availabilityOptionsNode = resultNode.FirstChild("AvailabilityOptions");
if(!availabilityOptionsNode.IsNull())
{
m_availabilityOptions = availabilityOptionsNode;
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::UpdateAvailabilityOptionsResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

@@ -0,0 +1,41 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/UpdateDomainEndpointOptionsRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::CloudSearch::Model;
using namespace Aws::Utils;
UpdateDomainEndpointOptionsRequest::UpdateDomainEndpointOptionsRequest() :
m_domainNameHasBeenSet(false),
m_domainEndpointOptionsHasBeenSet(false)
{
}
Aws::String UpdateDomainEndpointOptionsRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=UpdateDomainEndpointOptions&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
if(m_domainEndpointOptionsHasBeenSet)
{
m_domainEndpointOptions.OutputToStream(ss, "DomainEndpointOptions");
}
ss << "Version=2013-01-01";
return ss.str();
}
void UpdateDomainEndpointOptionsRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/UpdateDomainEndpointOptionsResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
UpdateDomainEndpointOptionsResult::UpdateDomainEndpointOptionsResult()
{
}
UpdateDomainEndpointOptionsResult::UpdateDomainEndpointOptionsResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
UpdateDomainEndpointOptionsResult& UpdateDomainEndpointOptionsResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "UpdateDomainEndpointOptionsResult"))
{
resultNode = rootNode.FirstChild("UpdateDomainEndpointOptionsResult");
}
if(!resultNode.IsNull())
{
XmlNode domainEndpointOptionsNode = resultNode.FirstChild("DomainEndpointOptions");
if(!domainEndpointOptionsNode.IsNull())
{
m_domainEndpointOptions = domainEndpointOptionsNode;
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::UpdateDomainEndpointOptionsResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

@@ -0,0 +1,41 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/UpdateScalingParametersRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::CloudSearch::Model;
using namespace Aws::Utils;
UpdateScalingParametersRequest::UpdateScalingParametersRequest() :
m_domainNameHasBeenSet(false),
m_scalingParametersHasBeenSet(false)
{
}
Aws::String UpdateScalingParametersRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=UpdateScalingParameters&";
if(m_domainNameHasBeenSet)
{
ss << "DomainName=" << StringUtils::URLEncode(m_domainName.c_str()) << "&";
}
if(m_scalingParametersHasBeenSet)
{
m_scalingParameters.OutputToStream(ss, "ScalingParameters");
}
ss << "Version=2013-01-01";
return ss.str();
}
void UpdateScalingParametersRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/UpdateScalingParametersResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
UpdateScalingParametersResult::UpdateScalingParametersResult()
{
}
UpdateScalingParametersResult::UpdateScalingParametersResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
UpdateScalingParametersResult& UpdateScalingParametersResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "UpdateScalingParametersResult"))
{
resultNode = rootNode.FirstChild("UpdateScalingParametersResult");
}
if(!resultNode.IsNull())
{
XmlNode scalingParametersNode = resultNode.FirstChild("ScalingParameters");
if(!scalingParametersNode.IsNull())
{
m_scalingParameters = scalingParametersNode;
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::UpdateScalingParametersResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}

View File

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

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudsearch/model/UpdateServiceAccessPoliciesResult.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::CloudSearch::Model;
using namespace Aws::Utils::Xml;
using namespace Aws::Utils::Logging;
using namespace Aws::Utils;
using namespace Aws;
UpdateServiceAccessPoliciesResult::UpdateServiceAccessPoliciesResult()
{
}
UpdateServiceAccessPoliciesResult::UpdateServiceAccessPoliciesResult(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
*this = result;
}
UpdateServiceAccessPoliciesResult& UpdateServiceAccessPoliciesResult::operator =(const Aws::AmazonWebServiceResult<XmlDocument>& result)
{
const XmlDocument& xmlDocument = result.GetPayload();
XmlNode rootNode = xmlDocument.GetRootElement();
XmlNode resultNode = rootNode;
if (!rootNode.IsNull() && (rootNode.GetName() != "UpdateServiceAccessPoliciesResult"))
{
resultNode = rootNode.FirstChild("UpdateServiceAccessPoliciesResult");
}
if(!resultNode.IsNull())
{
XmlNode accessPoliciesNode = resultNode.FirstChild("AccessPolicies");
if(!accessPoliciesNode.IsNull())
{
m_accessPolicies = accessPoliciesNode;
}
}
if (!rootNode.IsNull()) {
XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
m_responseMetadata = responseMetadataNode;
AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::UpdateServiceAccessPoliciesResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );
}
return *this;
}