aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/source/model/InventoryConfiguration.cpp
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:45:01 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:01 +0300
commit2d37894b1b037cf24231090eda8589bbb44fb6fc (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/source/model/InventoryConfiguration.cpp
parent718c552901d703c502ccbefdfc3c9028d608b947 (diff)
downloadydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/source/model/InventoryConfiguration.cpp')
-rw-r--r--contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/source/model/InventoryConfiguration.cpp328
1 files changed, 164 insertions, 164 deletions
diff --git a/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/source/model/InventoryConfiguration.cpp b/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/source/model/InventoryConfiguration.cpp
index 2a9dfbafed..304dde130a 100644
--- a/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/source/model/InventoryConfiguration.cpp
+++ b/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/source/model/InventoryConfiguration.cpp
@@ -1,164 +1,164 @@
-/**
- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
- * SPDX-License-Identifier: Apache-2.0.
- */
-
-#include <aws/s3/model/InventoryConfiguration.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 S3
-{
-namespace Model
-{
-
-InventoryConfiguration::InventoryConfiguration() :
- m_destinationHasBeenSet(false),
- m_isEnabled(false),
- m_isEnabledHasBeenSet(false),
- m_filterHasBeenSet(false),
- m_idHasBeenSet(false),
- m_includedObjectVersions(InventoryIncludedObjectVersions::NOT_SET),
- m_includedObjectVersionsHasBeenSet(false),
- m_optionalFieldsHasBeenSet(false),
- m_scheduleHasBeenSet(false)
-{
-}
-
-InventoryConfiguration::InventoryConfiguration(const XmlNode& xmlNode) :
- m_destinationHasBeenSet(false),
- m_isEnabled(false),
- m_isEnabledHasBeenSet(false),
- m_filterHasBeenSet(false),
- m_idHasBeenSet(false),
- m_includedObjectVersions(InventoryIncludedObjectVersions::NOT_SET),
- m_includedObjectVersionsHasBeenSet(false),
- m_optionalFieldsHasBeenSet(false),
- m_scheduleHasBeenSet(false)
-{
- *this = xmlNode;
-}
-
-InventoryConfiguration& InventoryConfiguration::operator =(const XmlNode& xmlNode)
-{
- XmlNode resultNode = xmlNode;
-
- if(!resultNode.IsNull())
- {
- XmlNode destinationNode = resultNode.FirstChild("Destination");
- if(!destinationNode.IsNull())
- {
- m_destination = destinationNode;
- m_destinationHasBeenSet = true;
- }
- XmlNode isEnabledNode = resultNode.FirstChild("IsEnabled");
- if(!isEnabledNode.IsNull())
- {
- m_isEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(isEnabledNode.GetText()).c_str()).c_str());
- m_isEnabledHasBeenSet = true;
- }
- XmlNode filterNode = resultNode.FirstChild("Filter");
- if(!filterNode.IsNull())
- {
- m_filter = filterNode;
- m_filterHasBeenSet = true;
- }
- XmlNode idNode = resultNode.FirstChild("Id");
- if(!idNode.IsNull())
- {
- m_id = Aws::Utils::Xml::DecodeEscapedXmlText(idNode.GetText());
- m_idHasBeenSet = true;
- }
- XmlNode includedObjectVersionsNode = resultNode.FirstChild("IncludedObjectVersions");
- if(!includedObjectVersionsNode.IsNull())
- {
- m_includedObjectVersions = InventoryIncludedObjectVersionsMapper::GetInventoryIncludedObjectVersionsForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(includedObjectVersionsNode.GetText()).c_str()).c_str());
- m_includedObjectVersionsHasBeenSet = true;
- }
- XmlNode optionalFieldsNode = resultNode.FirstChild("OptionalFields");
- if(!optionalFieldsNode.IsNull())
- {
- XmlNode optionalFieldsMember = optionalFieldsNode.FirstChild("Field");
- while(!optionalFieldsMember.IsNull())
- {
- m_optionalFields.push_back(InventoryOptionalFieldMapper::GetInventoryOptionalFieldForName(StringUtils::Trim(optionalFieldsMember.GetText().c_str())));
- optionalFieldsMember = optionalFieldsMember.NextNode("Field");
- }
-
- m_optionalFieldsHasBeenSet = true;
- }
- XmlNode scheduleNode = resultNode.FirstChild("Schedule");
- if(!scheduleNode.IsNull())
- {
- m_schedule = scheduleNode;
- m_scheduleHasBeenSet = true;
- }
- }
-
- return *this;
-}
-
-void InventoryConfiguration::AddToNode(XmlNode& parentNode) const
-{
- Aws::StringStream ss;
- if(m_destinationHasBeenSet)
- {
- XmlNode destinationNode = parentNode.CreateChildElement("Destination");
- m_destination.AddToNode(destinationNode);
- }
-
- if(m_isEnabledHasBeenSet)
- {
- XmlNode isEnabledNode = parentNode.CreateChildElement("IsEnabled");
- ss << std::boolalpha << m_isEnabled;
- isEnabledNode.SetText(ss.str());
- ss.str("");
- }
-
- if(m_filterHasBeenSet)
- {
- XmlNode filterNode = parentNode.CreateChildElement("Filter");
- m_filter.AddToNode(filterNode);
- }
-
- if(m_idHasBeenSet)
- {
- XmlNode idNode = parentNode.CreateChildElement("Id");
- idNode.SetText(m_id);
- }
-
- if(m_includedObjectVersionsHasBeenSet)
- {
- XmlNode includedObjectVersionsNode = parentNode.CreateChildElement("IncludedObjectVersions");
- includedObjectVersionsNode.SetText(InventoryIncludedObjectVersionsMapper::GetNameForInventoryIncludedObjectVersions(m_includedObjectVersions));
- }
-
- if(m_optionalFieldsHasBeenSet)
- {
- XmlNode optionalFieldsParentNode = parentNode.CreateChildElement("OptionalFields");
- for(const auto& item : m_optionalFields)
- {
- XmlNode optionalFieldsNode = optionalFieldsParentNode.CreateChildElement("Field");
- optionalFieldsNode.SetText(InventoryOptionalFieldMapper::GetNameForInventoryOptionalField(item));
- }
- }
-
- if(m_scheduleHasBeenSet)
- {
- XmlNode scheduleNode = parentNode.CreateChildElement("Schedule");
- m_schedule.AddToNode(scheduleNode);
- }
-
-}
-
-} // namespace Model
-} // namespace S3
-} // namespace Aws
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include <aws/s3/model/InventoryConfiguration.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 S3
+{
+namespace Model
+{
+
+InventoryConfiguration::InventoryConfiguration() :
+ m_destinationHasBeenSet(false),
+ m_isEnabled(false),
+ m_isEnabledHasBeenSet(false),
+ m_filterHasBeenSet(false),
+ m_idHasBeenSet(false),
+ m_includedObjectVersions(InventoryIncludedObjectVersions::NOT_SET),
+ m_includedObjectVersionsHasBeenSet(false),
+ m_optionalFieldsHasBeenSet(false),
+ m_scheduleHasBeenSet(false)
+{
+}
+
+InventoryConfiguration::InventoryConfiguration(const XmlNode& xmlNode) :
+ m_destinationHasBeenSet(false),
+ m_isEnabled(false),
+ m_isEnabledHasBeenSet(false),
+ m_filterHasBeenSet(false),
+ m_idHasBeenSet(false),
+ m_includedObjectVersions(InventoryIncludedObjectVersions::NOT_SET),
+ m_includedObjectVersionsHasBeenSet(false),
+ m_optionalFieldsHasBeenSet(false),
+ m_scheduleHasBeenSet(false)
+{
+ *this = xmlNode;
+}
+
+InventoryConfiguration& InventoryConfiguration::operator =(const XmlNode& xmlNode)
+{
+ XmlNode resultNode = xmlNode;
+
+ if(!resultNode.IsNull())
+ {
+ XmlNode destinationNode = resultNode.FirstChild("Destination");
+ if(!destinationNode.IsNull())
+ {
+ m_destination = destinationNode;
+ m_destinationHasBeenSet = true;
+ }
+ XmlNode isEnabledNode = resultNode.FirstChild("IsEnabled");
+ if(!isEnabledNode.IsNull())
+ {
+ m_isEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(isEnabledNode.GetText()).c_str()).c_str());
+ m_isEnabledHasBeenSet = true;
+ }
+ XmlNode filterNode = resultNode.FirstChild("Filter");
+ if(!filterNode.IsNull())
+ {
+ m_filter = filterNode;
+ m_filterHasBeenSet = true;
+ }
+ XmlNode idNode = resultNode.FirstChild("Id");
+ if(!idNode.IsNull())
+ {
+ m_id = Aws::Utils::Xml::DecodeEscapedXmlText(idNode.GetText());
+ m_idHasBeenSet = true;
+ }
+ XmlNode includedObjectVersionsNode = resultNode.FirstChild("IncludedObjectVersions");
+ if(!includedObjectVersionsNode.IsNull())
+ {
+ m_includedObjectVersions = InventoryIncludedObjectVersionsMapper::GetInventoryIncludedObjectVersionsForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(includedObjectVersionsNode.GetText()).c_str()).c_str());
+ m_includedObjectVersionsHasBeenSet = true;
+ }
+ XmlNode optionalFieldsNode = resultNode.FirstChild("OptionalFields");
+ if(!optionalFieldsNode.IsNull())
+ {
+ XmlNode optionalFieldsMember = optionalFieldsNode.FirstChild("Field");
+ while(!optionalFieldsMember.IsNull())
+ {
+ m_optionalFields.push_back(InventoryOptionalFieldMapper::GetInventoryOptionalFieldForName(StringUtils::Trim(optionalFieldsMember.GetText().c_str())));
+ optionalFieldsMember = optionalFieldsMember.NextNode("Field");
+ }
+
+ m_optionalFieldsHasBeenSet = true;
+ }
+ XmlNode scheduleNode = resultNode.FirstChild("Schedule");
+ if(!scheduleNode.IsNull())
+ {
+ m_schedule = scheduleNode;
+ m_scheduleHasBeenSet = true;
+ }
+ }
+
+ return *this;
+}
+
+void InventoryConfiguration::AddToNode(XmlNode& parentNode) const
+{
+ Aws::StringStream ss;
+ if(m_destinationHasBeenSet)
+ {
+ XmlNode destinationNode = parentNode.CreateChildElement("Destination");
+ m_destination.AddToNode(destinationNode);
+ }
+
+ if(m_isEnabledHasBeenSet)
+ {
+ XmlNode isEnabledNode = parentNode.CreateChildElement("IsEnabled");
+ ss << std::boolalpha << m_isEnabled;
+ isEnabledNode.SetText(ss.str());
+ ss.str("");
+ }
+
+ if(m_filterHasBeenSet)
+ {
+ XmlNode filterNode = parentNode.CreateChildElement("Filter");
+ m_filter.AddToNode(filterNode);
+ }
+
+ if(m_idHasBeenSet)
+ {
+ XmlNode idNode = parentNode.CreateChildElement("Id");
+ idNode.SetText(m_id);
+ }
+
+ if(m_includedObjectVersionsHasBeenSet)
+ {
+ XmlNode includedObjectVersionsNode = parentNode.CreateChildElement("IncludedObjectVersions");
+ includedObjectVersionsNode.SetText(InventoryIncludedObjectVersionsMapper::GetNameForInventoryIncludedObjectVersions(m_includedObjectVersions));
+ }
+
+ if(m_optionalFieldsHasBeenSet)
+ {
+ XmlNode optionalFieldsParentNode = parentNode.CreateChildElement("OptionalFields");
+ for(const auto& item : m_optionalFields)
+ {
+ XmlNode optionalFieldsNode = optionalFieldsParentNode.CreateChildElement("Field");
+ optionalFieldsNode.SetText(InventoryOptionalFieldMapper::GetNameForInventoryOptionalField(item));
+ }
+ }
+
+ if(m_scheduleHasBeenSet)
+ {
+ XmlNode scheduleNode = parentNode.CreateChildElement("Schedule");
+ m_schedule.AddToNode(scheduleNode);
+ }
+
+}
+
+} // namespace Model
+} // namespace S3
+} // namespace Aws